mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
c3ea09ebb8
It contains several changes in addition to regular update to WordPress packages: - All newly exposed blocks are now registered on the server. - Dutone block support was added. - Border block support was updated. - New shared function `construct_wp_query_args` was added for the family of Query blocks - it might need some further work. Props youknowriad. See #52991. Built from https://develop.svn.wordpress.org/trunk@50929 git-svn-id: http://core.svn.wordpress.org/trunk@50538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
42 lines
472 KiB
JavaScript
42 lines
472 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=553)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.blockEditor},function(e,t,o){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}o.d(t,"a",(function(){return n}))},function(e,t){e.exports=window.wp.blocks},function(e,t,o){var n;
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var c=r.apply(null,n);c&&e.push(c)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.keycodes},,function(e,t){e.exports=window.wp.richText},,,,function(e,t){e.exports=window.wp.coreData},,function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.wp.editor},,function(e,t){e.exports=window.wp.deprecated},,,function(e,t){e.exports=window.wp.blob},,function(e,t){e.exports=window.moment},,,,function(e,t){e.exports=window.wp.apiFetch},,,function(e,t){e.exports=window.wp.notices},function(e,t,o){var n;!function(r){var a=/^\s+/,c=/\s+$/,l=0,i=r.round,s=r.min,u=r.max,m=r.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var o=function(e){var t={r:0,g:0,b:0},o=1,n=null,l=null,i=null,m=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(c,"").toLowerCase();var t,o=!1;if(T[e])e=T[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=G.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=G.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=G.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=G.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=G.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=G.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=G.hex8.exec(e))return{r:V(t[1]),g:V(t[2]),b:V(t[3]),a:I(t[4]),format:o?"name":"hex8"};if(t=G.hex6.exec(e))return{r:V(t[1]),g:V(t[2]),b:V(t[3]),format:o?"name":"hex"};if(t=G.hex4.exec(e))return{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=G.hex3.exec(e))return{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),format:o?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(b=e.r,p=e.g,g=e.b,t={r:255*N(b,255),g:255*N(p,255),b:255*N(g,255)},m=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(n=H(e.s),l=H(e.v),t=function(e,t,o){e=6*N(e,360),t=N(t,100),o=N(o,100);var n=r.floor(e),a=e-n,c=o*(1-t),l=o*(1-a*t),i=o*(1-(1-a)*t),s=n%6;return{r:255*[o,l,c,c,i,o][s],g:255*[i,o,o,l,c,c][s],b:255*[c,c,i,o,o,l][s]}}(e.h,n,l),m=!0,d="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(n=H(e.s),i=H(e.l),t=function(e,t,o){var n,r,a;function c(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(e=N(e,360),t=N(t,100),o=N(o,100),0===t)n=r=a=o;else{var l=o<.5?o*(1+t):o+t-o*t,i=2*o-l;n=c(i,l,e+1/3),r=c(i,l,e),a=c(i,l,e-1/3)}return{r:255*n,g:255*r,b:255*a}}(e.h,n,i),m=!0,d="hsl"),e.hasOwnProperty("a")&&(o=e.a));var b,p,g;return o=P(o),{ok:m,format:e.format||d,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:o}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=i(100*this._a)/100,this._format=t.format||o.format,this._gradientType=t.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=o.ok,this._tc_id=l++}function b(e,t,o){e=N(e,255),t=N(t,255),o=N(o,255);var n,r,a=u(e,t,o),c=s(e,t,o),l=(a+c)/2;if(a==c)n=r=0;else{var i=a-c;switch(r=l>.5?i/(2-a-c):i/(a+c),a){case e:n=(t-o)/i+(t<o?6:0);break;case t:n=(o-e)/i+2;break;case o:n=(e-t)/i+4}n/=6}return{h:n,s:r,l:l}}function p(e,t,o){e=N(e,255),t=N(t,255),o=N(o,255);var n,r,a=u(e,t,o),c=s(e,t,o),l=a,i=a-c;if(r=0===a?0:i/a,a==c)n=0;else{switch(a){case e:n=(t-o)/i+(t<o?6:0);break;case t:n=(o-e)/i+2;break;case o:n=(e-t)/i+4}n/=6}return{h:n,s:r,v:l}}function g(e,t,o,n){var r=[R(i(e).toString(16)),R(i(t).toString(16)),R(i(o).toString(16))];return n&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function h(e,t,o,n){return[R(A(n)),R(i(e).toString(16)),R(i(t).toString(16)),R(i(o).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.s-=t/100,o.s=M(o.s),d(o)}function O(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.s+=t/100,o.s=M(o.s),d(o)}function j(e){return d(e).desaturate(100)}function f(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.l+=t/100,o.l=M(o.l),d(o)}function y(e,t){t=0===t?0:t||10;var o=d(e).toRgb();return o.r=u(0,s(255,o.r-i(-t/100*255))),o.g=u(0,s(255,o.g-i(-t/100*255))),o.b=u(0,s(255,o.b-i(-t/100*255))),d(o)}function _(e,t){t=0===t?0:t||10;var o=d(e).toHsl();return o.l-=t/100,o.l=M(o.l),d(o)}function w(e,t){var o=d(e).toHsl(),n=(o.h+t)%360;return o.h=n<0?360+n:n,d(o)}function k(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function E(e){var t=d(e).toHsl(),o=t.h;return[d(e),d({h:(o+120)%360,s:t.s,l:t.l}),d({h:(o+240)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl(),o=t.h;return[d(e),d({h:(o+90)%360,s:t.s,l:t.l}),d({h:(o+180)%360,s:t.s,l:t.l}),d({h:(o+270)%360,s:t.s,l:t.l})]}function x(e){var t=d(e).toHsl(),o=t.h;return[d(e),d({h:(o+72)%360,s:t.s,l:t.l}),d({h:(o+216)%360,s:t.s,l:t.l})]}function S(e,t,o){t=t||6,o=o||30;var n=d(e).toHsl(),r=360/o,a=[d(e)];for(n.h=(n.h-(r*t>>1)+720)%360;--t;)n.h=(n.h+r)%360,a.push(d(n));return a}function B(e,t){t=t||6;for(var o=d(e).toHsv(),n=o.h,r=o.s,a=o.v,c=[],l=1/t;t--;)c.push(d({h:n,s:r,v:a})),a=(a+l)%1;return c}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,o,n=this.toRgb();return e=n.r/255,t=n.g/255,o=n.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:r.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=i(360*e.h),o=i(100*e.s),n=i(100*e.v);return 1==this._a?"hsv("+t+", "+o+"%, "+n+"%)":"hsva("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(this._r,this._g,this._b),t=i(360*e.h),o=i(100*e.s),n=i(100*e.l);return 1==this._a?"hsl("+t+", "+o+"%, "+n+"%)":"hsla("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,o,n,r){var a=[R(i(e).toString(16)),R(i(t).toString(16)),R(i(o).toString(16)),R(A(n))];if(r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*N(this._r,255))+"%",g:i(100*N(this._g,255))+"%",b:i(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*N(this._r,255))+"%, "+i(100*N(this._g,255))+"%, "+i(100*N(this._b,255))+"%)":"rgba("+i(100*N(this._r,255))+"%, "+i(100*N(this._g,255))+"%, "+i(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),o=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var r=d(e);o="#"+h(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+o+")"},toString:function(e){var t=!!e;e=e||this._format;var o=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var o=e.apply(null,[this].concat([].slice.call(t)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(j,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]="a"===n?e[n]:H(e[n]));e=o}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:m(),g:m(),b:m()})},d.mix=function(e,t,o){o=0===o?0:o||50;var n=d(e).toRgb(),r=d(t).toRgb(),a=o/100;return d({r:(r.r-n.r)*a+n.r,g:(r.g-n.g)*a+n.g,b:(r.b-n.b)*a+n.b,a:(r.a-n.a)*a+n.a})},d.readability=function(e,t){var o=d(e),n=d(t);return(r.max(o.getLuminance(),n.getLuminance())+.05)/(r.min(o.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,o){var n,r,a=d.readability(e,t);switch(r=!1,(n=function(e){var t,o;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==o&&"large"!==o&&(o="small");return{level:t,size:o}}(o)).level+n.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},d.mostReadable=function(e,t,o){var n,r,a,c,l=null,i=0;r=(o=o||{}).includeFallbackColors,a=o.level,c=o.size;for(var s=0;s<t.length;s++)(n=d.readability(e,t[s]))>i&&(i=n,l=d(t[s]));return d.isReadable(e,l,{level:a,size:c})||!r?l:(o.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],o))};var T=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=d.hexNames=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[e[o]]=o);return t}(T);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var o=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function V(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function A(e){return r.round(255*parseFloat(e)).toString(16)}function I(e){return V(e)/255}var L,D,F,G=(D="[\\s|\\(]+("+(L="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",F="[\\s|\\(]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",{CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,o,t,e))||(e.exports=n)}(Math)},,,,,function(e,t,o){e.exports=function(e,t){var o,n,r=0;function a(){var a,c,l=o,i=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(c=0;c<i;c++)if(l.args[c]!==arguments[c]){l=l.next;continue e}return l!==o&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}l=l.next}for(a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return l={args:a,val:e.apply(null,a)},o?(o.prev=l,l.next=o):n=l,r===t.maxSize?(n=n.prev).next=null:r++,o=l,l.val}return t=t||{},a.clear=function(){o=null,n=null,r=0},a}},,,,,function(e,t){e.exports=window.wp.date},,,,,,,,,,,function(e,t){e.exports=window.wp.serverSideRender},,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0);t.a=function({icon:e,size:t=24,...o}){return Object(n.cloneElement)(e,{width:t,height:t,...o})}},,,,,,,,,,function(e,t){e.exports=window.wp.viewport},function(e,t){e.exports=window.wp.autop},,function(e,t,o){var n;
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var o=t.length,n=0;n<o;++n)r(e,t[n])}e.prototype=Object.create(null);var o={}.hasOwnProperty;var n=/\s+/;function r(e,r){if(r){var a=typeof r;"string"===a?function(e,t){for(var o=t.split(n),r=o.length,a=0;a<r;++a)e[o[a]]=!0}(e,r):Array.isArray(r)?t(e,r):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var n in t)o.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(e,r):"number"===a&&function(e,t){e[t]=!0}(e,r)}}return function(){for(var o=arguments.length,n=Array(o),r=0;r<o;r++)n[r]=arguments[r];var a=new e;t(a,n);var c=[];for(var l in a)a[l]&&c.push(l);return c.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=a},,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=a},,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},function(e,t,o){"use strict";var n=o(65);t.a=n.a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},,,,,,,function(e,t){e.exports=window.wp.reusableBlocks},,,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=a},,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=a},,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M17 4h-2v4.5h2V7h3V5.5h-3V4zM4 5.5h9V7H4V5.5zm16 5.75h-9v1.5h9v-1.5zm-16 0h3V10h2v4.25H7v-1.5H4v-1.5zM9 17H4v1.5h5V17zm4 0h7v1.5h-7V20h-2v-4.25h2V17z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M4 19.25h9M4 15.25h16"}),Object(n.createElement)(r.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(n.createElement)(r.Rect,{x:"12",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(n.createElement)(r.Rect,{x:"17",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Rect,{x:"6",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(n.createElement)(r.Rect,{x:"11",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(n.createElement)(r.Path,{d:"M16.5 9.5L19 12l-2.5 2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(n.createElement)(r.Path,{d:"M13.5 14v-4l-1.5.5",stroke:"#1E1E1E"}),Object(n.createElement)(r.Path,{d:"M19.266 9.805c-.473-.611-1.22-.51-1.702-.367a3.854 3.854 0 00-.718.307l.13 1.082c.192-.17.47-.422.782-.515.34-.1.578.025.668.141.21.27-.034.835-.16 1.055-.49.85-.93 1.594-1.45 2.492H19.5v-1h-.914c.277-.574.814-1.443.914-2.106.052-.343.02-.762-.234-1.09z",fill:"#1E1E1E"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Rect,{x:"18",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 18 13.5)",fill:"#000"}),Object(n.createElement)(r.Rect,{x:"13",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 13 13.5)",fill:"#000"}),Object(n.createElement)(r.Path,{d:"M7.5 14.5L5 12l2.5-2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M4 14.5h16V16H4zM4 18.5h9V20H4zM4 4h3c2 0 3 .86 3 2.583 0 .891-.253 1.554-.76 1.988-.505.435-1.24.652-2.204.652H5.542V12H4V4zm2.855 4c.53 0 .924-.114 1.18-.343.266-.228.398-.579.398-1.051 0-.473-.132-.82-.397-1.04-.265-.229-.67-.343-1.217-.343H5.542V8h1.313z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),Object(n.createElement)(r.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(r.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));t.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){e.exports=o(422)},function(e,t,o){
|
||
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
|
||
e.exports=function(){"use strict";function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=[],n=!0,r=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(o.push(c.value),!t||o.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw a}}return o}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}var n,r,a;return n=o,(r=[{key:"getColorAsync",value:function(e,t,o){e.complete?t.call(e,this.getColor(e,o),o&&o.data):this._bindImageEvents(e,t,o)}},{key:"getColor",value:function(e,t){t=t||{};var o=this._getDefaultColor(t),n=this._getOriginalSize(e),r=this._prepareSizeAndPosition(n,t),a=null,c=o;if(!(r.srcWidth&&r.srcHeight&&r.destWidth&&r.destHeight))return this._prepareResult(o,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(o,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=r.destWidth,this._canvas.height=r.destHeight;try{this._ctx.clearRect(0,0,r.destWidth,r.destHeight),this._ctx.drawImage(e,r.srcLeft,r.srcTop,r.srcWidth,r.srcHeight,0,0,r.destWidth,r.destHeight);var l=this._ctx.getImageData(0,0,r.destWidth,r.destHeight).data;c=this.getColorFromArray4(l,t)}catch(e){a=e}return this._prepareResult(c,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var o=e.length;if(o<4)return this._getDefaultColor(t);var n=o-o%4,r=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](e,n,r)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,o){return void 0===e[t]?o:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var o,n=this._getOption(t,"left",0),r=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),c=this._getOption(t,"height",e.height),l=a,i=c;return"precision"===t.mode||(a>c?(o=a/c,l=100,i=Math.round(l/o)):(o=c/a,i=100,l=Math.round(i/o)),(l>a||i>c||l<10||i<10)&&(l=a,i=c)),{srcLeft:n,srcTop:r,srcWidth:a,srcHeight:c,destWidth:l,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,o){for(var n=0,r=0,a=0,c=0,l=0,i=0;i<t;i+=o){var s=e[i+3];n+=e[i]*s,r+=e[i+1]*s,a+=e[i+2]*s,c+=s,l++}return c?[Math.round(n/c),Math.round(r/c),Math.round(a/c),Math.round(c/l)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,o){for(var n=0,r=0,a=0,c=0,l=0,i=0;i<t;i+=o){var s=e[i],u=e[i+1],m=e[i+2],d=e[i+3];n+=s*s*d,r+=u*u*d,a+=m*m*d,c+=d,l++}return c?[Math.round(Math.sqrt(n/c)),Math.round(Math.sqrt(r/c)),Math.round(Math.sqrt(a/c)),Math.round(c/l)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,o,n){for(var r={},a=0;a<o;a+=n){var c=e[a],l=e[a+1],i=e[a+2],s=e[a+3],u=Math.round(c/24)+","+Math.round(l/24)+","+Math.round(i/24);r[u]?r[u]=[r[u][0]+c*s,r[u][1]+l*s,r[u][2]+i*s,r[u][3]+s,r[u][4]+1]:r[u]=[c*s,l*s,i*s,s,1]}var m=t(Object.keys(r).map((function(e){return r[e]})).sort((function(e,t){var o=e[4],n=t[4];return o>n?-1:o===n?0:1}))[0],5),d=m[0],b=m[1],p=m[2],g=m[3],h=m[4];return g?[Math.round(d/g),Math.round(b/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,o){var n=this,r=(o=o||{})&&o.data,a=this._getDefaultColor(o),c=function(){s(),t.call(e,n.getColor(e,o),r)},l=function(){s(),t.call(e,n._prepareResult(a,new Error("Image error")),r)},i=function(){s(),t.call(e,n._prepareResult(a,new Error("Image abort")),r)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",c),e.addEventListener("error",l),e.addEventListener("abort",i)}},{key:"_prepareResult",value:function(e,t){var o=e.slice(0,3),n=[].concat(o,e[3]/255),r=this._isDark(e);return{error:t,value:e,rgb:"rgb("+o.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(o),hexa:this._arrayToHex(e),isDark:r,isLight:!r}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,r),a&&e(n,a),o}()}()},,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";var n=o(423),r=o(424);function a(e){var t=0,o=0,n=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1==e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:r}}a.getEventType=function(){return n.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=a},function(e,t){var o,n,r,a,c,l,i,s,u,m,d,b,p,g,h,v=!1;function O(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),O=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(b=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),m=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(o=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(o=document.documentMode);var j=/(?:Trident\/(\d+.\d+))/.exec(e);l=j?parseFloat(j[1])+4:o,n=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(a=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),c=t&&t[1]?parseFloat(t[1]):NaN):c=NaN}else o=n=r=c=a=NaN;if(O){if(O[1]){var f=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);i=!f||parseFloat(f[1].replace("_","."))}else i=!1;s=!!O[2],u=!!O[3]}else i=s=u=!1}}var j={ie:function(){return O()||o},ieCompatibilityMode:function(){return O()||l>o},ie64:function(){return j.ie()&&d},firefox:function(){return O()||n},opera:function(){return O()||r},webkit:function(){return O()||a},safari:function(){return j.webkit()},chrome:function(){return O()||c},windows:function(){return O()||s},osx:function(){return O()||i},linux:function(){return O()||u},iphone:function(){return O()||b},mobile:function(){return O()||b||p||m||h},nativeApp:function(){return O()||g},android:function(){return O()||m},ipad:function(){return O()||p}};e.exports=j},function(e,t,o){"use strict";var n,r=o(425);r.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
||
/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,a=o in document;if(!a){var c=document.createElement("div");c.setAttribute(o,"return;"),a="function"==typeof c[o]}return!a&&n&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},function(e,t,o){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";o.r(t),o.d(t,"__experimentalGetCoreBlocks",(function(){return ed})),o.d(t,"registerCoreBlocks",(function(){return td})),o.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return od}));var n={};o.r(n),o.d(n,"metadata",(function(){return Te})),o.d(n,"name",(function(){return ze})),o.d(n,"settings",(function(){return Pe}));var r={};o.r(r),o.d(r,"metadata",(function(){return Zt})),o.d(r,"name",(function(){return Qt})),o.d(r,"settings",(function(){return Yt}));var a={};o.r(a),o.d(a,"metadata",(function(){return bo})),o.d(a,"name",(function(){return po})),o.d(a,"settings",(function(){return go}));var c={};o.r(c),o.d(c,"metadata",(function(){return _o})),o.d(c,"name",(function(){return wo})),o.d(c,"settings",(function(){return ko}));var l={};o.r(l),o.d(l,"metadata",(function(){return $o})),o.d(l,"name",(function(){return Zo})),o.d(l,"settings",(function(){return Qo}));var i={};o.r(i),o.d(i,"metadata",(function(){return Xo})),o.d(i,"name",(function(){return en})),o.d(i,"settings",(function(){return tn}));var s={};o.r(s),o.d(s,"metadata",(function(){return ln})),o.d(s,"name",(function(){return sn})),o.d(s,"settings",(function(){return un}));var u={};o.r(u),o.d(u,"metadata",(function(){return Cn})),o.d(u,"name",(function(){return xn})),o.d(u,"settings",(function(){return Sn}));var m={};o.r(m),o.d(m,"metadata",(function(){return Nn})),o.d(m,"name",(function(){return Mn})),o.d(m,"settings",(function(){return Vn}));var d={};o.r(d),o.d(d,"metadata",(function(){return Dn})),o.d(d,"name",(function(){return Fn})),o.d(d,"settings",(function(){return Gn}));var b={};o.r(b),o.d(b,"metadata",(function(){return Wn})),o.d(b,"name",(function(){return $n})),o.d(b,"settings",(function(){return Zn}));var p={};o.r(p),o.d(p,"metadata",(function(){return Xn})),o.d(p,"name",(function(){return er})),o.d(p,"settings",(function(){return tr}));var g={};o.r(g),o.d(g,"metadata",(function(){return vr})),o.d(g,"name",(function(){return Or})),o.d(g,"settings",(function(){return jr}));var h={};o.r(h),o.d(h,"metadata",(function(){return wr})),o.d(h,"name",(function(){return kr})),o.d(h,"settings",(function(){return Er}));var v={};o.r(v),o.d(v,"metadata",(function(){return Jr})),o.d(v,"name",(function(){return Kr})),o.d(v,"settings",(function(){return Xr}));var O={};o.r(O),o.d(O,"metadata",(function(){return za})),o.d(O,"name",(function(){return Pa})),o.d(O,"settings",(function(){return Na}));var j={};o.r(j),o.d(j,"metadata",(function(){return Ga})),o.d(j,"name",(function(){return Ua})),o.d(j,"settings",(function(){return qa}));var f={};o.r(f),o.d(f,"metadata",(function(){return Za})),o.d(f,"name",(function(){return Qa})),o.d(f,"settings",(function(){return Ya}));var y={};o.r(y),o.d(y,"metadata",(function(){return gc})),o.d(y,"name",(function(){return hc})),o.d(y,"settings",(function(){return vc}));var _={};o.r(_),o.d(_,"metadata",(function(){return jc})),o.d(_,"name",(function(){return fc})),o.d(_,"settings",(function(){return yc}));var w={};o.r(w),o.d(w,"metadata",(function(){return Tc})),o.d(w,"name",(function(){return zc})),o.d(w,"settings",(function(){return Pc}));var k={};o.r(k),o.d(k,"metadata",(function(){return Mc})),o.d(k,"name",(function(){return Vc})),o.d(k,"settings",(function(){return Rc}));var E={};o.r(E),o.d(E,"metadata",(function(){return Zc})),o.d(E,"name",(function(){return Qc})),o.d(E,"settings",(function(){return Yc}));var C={};o.r(C),o.d(C,"metadata",(function(){return Kc})),o.d(C,"name",(function(){return Xc})),o.d(C,"settings",(function(){return el}));var x={};o.r(x),o.d(x,"metadata",(function(){return rl})),o.d(x,"name",(function(){return al})),o.d(x,"settings",(function(){return cl}));var S={};o.r(S),o.d(S,"metadata",(function(){return sl})),o.d(S,"name",(function(){return ul})),o.d(S,"settings",(function(){return ml}));var B={};o.r(B),o.d(B,"metadata",(function(){return hl})),o.d(B,"name",(function(){return vl})),o.d(B,"settings",(function(){return Ol}));var T={};o.r(T),o.d(T,"metadata",(function(){return yl})),o.d(T,"name",(function(){return _l})),o.d(T,"settings",(function(){return wl}));var z={};o.r(z),o.d(z,"metadata",(function(){return Tl})),o.d(z,"name",(function(){return zl})),o.d(z,"settings",(function(){return Pl}));var P={};o.r(P),o.d(P,"metadata",(function(){return Vl})),o.d(P,"name",(function(){return Rl})),o.d(P,"settings",(function(){return Hl}));var N={};o.r(N),o.d(N,"metadata",(function(){return Il})),o.d(N,"name",(function(){return Ll})),o.d(N,"settings",(function(){return Dl}));var M={};o.r(M),o.d(M,"metadata",(function(){return Jl})),o.d(M,"name",(function(){return Kl})),o.d(M,"settings",(function(){return Xl}));var V={};o.r(V),o.d(V,"metadata",(function(){return ri})),o.d(V,"name",(function(){return ai})),o.d(V,"settings",(function(){return ci}));var R={};o.r(R),o.d(R,"metadata",(function(){return mi})),o.d(R,"name",(function(){return di})),o.d(R,"settings",(function(){return bi}));var H={};o.r(H),o.d(H,"metadata",(function(){return Oi})),o.d(H,"name",(function(){return ji})),o.d(H,"settings",(function(){return fi}));var A={};o.r(A),o.d(A,"metadata",(function(){return wi})),o.d(A,"name",(function(){return ki})),o.d(A,"settings",(function(){return Ei}));var I={};o.r(I),o.d(I,"metadata",(function(){return Ki})),o.d(I,"name",(function(){return Xi})),o.d(I,"settings",(function(){return es}));var L={};o.r(L),o.d(L,"metadata",(function(){return rs})),o.d(L,"name",(function(){return as})),o.d(L,"settings",(function(){return cs}));var D={};o.r(D),o.d(D,"metadata",(function(){return us})),o.d(D,"name",(function(){return ms})),o.d(D,"settings",(function(){return ds}));var F={};o.r(F),o.d(F,"metadata",(function(){return Bs})),o.d(F,"name",(function(){return Ts})),o.d(F,"settings",(function(){return zs}));var G={};o.r(G),o.d(G,"metadata",(function(){return Ms})),o.d(G,"name",(function(){return Vs})),o.d(G,"settings",(function(){return Rs}));var U={};o.r(U),o.d(U,"metadata",(function(){return Ls})),o.d(U,"name",(function(){return Ds})),o.d(U,"settings",(function(){return Fs}));var q={};o.r(q),o.d(q,"metadata",(function(){return Zs})),o.d(q,"name",(function(){return Qs})),o.d(q,"settings",(function(){return Ys}));var W={};o.r(W),o.d(W,"metadata",(function(){return ou})),o.d(W,"name",(function(){return nu})),o.d(W,"settings",(function(){return ru}));var $={};o.r($),o.d($,"metadata",(function(){return iu})),o.d($,"name",(function(){return su})),o.d($,"settings",(function(){return uu}));var Z={};o.r(Z),o.d(Z,"metadata",(function(){return du})),o.d(Z,"name",(function(){return bu})),o.d(Z,"settings",(function(){return pu}));var Q={};o.r(Q),o.d(Q,"metadata",(function(){return Ou})),o.d(Q,"name",(function(){return ju})),o.d(Q,"settings",(function(){return fu}));var Y={};o.r(Y),o.d(Y,"metadata",(function(){return Iu})),o.d(Y,"name",(function(){return Lu})),o.d(Y,"settings",(function(){return Du}));var J={};o.r(J),o.d(J,"metadata",(function(){return Gu})),o.d(J,"name",(function(){return Uu})),o.d(J,"settings",(function(){return qu}));var K={};o.r(K),o.d(K,"metadata",(function(){return Yu})),o.d(K,"name",(function(){return Ju})),o.d(K,"settings",(function(){return Ku}));var X={};o.r(X),o.d(X,"metadata",(function(){return tm})),o.d(X,"name",(function(){return om})),o.d(X,"settings",(function(){return nm}));var ee={};o.r(ee),o.d(ee,"metadata",(function(){return am})),o.d(ee,"name",(function(){return cm})),o.d(ee,"settings",(function(){return lm}));var te={};o.r(te),o.d(te,"metadata",(function(){return um})),o.d(te,"name",(function(){return mm})),o.d(te,"settings",(function(){return dm}));var oe={};o.r(oe),o.d(oe,"metadata",(function(){return pm})),o.d(oe,"name",(function(){return gm})),o.d(oe,"settings",(function(){return hm}));var ne={};o.r(ne),o.d(ne,"metadata",(function(){return Om})),o.d(ne,"name",(function(){return jm})),o.d(ne,"settings",(function(){return fm}));var re={};o.r(re),o.d(re,"metadata",(function(){return Em})),o.d(re,"name",(function(){return Cm})),o.d(re,"settings",(function(){return xm}));var ae={};o.r(ae),o.d(ae,"metadata",(function(){return Tm})),o.d(ae,"name",(function(){return zm})),o.d(ae,"settings",(function(){return Pm}));var ce={};o.r(ce),o.d(ce,"metadata",(function(){return Mm})),o.d(ce,"name",(function(){return Vm})),o.d(ce,"settings",(function(){return Rm}));var le={};o.r(le),o.d(le,"metadata",(function(){return Am})),o.d(le,"name",(function(){return Im})),o.d(le,"settings",(function(){return Lm}));var ie={};o.r(ie),o.d(ie,"metadata",(function(){return qm})),o.d(ie,"name",(function(){return Wm})),o.d(ie,"settings",(function(){return $m}));var se={};o.r(se),o.d(se,"metadata",(function(){return Ym})),o.d(se,"name",(function(){return Jm})),o.d(se,"settings",(function(){return Km}));var ue=o(18),me=o(6),de=o(8),be=o(2),pe=o(1),ge=o(234),he=o(0),ve=o(9),Oe=o.n(ve);const je={className:!1},fe={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},ye=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};return(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize}),{...Object(be.omit)(e,["customTextColor","customBackgroundColor","customFontSize"]),style:t}};var _e=[{supports:je,attributes:{...Object(be.omit)(fe,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:ye,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l,fontSize:i,customFontSize:s,direction:u}=e,m=Object(me.getColorClassName)("color",a),d=Object(me.getColorClassName)("background-color",r),b=Object(me.getFontSizeClass)(i),p=Oe()({"has-text-color":a||l,"has-background":r||c,"has-drop-cap":n,["has-text-align-"+t]:t,[b]:b,[m]:m,[d]:d}),g={backgroundColor:d?void 0:c,color:m?void 0:l,fontSize:b?void 0:s};return Object(he.createElement)(me.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:o,dir:u})}},{supports:je,attributes:{...Object(be.omit)(fe,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:ye,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l,fontSize:i,customFontSize:s,direction:u}=e,m=Object(me.getColorClassName)("color",a),d=Object(me.getColorClassName)("background-color",r),b=Object(me.getFontSizeClass)(i),p=Oe()({"has-text-color":a||l,"has-background":r||c,"has-drop-cap":n,[b]:b,[m]:m,[d]:d}),g={backgroundColor:d?void 0:c,color:m?void 0:l,fontSize:b?void 0:s,textAlign:t};return Object(he.createElement)(me.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:o,dir:u})}},{supports:je,attributes:{...Object(be.omit)(fe,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:ye,save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:c,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:u}=e,m=Object(me.getColorClassName)("color",c),d=Object(me.getColorClassName)("background-color",a),b=s&&`is-${s}-text`,p=Oe()({["align"+t]:t,"has-background":a||l,"has-drop-cap":r,[b]:b,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:i,fontSize:b?void 0:u,textAlign:o};return Object(he.createElement)(me.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:n})}},{supports:je,attributes:Object(be.omit)({...fe,fontSize:{type:"number"}},["style"]),save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:c,fontSize:l}=e,i=Oe()({["align"+t]:t,"has-background":a,"has-drop-cap":r}),s={backgroundColor:a,color:c,fontSize:l,textAlign:o};return Object(he.createElement)("p",{style:s,className:i||void 0},n)},migrate:e=>ye(Object(be.omit)({...e,customFontSize:Object(be.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}))},{supports:je,attributes:{...fe,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>Object(he.createElement)(he.RawHTML,null,e.content),migrate:e=>e}],we=o(7),ke=o(4),Ee=o(235);function Ce({direction:e,setDirection:t}){return Object(pe.isRTL)()&&Object(he.createElement)(ke.DropdownMenu,{isToolbarButton:!0,controls:[{icon:Ee.a,title:Object(pe._x)("Left to right","editor button"),isActive:"ltr"===e,onClick(){t("ltr"===e?void 0:"ltr")}}]})}var xe=function({attributes:e,mergeBlocks:t,onReplace:o,onRemove:n,setAttributes:r,clientId:a}){const{align:c,content:l,direction:i,dropCap:s,placeholder:u}=e,m=Object(me.__experimentalUseEditorFeature)("typography.dropCap"),d=Object(me.useBlockProps)({className:Oe()({"has-drop-cap":s,["has-text-align-"+c]:c}),style:{direction:i}});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.AlignmentControl,{value:c,onChange:e=>r({align:e})}),Object(he.createElement)(Ce,{direction:i,setDirection:e=>r({direction:e})})),m&&Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Text settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:s?Object(pe.__)("Showing large initial letter."):Object(pe.__)("Toggle to show a large initial letter.")}))),Object(he.createElement)(me.RichText,Object(we.a)({identifier:"content",tagName:"p"},d,{value:l,onChange:e=>r({content:e}),onSplit:(t,o)=>{let n;(o||t)&&(n={...e,content:t});const r=Object(de.createBlock)("core/paragraph",n);return o&&(r.clientId=a),r},onMerge:t,onReplace:o,onRemove:n,"aria-label":l?Object(pe.__)("Paragraph block"):Object(pe.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!l,placeholder:u||Object(pe.__)("Type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};const{name:Se}={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var Be={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=Object(de.getBlockAttributes)(Se,e.outerHTML),{textAlign:o}=e.style||{};return"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),Object(de.createBlock)(Se,t)}}]};const Te={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:ze}=Te,Pe={icon:ge.a,example:{attributes:{content:Object(pe.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),style:{typography:{fontSize:28}},dropCap:!0}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t}=e;return Object(be.isEmpty)(t)?Object(pe.__)("Empty"):t}},transforms:Be,deprecated:_e,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:xe,save:function({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Oe()({"has-drop-cap":n,["has-text-align-"+t]:t});return Object(he.createElement)("p",me.useBlockProps.save({className:a,dir:r}),Object(he.createElement)(me.RichText.Content,{value:o}))}};var Ne=o(236);const Me={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}};var Ve=[{attributes:Me,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:c,height:l,id:i}=e,s=Oe()({["align"+r]:r,"is-resized":c||l}),u=Object(he.createElement)("img",{src:t,alt:o,className:i?"wp-image-"+i:null,width:c,height:l});return Object(he.createElement)("figure",{className:s},a?Object(he.createElement)("a",{href:a},u):u,!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:n}))}},{attributes:Me,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:c,height:l,id:i}=e,s=Object(he.createElement)("img",{src:t,alt:o,className:i?"wp-image-"+i:null,width:c,height:l});return Object(he.createElement)("figure",{className:r?"align"+r:null},a?Object(he.createElement)("a",{href:a},s):s,!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:n}))}},{attributes:Me,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:c,height:l}=e,i=c||l?{width:c,height:l}:{},s=Object(he.createElement)("img",Object(we.a)({src:t,alt:o},i));let u={};return c?u={width:c}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),Object(he.createElement)("figure",{className:r?"align"+r:null,style:u},a?Object(he.createElement)("a",{href:a},s):s,!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:n}))}}],Re=o(27),He=o(5),Ae=o(10),Ie=o(20),Le=o(237),De=o(142),Fe=o(238),Ge=o(36);const Ue=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}];var qe=o(110),We=o.n(qe),$e=o(42),Ze=o.n($e);const{name:Qe}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ye=e=>e&&e.includes('class="wp-embedded-content"'),Je=(e,t={})=>{var o;const{preview:n,attributes:{url:r,providerNameSlug:a,type:c}={}}=e;if(!r||!Object(de.getBlockType)(Qe))return;const l=(e=>{var t;return null===(t=Object(de.getBlockVariations)(Qe))||void 0===t?void 0:t.find(({patterns:t})=>((e,t=[])=>t.some(t=>e.match(t)))(e,t))})(r),i="wordpress"===a||"wp-embed"===c;if(!i&&l&&(l.attributes.providerNameSlug!==a||!a))return Object(de.createBlock)(Qe,{url:r,...l.attributes});const s=null===(o=Object(de.getBlockVariations)(Qe))||void 0===o?void 0:o.find(({name:e})=>"wordpress"===e);return s&&n&&Ye(n.html)&&!i?Object(de.createBlock)(Qe,{url:r,...s.attributes,...t}):void 0},Ke=e=>{if(!e)return e;const t=Ue.reduce((e,{className:t})=>(e[t]=!1,e),{"wp-has-aspect-ratio":!1});return We()(e,t)};function Xe(e,t,o=!0){if(!o)return Ke(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let o=0;o<Ue.length;o++){const n=Ue[o];if(e>=n.ratio){return e-n.ratio>.1?Ke(t):We()(Ke(t),n.className,"wp-has-aspect-ratio")}}}return t}const et=Ze()((e,t,o,n,r=!0)=>{if(!e)return{};const a={};let{type:c="rich"}=e;const{html:l,provider_name:i}=e,s=Object(be.kebabCase)((i||t).toLowerCase());return Ye(l)&&(c="wp-embed"),(l||"photo"===c)&&(a.type=c,a.providerNameSlug=s),a.className=Xe(l,o,n&&r),a});function tt(e,t){const[o,n]=Object(he.useState)();function r(){n(e.current.clientWidth)}return Object(he.useEffect)(r,t),Object(he.useEffect)(()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",r),()=>{t.removeEventListener("resize",r)}},[]),o}
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var ot=function(e,t){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};var nt=function(){return(nt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var rt=o(11),at=o.n(rt),ct=o(398),lt=o.n(ct);function it(e,t,o,n,r,a){void 0===a&&(a=0);var c=jt(e,t,a),l=c.width,i=c.height,s=Math.min(l,o),u=Math.min(i,n);return s>u*r?{width:u*r,height:u}:{width:s,height:s/r}}function st(e,t,o,n,r){void 0===r&&(r=0);var a=jt(t.width,t.height,r),c=a.width,l=a.height;return{x:ut(e.x,c,o.width,n),y:ut(e.y,l,o.height,n)}}function ut(e,t,o,n){var r=t*n/2-o/2;return Math.min(r,Math.max(e,-r))}function mt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function dt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function bt(e,t,o,n,r,a,c){void 0===a&&(a=0),void 0===c&&(c=!0);var l=c&&0===a?pt:gt,i={x:l(100,((t.width-o.width/r)/2-e.x/r)/t.width*100),y:l(100,((t.height-o.height/r)/2-e.y/r)/t.height*100),width:l(100,o.width/t.width*100/r),height:l(100,o.height/t.height*100/r)},s=Math.round(l(t.naturalWidth,i.width*t.naturalWidth/100)),u=Math.round(l(t.naturalHeight,i.height*t.naturalHeight/100)),m=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:i,croppedAreaPixels:nt(nt({},m),{x:Math.round(l(t.naturalWidth-m.width,i.x*t.naturalWidth/100)),y:Math.round(l(t.naturalHeight-m.height,i.y*t.naturalHeight/100))})}}function pt(e,t){return Math.min(e,Math.max(0,t))}function gt(e,t){return t}function ht(e,t,o){var n=t.width/t.naturalWidth,r=function(e,t,o){var n=t.width/t.naturalWidth;if(o)return o.height>o.width?o.height/n/e.height:o.width/n/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,o),a=n*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*a,y:((t.naturalHeight-e.height)/2-e.y)*a},zoom:r}}function vt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Ot(e,t,o,n,r){var a=Math.cos,c=Math.sin,l=r*Math.PI/180;return[(e-o)*a(l)-(t-n)*c(l)+o,(e-o)*c(l)+(t-n)*a(l)+n]}function jt(e,t,o){var n=e/2,r=t/2,a=[Ot(0,0,n,r,o),Ot(e,0,n,r,o),Ot(e,t,n,r,o),Ot(0,t,n,r,o)],c=Math.min.apply(Math,a.map((function(e){return e[0]}))),l=Math.max.apply(Math,a.map((function(e){return e[0]}))),i=Math.min.apply(Math,a.map((function(e){return e[1]})));return{width:l-c,height:Math.max.apply(Math,a.map((function(e){return e[1]})))-i}}function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var yt=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.imageRef=null,o.videoRef=null,o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.state={cropSize:null,hasWheelJustStarted:!1},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){document.removeEventListener("mousemove",o.onMouseMove),document.removeEventListener("mouseup",o.onDragStopped),document.removeEventListener("touchmove",o.onTouchMove),document.removeEventListener("touchend",o.onDragStopped)},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){o.computeSizes(),o.emitCropData(),o.setInitialCrop(),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(){var e=o.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var r=ht(t,o.mediaSize,n),a=r.crop,c=r.zoom;o.props.onCropChange(a),o.props.onZoomChange&&o.props.onZoomChange(c)}},o.computeSizes=function(){var e,t,n,r,a,c,l=o.imageRef||o.videoRef;if(l&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.mediaSize={width:l.offsetWidth,height:l.offsetHeight,naturalWidth:(null===(e=o.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=o.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(r=o.videoRef)||void 0===r?void 0:r.videoHeight)||0};var i=o.props.cropSize?o.props.cropSize:it(l.offsetWidth,l.offsetHeight,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);(null===(a=o.state.cropSize)||void 0===a?void 0:a.height)===i.height&&(null===(c=o.state.cropSize)||void 0===c?void 0:c.width)===i.width||o.props.onCropSizeChange&&o.props.onCropSizeChange(i),o.setState({cropSize:i},o.recomputeCropPosition)}},o.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",o.onMouseMove),document.addEventListener("mouseup",o.onDragStopped),o.onDragStart(t.getMousePoint(e))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",o.onTouchMove,{passive:!1}),document.addEventListener("touchend",o.onDragStopped),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onDragStart=function(e){var t,n,r=e.x,a=e.y;o.dragStartPosition={x:r,y:a},o.dragStartCrop=nt({},o.props.crop),null===(n=(t=o.props).onInteractionStart)||void 0===n||n.call(t)},o.onDrag=function(e){var t=e.x,n=e.y;o.rafDragTimeout&&window.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=window.requestAnimationFrame((function(){if(o.state.cropSize&&void 0!==t&&void 0!==n){var e=t-o.dragStartPosition.x,r=n-o.dragStartPosition.y,a={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+r},c=o.props.restrictPosition?st(a,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):a;o.props.onCropChange(c)}}))},o.onDragStopped=function(){var e,t;o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),r=lt()(e).pixelY,a=o.props.zoom-r*o.props.zoomSpeed/200;o.setNewZoom(a,n),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=window.setTimeout((function(){return o.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},o.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(t-o.containerRect.left),y:o.containerRect.height/2-(n-o.containerRect.top)}},o.getPointOnMedia=function(e){var t=e.x,n=e.y,r=o.props,a=r.crop,c=r.zoom;return{x:(t+a.x)/c,y:(n+a.y)/c}},o.setNewZoom=function(e,t){if(o.state.cropSize&&o.props.onZoomChange){var n=o.getPointOnContainer(t),r=o.getPointOnMedia(n),a=Math.min(o.props.maxZoom,Math.max(e,o.props.minZoom)),c={x:r.x*a-n.x,y:r.y*a-n.y},l=o.props.restrictPosition?st(c,o.mediaSize,o.state.cropSize,a,o.props.rotation):c;o.props.onCropChange(l),o.props.onZoomChange(a)}},o.getCropData=function(){return o.state.cropSize?bt(o.props.restrictPosition?st(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,n),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,n)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,n)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var e=o.props.restrictPosition?st(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;o.props.onCropChange(e),o.emitCropData()}},o}return function(e,t){function o(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,o,n,r,a,c,l,i;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(a=e.crop)||void 0===a?void 0:a.x)===(null===(c=this.props.crop)||void 0===c?void 0:c.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(i=this.props.crop)||void 0===i?void 0:i.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=mt(o,n),this.lastPinchRotation=dt(o,n),this.onDragStart(vt(o,n))},t.prototype.onPinchMove=function(e){var o=this,n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),a=vt(n,r);this.onDrag(a),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=mt(n,r),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,a),o.lastPinchDistance=e;var c=dt(n,r),l=o.props.rotation+(c-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(l),o.lastPinchRotation=c}))},t.prototype.render=function(){var e=this,t=this.props,o=t.image,n=t.video,r=t.mediaProps,a=t.transform,c=t.crop,l=c.x,i=c.y,s=t.rotation,u=t.zoom,m=t.cropShape,d=t.showGrid,b=t.style,p=b.containerStyle,g=b.cropAreaStyle,h=b.mediaStyle,v=t.classes,O=v.containerClassName,j=v.cropAreaClassName,f=v.mediaClassName;return at.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:ft("reactEasyCrop_Container",O)},o?at.a.createElement("img",nt({alt:"",className:ft("reactEasyCrop_Image",f)},r,{src:o,ref:function(t){return e.imageRef=t},style:nt(nt({},h),{transform:a||"translate("+l+"px, "+i+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&at.a.createElement("video",nt({autoPlay:!0,loop:!0,muted:!0,className:ft("reactEasyCrop_Video",f)},r,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:nt(nt({},h),{transform:a||"translate("+l+"px, "+i+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&at.a.createElement("div",{style:nt(nt({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:ft("reactEasyCrop_CropArea","round"===m&&"reactEasyCrop_CropAreaRound",d&&"reactEasyCrop_CropAreaGrid",j)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(at.a.Component);const _t={position:"bottom right",isAlternate:!0};var wt=o(33),kt=o.n(wt);var Et=o(21);function Ct(e,t){const o=function({url:e,naturalWidth:t,naturalHeight:o}){const[n,r]=Object(he.useState)(),[a,c]=Object(he.useState)(),[l,i]=Object(he.useState)({x:0,y:0}),[s,u]=Object(he.useState)(),[m,d]=Object(he.useState)(),[b,p]=Object(he.useState)(),[g,h]=Object(he.useState)(),v=Object(he.useCallback)(()=>{i({x:0,y:0}),u(100),d(0),p(t/o),h(t/o)},[t,o,i,u,d,p,h]),O=Object(he.useCallback)(()=>{const n=(m+90)%360;let a=t/o;if(m%180==90&&(a=o/t),0===n)return r(),d(n),p(1/b),void i({x:-l.y*a,y:l.x*a});const c=new window.Image;c.src=e,c.onload=function(e){const t=document.createElement("canvas");let o=0,c=0;n%180?(t.width=e.target.height,t.height=e.target.width):(t.width=e.target.width,t.height=e.target.height),90!==n&&180!==n||(o=t.width),270!==n&&180!==n||(c=t.height);const s=t.getContext("2d");s.translate(o,c),s.rotate(n*Math.PI/180),s.drawImage(e.target,0,0),t.toBlob(e=>{r(URL.createObjectURL(e)),d(n),p(1/b),i({x:-l.y*a,y:l.x*a})})};const s=Object(Et.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof s&&(c.crossOrigin=s)},[m,t,o,r,d,p,i]);return Object(he.useMemo)(()=>({editedUrl:n,setEditedUrl:r,crop:a,setCrop:c,position:l,setPosition:i,zoom:s,setZoom:u,rotation:m,setRotation:d,rotateClockwise:O,aspect:b,setAspect:p,defaultAspect:g,initializeTransformValues:v}),[n,r,a,c,l,i,s,u,m,d,O,b,p,g,v])}(e),{initializeTransformValues:n}=o;return Object(he.useEffect)(()=>{t&&n()},[t,n]),o}const xt=Object(he.createContext)({}),St=()=>Object(he.useContext)(xt);function Bt({id:e,url:t,naturalWidth:o,naturalHeight:n,isEditing:r,onFinishEditing:a,onSaveImage:c,children:l}){const i=Ct({url:t,naturalWidth:o,naturalHeight:n},r),s=function({crop:e,rotation:t,height:o,width:n,aspect:r,url:a,id:c,onSaveImage:l,onFinishEditing:i}){const{createErrorNotice:s}=Object(He.useDispatch)(Ge.store),[u,m]=Object(he.useState)(!1),d=Object(he.useCallback)(()=>{m(!1),i()},[m,i]),b=Object(he.useCallback)(()=>{m(!0);let u={};(e.width<99.9||e.height<99.9)&&(u=e),t>0&&(u.rotation=t),u.src=a,kt()({path:`/wp/v2/media/${c}/edit`,method:"POST",data:u}).then(e=>{l({id:e.id,url:e.source_url,height:o&&n?n/r:void 0})}).catch(e=>{s(Object(pe.sprintf)(Object(pe.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{m(!1),i()})},[m,e,t,o,n,r,a,l,s,m,i]);return Object(he.useMemo)(()=>({isInProgress:u,apply:b,cancel:d}),[u,b,d])}({id:e,url:t,onSaveImage:c,onFinishEditing:a,...i}),u=Object(he.useMemo)(()=>({...i,...s}),[i,s]);return Object(he.createElement)(xt.Provider,{value:u},l)}function Tt({url:e,width:t,height:o,clientWidth:n,naturalHeight:r,naturalWidth:a}){const{isInProgress:c,editedUrl:l,position:i,zoom:s,aspect:u,setPosition:m,setCrop:d,setZoom:b,rotation:p}=St();let g=o||n*r/a;return p%180==90&&(g=n*a/r),Object(he.createElement)("div",{className:Oe()("wp-block-image__crop-area",{"is-applying":c}),style:{width:t||n,height:g}},Object(he.createElement)(yt,{image:l||e,disabled:c,minZoom:1,maxZoom:3,crop:i,zoom:s/100,aspect:u,onCropChange:m,onCropComplete:e=>{d(e)},onZoomChange:e=>{b(100*e)}}),c&&Object(he.createElement)(ke.Spinner,null))}var zt=o(140);function Pt(){const{isInProgress:e,zoom:t,setZoom:o}=St();return Object(he.createElement)(ke.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:_t,renderToggle:({isOpen:t,onToggle:o})=>Object(he.createElement)(ke.ToolbarButton,{icon:zt.a,label:Object(pe.__)("Zoom"),onClick:o,"aria-expanded":t,disabled:e}),renderContent:()=>Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:o})})}var Nt=o(125),Mt=o(239);function Vt({aspectRatios:e,isDisabled:t,label:o,onClick:n,value:r}){return Object(he.createElement)(ke.MenuGroup,{label:o},e.map(({title:e,aspect:o})=>Object(he.createElement)(ke.MenuItem,{key:o,disabled:t,onClick:()=>{n(o)},role:"menuitemradio",isSelected:o===r,icon:o===r?Nt.a:void 0},e)))}function Rt({toggleProps:e}){const{isInProgress:t,aspect:o,setAspect:n,defaultAspect:r}=St();return Object(he.createElement)(ke.DropdownMenu,{icon:Mt.a,label:Object(pe.__)("Aspect Ratio"),popoverProps:_t,toggleProps:e,className:"wp-block-image__aspect-ratio"},({onClose:e})=>Object(he.createElement)(he.Fragment,null,Object(he.createElement)(Vt,{isDisabled:t,onClick:t=>{n(t),e()},value:o,aspectRatios:[{title:Object(pe.__)("Original"),aspect:r},{title:Object(pe.__)("Square"),aspect:1}]}),Object(he.createElement)(Vt,{label:Object(pe.__)("Landscape"),isDisabled:t,onClick:t=>{n(t),e()},value:o,aspectRatios:[{title:Object(pe.__)("16:10"),aspect:1.6},{title:Object(pe.__)("16:9"),aspect:16/9},{title:Object(pe.__)("4:3"),aspect:4/3},{title:Object(pe.__)("3:2"),aspect:1.5}]}),Object(he.createElement)(Vt,{label:Object(pe.__)("Portrait"),isDisabled:t,onClick:t=>{n(t),e()},value:o,aspectRatios:[{title:Object(pe.__)("10:16"),aspect:.625},{title:Object(pe.__)("9:16"),aspect:9/16},{title:Object(pe.__)("3:4"),aspect:3/4},{title:Object(pe.__)("2:3"),aspect:2/3}]})))}var Ht=o(240);function At(){const{isInProgress:e,rotateClockwise:t}=St();return Object(he.createElement)(ke.ToolbarButton,{icon:Ht.a,label:Object(pe.__)("Rotate"),onClick:t,disabled:e})}function It(){const{isInProgress:e,apply:t,cancel:o}=St();return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.ToolbarButton,{onClick:t,disabled:e},Object(pe.__)("Apply")),Object(he.createElement)(ke.ToolbarButton,{onClick:o},Object(pe.__)("Cancel")))}function Lt({url:e,width:t,height:o,clientWidth:n,naturalHeight:r,naturalWidth:a}){return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(Tt,{url:e,width:t,height:o,clientWidth:n,naturalHeight:r,naturalWidth:a}),Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(Pt,null),Object(he.createElement)(ke.ToolbarItem,null,e=>Object(he.createElement)(Rt,{toggleProps:e})),Object(he.createElement)(At,null)),Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(It,null))))}const Dt=["image"];function Ft({temporaryURL:e,attributes:{url:t="",alt:o,caption:n,align:r,id:a,href:c,rel:l,linkClass:i,linkDestination:s,title:u,width:m,height:d,linkTarget:b,sizeSlug:p},setAttributes:g,isSelected:h,insertBlocksAfter:v,onReplace:O,onSelectImage:j,onSelectURL:f,onUploadError:y,containerRef:_}){const w=Object(he.useRef)(),k=Object(Ae.usePrevious)(t),{block:E,currentId:C,image:x,multiImageSelection:S}=Object(He.useSelect)(e=>{const{getMedia:t}=e(ue.store),{getMultiSelectedBlockClientIds:o,getBlockName:n,getSelectedBlock:r,getSelectedBlockClientId:c}=e(me.store),l=o();return{block:r(),currentId:c(),image:a&&h?t(a):null,multiImageSelection:l.length&&l.every(e=>"core/image"===n(e))}},[a,h]),{imageEditing:B,imageSizes:T,maxWidth:z,mediaUpload:P}=Object(He.useSelect)(e=>{const{getSettings:t}=e(me.store);return Object(be.pick)(t(),["imageEditing","imageSizes","maxWidth","mediaUpload"])}),{replaceBlocks:N,toggleSelection:M}=Object(He.useDispatch)(me.store),{createErrorNotice:V,createSuccessNotice:R}=Object(He.useDispatch)(Ge.store),H=Object(Ae.useViewportMatch)("medium"),[A,I]=Object(he.useState)(!1),L=Object(be.includes)(["wide","full"],r),[{naturalWidth:D,naturalHeight:F},G]=Object(he.useState)({}),[U,q]=Object(he.useState)(!1),[W,$]=Object(he.useState)(),Z=tt(_,[r]),Q=!L&&H,Y=Object(be.map)(Object(be.filter)(T,({slug:e})=>Object(be.get)(x,["media_details","sizes",e,"source_url"])),({name:e,slug:t})=>({value:t,label:e})),J=!!Object(de.getBlockType)("core/cover");Object(he.useEffect)(()=>{h||I(!1)},[h]),Object(he.useEffect)(()=>{Gt(a,t)&&h&&!W&&window.fetch(t).then(e=>e.blob()).then(e=>$(e))},[a,t,h,W]),Object(he.useEffect)(()=>{t&&!k&&h&&w.current.focus()},[t,k]),Object(he.useEffect)(()=>{h||q(!1)},[h]);const K=a&&D&&F&&B,X=!S&&K&&!U,ee=Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.BlockAlignmentControl,{value:r,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};g({...t,align:e})}}),!S&&!U&&Object(he.createElement)(me.__experimentalImageURLInputUI,{url:c||"",onChangeUrl:function(e){g(e)},linkDestination:s,mediaUrl:x&&x.source_url||t,mediaLink:x&&x.link,linkTarget:b,linkClass:i,rel:l}),X&&Object(he.createElement)(ke.ToolbarButton,{onClick:()=>q(!0),icon:Le.a,label:Object(pe.__)("Crop")}),W&&Object(he.createElement)(ke.ToolbarButton,{onClick:function(){P({filesList:[W],onFileChange([e]){j(e),Object(Re.isBlobURL)(e.url)||($(),R(Object(pe.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Dt,onError(e){V(e,{type:"snackbar"})}})},icon:De.a,label:Object(pe.__)("Upload external image")}),!S&&J&&Object(he.createElement)(ke.ToolbarButton,{icon:Fe.a,label:Object(pe.__)("Add text over image"),onClick:()=>N(C,Object(de.switchToBlockType)(E,"core/cover"))})),!S&&!U&&Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaId:a,mediaURL:t,allowedTypes:Dt,accept:"image/*",onSelect:j,onSelectURL:f,onError:y})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Image settings")},!S&&Object(he.createElement)(ke.TextareaControl,{label:Object(pe.__)("Alt text (alternative text)"),value:o,onChange:function(e){g({alt:e})},help:Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(pe.__)("Describe the purpose of the image")),Object(pe.__)("Leave empty if the image is purely decorative."))}),Object(he.createElement)(me.__experimentalImageSizeControl,{onChangeImage:function(e){const t=Object(be.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;g({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>g(e),slug:p,width:m,height:d,imageSizeOptions:Y,isResizable:Q,imageWidth:D,imageHeight:F}))),Object(he.createElement)(me.InspectorAdvancedControls,null,Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Title attribute"),value:u||"",onChange:function(e){g({title:e})},help:Object(he.createElement)(he.Fragment,null,Object(pe.__)("Describe the role of this image on the page."),Object(he.createElement)(ke.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(pe.__)("(Note: many devices and browsers do not display this text.)")))}))),te=function(e){const t=Object(Ie.getPath)(e);if(t)return Object(be.last)(t.split("/"))}(t);let oe;oe=o||(te?Object(pe.sprintf)(Object(pe.__)("This image has an empty alt attribute; its file name is %s"),te):Object(pe.__)("This image has an empty alt attribute"));let ne,re,ae=Object(he.createElement)(he.Fragment,null,Object(he.createElement)("img",{src:e||t,alt:oe,onClick:function(){A&&I(!1)},onError:()=>function(){const e=Je({attributes:{url:t}});void 0!==e&&O(e)}(),onLoad:e=>{G(Object(be.pick)(e.target,["naturalWidth","naturalHeight"]))}}),e&&Object(he.createElement)(ke.Spinner,null));if(Z&&D&&F){const e=D>Z,t=F/D;ne=e?Z:D,re=e?Z*t:F}if(K&&U)ae=Object(he.createElement)(Lt,{url:t,width:m,height:d,clientWidth:Z,naturalHeight:F,naturalWidth:D});else if(Q&&ne){const e=m||ne,t=d||re,o=D/F,n=D<F?20:20*o,a=F<D?20:20/o,c=2.5*z;let l=!1,i=!1;"center"===r?(l=!0,i=!0):Object(pe.isRTL)()?"left"===r?l=!0:i=!0:"right"===r?i=!0:l=!0,ae=Object(he.createElement)(ke.ResizableBox,{size:{width:null!=m?m:"auto",height:null!=d?d:"auto"},showHandle:h,minWidth:n,maxWidth:c,minHeight:a,maxHeight:c/o,lockAspectRatio:!0,enable:{top:!1,right:l,bottom:!0,left:i},onResizeStart:function(){M(!1)},onResizeStop:(o,n,r,a)=>{M(!0),g({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},ae)}else ae=Object(he.createElement)("div",{style:{width:m,height:d}},ae);return Object(he.createElement)(Bt,{id:a,url:t,naturalWidth:D,naturalHeight:F,clientWidth:Z,onSaveImage:e=>g(e),isEditing:U,onFinishEditing:()=>q(!1)},!e&&ee,ae,(!me.RichText.isEmpty(n)||h)&&Object(he.createElement)(me.RichText,{ref:w,tagName:"figcaption","aria-label":Object(pe.__)("Image caption text"),placeholder:Object(pe.__)("Add caption"),value:n,unstableOnFocus:function(){A||I(!0)},onChange:e=>g({caption:e}),isSelected:A,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>v(Object(de.createBlock)("core/paragraph"))}))}const Gt=(e,t)=>t&&!e&&!Object(Re.isBlobURL)(t);var Ut=Object(ke.withNotices)((function({attributes:e,setAttributes:t,isSelected:o,className:n,noticeUI:r,insertBlocksAfter:a,noticeOperations:c,onReplace:l}){const{url:i="",alt:s,caption:u,align:m,id:d,width:b,height:p,sizeSlug:g}=e,[h,v]=Object(he.useState)(),O=Object(he.useRef)();Object(he.useEffect)(()=>{O.current=s},[s]);const j=Object(he.useRef)();Object(he.useEffect)(()=>{j.current=u},[u]);const f=Object(he.useRef)(),{imageDefaultSize:y,mediaUpload:_}=Object(He.useSelect)(e=>{const{getSettings:t}=e(me.store);return Object(be.pick)(t(),["imageDefaultSize","mediaUpload"])},[]);function w(e){c.removeAllNotices(),c.createErrorNotice(e)}function k(o){var n,r,a,c,l;if(!o||!o.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(Re.isBlobURL)(o.url))return void v(o.url);v();let s,u=((e,t)=>{const o=Object(be.pick)(e,["alt","id","link","caption"]);return o.url=Object(be.get)(e,["sizes",t,"url"])||Object(be.get)(e,["media_details","sizes",t,"source_url"])||e.url,o})(o,y);j.current&&!Object(be.get)(u,["caption"])&&(u=Object(be.omit)(u,["caption"])),s=o.id&&o.id===d?{url:i}:{width:void 0,height:void 0,sizeSlug:y};let m,b=e.linkDestination;if(!b)switch((null===(n=wp)||void 0===n||null===(r=n.media)||void 0===r||null===(a=r.view)||void 0===a||null===(c=a.settings)||void 0===c||null===(l=c.defaultProps)||void 0===l?void 0:l.link)||"none"){case"file":case"media":b="media";break;case"post":case"attachment":b="attachment";break;case"custom":b="custom";break;case"none":b="none"}switch(b){case"media":m=o.url;break;case"attachment":m=o.link}u.href=m,t({...u,...s,linkDestination:b})}function E(e){e!==i&&t({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:y})}const C=((e,t)=>!e&&Object(Re.isBlobURL)(t))(d,i);Object(he.useEffect)(()=>{if(!C)return;const e=Object(Re.getBlobByURL)(i);e&&_({filesList:[e],onFileChange:([e])=>{k(e)},allowedTypes:Dt,onError:e=>{c.createErrorNotice(e),t({src:void 0,id:void 0,url:void 0})}})},[]),Object(he.useEffect)(()=>{if(h)return()=>{Object(Re.revokeBlobURL)(h)}},[h]);const x=Gt(d,i)?i:void 0,S=!!i&&Object(he.createElement)("img",{alt:Object(pe.__)("Edit image"),title:Object(pe.__)("Edit image"),className:"edit-image-preview",src:i}),B=Oe()(n,{"is-transient":h,"is-resized":!!b||!!p,["size-"+g]:g}),T=Object(me.useBlockProps)({ref:f,className:B});return Object(he.createElement)("figure",T,(h||i)&&Object(he.createElement)(Ft,{temporaryURL:h,attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:a,onReplace:l,onSelectImage:k,onSelectURL:E,onUploadError:w,containerRef:f}),!i&&Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.BlockAlignmentControl,{value:m,onChange:function(e){const o=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...o,align:e})}})),Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:Ne.a}),onSelect:k,onSelectURL:E,notices:r,onError:w,accept:"image/*",allowedTypes:Dt,value:{id:d,src:x},mediaPreview:S,disableMediaButtons:h||i}))}));function qt(e,t){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;const{firstElementChild:n}=o;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}const Wt={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};var $t={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...Wt,a:{attributes:["href","rel","target"],children:Wt},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,r=o?o[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),c=a?Number(a[1]):void 0,l=e.querySelector("a"),i=l&&l.href?"custom":void 0,s=l&&l.href?l.href:void 0,u=l&&l.rel?l.rel:void 0,m=l&&l.className?l.className:void 0,d=Object(de.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:c,linkDestination:i,href:s,rel:u,linkClass:m,anchor:n});return Object(de.createBlock)("core/image",d)}},{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("image/"),transform(e){const t=e[0];return Object(de.createBlock)("core/image",{url:Object(Re.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let n=o.querySelector("img");for(;n&&n.parentNode&&n.parentNode!==o;)n=n.parentNode;return n&&n.parentNode.removeChild(n),o.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>qt(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>qt(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>qt(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};const Zt={apiVersion:2,name:"core/image",title:"Image",category:"media",description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Qt}=Zt,Yt={icon:Ne.a,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(pe.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":Object(pe.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:$t,edit:Ut,save:function({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:c,linkClass:l,width:i,height:s,id:u,linkTarget:m,sizeSlug:d,title:b}=e,p=Object(be.isEmpty)(c)?void 0:c,g=Oe()({["align"+r]:r,["size-"+d]:d,"is-resized":i||s}),h=Object(he.createElement)("img",{src:t,alt:o,className:u?"wp-image-"+u:null,width:i,height:s,title:b}),v=Object(he.createElement)(he.Fragment,null,a?Object(he.createElement)("a",{className:l,href:a,target:m,rel:p},h):h,!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:n}));return"left"===r||"right"===r||"center"===r?Object(he.createElement)("div",me.useBlockProps.save(),Object(he.createElement)("figure",{className:g},v)):Object(he.createElement)("figure",me.useBlockProps.save({className:g}),v)},deprecated:Ve};var Jt=o(241);const Kt={className:!1,anchor:!0},Xt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},eo=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...Object(be.omit)(e,["customTextColor"]),style:t}},to=["left","right","center"],oo=e=>{const{align:t,...o}=e;return to.includes(t)?{...o,textAlign:t}:e};var no=[{supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:Xt,isEligible:({align:e})=>to.includes(e),migrate:oo,save({attributes:e}){const{align:t,content:o,level:n}=e,r="h"+n,a=Oe()({["has-text-align-"+t]:t});return Object(he.createElement)(r,me.useBlockProps.save({className:a}),Object(he.createElement)(me.RichText.Content,{value:o}))}},{supports:Kt,attributes:{...Xt,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>eo(oo(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,c="h"+r,l=Object(me.getColorClassName)("color",a),i=Oe()({[l]:l,"has-text-color":a||n,["has-text-align-"+t]:t});return Object(he.createElement)(me.RichText.Content,{className:i||void 0,tagName:c,style:{color:l?void 0:n},value:o})}},{attributes:{...Xt,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>eo(oo(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,c="h"+r,l=Object(me.getColorClassName)("color",a),i=Oe()({[l]:l,["has-text-align-"+t]:t});return Object(he.createElement)(me.RichText.Content,{className:i||void 0,tagName:c,style:{color:l?void 0:n},value:o})},supports:Kt},{supports:Kt,attributes:{...Xt,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>eo(oo(e)),save({attributes:e}){const{align:t,level:o,content:n,textColor:r,customTextColor:a}=e,c="h"+o,l=Object(me.getColorClassName)("color",r),i=Oe()({[l]:l});return Object(he.createElement)(me.RichText.Content,{className:i||void 0,tagName:c,style:{textAlign:t,color:l?void 0:a},value:n})}}],ro=o(12);function ao({level:e,isPressed:t=!1}){const o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(e)?Object(he.createElement)(ke.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},Object(he.createElement)(ke.Path,{d:o[e]})):null}const co=[1,2,3,4,5,6],lo={className:"block-library-heading-level-dropdown",isAlternate:!0};function io({selectedLevel:e,onChange:t}){return Object(he.createElement)(ke.Dropdown,{popoverProps:lo,renderToggle:({onToggle:t,isOpen:o})=>Object(he.createElement)(ke.ToolbarButton,{"aria-expanded":o,"aria-haspopup":"true",icon:Object(he.createElement)(ao,{level:e}),label:Object(pe.__)("Change heading level"),onClick:t,onKeyDown:e=>{o||e.keyCode!==ro.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0}),renderContent:()=>Object(he.createElement)(ke.Toolbar,{className:"block-library-heading-level-toolbar",label:Object(pe.__)("Change heading level")},Object(he.createElement)(ke.ToolbarGroup,{isCollapsed:!1,controls:co.map(o=>{const n=o===e;return{icon:Object(he.createElement)(ao,{level:o,isPressed:n}),title:Object(pe.sprintf)(Object(pe.__)("Heading %d"),o),isActive:n,onClick(){t(o)}}})}))})}var so=function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,mergedStyle:r,clientId:a}){const{textAlign:c,content:l,level:i,placeholder:s}=e,u="h"+i,m=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+c]:c}),style:r});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(io,{selectedLevel:i,onChange:e=>t({level:e})}),Object(he.createElement)(me.AlignmentControl,{value:c,onChange:e=>{t({textAlign:e})}})),Object(he.createElement)(me.RichText,Object(we.a)({identifier:"content",tagName:u,value:l,onChange:e=>t({content:e}),onMerge:o,onSplit:(t,o)=>{let n;return n=o||t?Object(de.createBlock)("core/heading",{...e,content:t}):Object(de.createBlock)("core/paragraph"),o&&(n.clientId=a),n},onReplace:n,onRemove:()=>n([]),"aria-label":Object(pe.__)("Heading text"),placeholder:s||Object(pe.__)("Heading"),textAlign:c},m)))};const{name:uo}={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var mo={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(de.createBlock)(uo,{content:e,anchor:t}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=Object(de.getBlockAttributes)(uo,e.outerHTML),{textAlign:o}=e.style||{};var n;return t.level=(n=e.nodeName,Number(n.substr(1))),"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),Object(de.createBlock)(uo,t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>Object(de.createBlock)(uo,{level:e,content:t})})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>Object(de.createBlock)(uo,{level:e,content:t})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(de.createBlock)("core/paragraph",{content:e,anchor:t}))}]};const bo={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:po}=bo,go={icon:Jt.a,example:{attributes:{content:Object(pe.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t,level:o}=e;return Object(be.isEmpty)(t)?Object(pe.sprintf)(Object(pe.__)("Level %s. Empty."),o):Object(pe.sprintf)(Object(pe.__)("Level %1$s. %2$s"),o,t)}},transforms:mo,deprecated:no,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:so,save:function({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Oe()({["has-text-align-"+t]:t});return Object(he.createElement)(r,me.useBlockProps.save({className:a}),Object(he.createElement)(me.RichText.Content,{value:o}))}};var ho=o(252);const vo={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}};var Oo=[{attributes:vo,save({attributes:e}){const{align:t,value:o,citation:n}=e;return Object(he.createElement)("blockquote",{style:{textAlign:t||null}},Object(he.createElement)(me.RichText.Content,{multiline:!0,value:o}),!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:n}))}},{attributes:{...vo,style:{type:"number",default:1}},migrate:e=>2===e.style?{...Object(be.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return Object(he.createElement)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null}},Object(he.createElement)(me.RichText.Content,{multiline:!0,value:o}),!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:n}))}},{attributes:{...vo,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return Object(he.createElement)("blockquote",{className:"blocks-quote-style-"+r,style:{textAlign:t||null}},Object(he.createElement)(me.RichText.Content,{multiline:!0,value:o}),!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"footer",value:n}))}}];const jo="web"===he.Platform.OS;var fo=o(14);var yo={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/quote",{value:Object(fo.toHTMLString)({value:Object(fo.join)(e.map(({content:e})=>Object(fo.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(de.createBlock)("core/quote",{value:`<p>${e}</p>`,anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:o})=>Object(de.createBlock)("core/quote",{value:e,citation:t,anchor:o})},{type:"prefix",prefix:">",transform:e=>Object(de.createBlock)("core/quote",{value:`<p>${e}</p>`})},{type:"raw",isMatch:e=>{const t=(()=>{let e=!1;return t=>"P"===t.nodeName||(e||"CITE"!==t.nodeName?void 0:(e=!0,!0))})();return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(t)},schema:({phrasingContentSchema:e})=>({blockquote:{children:{p:{children:e},cite:{children:e}}}})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&"<p></p>"!==e&&o.push(...Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(de.createBlock)("core/paragraph",{content:Object(fo.toHTMLString)({value:e})}))),t&&"<p></p>"!==t&&o.push(Object(de.createBlock)("core/paragraph",{content:t})),0===o.length?Object(de.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...o})=>{if("<p></p>"===e)return Object(de.createBlock)("core/heading",{content:t});const n=Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(de.createBlock)("core/heading",{content:Object(fo.toHTMLString)({value:n[0]})});if(!t&&1===n.length)return r;const a=n.slice(1);return[r,Object(de.createBlock)("core/quote",{...o,citation:t,value:Object(fo.toHTMLString)({value:a.length?Object(fo.join)(n.slice(1),"\u2028"):Object(fo.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:o})=>Object(de.createBlock)("core/pullquote",{value:e,citation:t,anchor:o})}]};const _o={apiVersion:2,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"large",label:"Large"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:wo}=_o,ko={icon:ho.a,example:{attributes:{value:"<p>"+Object(pe.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},transforms:yo,edit:function({attributes:e,setAttributes:t,isSelected:o,mergeBlocks:n,onReplace:r,className:a,insertBlocksAfter:c,mergedStyle:l}){const{align:i,value:s,citation:u}=e,m=Object(me.useBlockProps)({className:Oe()(a,{["has-text-align-"+i]:i}),style:l});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.AlignmentControl,{value:i,onChange:e=>{t({align:e})}})),Object(he.createElement)(ke.BlockQuotation,m,Object(he.createElement)(me.RichText,{identifier:"value",multiline:!0,value:s,onChange:e=>t({value:e}),onMerge:n,onRemove:e=>{const t=!u||0===u.length;!e&&t&&r([])},"aria-label":Object(pe.__)("Quote text"),placeholder:Object(pe.__)("Add quote"),onReplace:r,onSplit:t=>Object(de.createBlock)("core/quote",{...e,value:t}),__unstableOnSplitMiddle:()=>Object(de.createBlock)("core/paragraph"),textAlign:i}),(!me.RichText.isEmpty(u)||o)&&Object(he.createElement)(me.RichText,{identifier:"citation",tagName:jo?"cite":void 0,style:{display:"block"},value:u,onChange:e=>t({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":Object(pe.__)("Quote citation text"),placeholder:Object(pe.__)("Add citation"),className:"wp-block-quote__citation",textAlign:i,__unstableOnSplitAtEnd:()=>c(Object(de.createBlock)("core/paragraph"))})))},save:function({attributes:e}){const{align:t,value:o,citation:n}=e,r=Oe()({["has-text-align-"+t]:t});return Object(he.createElement)("blockquote",me.useBlockProps.save({className:r}),Object(he.createElement)(me.RichText.Content,{multiline:!0,value:o}),!me.RichText.isEmpty(n)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:n}))},merge:(e,{value:t,citation:o})=>(o||(o=e.citation),t&&"<p></p>"!==t?{...e,value:e.value+t,citation:o}:{...e,citation:o}),deprecated:Oo};var Eo=o(242);function Co(e){return Math.min(3,e.images.length)}const xo=(e,t="large")=>{const o=Object(be.pick)(e,["alt","id","link","caption"]);o.url=Object(be.get)(e,["sizes",t,"url"])||Object(be.get)(e,["media_details","sizes",t,"source_url"])||e.url;const n=Object(be.get)(e,["sizes","full","url"])||Object(be.get)(e,["media_details","sizes","full","source_url"]);return n&&(o.fullUrl=n),o};var So=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,caption:r,linkTo:a}=e;return Object(he.createElement)("figure",{className:`columns-${o} ${n?"is-cropped":""}`},Object(he.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=Object(he.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(he.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(he.createElement)("figure",null,t?Object(he.createElement)("a",{href:t},o):o,!me.RichText.isEmpty(e.caption)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!me.RichText.isEmpty(r)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:({ids:e})=>e&&e.some(e=>"string"==typeof e),migrate:e=>({...e,ids:Object(be.map)(e.ids,e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null})}),save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,caption:r,linkTo:a}=e;return Object(he.createElement)("figure",{className:`columns-${o} ${n?"is-cropped":""}`},Object(he.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=Object(he.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(he.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(he.createElement)("figure",null,t?Object(he.createElement)("a",{href:t},o):o,!me.RichText.isEmpty(e.caption)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!me.RichText.isEmpty(r)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,linkTo:r}=e;return Object(he.createElement)("ul",{className:`columns-${o} ${n?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=Object(he.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(he.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(he.createElement)("figure",null,t?Object(he.createElement)("a",{href:t},o):o,e.caption&&e.caption.length>0&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||Object(be.some)(e,(e,o)=>!e&&null!==t[o]||parseInt(e,10)!==t[o])),migrate:e=>({...e,ids:Object(be.map)(e.images,({id:e})=>e?parseInt(e,10):null)}),supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,linkTo:r}=e;return Object(he.createElement)("ul",{className:`columns-${o} ${n?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const o=Object(he.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(he.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(he.createElement)("figure",null,t?Object(he.createElement)("a",{href:t},o):o,e.caption&&e.caption.length>0&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Co(e),align:n,imageCrop:r,linkTo:a}=e,c=Oe()("columns-"+o,{alignnone:"none"===n,"is-cropped":r});return Object(he.createElement)("div",{className:c},t.map(e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const o=Object(he.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(he.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(he.createElement)("a",{href:t},o):o)}))}}],Bo=o(107),To=o(3);const zo=Object(he.createElement)(me.BlockIcon,{icon:Eo.a});var Po=o(138),No=o(137),Mo=o(143),Vo=o(122);class Ro extends he.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onSelectCaption=this.onSelectCaption.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={captionSelected:!1,isEditing:!1}}bindContainer(e){this.container=e}onSelectCaption(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}onSelectImage(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[ro.BACKSPACE,ro.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(e){const{isSelected:t,image:o,url:n,__unstableMarkNextChangeAsNotPersistent:r}=this.props;o&&!n&&(r(),this.props.setAttributes({url:o.source_url,alt:o.alt_text})),this.state.captionSelected&&!t&&e.isSelected&&this.setState({captionSelected:!1})}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:o,url:n,alt:r,caption:a,sizeSlug:c}=this.props;if(!e||!e.url)return;let l=xo(e,c);((e,t)=>!e&&Object(Re.isBlobURL)(t))(o,n)&&r&&(l=Object(be.omit)(l,["alt"])),a&&!Object(be.get)(l,["caption"])&&(l=Object(be.omit)(l,["caption"])),t(l),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:o}=this.props;e!==o&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:o,linkTo:n,link:r,isFirstItem:a,isLastItem:c,isSelected:l,caption:i,onRemove:s,onMoveForward:u,onMoveBackward:m,setAttributes:d,"aria-label":b}=this.props,{isEditing:p}=this.state;let g;switch(n){case"file":g=e;break;case"post":g=r}const h=Object(he.createElement)(he.Fragment,null,Object(he.createElement)("img",{src:e,alt:t,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":b,ref:this.bindContainer}),Object(Re.isBlobURL)(e)&&Object(he.createElement)(ke.Spinner,null)),v=Oe()({"is-selected":l,"is-transient":Object(Re.isBlobURL)(e)});return Object(he.createElement)("figure",{className:v},!p&&(g?Object(he.createElement)("a",{href:g},h):h),p&&Object(he.createElement)(me.MediaPlaceholder,{labels:{title:Object(pe.__)("Edit gallery image")},icon:Ne.a,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:e}}),Object(he.createElement)(ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(he.createElement)(ke.Button,{icon:Po.a,onClick:a?void 0:m,label:Object(pe.__)("Move image backward"),"aria-disabled":a,disabled:!l}),Object(he.createElement)(ke.Button,{icon:No.a,onClick:c?void 0:u,label:Object(pe.__)("Move image forward"),"aria-disabled":c,disabled:!l})),Object(he.createElement)(ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(he.createElement)(ke.Button,{icon:Mo.a,onClick:this.onEdit,label:Object(pe.__)("Replace image"),disabled:!l}),Object(he.createElement)(ke.Button,{icon:Vo.a,onClick:s,label:Object(pe.__)("Remove image"),disabled:!l})),!p&&(l||i)&&Object(he.createElement)(me.RichText,{tagName:"figcaption","aria-label":Object(pe.__)("Image caption text"),placeholder:l?Object(pe.__)("Add caption"):null,value:i,isSelected:this.state.captionSelected,onChange:e=>d({caption:e}),unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}var Ho=Object(Ae.compose)([Object(He.withSelect)((e,t)=>{const{getMedia:o}=e(ue.store),{id:n}=t;return{image:n?o(parseInt(n,10)):null}}),Object(He.withDispatch)(e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(me.store);return{__unstableMarkNextChangeAsNotPersistent:t}})])(Ro);function Ao({isHidden:e,...t}){return e?Object(he.createElement)(ke.VisuallyHidden,Object(we.a)({as:me.RichText},t)):Object(he.createElement)(me.RichText,t)}var Io=e=>{const{attributes:t,isSelected:o,setAttributes:n,selectedImage:r,mediaPlaceholder:a,onMoveBackward:c,onMoveForward:l,onRemoveImage:i,onSelectImage:s,onDeselectImage:u,onSetImageAttributes:m,onFocusGalleryCaption:d,insertBlocksAfter:b,blockProps:p}=e,{align:g,columns:h=Co(t),caption:v,imageCrop:O,images:j}=t;return Object(he.createElement)("figure",Object(we.a)({},p,{className:Oe()(p.className,{["align"+g]:g,["columns-"+h]:h,"is-cropped":O})}),Object(he.createElement)("ul",{className:"blocks-gallery-grid"},j.map((e,n)=>{const a=Object(pe.sprintf)(Object(pe.__)("image %1$d of %2$d in gallery"),n+1,j.length);return Object(he.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(he.createElement)(Ho,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===j.length,isSelected:o&&r===n,onMoveBackward:c(n),onMoveForward:l(n),onRemove:i(n),onSelect:s(n),onDeselect:u(n),setAttributes:e=>m(n,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))})),a,Object(he.createElement)(Ao,{isHidden:!o&&me.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(pe.__)("Gallery caption text"),placeholder:Object(pe.__)("Write gallery caption…"),value:v,unstableOnFocus:d,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>b(Object(de.createBlock)("core/paragraph"))}))};const Lo=[{value:"post",label:Object(pe.__)("Attachment Page")},{value:"file",label:Object(pe.__)("Media File")},{value:"none",label:Object(pe.__)("None")}],Do=["image"],Fo=he.Platform.select({web:Object(pe.__)("Drag images, upload new ones or select files from your library."),native:Object(pe.__)("ADD MEDIA")}),Go=he.Platform.select({web:{},native:{type:"stepper"}});var Uo=Object(Ae.compose)([ke.withNotices,Object(Bo.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:o,isSelected:n,noticeUI:r,noticeOperations:a,onFocus:c}=e,{columns:l=Co(t),imageCrop:i,images:s,linkTo:u,sizeSlug:m}=t,[d,b]=Object(he.useState)(),[p,g]=Object(he.useState)(),{__unstableMarkNextChangeAsNotPersistent:h}=Object(He.useDispatch)(me.store),{imageSizes:v,mediaUpload:O,getMedia:j,wasBlockJustInserted:f}=Object(He.useSelect)(e=>{const t=e(me.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(ue.store).getMedia,wasBlockJustInserted:e(me.store).wasBlockJustInserted(o,"inserter_menu")}}),{resizedImages:y}=Object(he.useMemo)(()=>n?Object(be.reduce)(t.ids,(e,t)=>{if(!t)return e;const o=j(t),n=Object(be.reduce)(v,(e,t)=>{const n=Object(be.get)(o,["sizes",t.slug,"url"]),r=Object(be.get)(o,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:n||r}},{});return{...e,[parseInt(t,10)]:n}},{}):{},[n,t.ids,v]);function _(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:Object(be.map)(t.images,({id:e})=>parseInt(e,10))}),e.setAttributes(t)}function w(e,t){const o=[...s];o.splice(t,1,s[e]),o.splice(e,1,s[t]),b(t),_({images:o})}function k(e){const t=Object(be.toString)(e.id),o=Object(be.find)(s,{id:t}),n=o?o.caption:e.caption;if(!p)return n;const r=Object(be.find)(p,{id:t});return r&&r.caption!==e.caption?e.caption:n}function E(e){g(e.map(e=>({id:Object(be.toString)(e.id),caption:e.caption}))),_({images:e.map(e=>({...xo(e,m),caption:k(e),id:Object(be.toString)(e.id)})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(he.useEffect)(()=>{if("web"===he.Platform.OS&&s&&s.length>0&&Object(be.every)(s,({url:e})=>Object(Re.isBlobURL)(e))){const e=Object(be.map)(s,({url:e})=>Object(Re.getBlobByURL)(e));Object(be.forEach)(s,({url:e})=>Object(Re.revokeBlobURL)(e)),O({filesList:e,onFileChange:E,allowedTypes:["image"]})}},[]),Object(he.useEffect)(()=>{n||b()},[n]),Object(he.useEffect)(()=>{var e,t,o,n,r,a;u||(h(),_({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(o=t.media)||void 0===o||null===(n=o.view)||void 0===n||null===(r=n.settings)||void 0===r||null===(a=r.defaultProps)||void 0===a?void 0:a.link)||"none"}))},[u]);const C=!!s.length,x=C&&s.some(e=>!!e.id),S=Object(he.createElement)(me.MediaPlaceholder,{addToGallery:x,isAppender:C,disableMediaButtons:C&&!n,icon:!C&&zo,labels:{title:!C&&Object(pe.__)("Gallery"),instructions:!C&&Fo},onSelect:E,accept:"image/*",allowedTypes:Do,multiple:!0,value:x?s:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:C?void 0:r,onFocus:c,autoOpenMediaUpload:!C&&n&&f}),B=Object(me.useBlockProps)();if(!C)return Object(he.createElement)(To.View,B,S);const T=Object(be.map)(Object(be.filter)(v,({slug:e})=>Object(be.some)(y,t=>t[e])),({name:e,slug:t})=>({value:t,label:e})),z=C&&!Object(be.isEmpty)(T);return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Gallery settings")},s.length>1&&Object(he.createElement)(ke.RangeControl,Object(we.a)({label:Object(pe.__)("Columns"),value:l,onChange:function(e){_({columns:e})},min:1,max:Math.min(8,s.length)},Go,{required:!0})),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Crop images"),checked:!!i,onChange:function(){_({imageCrop:!i})},help:function(e){return e?Object(pe.__)("Thumbnails are cropped to align."):Object(pe.__)("Thumbnails are not cropped.")}}),Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Link to"),value:u,onChange:function(e){_({linkTo:e})},options:Lo,hideCancelButton:!0}),z&&Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Image size"),value:m,options:T,onChange:function(e){_({images:Object(be.map)(s,t=>{if(!t.id)return t;const o=Object(be.get)(y,[parseInt(t.id,10),e]);return{...t,...o&&{url:o}}}),sizeSlug:e})},hideCancelButton:!0}))),r,Object(he.createElement)(Io,Object(we.a)({},e,{selectedImage:d,mediaPlaceholder:S,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==s.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const o=Object(be.filter)(s,(t,o)=>e!==o);b(),_({images:o,columns:t.columns?Math.min(o.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{b(e)}},onDeselectImage:function(){return()=>{b()}},onSetImageAttributes:function(e,t){s[e]&&_({images:[...s.slice(0,e),{...s[e],...t},...s.slice(e+1)]})},onFocusGalleryCaption:function(){b()},blockProps:B})))}));const qo=e=>e?e.split(",").map(e=>parseInt(e,10)):[];var Wo={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=Object(be.every)(e,["align",t])?t:void 0,o=Object(be.every)(e,["sizeSlug",o])?o:void 0;const n=Object(be.filter)(e,({url:e})=>e);return Object(de.createBlock)("core/gallery",{images:n.map(({id:e,url:t,alt:o,caption:n})=>({id:Object(be.toString)(e),url:t,alt:o,caption:n})),ids:n.map(({id:e})=>parseInt(e,10)),align:t,sizeSlug:o})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>qo(e).map(e=>({id:Object(be.toString)(e)}))},ids:{type:"array",shortcode:({named:{ids:e}})=>qo(e)},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e="post"}})=>e}},isMatch:({named:e})=>void 0!==e.ids},{type:"files",isMatch:e=>1!==e.length&&Object(be.every)(e,e=>0===e.type.indexOf("image/")),transform:e=>Object(de.createBlock)("core/gallery",{images:e.map(e=>xo({url:Object(Re.createBlobURL)(e)}))})}],to:[{type:"block",blocks:["core/image"],transform:({images:e,align:t,sizeSlug:o,ids:n})=>e.length>0?e.map(({url:e,alt:r,caption:a},c)=>Object(de.createBlock)("core/image",{id:n[c],url:e,alt:r,caption:a,align:t,sizeSlug:o})):Object(de.createBlock)("core/image",{align:t})}]};const $o={apiVersion:2,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Zo}=$o,Qo={icon:Eo.a,example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Wo,edit:Uo,save:function({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,caption:r,linkTo:a}=e,c=`columns-${o} ${n?"is-cropped":""}`;return Object(he.createElement)("figure",me.useBlockProps.save({className:c}),Object(he.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}const o=Object(he.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(he.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(he.createElement)("figure",null,t?Object(he.createElement)("a",{href:t},o):o,!me.RichText.isEmpty(e.caption)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!me.RichText.isEmpty(r)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))},deprecated:So};var Yo=o(254),Jo=o(58),Ko=o.n(Jo);const Xo={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:en}=Xo,tn={icon:Yo.a,example:{},edit:function({attributes:e,setAttributes:t}){const{showPostCounts:o,displayAsDropdown:n}=e;return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Archives settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display as dropdown"),checked:n,onChange:()=>t({displayAsDropdown:!n})}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}))),Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)(ke.Disabled,null,Object(he.createElement)(Ko.a,{block:"core/archives",attributes:e}))))}};var on=o(255),nn=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return Object(he.createElement)("figure",null,Object(he.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:o}))}}];const rn=["audio"];var an=Object(ke.withNotices)((function({attributes:e,noticeOperations:t,setAttributes:o,onReplace:n,isSelected:r,noticeUI:a,insertBlocksAfter:c}){const{id:l,autoplay:i,caption:s,loop:u,preload:m,src:d}=e,b=Object(me.useBlockProps)(),p=Object(He.useSelect)(e=>{const{getSettings:t}=e(me.store);return t().mediaUpload},[]);function g(e){return t=>{o({[e]:t})}}function h(e){if(e!==d){const t=Je({attributes:{url:e}});if(void 0!==t)return void n(t);o({src:e,id:void 0})}}function v(e){t.removeAllNotices(),t.createErrorNotice(e)}function O(e){e&&e.url?o({src:e.url,id:e.id}):o({src:void 0,id:void 0})}return Object(he.useEffect)(()=>{if(!l&&Object(Re.isBlobURL)(d)){const e=Object(Re.getBlobByURL)(d);e&&p({filesList:[e],onFileChange:([{id:e,url:t}])=>{o({id:e,src:t})},onError:e=>{o({src:void 0,id:void 0}),t.createErrorNotice(e)},allowedTypes:rn})}},[]),d?Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:rn,accept:"audio/*",onSelect:O,onSelectURL:h,onError:v})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Audio settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Autoplay"),onChange:g("autoplay"),checked:i,help:function(e){return e?Object(pe.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Loop"),onChange:g("loop"),checked:u}),Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Preload"),value:m||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:Object(pe.__)("Browser default")},{value:"auto",label:Object(pe.__)("Auto")},{value:"metadata",label:Object(pe.__)("Metadata")},{value:"none",label:Object(pe.__)("None")}]}))),Object(he.createElement)("figure",b,Object(he.createElement)(ke.Disabled,{isDisabled:!r},Object(he.createElement)("audio",{controls:"controls",src:d})),(!me.RichText.isEmpty(s)||r)&&Object(he.createElement)(me.RichText,{tagName:"figcaption","aria-label":Object(pe.__)("Audio caption text"),placeholder:Object(pe.__)("Add caption"),value:s,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(de.createBlock)("core/paragraph"))}))):Object(he.createElement)("div",b,Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:on.a}),onSelect:O,onSelectURL:h,accept:"audio/*",allowedTypes:rn,value:e,notices:a,onError:v}))}));var cn={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return Object(de.createBlock)("core/audio",{src:Object(Re.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const ln={apiVersion:2,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:sn}=ln,un={icon:on.a,transforms:cn,deprecated:nn,edit:an,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&Object(he.createElement)("figure",me.useBlockProps.save(),Object(he.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:o}))}};var mn=o(256);var dn=[{supports:{align:["center","left","right"],anchor:!0},save:()=>Object(he.createElement)("div",null,Object(he.createElement)(me.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>({...e,align:void 0,contentJustification:e.align})}];const{name:bn}={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>Object(de.createBlock)(bn,{},e.map(e=>Object(de.createBlock)("core/button",e)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(de.createBlock)(bn,{},e.map(e=>{const t=document.createElement("div");t.innerHTML=e.content;const o=t.innerText||"",n=t.querySelector("a"),r=null==n?void 0:n.getAttribute("href");return Object(de.createBlock)("core/button",{text:o,url:r})})),isMatch:e=>e.every(e=>{const t=document.createElement("div");t.innerHTML=e.content;const o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},gn=o(175);const hn=e=>{const{borderRadius:t,...o}=e;return t||0===t?{...o,style:{...o.style,border:{radius:t}}}:o},vn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...Object(be.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},On=e=>vn(Object(be.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),jn={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}};var fn=[{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...jn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:c,url:l,width:i}=e,s=Object(me.__experimentalGetColorClassesAndStyles)(e),u=Oe()("wp-block-button__link",s.className,{"no-border-radius":0===o}),m={borderRadius:o?o+"px":void 0,...s.style},d=Oe()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(he.createElement)("div",me.useBlockProps.save({className:d}),Object(he.createElement)(me.RichText.Content,{tagName:"a",className:u,href:l,title:c,style:m,value:a,target:n,rel:r}))},migrate:hn},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...jn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:c,url:l,width:i}=e,s=Object(me.__experimentalGetColorClassesAndStyles)(e),u=Oe()("wp-block-button__link",s.className,{"no-border-radius":0===o}),m={borderRadius:o?o+"px":void 0,...s.style},d=Oe()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(he.createElement)("div",me.useBlockProps.save({className:d}),Object(he.createElement)(me.RichText.Content,{tagName:"a",className:u,href:l,title:c,style:m,value:a,target:n,rel:r}))},migrate:hn},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...jn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:o,rel:n,text:r,title:a,url:c}=e,l=Oe()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return Object(he.createElement)(me.RichText.Content,{tagName:"a",className:l,href:c,title:a,style:i,value:r,target:o,rel:n})},migrate:hn},{supports:{align:!0,alignWide:!1},attributes:{...jn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient,migrate:Object(Ae.compose)(hn,vn),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:c,gradient:l,rel:i,text:s,textColor:u,title:m,url:d}=e,b=Object(me.getColorClassName)("color",u),p=!a&&Object(me.getColorClassName)("background-color",t),g=Object(me.__experimentalGetGradientClass)(l),h=Oe()("wp-block-button__link",{"has-text-color":u||r,[b]:b,"has-background":t||n||a||l,[p]:p,"no-border-radius":0===o,[g]:g}),v={background:a||void 0,backgroundColor:p||a||l?void 0:n,color:b?void 0:r,borderRadius:o?o+"px":void 0};return Object(he.createElement)("div",null,Object(he.createElement)(me.RichText.Content,{tagName:"a",className:h,href:d,title:m,style:v,value:s,target:c,rel:i}))}},{attributes:{...jn,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),hn(vn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:c,textColor:l,title:i,url:s}=e,u=Object(me.getColorClassName)("color",l),m=Object(me.getColorClassName)("background-color",t),d=Oe()("wp-block-button__link",{"has-text-color":l||n,[u]:u,"has-background":t||o,[m]:m}),b={backgroundColor:m?void 0:o,color:u?void 0:n};return Object(he.createElement)("div",null,Object(he.createElement)(me.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:b,value:c,target:r,rel:a}))}},{attributes:{...jn,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:On,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l}=e,i=Object(me.getColorClassName)("color",a),s=Object(me.getColorClassName)("background-color",r),u=Oe()("wp-block-button__link",{"has-text-color":a||l,[i]:i,"has-background":r||c,[s]:s}),m={backgroundColor:s?void 0:c,color:i?void 0:l};return Object(he.createElement)("div",null,Object(he.createElement)(me.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:m,value:o}))}},{attributes:{...jn,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:c}=e,l={backgroundColor:a,color:c};return Object(he.createElement)("div",{className:"align"+r},Object(he.createElement)(me.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:l,value:o}))},migrate:On},{attributes:{...jn,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:c}=e;return Object(he.createElement)("div",{className:"align"+r,style:{backgroundColor:a}},Object(he.createElement)(me.RichText.Content,{tagName:"a",href:t,title:n,style:{color:c},value:o}))},migrate:On}],yn=o(123),_n=o(144);function wn({selectedWidth:e,setAttributes:t}){return Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Width settings")},Object(he.createElement)(ke.ButtonGroup,{"aria-label":Object(pe.__)("Button width")},[25,50,75,100].map(o=>Object(he.createElement)(ke.Button,{key:o,isSmall:!0,isPrimary:o===e,onClick:()=>{var n;t({width:e===(n=o)?void 0:n})}},o,"%"))))}function kn({isSelected:e,url:t,setAttributes:o,opensInNewTab:n,onToggleOpenInNewTab:r,anchorRef:a}){const[c,l]=Object(he.useState)(!1),i=!!t,s=i&&e,u=()=>(l(!0),!1),m=()=>{o({url:void 0,linkTarget:void 0,rel:void 0}),l(!1)},d=(c||s)&&Object(he.createElement)(ke.Popover,{position:"bottom center",onClose:()=>l(!1),anchorRef:null==a?void 0:a.current},Object(he.createElement)(me.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:t,opensInNewTab:n},onChange:({url:e="",opensInNewTab:t})=>{o({url:e}),n!==t&&r(t)}}));return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},!i&&Object(he.createElement)(ke.ToolbarButton,{name:"link",icon:yn.a,title:Object(pe.__)("Link"),shortcut:ro.displayShortcut.primary("k"),onClick:u}),s&&Object(he.createElement)(ke.ToolbarButton,{name:"link",icon:_n.a,title:Object(pe.__)("Unlink"),shortcut:ro.displayShortcut.primaryShift("k"),onClick:m,isActive:!0})),e&&Object(he.createElement)(ke.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[ro.rawShortcut.primary("k")]:u,[ro.rawShortcut.primaryShift("k")]:m}}),d)}var En=function(e){var t;const{attributes:o,setAttributes:n,className:r,isSelected:a,onReplace:c,mergeBlocks:l}=e,{linkTarget:i,placeholder:s,rel:u,style:m,text:d,url:b,width:p}=o,g=Object(he.useCallback)(e=>{n({rel:e})},[n]),h=Object(he.useCallback)(e=>{const t=e?"_blank":void 0;let o=u;t&&!u?o="noreferrer noopener":t||"noreferrer noopener"!==u||(o=void 0),n({linkTarget:t,rel:o})},[u,n]),v=null==m||null===(t=m.border)||void 0===t?void 0:t.radius,O=Object(me.__experimentalUseColorProps)(o),j=Object(he.useRef)(),f=Object(me.useBlockProps)({ref:j});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)("div",Object(we.a)({},f,{className:Oe()(f.className,{["has-custom-width wp-block-button__width-"+p]:p,"has-custom-font-size":f.style.fontSize})}),Object(he.createElement)(me.RichText,{"aria-label":Object(pe.__)("Button text"),placeholder:s||Object(pe.__)("Add text…"),value:d,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:Oe()(r,"wp-block-button__link",O.className,{"no-border-radius":0===v}),style:{borderRadius:v?v+"px":void 0,...O.style},onSplit:e=>Object(de.createBlock)("core/button",{...o,text:e}),onReplace:c,onMerge:l,identifier:"text"})),Object(he.createElement)(kn,{url:b,setAttributes:n,isSelected:a,opensInNewTab:"_blank"===i,onToggleOpenInNewTab:h,anchorRef:j}),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(wn,{selectedWidth:p,setAttributes:n})),Object(he.createElement)(me.InspectorAdvancedControls,null,Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Link rel"),value:u||"",onChange:g})))};const Cn={apiVersion:2,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},fontSize:!0,reusable:!1,__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalFontFamily:!0,__experimentalSelector:".wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:xn}=Cn,Sn={icon:gn.a,example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(pe.__)("Call to Action")}},edit:En,save:function({attributes:e,className:t}){var o,n;const{fontSize:r,linkTarget:a,rel:c,style:l,text:i,title:s,url:u,width:m}=e;if(!i)return null;const d=null==l||null===(o=l.border)||void 0===o?void 0:o.radius,b=Object(me.__experimentalGetColorClassesAndStyles)(e),p=Oe()("wp-block-button__link",b.className,{"no-border-radius":0===d}),g={borderRadius:d?d+"px":void 0,...b.style},h=Oe()(t,{["has-custom-width wp-block-button__width-"+m]:m,"has-custom-font-size":r||(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)});return Object(he.createElement)("div",me.useBlockProps.save({className:h}),Object(he.createElement)(me.RichText.Content,{tagName:"a",className:p,href:u,title:s,style:g,value:i,target:a,rel:c}))},deprecated:fn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Bn=[xn],Tn=[["core/button"]];var zn=function({attributes:{contentJustification:e,orientation:t},setAttributes:o}){const n=Object(me.useBlockProps)({className:Oe()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),r=Object(me.__experimentalUseInnerBlocksProps)(n,{allowedBlocks:Bn,template:Tn,orientation:t,__experimentalLayout:{type:"default",alignments:[]},templateInsertUpdatesSelection:!0}),a="vertical"===t?["left","center","right"]:["left","center","right","space-between"];return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.JustifyContentControl,{allowedControls:a,value:e,onChange:e=>o({contentJustification:e}),popoverProps:{position:"bottom right",isAlternate:!0}})),Object(he.createElement)("div",r))};var Pn=[{name:"buttons-horizontal",isDefault:!0,title:Object(pe.__)("Horizontal"),description:Object(pe.__)("Buttons shown in a row."),attributes:{orientation:"horizontal"},scope:["transform"]},{name:"buttons-vertical",title:Object(pe.__)("Vertical"),description:Object(pe.__)("Buttons shown in a column."),attributes:{orientation:"vertical"},scope:["transform"]}];const Nn={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Mn}=Nn,Vn={icon:mn.a,example:{innerBlocks:[{name:"core/button",attributes:{text:Object(pe.__)("Find out more")}},{name:"core/button",attributes:{text:Object(pe.__)("Contact us")}}]},deprecated:dn,transforms:pn,edit:zn,save:function({attributes:{contentJustification:e,orientation:t}}){return Object(he.createElement)("div",me.useBlockProps.save({className:Oe()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),Object(he.createElement)(me.InnerBlocks.Content,null))},variations:Pn};var Rn=o(257),Hn=o(29),An=o.n(Hn),In=o(22);const Ln=Ze()(e=>{if(!e)return{};const t=An()(e);return{year:t.year(),month:t.month()+1}});const Dn={apiVersion:2,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},{name:Fn}=Dn,Gn={icon:Rn.a,example:{},edit:function({attributes:e}){const t=Object(He.useSelect)(e=>{const{getEditedPostAttribute:t}=e(In.store);return"post"===t("type")?t("date"):void 0},[]);return Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)(ke.Disabled,null,Object(he.createElement)(Ko.a,{block:"core/calendar",attributes:{...e,...Ln(t)}})))}};var Un=o(258),qn=o(259);const Wn={apiVersion:2,name:"core/categories",title:"Categories",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:$n}=Wn,Zn={icon:Un.a,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n},setAttributes:r}){const a=Object(Ae.useInstanceId)(e,"blocks-category-select"),{categories:c,isRequesting:l}=Object(He.useSelect)(e=>{const{getEntityRecords:t}=e(ue.store),{isResolving:o}=e("core/data"),n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:o("core","getEntityRecords",["taxonomy","category",n])}},[]),i=e=>null!=c&&c.length?null===e?c:c.filter(({parent:t})=>t===e):[],s=e=>"wp-block-categories__list wp-block-categories__list-level-"+e,u=e=>t=>r({[e]:t}),m=e=>e?Object(be.unescape)(e).trim():Object(pe.__)("(Untitled)"),d=(e,t)=>{const r=i(e.id),{id:a,link:c,count:l,name:u}=e;return Object(he.createElement)("li",{key:a},Object(he.createElement)("a",{href:c,target:"_blank",rel:"noreferrer noopener"},m(u)),n&&Object(he.createElement)("span",{className:"wp-block-categories__post-count"},` (${l})`),o&&!!r.length&&Object(he.createElement)("ul",{className:s(t+1)},r.map(e=>d(e,t+1))))},b=(e,t)=>{const{id:r,count:a,name:c}=e,l=i(r);return[Object(he.createElement)("option",{key:r},Object(be.times)(3*t,()=>" "),m(c),n&&` (${a})`),o&&!!l.length&&l.map(e=>b(e,t+1))]};return Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Categories settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display as dropdown"),checked:t,onChange:u("displayAsDropdown")}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show hierarchy"),checked:o,onChange:u("showHierarchy")}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show post counts"),checked:n,onChange:u("showPostCounts")}))),l&&Object(he.createElement)(ke.Placeholder,{icon:qn.a,label:Object(pe.__)("Categories")},Object(he.createElement)(ke.Spinner,null)),!l&&0===c.length&&Object(he.createElement)("p",null,Object(pe.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!l&&c.length>0&&(t?(()=>{const e=i(o?0:null);return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.VisuallyHidden,{as:"label",htmlFor:a},Object(pe.__)("Categories")),Object(he.createElement)("select",{id:a,className:"wp-block-categories__dropdown"},e.map(e=>b(e,0))))})():(()=>{const e=i(o?0:null);return Object(he.createElement)("ul",{className:s(0)},e.map(e=>d(e,0)))})()))}};var Qn=o(176);function Yn(e){return e.replace(/\[/g,"[")}function Jn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Kn={from:[{type:"enter",regExp:/^```$/,transform:()=>Object(de.createBlock)("core/code")},{type:"block",blocks:["core/html"],transform:({content:e})=>Object(de.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const Xn={apiVersion:2,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,fontSize:!0},style:"wp-block-code"},{name:er}=Xn,tr={icon:Qn.a,example:{attributes:{content:Object(pe.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:Kn,edit:function({attributes:e,setAttributes:t,onRemove:o}){const n=Object(me.useBlockProps)();return Object(he.createElement)("pre",n,Object(he.createElement)(me.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:o,placeholder:Object(pe.__)("Write code…"),"aria-label":Object(pe.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return Object(he.createElement)("pre",me.useBlockProps.save(),Object(he.createElement)(me.RichText.Content,{tagName:"code",value:(t=e.content,Object(be.flow)(Yn,Jn)(t||""))}));var t}};var or=o(260);function nr(e){let t,{doc:o}=nr;o||(o=document.implementation.createHTMLDocument(""),nr.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var rr=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(be.omit)(e,["customTextColor","customBackgroundColor"]),style:t}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,c=Object(me.getColorClassName)("background-color",o),l=Object(me.getColorClassName)("color",r),i=Oe()({"has-background":o||n,"has-text-color":r||a,[c]:c,[l]:l,["are-vertically-aligned-"+t]:t}),s={backgroundColor:c?void 0:n,color:l?void 0:a};return Object(he.createElement)("div",{className:i||void 0,style:s},Object(he.createElement)(me.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some(e=>/layout-column-\d+/.test(e.originalContent))&&t.some(e=>void 0!==nr(e.originalContent)),migrate(e,t){const o=t.reduce((e,t)=>{const{originalContent:o}=t;let n=nr(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e},[]).map(e=>Object(de.createBlock)("core/column",{},e));return[Object(be.omit)(e,["columns"]),o]},save({attributes:e}){const{columns:t}=e;return Object(he.createElement)("div",{className:`has-${t}-columns`},Object(he.createElement)(me.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e=Object(be.omit)(e,["columns"]),t],save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=Oe()(`has-${o}-columns`,{["are-vertically-aligned-"+t]:t});return Object(he.createElement)("div",{className:n},Object(he.createElement)(me.InnerBlocks.Content,null))}}];const ar=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function cr(e,t){const{width:o=100/t}=e.attributes;return ar(o)}function lr(e,t,o=e.length){const n=function(e,t=e.length){return Object(be.sumBy)(e,e=>cr(e,t))}(e,o);return Object(be.mapValues)(function(e,t=e.length){return e.reduce((e,o)=>{const n=cr(o,t);return Object.assign(e,{[o.clientId]:n})},{})}(e,o),e=>ar(t*e/n))}function ir(e,t){return e.map(e=>Object(be.merge)({},e,{attributes:{width:t[e.clientId]}}))}const sr="web"===he.Platform.OS,ur=[{value:"%",label:sr?"%":Object(pe.__)("Percentage (%)"),default:""},{value:"px",label:sr?"px":Object(pe.__)("Pixels (px)"),default:""},{value:"em",label:sr?"em":Object(pe.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:sr?"rem":Object(pe.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:sr?"vw":Object(pe.__)("Viewport width (vw)"),default:""}];const mr=["core/column"];const dr=Object(He.withDispatch)((e,t,o)=>({updateAlignment(n){const{clientId:r,setAttributes:a}=t,{updateBlockAttributes:c}=e(me.store),{getBlockOrder:l}=o.select(me.store);a({verticalAlignment:n});l(r).forEach(e=>{c(e,{verticalAlignment:n})})},updateColumns(n,r){const{clientId:a}=t,{replaceInnerBlocks:c}=e(me.store),{getBlocks:l}=o.select(me.store);let i=l(a);const s=i.every(e=>{var t;const o=e.attributes.width;return Number.isFinite(null!=o&&null!==(t=o.endsWith)&&void 0!==t&&t.call(o,"%")?parseFloat(o):o)});const u=r>n;if(u&&s){const e=ar(100/r);i=[...ir(i,lr(i,100-e)),...Object(be.times)(r-n,()=>Object(de.createBlock)("core/column",{width:e}))]}else if(u)i=[...i,...Object(be.times)(r-n,()=>Object(de.createBlock)("core/column"))];else if(i=Object(be.dropRight)(i,n-r),s){i=ir(i,lr(i,100))}c(a,i)}}))((function({attributes:e,updateAlignment:t,updateColumns:o,clientId:n}){const{verticalAlignment:r}=e,{count:a}=Object(He.useSelect)(e=>({count:e(me.store).getBlockCount(n)}),[n]),c=Oe()({["are-vertically-aligned-"+r]:r}),l=Object(me.useBlockProps)({className:c}),i=Object(me.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:mr,orientation:"horizontal",renderAppender:!1});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.BlockVerticalAlignmentToolbar,{onChange:t,value:r})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,null,Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Columns"),value:a,onChange:e=>o(a,e),min:1,max:Math.max(6,a)}),a>6&&Object(he.createElement)(ke.Notice,{status:"warning",isDismissible:!1},Object(pe.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(he.createElement)("div",i))}));function br({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=Object(He.useSelect)(e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(de.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}},[t]),{replaceInnerBlocks:c}=Object(He.useDispatch)(me.store),l=Object(me.useBlockProps)();return Object(he.createElement)("div",l,Object(he.createElement)(me.__experimentalBlockVariationPicker,{icon:Object(be.get)(n,["icon","src"]),label:Object(be.get)(n,["title"]),variations:a,onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&c(e,Object(de.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var pr=e=>{const{clientId:t}=e,o=Object(He.useSelect)(e=>e(me.store).getBlocks(t).length>0,[t])?dr:br;return Object(he.createElement)(o,e)};var gr=[{name:"one-column-full",title:Object(pe.__)("100"),description:Object(pe.__)("One column"),icon:Object(he.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(pe.__)("50 / 50"),description:Object(pe.__)("Two columns; equal split"),icon:Object(he.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(pe.__)("30 / 70"),description:Object(pe.__)("Two columns; one-third, two-thirds split"),icon:Object(he.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(pe.__)("70 / 30"),description:Object(pe.__)("Two columns; two-thirds, one-third split"),icon:Object(he.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(pe.__)("33 / 33 / 33"),description:Object(pe.__)("Three columns; equal split"),icon:Object(he.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(pe.__)("25 / 50 / 25"),description:Object(pe.__)("Three columns; wide center column"),icon:Object(he.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];var hr={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map(({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:t+"%"},[[e,{...o},n]]]);return Object(de.createBlock)("core/columns",{},Object(de.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e})=>e&&e<=6},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:r,style:a,mediaAlt:c,mediaId:l,mediaPosition:i,mediaSizeSlug:s,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:b}=e;let p;if("image"!==u&&u)p=["core/video",{id:l,src:m}];else{p=["core/image",{...{id:l,alt:c,url:m,sizeSlug:s},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const g=[["core/column",{width:d+"%"},[p]],["core/column",{width:100-d+"%"},t]];return"right"===i&&g.reverse(),Object(de.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:b},Object(de.createBlocksFromInnerBlocksTemplate)(g))}}]};const vr={apiVersion:2,name:"core/columns",title:"Columns",category:"design",description:"Add a block that displays content in multiple columns, then add whatever content blocks you’d like.",textdomain:"default",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Or}=vr,jr={icon:or.a,variations:gr,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(pe.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(pe.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(pe.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(pe.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:rr,edit:pr,save:function({attributes:e}){const{verticalAlignment:t}=e,o=Oe()({["are-vertically-aligned-"+t]:t});return Object(he.createElement)("div",me.useBlockProps.save({className:o}),Object(he.createElement)(me.InnerBlocks.Content,null))},transforms:hr};var fr=o(261);var yr=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:e.width+"%"}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Oe()({["is-vertically-aligned-"+t]:t}),r={flexBasis:o+"%"};return Object(he.createElement)("div",{className:n,style:r},Object(he.createElement)(me.InnerBlocks.Content,null))}}];var _r=function({attributes:{verticalAlignment:e,width:t,templateLock:o=!1},setAttributes:n,clientId:r}){const a=Oe()("block-core-columns",{["is-vertically-aligned-"+e]:e}),{columnsIds:c,hasChildBlocks:l,rootClientId:i}=Object(He.useSelect)(e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(me.store),n=o(r);return{hasChildBlocks:t(r).length>0,rootClientId:n,columnsIds:t(n)}},[r]),{updateBlockAttributes:s}=Object(He.useDispatch)(me.store),u=Number.isFinite(t)?t+"%":t,m=Object(me.useBlockProps)({className:a,style:u?{flexBasis:u}:void 0}),d=c.length,b=c.indexOf(r)+1,p=Object(pe.sprintf)(Object(pe.__)("%1$s (%2$d of %3$d)"),m["aria-label"],b,d),g=Object(me.__experimentalUseInnerBlocksProps)({...m,"aria-label":p},{templateLock:o,renderAppender:l?void 0:me.InnerBlocks.ButtonBlockAppender});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.BlockVerticalAlignmentToolbar,{onChange:e=>{n({verticalAlignment:e}),s(i,{verticalAlignment:null})},value:e})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Column settings")},Object(he.createElement)(ke.__experimentalUnitControl,{label:Object(pe.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({width:e})},units:ur}))),Object(he.createElement)("div",g))};const wr={apiVersion:2,name:"core/column",title:"Column",category:"text",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{enum:["all","insert",!1]}},supports:{anchor:!0,reusable:!1,html:!1}},{name:kr}=wr,Er={icon:fr.a,edit:_r,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Oe()({["is-vertically-aligned-"+t]:t});let r;return o&&(r={flexBasis:Number.isFinite(o)?o+"%":o}),Object(he.createElement)("div",me.useBlockProps.save({className:n,style:r}),Object(he.createElement)(me.InnerBlocks.Content,null))},deprecated:yr};var Cr=o(262);const xr={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Sr(e){return e?{backgroundImage:`url(${e})`}:{}}const Br=["image","video"],Tr="web"===he.Platform.OS,zr=[{value:"px",label:Tr?"px":Object(pe.__)("Pixels (px)"),default:"430"},{value:"em",label:Tr?"em":Object(pe.__)("Relative to parent font size (em)"),default:"20"},{value:"rem",label:Tr?"rem":Object(pe.__)("Relative to root font size (rem)"),default:"20"},{value:"vw",label:Tr?"vw":Object(pe.__)("Viewport width (vw)"),default:"20"},{value:"vh",label:Tr?"vh":Object(pe.__)("Viewport height (vh)"),default:"50"}];function Pr(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Nr(e){return!e||"center center"===e||"center"===e}function Mr(e){return Nr(e)?"":xr[e]}const Vr={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}};var Rr=[{attributes:{...Vr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:c,focalPoint:l,hasParallax:i,isRepeated:s,overlayColor:u,url:m,minHeight:d,minHeightUnit:b}=e,p=Object(me.getColorClassName)("background-color",u),g=Object(me.__experimentalGetGradientClass)(o),h=b?`${d}${b}`:d,v="image"===t,O="video"===t,j=v?Sr(m):{},f={};let y;p||(j.backgroundColor=a),r&&!m&&(j.background=r),j.minHeight=h||void 0,l&&(y=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`,v&&!i&&(j.backgroundPosition=y),O&&(f.objectPosition=y));const _=Oe()(Pr(c),p,{"has-background-dim":0!==c,"has-parallax":i,"is-repeated":s,"has-background-gradient":o||r,[g]:!m&&g,"has-custom-content-position":!Nr(n)},Mr(n));return Object(he.createElement)("div",me.useBlockProps.save({className:_,style:j}),m&&(o||r)&&0!==c&&Object(he.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",g),style:r?{background:r}:void 0}),O&&m&&Object(he.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:f}),Object(he.createElement)("div",{className:"wp-block-cover__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{...Vr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:c,hasParallax:l,overlayColor:i,url:s,minHeight:u}=e,m=Object(me.getColorClassName)("background-color",i),d=Object(me.__experimentalGetGradientClass)(o),b="image"===t?Sr(s):{};m||(b.backgroundColor=r),c&&!l&&(b.backgroundPosition=`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`),n&&!s&&(b.background=n),b.minHeight=u||void 0;const p=Oe()(Pr(a),m,{"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":n,[d]:!s&&d});return Object(he.createElement)("div",{className:p,style:b},s&&(o||n)&&0!==a&&Object(he.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",d),style:n?{background:n}:void 0}),"video"===t&&s&&Object(he.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(he.createElement)("div",{className:"wp-block-cover__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{...Vr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:c,hasParallax:l,overlayColor:i,url:s,minHeight:u}=e,m=Object(me.getColorClassName)("background-color",i),d=Object(me.__experimentalGetGradientClass)(o),b="image"===t?Sr(s):{};m||(b.backgroundColor=r),c&&!l&&(b.backgroundPosition=`${100*c.x}% ${100*c.y}%`),n&&!s&&(b.background=n),b.minHeight=u||void 0;const p=Oe()(Pr(a),m,{"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":n,[d]:!s&&d});return Object(he.createElement)("div",{className:p,style:b},s&&(o||n)&&0!==a&&Object(he.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",d),style:n?{background:n}:void 0}),"video"===t&&s&&Object(he.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(he.createElement)("div",{className:"wp-block-cover__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{...Vr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:o,customOverlayColor:n,dimRatio:r,focalPoint:a,hasParallax:c,overlayColor:l,title:i,url:s}=e,u=Object(me.getColorClassName)("background-color",l),m="image"===t?Sr(s):{};u||(m.backgroundColor=n),a&&!c&&(m.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const d=Oe()(Pr(r),u,{"has-background-dim":0!==r,"has-parallax":c,[`has-${o}-content`]:"center"!==o});return Object(he.createElement)("div",{className:d,style:m},"video"===t&&s&&Object(he.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),!me.RichText.isEmpty(i)&&Object(he.createElement)(me.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:i}))},migrate:e=>[Object(be.omit)(e,["title","contentAlign"]),[Object(de.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(pe.__)("Write title…")})]]},{attributes:{...Vr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a,contentAlign:c,overlayColor:l,customOverlayColor:i}=e,s=Object(me.getColorClassName)("background-color",l),u=Sr(t);s||(u.backgroundColor=i);const m=Oe()("wp-block-cover-image",Pr(r),s,{"has-background-dim":0!==r,"has-parallax":n,[`has-${c}-content`]:"center"!==c},a?"align"+a:null);return Object(he.createElement)("div",{className:m,style:u},!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o}))},migrate:e=>[Object(be.omit)(e,["title","contentAlign","align"]),[Object(de.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(pe.__)("Write title…")})]]},{attributes:{...Vr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a}=e,c=Sr(t),l=Oe()("wp-block-cover-image",Pr(r),{"has-background-dim":0!==r,"has-parallax":n},a?"align"+a:null);return Object(he.createElement)("section",{className:l,style:c},Object(he.createElement)(me.RichText.Content,{tagName:"h2",value:o}))},migrate:e=>[Object(be.omit)(e,["title","contentAlign","align"]),[Object(de.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(pe.__)("Write title…")})]]}],Hr=o(399),Ar=o.n(Hr),Ir=o(37),Lr=o.n(Ir);const Dr=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(pe.__)("Write title…")}]],{__Visualizer:Fr}=ke.__experimentalBoxControl;function Gr(){return Gr.fastAverageColor||(Gr.fastAverageColor=new Ar.a),Gr.fastAverageColor}function Ur({onChange:e,onUnitChange:t,unit:o="px",value:n=""}){const[r,a]=Object(he.useState)(null),c="block-cover-height-input-"+Object(Ae.useInstanceId)(me.__experimentalUnitControl),l=null!==r?r:n,i="px"===o?50:0;return Object(he.createElement)(ke.BaseControl,{label:Object(pe.__)("Minimum height of cover"),id:c},Object(he.createElement)(me.__experimentalUnitControl,{id:c,isResetValueOnUnitChange:!0,min:i,onBlur:()=>{null!==r&&a(null)},onChange:o=>{const n=""!==o?parseInt(o,10):void 0;isNaN(n)&&void 0!==n?a(o):(a(null),e(n),void 0===n&&t())},onUnitChange:t,step:"1",style:{maxWidth:80},unit:o,units:zr,value:l}))}const qr={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Wr({className:e,onResizeStart:t,onResize:o,onResizeStop:n,...r}){const[a,c]=Object(he.useState)(!1);return Object(he.createElement)(ke.ResizableBox,Object(we.a)({className:Oe()(e,{"is-resizing":a}),enable:qr,onResizeStart:(e,n,r)=>{t(r.clientHeight),o(r.clientHeight)},onResize:(e,t,n)=>{o(n.clientHeight),a||c(!0)},onResizeStop:(e,t,o)=>{n(o.clientHeight),c(!1)},minHeight:50},r))}function $r({x:e,y:t}){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Zr({hasBackground:e=!1,children:t,noticeUI:o,noticeOperations:n,onSelectMedia:r}){const{removeAllNotices:a,createErrorNotice:c}=n;return Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:Cr.a}),labels:{title:Object(pe.__)("Cover"),instructions:Object(pe.__)("Upload an image or video file, or pick one from your media library.")},onSelect:r,accept:"image/*,video/*",allowedTypes:Br,notices:o,disableMediaButtons:e,onError:e=>{a(),c(e)}},t)}var Qr=Object(Ae.compose)([Object(He.withDispatch)(e=>{const{toggleSelection:t}=e(me.store);return{toggleSelection:t}}),Object(me.withColors)({overlayColor:"background-color"}),ke.withNotices,Ae.withInstanceId])((function({attributes:e,isSelected:t,noticeUI:o,noticeOperations:n,overlayColor:r,setAttributes:a,setOverlayColor:c,toggleSelection:l}){var i,s;const{contentPosition:u,id:m,backgroundType:d,dimRatio:b,focalPoint:p,hasParallax:g,isRepeated:h,minHeight:v,minHeightUnit:O,style:j,url:f}=e,{gradientClass:y,gradientValue:_,setGradient:w}=Object(me.__experimentalUseGradient)(),k=function(e){return t=>{if(!t||!t.url)return void e({url:void 0,id:void 0});let o;if(Object(Re.isBlobURL)(t.url)&&(t.type=Object(Re.getBlobTypeByURL)(t.url)),t.media_type)o="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;o=t.type}e({url:t.url,id:t.id,backgroundType:o,..."video"===o?{focalPoint:void 0,hasParallax:void 0}:{}})}}(a),E=((e,t)=>!e&&Object(Re.isBlobURL)(t))(m,f),[C,x]=Object(he.useState)(v),[S,B]=Object(he.useState)(O),T="vh"===O&&100===v,z=Object(he.useRef)(),P=function(e,t=50,o,n){const[r,a]=Object(he.useState)(!1);return Object(he.useEffect)(()=>{e&&t<=50&&n.current&&Gr().getColorAsync(n.current,e=>{a(e.isDark)})},[e,e&&t<=50&&n.current,a]),Object(he.useEffect)(()=>{if(t>50||!e){if(!o)return void a(!0);a(Lr()(o).isDark())}},[o,t>50||!e,a]),Object(he.useEffect)(()=>{e||o||a(!1)},[!e&&!o,a]),r}(f,b,r.color,z),N="image"===d,M="video"===d,[V,R]=Object(he.useState)(null),H=O?`${v}${O}`:v,A=!(g||h),I={...N&&!A?Sr(f):{backgroundImage:_||void 0},backgroundColor:r.color,minHeight:V||H||void 0},L={objectPosition:p&&A?$r(p):void 0},D=!!(f||r.color||_),F=M||N&&(!g||h),G=e=>{const[t,o]=z.current?[z.current.style,"objectPosition"]:[q.current.style,"backgroundPosition"];t[o]=$r(e)},U=Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.__experimentalBlockAlignmentMatrixControl,{label:Object(pe.__)("Change content position"),value:u,onChange:e=>a({contentPosition:e}),isDisabled:!D}),Object(he.createElement)(me.__experimentalBlockFullHeightAligmentControl,{isActive:T,onToggle:()=>T?a("vh"===S&&100===C?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:C,minHeightUnit:S}):(x(v),B(O),a({minHeight:100,minHeightUnit:"vh"})),isDisabled:!D})),Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaId:m,mediaURL:f,allowedTypes:Br,accept:"image/*,video/*",onSelect:k,name:f?Object(pe.__)("Replace"):Object(pe.__)("Add Media")})),Object(he.createElement)(me.InspectorControls,null,!!f&&Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Media settings")},N&&Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Fixed background"),checked:g,onChange:()=>{a({hasParallax:!g,...g?{}:{focalPoint:void 0}})}}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Repeated background"),checked:h,onChange:()=>{a({isRepeated:!h})}})),F&&Object(he.createElement)(ke.FocalPointPicker,{label:Object(pe.__)("Focal point picker"),url:f,value:p,onDragStart:G,onDrag:G,onChange:e=>a({focalPoint:e})}),Object(he.createElement)(ke.PanelRow,null,Object(he.createElement)(ke.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})},Object(pe.__)("Clear Media")))),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Dimensions")},Object(he.createElement)(Ur,{value:V||v,unit:O,onChange:e=>a({minHeight:e}),onUnitChange:e=>a({minHeightUnit:e})})),Object(he.createElement)(me.__experimentalPanelColorGradientSettings,{title:Object(pe.__)("Overlay"),initialOpen:!0,settings:[{colorValue:r.color,gradientValue:_,onColorChange:c,onGradientChange:w,label:Object(pe.__)("Color")}]},!!f&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Opacity"),value:b,onChange:e=>a({dimRatio:e}),min:0,max:100,step:10,required:!0})))),q=Object(he.useRef)(),W=Object(me.useBlockProps)({ref:q}),$=Object(me.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Dr,templateInsertUpdatesSelection:!0});if(!D)return Object(he.createElement)(he.Fragment,null,U,Object(he.createElement)("div",Object(we.a)({},W,{className:Oe()("is-placeholder",W.className)}),Object(he.createElement)(Zr,{noticeUI:o,onSelectMedia:k,noticeOperations:n},Object(he.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(he.createElement)(me.ColorPalette,{disableCustomColors:!0,value:r.color,onChange:c,clearable:!1})))));const Z=Oe()(Pr(b),{"is-dark-theme":P,"has-background-dim":0!==b,"is-transient":E,"has-parallax":g,"is-repeated":h,[r.class]:r.class,"has-background-gradient":_,[y]:!f&&y,"has-custom-content-position":!Nr(u)},Mr(u));return Object(he.createElement)(he.Fragment,null,U,Object(he.createElement)("div",Object(we.a)({},W,{className:Oe()(Z,W.className),style:{...I,...W.style},"data-url":f}),Object(he.createElement)(Fr,{values:null==j||null===(i=j.spacing)||void 0===i?void 0:i.padding,showValues:null==j||null===(s=j.visualizers)||void 0===s?void 0:s.padding}),Object(he.createElement)(Wr,{className:"block-library-cover__resize-container",onResizeStart:()=>{a({minHeightUnit:"px"}),l(!1)},onResize:R,onResizeStop:e=>{l(!0),a({minHeight:e}),R(null)},showHandle:t}),f&&_&&0!==b&&Object(he.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",y),style:{backgroundImage:_}}),f&&N&&A&&Object(he.createElement)("img",{ref:z,className:"wp-block-cover__image-background",alt:"",src:f,style:L}),f&&M&&Object(he.createElement)("video",{ref:z,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:f,style:L}),E&&Object(he.createElement)(ke.Spinner,null),Object(he.createElement)(Zr,{hasBackground:D,noticeUI:o,onSelectMedia:k,noticeOperations:n}),Object(he.createElement)("div",$)))}));var Yr={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,align:o,id:n,anchor:r,duotone:a})=>Object(de.createBlock)("core/cover",{url:t,align:o,id:n,anchor:r,duotone:a},[Object(de.createBlock)("core/paragraph",{content:e,fontSize:"large"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:n,anchor:r})=>Object(de.createBlock)("core/cover",{url:t,align:o,id:n,backgroundType:"video",anchor:r},[Object(de.createBlock)("core/paragraph",{content:e,fontSize:"large"})])}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?"image"===e:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r,duotone:a})=>Object(de.createBlock)("core/image",{caption:e,url:t,align:o,id:n,anchor:r,duotone:a})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?"video"===e:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r})=>Object(de.createBlock)("core/video",{caption:e,src:t,id:n,align:o,anchor:r})}]};const Jr={apiVersion:2,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay — great for headers.",textdomain:"default",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Kr}=Jr,Xr={icon:Cr.a,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(pe.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Yr,save:function({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:c,focalPoint:l,hasParallax:i,isRepeated:s,overlayColor:u,url:m,id:d,minHeight:b,minHeightUnit:p}=e,g=Object(me.getColorClassName)("background-color",u),h=Object(me.__experimentalGetGradientClass)(o),v=p?`${b}${p}`:b,O="image"===t,j="video"===t,f=!(i||s),y={...O&&!f?Sr(m):{},backgroundColor:g?void 0:a,background:r&&!m?r:void 0,minHeight:v||void 0},_=l&&f?`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`:void 0,w=Oe()(Pr(c),g,{"has-background-dim":0!==c,"has-parallax":i,"is-repeated":s,"has-background-gradient":o||r,[h]:!m&&h,"has-custom-content-position":!Nr(n)},Mr(n));return Object(he.createElement)("div",me.useBlockProps.save({className:w,style:y}),m&&(o||r)&&0!==c&&Object(he.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),O&&f&&m&&Object(he.createElement)("img",{className:Oe()("wp-block-cover__image-background",d?"wp-image-"+d:null),alt:"",src:m,style:{objectPosition:_},"data-object-fit":"cover","data-object-position":_}),j&&m&&Object(he.createElement)("video",{className:Oe()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:_},"data-object-fit":"cover","data-object-position":_}),Object(he.createElement)("div",{className:"wp-block-cover__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))},edit:Qr,deprecated:Rr};var ea=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:n,getResponsiveHelp:r,toggleResponsive:a,switchBackToURLInput:c})=>Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,t&&Object(he.createElement)(ke.ToolbarButton,{className:"components-toolbar__control",label:Object(pe.__)("Edit URL"),icon:Mo.a,onClick:c}))),o&&e&&Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Media settings"),className:"blocks-responsive"},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Resize for smaller devices"),checked:n,help:r,onChange:a}))));const ta=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),oa=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),na=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),ra=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),aa={foreground:"#1da1f2",src:Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.G,null,Object(he.createElement)(ke.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},ca={foreground:"#ff0000",src:Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},la={foreground:"#3b5998",src:Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},ia=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.G,null,Object(he.createElement)(ke.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),sa={foreground:"#0073AA",src:Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.G,null,Object(he.createElement)(ke.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},ua={foreground:"#1db954",src:Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},ma=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),da={foreground:"#1ab7ea",src:Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.G,null,Object(he.createElement)(ke.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},ba=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),pa={foreground:"#35465c",src:Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},ga=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(he.createElement)(ke.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(he.createElement)(ke.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),ha=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(he.createElement)(ke.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(he.createElement)(ke.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(he.createElement)(ke.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(he.createElement)(ke.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(he.createElement)(ke.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),va=Object(he.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"}));var Oa=()=>Object(he.createElement)("div",{className:"wp-block-embed is-loading"},Object(he.createElement)(ke.Spinner,null),Object(he.createElement)("p",null,Object(pe.__)("Embedding…")));var ja=({icon:e,label:t,value:o,onSubmit:n,onChange:r,cannotEmbed:a,fallback:c,tryAgain:l})=>Object(he.createElement)(ke.Placeholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:Object(pe.__)("Paste a link to the content you want to display on your site.")},Object(he.createElement)("form",{onSubmit:n},Object(he.createElement)("input",{type:"url",value:o||"",className:"components-placeholder__input","aria-label":t,placeholder:Object(pe.__)("Enter URL to embed here…"),onChange:r}),Object(he.createElement)(ke.Button,{isPrimary:!0,type:"submit"},Object(pe._x)("Embed","button label"))),Object(he.createElement)("div",{className:"components-placeholder__learn-more"},Object(he.createElement)(ke.ExternalLink,{href:Object(pe.__)("https://wordpress.org/support/article/embeds/")},Object(pe.__)("Learn more about embeds"))),a&&Object(he.createElement)("div",{className:"components-placeholder__error"},Object(he.createElement)("div",{className:"components-placeholder__instructions"},Object(pe.__)("Sorry, this content could not be embedded.")),Object(he.createElement)(ke.Button,{isSecondary:!0,onClick:l},Object(pe._x)("Try again","button label"))," ",Object(he.createElement)(ke.Button,{isSecondary:!0,onClick:c},Object(pe._x)("Convert to link","button label"))));function fa({html:e}){const t=Object(he.useRef)();Object(he.useEffect)(()=>{const{ownerDocument:e}=t.current,{defaultView:o}=e;function n({data:{secret:t,message:o,value:n}={}}){[t,o,n].some(e=>!e)||"height"!==o||e.querySelectorAll(`iframe[data-secret="${t}"`).forEach(e=>{+e.height!==n&&(e.height=n)})}function r(){const{activeElement:o}=e;"IFRAME"===o.tagName&&o.parentNode===t.current&&o.focus()}return o.addEventListener("message",n),o.addEventListener("blur",r),()=>{o.removeEventListener("message",n),o.removeEventListener("blur",r)}},[]);const o=Object(he.useMemo)(()=>{const t=(new window.DOMParser).parseFromString(e,"text/html"),o=t.querySelector("iframe");o&&o.removeAttribute("style");const n=t.querySelector("blockquote");return n&&(n.style.display="none"),t.body.innerHTML},[e]);return Object(he.createElement)("div",{ref:t,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:o}})}class ya extends he.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:o,type:n,caption:r,onCaptionChange:a,isSelected:c,className:l,icon:i,label:s,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:d}=this.state,b="photo"===n?(e=>{const t=e.thumbnail_url||e.url,o=Object(he.createElement)("p",null,Object(he.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(he.renderToString)(o)})(e):e.html,p=new URL(o).host.split("."),g=p.splice(p.length-2,p.length-1).join("."),h=Object(pe.sprintf)(Object(pe.__)("Embedded content from %s"),g),v=We()(n,l,"wp-block-embed__wrapper"),O="wp-embed"===n?Object(he.createElement)(fa,{html:b}):Object(he.createElement)("div",{className:"wp-block-embed__wrapper"},Object(he.createElement)(ke.SandBox,{html:b,scripts:m,title:h,type:v,onFocus:this.hideOverlay}),!d&&Object(he.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(he.createElement)("figure",{className:We()(l,"wp-block-embed",{"is-type-video":"video"===n})},t?O:Object(he.createElement)(ke.Placeholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:i,showColors:!0}),label:s},Object(he.createElement)("p",{className:"components-placeholder__error"},Object(he.createElement)("a",{href:o},o)),Object(he.createElement)("p",{className:"components-placeholder__error"},Object(pe.sprintf)(Object(pe.__)("Embedded content from %s can't be previewed in the editor."),g))),(!me.RichText.isEmpty(r)||c)&&Object(he.createElement)(me.RichText,{tagName:"figcaption",placeholder:Object(pe.__)("Add caption"),value:r,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u(Object(de.createBlock)("core/paragraph"))}))}}var _a=ya;function wa(e){return e?Object(pe.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(pe.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ka=e=>{const{attributes:{providerNameSlug:t,previewable:o,responsive:n,url:r},attributes:a,isSelected:c,onReplace:l,setAttributes:i,insertBlocksAfter:s}=e,u={title:Object(pe._x)("Embed","block title"),icon:ta},{icon:m,title:d}=(b=t,(null===(p=Object(de.getBlockVariations)(Qe))||void 0===p?void 0:p.find(({name:e})=>e===b))||u);var b,p;const[g,h]=Object(he.useState)(r),[v,O]=Object(he.useState)(!1),{invalidateResolution:j}=Object(He.useDispatch)("core/data"),{preview:f,fetching:y,themeSupportsResponsive:_,cannotEmbed:w}=Object(He.useSelect)(e=>{var t;const{getEmbedPreview:o,isPreviewEmbedFallback:n,isRequestingEmbedPreview:a,getThemeSupports:c}=e(ue.store);if(!r)return{fetching:!1,cannotEmbed:!1};const l=o(r),i=n(r),s=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),u=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!s&&!u;return{preview:m?l:void 0,fetching:a(r),themeSupportsResponsive:c()["responsive-embeds"],cannotEmbed:!m||i}},[r]),k=()=>{const{allowResponsive:e,className:t}=a;return{...a,...et(f,d,t,n,e)}};Object(he.useEffect)(()=>{if(null==f||!f.html||!w||y)return;const e=r.replace(/\/$/,"");h(e),O(!1),i({url:e})},[null==f?void 0:f.html,r]),Object(he.useEffect)(()=>{if(f&&!v&&(i(k()),l)){const t=Je(e,k());t&&l(t)}},[f,v]);const E=Object(me.useBlockProps)();if(y)return Object(he.createElement)(To.View,E,Object(he.createElement)(Oa,null));const C=Object(pe.sprintf)(Object(pe.__)("%s URL"),d);if(!f||w||v)return Object(he.createElement)(To.View,E,Object(he.createElement)(ja,{icon:m,label:C,onSubmit:e=>{e&&e.preventDefault(),O(!1),i({url:g})},value:g,cannotEmbed:w,onChange:e=>h(e.target.value),fallback:()=>function(e,t){const o=Object(he.createElement)("a",{href:e},e);t(Object(de.createBlock)("core/paragraph",{content:Object(he.renderToString)(o)}))}(g,l),tryAgain:()=>{j("core","getEmbedPreview",[g])}}));const{caption:x,type:S,allowResponsive:B,className:T}=k(),z=Oe()(T,e.className);return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ea,{showEditButton:f&&!w,themeSupportsResponsive:_,blockSupportsResponsive:n,allowResponsive:B,getResponsiveHelp:wa,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:o}=f,r=!e;i({allowResponsive:r,className:Xe(o,t,n&&r)})},switchBackToURLInput:()=>O(!0)}),Object(he.createElement)(To.View,E,Object(he.createElement)(_a,{preview:f,previewable:o,className:z,url:g,type:S,caption:x,onCaptionChange:e=>i({caption:e}),isSelected:c,icon:m,label:C,insertBlocksAfter:s})))};const{name:Ea}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Ca={from:[{type:"raw",isMatch:e=>{var t,o;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(o=t.match(/https/gi))||void 0===o?void 0:o.length)},transform:e=>Object(de.createBlock)(Ea,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],transform:({url:e,caption:t})=>{const o=Object(he.createElement)("a",{href:e},t||e);return Object(de.createBlock)("core/paragraph",{content:Object(he.renderToString)(o)})}}]};const xa=[{name:"twitter",title:"Twitter",icon:aa,keywords:["tweet",Object(pe.__)("social")],description:Object(pe.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:ca,keywords:[Object(pe.__)("music"),Object(pe.__)("video")],description:Object(pe.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:la,keywords:[Object(pe.__)("social")],description:Object(pe.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:ia,keywords:[Object(pe.__)("image"),Object(pe.__)("social")],description:Object(pe.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:sa,keywords:[Object(pe.__)("post"),Object(pe.__)("blog")],description:Object(pe.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:oa,keywords:[Object(pe.__)("music"),Object(pe.__)("audio")],description:Object(pe.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:ua,keywords:[Object(pe.__)("music"),Object(pe.__)("audio")],description:Object(pe.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:ma,keywords:[Object(pe.__)("image")],description:Object(pe.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:da,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:ha,description:Object(pe.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:ta,description:Object(pe.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:ra,description:Object(pe.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:ta,keywords:["polldaddy",Object(pe.__)("survey")],description:Object(pe.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:va,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:na,description:Object(pe.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:ta,description:Object(pe.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:ta,description:Object(pe.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:ta,description:Object(pe.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:oa,keywords:[Object(pe.__)("music"),Object(pe.__)("audio")],description:Object(pe.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:ba,description:Object(pe.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:oa,description:Object(pe.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:ra,description:Object(pe.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:ta,description:Object(pe.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:ta,description:Object(pe.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:na,description:Object(pe.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:ta,description:Object(pe.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:ra,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:ra,description:Object(pe.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:pa,keywords:[Object(pe.__)("social")],description:Object(pe.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:ra,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:ra,description:Object(pe.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:ga,keywords:[Object(pe.__)("ebook")],description:Object(pe.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}];xa.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)});var Sa=xa;const{attributes:Ba}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Ta=[{attributes:Ba,save({attributes:{url:e,caption:t,type:o,providerNameSlug:n}}){if(!e)return null;const r=Oe()("wp-block-embed",{["is-type-"+o]:o,["is-provider-"+n]:n});return Object(he.createElement)("figure",{className:r},`\n${e}\n`,!me.RichText.isEmpty(t)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:t}))}}];const za={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Pa}=za,Na={icon:ta,edit:ka,save:function({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=We()("wp-block-embed",{["is-type-"+n]:n,["is-provider-"+r]:r,["wp-block-embed-"+r]:r});return Object(he.createElement)("figure",me.useBlockProps.save({className:a}),Object(he.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:o}))},transforms:Ca,variations:Sa,deprecated:Ta};var Ma=o(263);function Va({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:n,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:c,changeDisplayPreview:l,previewHeight:i,changePreviewHeight:s}){const{href:u,textLinkHref:m,attachmentPage:d}=e;let b=[{value:u,label:Object(pe.__)("URL")}];return d&&(b=[{value:u,label:Object(pe.__)("Media file")},{value:d,label:Object(pe.__)("Attachment page")}]),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,u.endsWith(".pdf")&&Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("PDF settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show inline embed"),help:c?Object(pe.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!c,onChange:l}),Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Height in pixels"),min:Aa,max:Math.max(Ia,i),value:i,onChange:s})),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Text link settings")},Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Link to"),value:m,options:b,onChange:n}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Open in new tab"),checked:t,onChange:r})),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Download button settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show download button"),checked:o,onChange:a}))))}const Ra=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!Ha("AcroPDF.PDF")&&!Ha("PDF.PdfCtrl")))),Ha=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Aa=200,Ia=2e3;function La({text:e,disabled:t}){const{createNotice:o}=Object(He.useDispatch)(Ge.store),n=Object(Ae.useCopyToClipboard)(e,()=>{o("info",Object(pe.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return Object(he.createElement)(ke.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:n,disabled:t},Object(pe.__)("Copy URL"))}var Da=Object(ke.withNotices)((function({attributes:e,isSelected:t,setAttributes:o,noticeUI:n,noticeOperations:r}){const{id:a,fileName:c,href:l,textLinkHref:i,textLinkTarget:s,showDownloadButton:u,downloadButtonText:m,displayPreview:d,previewHeight:b}=e,[p,g]=Object(he.useState)(!1),{media:h,mediaUpload:v}=Object(He.useSelect)(e=>({media:void 0===a?void 0:e(ue.store).getMedia(a),mediaUpload:e(me.store).getSettings().mediaUpload}),[a]),{toggleSelection:O}=Object(He.useDispatch)(me.store);function j(e){if(e&&e.url){g(!1);const t=e.url.endsWith(".pdf");o({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function f(e){g(!0),r.removeAllNotices(),r.createErrorNotice(e)}function y(e){o({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}Object(he.useEffect)(()=>{if(Object(Re.isBlobURL)(l)){const e=Object(Re.getBlobByURL)(l);v({filesList:[e],onFileChange:([e])=>j(e),onError:e=>{g(!0),r.createErrorNotice(e)}}),Object(Re.revokeBlobURL)(l)}void 0===m&&y(Object(pe._x)("Download","button label"))},[]);const _=h&&h.link,w=Object(me.useBlockProps)({className:Oe()(Object(Re.isBlobURL)(l)&&Object(ke.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(Re.isBlobURL)(l)})}),k=Ra()&&d;return!l||p?Object(he.createElement)("div",w,Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:Ma.a}),labels:{title:Object(pe.__)("File"),instructions:Object(pe.__)("Upload a file or pick one from your media library.")},onSelect:j,notices:n,onError:f,accept:"*"})):Object(he.createElement)(he.Fragment,null,Object(he.createElement)(Va,{hrefs:{href:l,textLinkHref:i,attachmentPage:_},openInNewWindow:!!s,showDownloadButton:u,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:d,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:b,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Aa);o({previewHeight:t})}}),Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:j,onError:f}),Object(he.createElement)(La,{text:l,disabled:Object(Re.isBlobURL)(l)})),Object(he.createElement)("div",w,k&&Object(he.createElement)(ke.ResizableBox,{size:{height:b},minHeight:Aa,maxHeight:Ia,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>O(!1),onResizeStop:function(e,t,n,r){O(!0);const a=parseInt(b+r.height,10);o({previewHeight:a})},showHandle:t},Object(he.createElement)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":Object(pe.__)("Embed of the selected PDF file.")}),!t&&Object(he.createElement)("div",{className:"wp-block-file__preview-overlay"})),Object(he.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(he.createElement)(me.RichText,{style:{display:"inline-block"},tagName:"a",value:c,placeholder:Object(pe.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:e}),href:i}),u&&Object(he.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(he.createElement)(me.RichText,{tagName:"div","aria-label":Object(pe.__)("Download button text"),className:"wp-block-file__button",value:m,withoutInteractiveFormatting:!0,placeholder:Object(pe.__)("Add text…"),onChange:e=>y(e)})))))}));var Fa={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach(e=>{const o=Object(Re.createBlobURL)(e);t.push(Object(de.createBlock)("core/file",{href:o,fileName:e.name,textLinkHref:o}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>Object(de.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>Object(de.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>Object(de.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(He.select)(ue.store),o=t(e);return!!o&&Object(be.includes)(o.mime_type,"audio")},transform:e=>Object(de.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(He.select)(ue.store),o=t(e);return!!o&&Object(be.includes)(o.mime_type,"video")},transform:e=>Object(de.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(He.select)(ue.store),o=t(e);return!!o&&Object(be.includes)(o.mime_type,"image")},transform:e=>Object(de.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};const Ga={apiVersion:2,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Ua}=Ga,qa={icon:Ma.a,transforms:Fa,edit:Da,save:function({attributes:e}){const{href:t,fileName:o,textLinkHref:n,textLinkTarget:r,showDownloadButton:a,downloadButtonText:c,displayPreview:l,previewHeight:i}=e,s=me.RichText.isEmpty(o)?Object(pe.__)("PDF embed"):Object(pe.sprintf)(Object(pe.__)("Embed of %s."),o);return t&&Object(he.createElement)("div",me.useBlockProps.save(),l&&Object(he.createElement)(he.Fragment,null,Object(he.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:i+"px"},"aria-label":s})),!me.RichText.isEmpty(o)&&Object(he.createElement)("a",{href:n,target:r,rel:r?"noreferrer noopener":void 0},Object(he.createElement)(me.RichText.Content,{value:o})),a&&Object(he.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},Object(he.createElement)(me.RichText.Content,{value:c})))}};var Wa=o(266);var $a={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>Object(de.createBlock)("core/html",{content:e})}]};const Za={apiVersion:2,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:Qa}=Za,Ya={icon:Wa.a,example:{attributes:{content:"<marquee>"+Object(pe.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function({attributes:e,setAttributes:t,isSelected:o}){const[n,r]=Object(he.useState)(),a=Object(He.useSelect)(e=>["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t",...Object(me.transformStyles)(e(me.store).getSettings().styles)],[]);return Object(he.createElement)("div",Object(me.useBlockProps)({className:"block-library-html__edit"}),Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.ToolbarButton,{className:"components-tab-button",isPressed:!n,onClick:function(){r(!1)}},Object(he.createElement)("span",null,"HTML")),Object(he.createElement)(ke.ToolbarButton,{className:"components-tab-button",isPressed:n,onClick:function(){r(!0)}},Object(he.createElement)("span",null,Object(pe.__)("Preview"))))),Object(he.createElement)(ke.Disabled.Consumer,null,r=>n||r?Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.SandBox,{html:e.content,styles:a}),!o&&Object(he.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(he.createElement)(me.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:Object(pe.__)("Write HTML…"),"aria-label":Object(pe.__)("HTML")})))},save:function({attributes:e}){return Object(he.createElement)(he.RawHTML,null,e.content)},transforms:$a};var Ja=o(267),Ka=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(he.createElement)(ke.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(he.createElement)(ke.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const Xa=["image","video"];function ec(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const tc=Object(he.forwardRef)(({isSelected:e,isStackedOnMobile:t,...o},n)=>{const r=Object(Ae.useViewportMatch)("small","<");return Object(he.createElement)(ke.ResizableBox,Object(we.a)({ref:n,showHandle:e&&(!r||!t)},o))});function oc({mediaId:e,mediaUrl:t,onSelectMedia:o}){return Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Xa,accept:"image/*,video/*",onSelect:o}))}function nc({className:e,noticeOperations:t,noticeUI:o,onSelectMedia:n}){return Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:Ka}),labels:{title:Object(pe.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",allowedTypes:Xa,notices:o,onError:e=>{t.removeAllNotices(),t.createErrorNotice(e)}})}var rc=Object(ke.withNotices)(Object(he.forwardRef)((function(e,t){const{className:o,commitWidthChange:n,focalPoint:r,imageFill:a,isSelected:c,isStackedOnMobile:l,mediaAlt:i,mediaId:s,mediaPosition:u,mediaType:m,mediaUrl:d,mediaWidth:b,onSelectMedia:p,onWidthChange:g}=e,{toggleSelection:h}=Object(He.useDispatch)(me.store);if(m&&d){const e=()=>{h(!1)},v=(e,t,o)=>{g(parseInt(o.style.width))},O=(e,t,o)=>{h(!0),n(parseInt(o.style.width))},j={right:"left"===u,left:"right"===u},f="image"===m&&a?ec(d,r):{},y={image:()=>Object(he.createElement)("img",{src:d,alt:i}),video:()=>Object(he.createElement)("video",{controls:!0,src:d})};return Object(he.createElement)(tc,{as:"figure",className:Oe()(o,"editor-media-container__resizer"),style:f,size:{width:b+"%"},minWidth:"10%",maxWidth:"100%",enable:j,onResizeStart:e,onResize:v,onResizeStop:O,axis:"x",isSelected:c,isStackedOnMobile:l,ref:t},Object(he.createElement)(oc,{onSelectMedia:p,mediaUrl:d,mediaId:s}),(y[m]||be.noop)())}return Object(he.createElement)(nc,e)})));const ac=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...Object(be.omit)(e,["customBackgroundColor"]),style:t}},cc={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}};var lc=[{attributes:{...cc,customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:ac,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:m,focalPoint:d,linkClass:b,href:p,linkTarget:g,rel:h}=e,v=Object(be.isEmpty)(h)?void 0:h;let O=Object(he.createElement)("img",{src:l,alt:r,className:s&&"image"===c?"wp-image-"+s:null});p&&(O=Object(he.createElement)("a",{className:b,href:p,target:g,rel:v},O));const j={image:()=>O,video:()=>Object(he.createElement)("video",{controls:!0,src:l})},f=Object(me.getColorClassName)("background-color",t),y=Oe()({"has-media-on-the-right":"right"===a,"has-background":f||o,[f]:f,"is-stacked-on-mobile":n,["is-vertically-aligned-"+u]:u,"is-image-fill":m}),_=m?ec(l,d):{};let w;50!==i&&(w="right"===a?`auto ${i}%`:i+"% auto");const k={backgroundColor:f?void 0:o,gridTemplateColumns:w};return Object(he.createElement)("div",{className:y,style:k},Object(he.createElement)("figure",{className:"wp-block-media-text__media",style:_},(j[c]||be.noop)()),Object(he.createElement)("div",{className:"wp-block-media-text__content"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{...cc,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:ac,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:m,focalPoint:d}=e,b={image:()=>Object(he.createElement)("img",{src:l,alt:r,className:s&&"image"===c?"wp-image-"+s:null}),video:()=>Object(he.createElement)("video",{controls:!0,src:l})},p=Object(me.getColorClassName)("background-color",t),g=Oe()({"has-media-on-the-right":"right"===a,[p]:p,"is-stacked-on-mobile":n,["is-vertically-aligned-"+u]:u,"is-image-fill":m}),h=m?ec(l,d):{};let v;50!==i&&(v="right"===a?`auto ${i}%`:i+"% auto");const O={backgroundColor:p?void 0:o,gridTemplateColumns:v};return Object(he.createElement)("div",{className:g,style:O},Object(he.createElement)("figure",{className:"wp-block-media-text__media",style:h},(b[c]||be.noop)()),Object(he.createElement)("div",{className:"wp-block-media-text__content"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{...cc,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i}=e,s={image:()=>Object(he.createElement)("img",{src:l,alt:r}),video:()=>Object(he.createElement)("video",{controls:!0,src:l})},u=Object(me.getColorClassName)("background-color",t),m=Oe()({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":n});let d;50!==i&&(d="right"===a?`auto ${i}%`:i+"% auto");const b={backgroundColor:u?void 0:o,gridTemplateColumns:d};return Object(he.createElement)("div",{className:m,style:b},Object(he.createElement)("figure",{className:"wp-block-media-text__media"},(s[c]||be.noop)()),Object(he.createElement)("div",{className:"wp-block-media-text__content"},Object(he.createElement)(me.InnerBlocks.Content,null)))}}],ic=o(268),sc=o(269);const uc=[["core/paragraph",{fontSize:"large",placeholder:Object(pe._x)("Content…","content placeholder")}]],mc=e=>Math.max(15,Math.min(e,85));function dc(e,t){var o,n,r;return null==e||null===(o=e.media_details)||void 0===o||null===(n=o.sizes)||void 0===n||null===(r=n[t])||void 0===r?void 0:r.source_url}var bc=function({attributes:e,isSelected:t,setAttributes:o}){const{focalPoint:n,href:r,imageFill:a,isStackedOnMobile:c,linkClass:l,linkDestination:i,linkTarget:s,mediaAlt:u,mediaId:m,mediaPosition:d,mediaType:b,mediaUrl:p,mediaWidth:g,rel:h,verticalAlignment:v}=e,O=e.mediaSizeSlug||"full",j=Object(He.useSelect)(e=>m&&t?e(ue.store).getMedia(m):null,[t,m]),f=Object(he.useRef)(),y=e=>{const{style:t}=f.current.resizable,{x:o,y:n}=e;t.backgroundPosition=`${100*o}% ${100*n}%`},[_,w]=Object(he.useState)(null),k=function({attributes:{linkDestination:e,href:t},setAttributes:o}){return n=>{let r,a;var c,l,i,s,u;(r=n.media_type?"image"===n.media_type?"image":"video":n.type,"image"===r)&&(a=(null===(c=n.sizes)||void 0===c||null===(l=c.large)||void 0===l?void 0:l.url)||(null===(i=n.media_details)||void 0===i||null===(s=i.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));let m=t;"media"===e&&(m=n.url),"attachment"===e&&(m=n.link),o({mediaAlt:n.alt,mediaId:n.id,mediaType:r,mediaUrl:a||n.url,mediaLink:n.link||void 0,href:m,focalPoint:void 0})}}({attributes:e,setAttributes:o}),E=Oe()({"has-media-on-the-right":"right"===d,"is-selected":t,"is-stacked-on-mobile":c,["is-vertically-aligned-"+v]:v,"is-image-fill":a}),C=(_||g)+"%",x="right"===d?"1fr "+C:C+" 1fr",S={gridTemplateColumns:x,msGridColumns:x},B=Object(He.useSelect)(e=>{const t=e(me.store).getSettings();return null==t?void 0:t.imageSizes}),T=Object(be.map)(Object(be.filter)(B,({slug:e})=>dc(j,e)),({name:e,slug:t})=>({value:t,label:e})),z=Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Media & Text settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Stack on mobile"),checked:c,onChange:()=>o({isStackedOnMobile:!c})}),"image"===b&&Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Crop image to fill entire column"),checked:a,onChange:()=>o({imageFill:!a})}),a&&p&&"image"===b&&Object(he.createElement)(ke.FocalPointPicker,{label:Object(pe.__)("Focal point picker"),url:p,value:n,onChange:e=>o({focalPoint:e}),onDragStart:y,onDrag:y}),"image"===b&&Object(he.createElement)(ke.TextareaControl,{label:Object(pe.__)("Alt text (alternative text)"),value:u,onChange:e=>{o({mediaAlt:e})},help:Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(pe.__)("Describe the purpose of the image")),Object(pe.__)("Leave empty if the image is purely decorative."))}),"image"===b&&Object(he.createElement)(me.__experimentalImageSizeControl,{onChangeImage:e=>{const t=dc(j,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},slug:O,imageSizeOptions:T,isResizable:!1})),P=Object(me.useBlockProps)({className:E,style:S}),N=Object(me.__experimentalUseInnerBlocksProps)({className:"wp-block-media-text__content"},{template:uc});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,z),Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(me.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:v}),Object(he.createElement)(ke.ToolbarButton,{icon:ic.a,title:Object(pe.__)("Show media on left"),isActive:"left"===d,onClick:()=>o({mediaPosition:"left"})}),Object(he.createElement)(ke.ToolbarButton,{icon:sc.a,title:Object(pe.__)("Show media on right"),isActive:"right"===d,onClick:()=>o({mediaPosition:"right"})}),"image"===b&&Object(he.createElement)(me.__experimentalImageURLInputUI,{url:r||"",onChangeUrl:e=>{o(e)},linkDestination:i,mediaType:b,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:s,linkClass:l,rel:h})),Object(he.createElement)("div",P,Object(he.createElement)(rc,{className:"wp-block-media-text__media",onSelectMedia:k,onWidthChange:e=>{w(mc(e))},commitWidthChange:e=>{o({mediaWidth:mc(e)}),w(mc(e))},ref:f,focalPoint:n,imageFill:a,isSelected:t,isStackedOnMobile:c,mediaAlt:u,mediaId:m,mediaPosition:d,mediaType:b,mediaUrl:p,mediaWidth:g}),Object(he.createElement)("div",N)))};var pc={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:n})=>Object(de.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:n})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>Object(de.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:n})=>Object(de.createBlock)("core/image",{alt:e,id:t,url:o,anchor:n})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:o})=>Object(de.createBlock)("core/video",{id:e,src:t,anchor:o})}]};const gc={apiVersion:2,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:hc}=gc,vc={icon:Ja.a,example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(pe.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(pe.__)("— Kobayashi Issa (一茶)")}}]},transforms:pc,edit:bc,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:c,mediaId:l,verticalAlignment:i,imageFill:s,focalPoint:u,linkClass:m,href:d,linkTarget:b,rel:p}=e,g=e.mediaSizeSlug||"full",h=Object(be.isEmpty)(p)?void 0:p,v=Oe()({["wp-image-"+l]:l&&"image"===r,["size-"+g]:l&&"image"===r});let O=Object(he.createElement)("img",{src:a,alt:o,className:v||null});d&&(O=Object(he.createElement)("a",{className:m,href:d,target:b,rel:h},O));const j={image:()=>O,video:()=>Object(he.createElement)("video",{controls:!0,src:a})},f=Oe()({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,["is-vertically-aligned-"+i]:i,"is-image-fill":s}),y=s?ec(a,u):{};let _;50!==c&&(_="right"===n?`auto ${c}%`:c+"% auto");const w={gridTemplateColumns:_};return Object(he.createElement)("div",me.useBlockProps.save({className:f,style:w}),Object(he.createElement)("figure",{className:"wp-block-media-text__media",style:y},(j[r]||be.noop)()),Object(he.createElement)("div",{className:"wp-block-media-text__content"},Object(he.createElement)(me.InnerBlocks.Content,null)))},deprecated:lc};var Oc=o(270);const jc={apiVersion:2,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:fc}=jc,yc={icon:Oc.a,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:o,displayAvatar:n,displayDate:r,displayExcerpt:a}=e;return Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Latest comments settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})}),Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Number of comments"),value:o,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),Object(he.createElement)(ke.Disabled,null,Object(he.createElement)(Ko.a,{block:"core/latest-comments",attributes:e})))}};var _c=o(271);const{attributes:wc}={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var kc=[{attributes:{...wc,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Ec=o(47),Cc=o(243),xc=o(172);const Sc={per_page:-1},Bc={per_page:-1};const Tc={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:zc}=Tc,Pc={icon:_c.a,example:{},edit:function({attributes:e,setAttributes:t}){const{postsToShow:o,order:n,orderBy:r,categories:a,selectedAuthor:c,displayFeaturedImage:l,displayPostContentRadio:i,displayPostContent:s,displayPostDate:u,displayAuthor:m,postLayout:d,columns:b,excerptLength:p,featuredImageAlign:g,featuredImageSizeSlug:h,featuredImageSizeWidth:v,featuredImageSizeHeight:O,addLinkToFeaturedImage:j}=e,{imageSizeOptions:f,latestPosts:y,defaultImageWidth:_,defaultImageHeight:w}=Object(He.useSelect)(e=>{const{getEntityRecords:t,getMedia:l}=e(ue.store),{getSettings:i}=e(me.store),{imageSizes:s,imageDimensions:u}=i(),m=a&&a.length>0?a.map(e=>e.id):[],d=t("postType","post",Object(be.pickBy)({categories:m,author:c,order:n,orderby:r,per_page:o},e=>!Object(be.isUndefined)(e)));return{defaultImageWidth:Object(be.get)(u,[h,"width"],0),defaultImageHeight:Object(be.get)(u,[h,"height"],0),imageSizeOptions:s.filter(({slug:e})=>"full"!==e).map(({name:e,slug:t})=>({value:t,label:e})),latestPosts:Array.isArray(d)?d.map(e=>{if(!e.featured_media)return e;const t=l(e.featured_media);let o=Object(be.get)(t,["media_details","sizes",h,"source_url"],null);o||(o=Object(be.get)(t,"source_url",null));const n={url:o,alt:null==t?void 0:t.alt_text};return{...e,featuredImageInfo:n}}):d}},[h,o,n,r,a,c]),[k,E]=Object(he.useState)([]),[C,x]=Object(he.useState)([]),S=k.reduce((e,t)=>({...e,[t.name]:t}),{}),B=Object(he.useRef)();Object(he.useEffect)(()=>(B.current=!0,kt()({path:Object(Ie.addQueryArgs)("/wp/v2/categories",Sc)}).then(e=>{B.current&&E(e)}).catch(()=>{B.current&&E([])}),kt()({path:Object(Ie.addQueryArgs)("/wp/v2/users",Bc)}).then(e=>{B.current&&x(e)}).catch(()=>{B.current&&x([])}),()=>{B.current=!1}),[]);const T=Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Post content settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Post content"),checked:s,onChange:e=>t({displayPostContent:e})}),s&&Object(he.createElement)(ke.RadioControl,{label:Object(pe.__)("Show:"),selected:i,options:[{label:Object(pe.__)("Excerpt"),value:"excerpt"},{label:Object(pe.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})}),s&&"excerpt"===i&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Max number of words in excerpt"),value:p,onChange:e=>t({excerptLength:e}),min:10,max:100})),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Post meta settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display author name"),checked:m,onChange:e=>t({displayAuthor:e})}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display post date"),checked:u,onChange:e=>t({displayPostDate:e})})),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Featured image settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display featured image"),checked:l,onChange:e=>t({displayFeaturedImage:e})}),l&&Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.__experimentalImageSizeControl,{onChange:e=>{const o={};e.hasOwnProperty("width")&&(o.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(o.featuredImageSizeHeight=e.height),t(o)},slug:h,width:v,height:O,imageWidth:_,imageHeight:w,imageSizeOptions:f,onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),Object(he.createElement)(ke.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(he.createElement)(ke.BaseControl.VisualLabel,null,Object(pe.__)("Image alignment")),Object(he.createElement)(me.BlockAlignmentToolbar,{value:g,onChange:e=>t({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Add link to featured image"),checked:j,onChange:e=>t({addLinkToFeaturedImage:e})}))),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Sorting and filtering")},Object(he.createElement)(ke.QueryControls,{order:n,orderBy:r,numberOfItems:o,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:S,onCategoryChange:e=>{if(e.some(e=>"string"==typeof e&&!S[e]))return;const o=e.map(e=>"string"==typeof e?S[e]:e);if(Object(be.includes)(o,null))return!1;t({categories:o})},selectedCategories:a,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:C,selectedAuthorId:c}),"grid"===d&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Columns"),value:b,onChange:e=>t({columns:e}),min:2,max:P?Math.min(6,y.length):6,required:!0}))),z=Object(me.useBlockProps)({className:Oe()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":u,"has-author":m,["columns-"+b]:"grid"===d})}),P=Array.isArray(y)&&y.length;if(!P)return Object(he.createElement)("div",z,T,Object(he.createElement)(ke.Placeholder,{icon:qn.a,label:Object(pe.__)("Latest Posts")},Array.isArray(y)?Object(pe.__)("No posts found."):Object(he.createElement)(ke.Spinner,null)));const N=y.length>o?y.slice(0,o):y,M=[{icon:Cc.a,title:Object(pe.__)("List view"),onClick:()=>t({postLayout:"list"}),isActive:"list"===d},{icon:xc.a,title:Object(pe.__)("Grid view"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===d}],V=Object(Ec.__experimentalGetSettings)().formats.date;return Object(he.createElement)("div",null,T,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,{controls:M})),Object(he.createElement)("ul",z,N.map((e,t)=>{const o=Object(be.invoke)(e,["title","rendered","trim"]);let n=e.excerpt.rendered;const r=C.find(t=>t.id===e.author),a=document.createElement("div");a.innerHTML=n,n=a.textContent||a.innerText||"";const{featuredImageInfo:{url:c,alt:d}={}}=e,b=Oe()({"wp-block-latest-posts__featured-image":!0,["align"+g]:!!g}),h=l&&c,f=h&&Object(he.createElement)("img",{src:c,alt:d,style:{maxWidth:v,maxHeight:O}}),y=p<n.trim().split(" ").length&&""===e.excerpt.raw?Object(he.createElement)(he.Fragment,null,n.trim().split(" ",p).join(" "),Object(pe.__)(" … "),Object(he.createElement)("a",{href:e.link,rel:"noopener noreferrer"},Object(pe.__)("Read more"))):n;return Object(he.createElement)("li",{key:t},h&&Object(he.createElement)("div",{className:b},j?Object(he.createElement)("a",{href:e.link,rel:"noreferrer noopener"},f):f),Object(he.createElement)("a",{href:e.link,rel:"noreferrer noopener"},o?Object(he.createElement)(he.RawHTML,null,o):Object(pe.__)("(no title)")),m&&r&&Object(he.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(pe.sprintf)(Object(pe.__)("by %s"),r.name)),u&&e.date_gmt&&Object(he.createElement)("time",{dateTime:Object(Ec.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Ec.dateI18n)(V,e.date_gmt)),s&&"excerpt"===i&&Object(he.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},y),s&&"full_post"===i&&Object(he.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(he.createElement)(he.RawHTML,{key:"html"},e.content.raw.trim())))})))},deprecated:kc};var Nc=o(308);const Mc={apiVersion:2,name:"core/loginout",title:"Login/out",category:"design",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,fontSize:!1}},{name:Vc}=Mc,Rc={icon:Nc.a,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:o,redirectToCurrent:n}=e;return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Login/out settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Redirect to current URL"),checked:n,onChange:()=>t({redirectToCurrent:!n})}))),Object(he.createElement)("div",Object(me.useBlockProps)({className:"logged-in"}),Object(he.createElement)("a",{href:"#login-pseudo-link"},Object(pe.__)("Log out"))))}};var Hc=o(244),Ac=o(245),Ic=o(246),Lc=o(247),Dc=o(248),Fc=o(249),Gc=o(250),Uc=o(251);var qc=({setAttributes:e,reversed:t,start:o})=>Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Ordered list settings")},Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));function Wc({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(e=>{t[e].children={li:{children:t}}}),t}var $c={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>Object(de.createBlock)("core/list",{values:Object(fo.toHTMLString)({value:Object(fo.join)(e.map(({content:t})=>{const o=Object(fo.create)({html:t});return e.length>1?o:Object(fo.replace)(o,/\n/g,fo.__UNSTABLE_LINE_SEPARATOR)}),fo.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:({value:e,anchor:t})=>Object(de.createBlock)("core/list",{values:Object(fo.toHTMLString)({value:Object(fo.create)({html:e,multilineTag:"p"}),multilineTag:"li"}),anchor:t})},{type:"raw",selector:"ol,ul",schema:e=>({ol:Wc(e).ol,ul:Wc(e).ul}),transform(e){const t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){const o=e.getAttribute("type");o&&(t.type=o),null!==e.getAttribute("reversed")&&(t.reversed=!0);const n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(de.createBlock)("core/list",{...Object(de.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(de.createBlock)("core/list",{values:`<li>${e}</li>`})})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(de.createBlock)("core/list",{ordered:!0,values:`<li>${e}</li>`})}))],to:[{type:"block",blocks:["core/paragraph"],transform:({values:e})=>Object(fo.split)(Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),fo.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(de.createBlock)("core/paragraph",{content:Object(fo.toHTMLString)({value:e})}))},{type:"block",blocks:["core/heading"],transform:({values:e})=>Object(fo.split)(Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),fo.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(de.createBlock)("core/heading",{content:Object(fo.toHTMLString)({value:e})}))},{type:"block",blocks:["core/quote"],transform:({values:e,anchor:t})=>Object(de.createBlock)("core/quote",{value:Object(fo.toHTMLString)({value:Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({values:e,anchor:t})=>Object(de.createBlock)("core/pullquote",{value:Object(fo.toHTMLString)({value:Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})}]};const Zc={apiVersion:2,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,fontSize:!0,color:{gradients:!0},__unstablePasteTextInline:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:Qc}=Zc,Yc={icon:Cc.a,example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:$c,merge(e,t){const{values:o}=t;return o&&"<li></li>"!==o?{...e,values:e.values+o}:e},edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,isSelected:r}){const{ordered:a,values:c,type:l,reversed:i,start:s,placeholder:u}=e,m=a?"ol":"ul",d=Object(me.useBlockProps)();return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.RichText,Object(we.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:m,tagName:m,onChange:e=>t({values:e}),value:c,"aria-label":Object(pe.__)("List text"),placeholder:u||Object(pe.__)("List"),onMerge:o,onSplit:t=>Object(de.createBlock)(Qc,{...e,values:t}),__unstableOnSplitMiddle:()=>Object(de.createBlock)("core/paragraph"),onReplace:n,onRemove:()=>n([]),start:s,reversed:i,type:l},d),({value:e,onChange:o,onFocus:n})=>Object(he.createElement)(he.Fragment,null,r&&Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{o(Object(fo.__unstableOutdentListItems)(e))}}),Object(he.createElement)(me.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{o(Object(fo.__unstableIndentListItems)(e,{type:m}))}}),Object(he.createElement)(me.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{o(Object(fo.__unstableIndentListItems)(e,{type:m}))}}),Object(he.createElement)(me.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{o(Object(fo.__unstableOutdentListItems)(e))}})),Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(ke.ToolbarButton,{icon:Object(pe.isRTL)()?Hc.a:Ac.a,title:Object(pe.__)("Unordered"),describedBy:Object(pe.__)("Convert to unordered list"),isActive:Object(fo.__unstableIsActiveListType)(e,"ul",m),onClick:()=>{o(Object(fo.__unstableChangeListType)(e,{type:"ul"})),n(),Object(fo.__unstableIsListRootSelected)(e)&&t({ordered:!1})}}),Object(he.createElement)(ke.ToolbarButton,{icon:Object(pe.isRTL)()?Ic.a:Lc.a,title:Object(pe.__)("Ordered"),describedBy:Object(pe.__)("Convert to ordered list"),isActive:Object(fo.__unstableIsActiveListType)(e,"ol",m),onClick:()=>{o(Object(fo.__unstableChangeListType)(e,{type:"ol"})),n(),Object(fo.__unstableIsListRootSelected)(e)&&t({ordered:!0})}}),Object(he.createElement)(ke.ToolbarButton,{icon:Object(pe.isRTL)()?Dc.a:Fc.a,title:Object(pe.__)("Outdent"),describedBy:Object(pe.__)("Outdent list item"),shortcut:Object(pe._x)("Backspace","keyboard key"),isDisabled:!Object(fo.__unstableCanOutdentListItems)(e),onClick:()=>{o(Object(fo.__unstableOutdentListItems)(e)),n()}}),Object(he.createElement)(ke.ToolbarButton,{icon:Object(pe.isRTL)()?Gc.a:Uc.a,title:Object(pe.__)("Indent"),describedBy:Object(pe.__)("Indent list item"),shortcut:Object(pe._x)("Space","keyboard key"),isDisabled:!Object(fo.__unstableCanIndentListItems)(e),onClick:()=>{o(Object(fo.__unstableIndentListItems)(e,{type:m})),n()}})))),a&&Object(he.createElement)(qc,{setAttributes:t,ordered:a,reversed:i,start:s,placeholder:u}))},save:function({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,c=t?"ol":"ul";return Object(he.createElement)(c,me.useBlockProps.save({type:n,reversed:r,start:a}),Object(he.createElement)(me.RichText.Content,{value:o,multiline:"li"}))}};var Jc=Object(He.withDispatch)((e,{clientId:t,attributes:o})=>{const{replaceBlock:n}=e(me.store);return{convertToHTML(){n(t,Object(de.createBlock)("core/html",{content:o.originalUndelimitedContent}))}}})((function({attributes:e,convertToHTML:t}){const{originalName:o,originalUndelimitedContent:n}=e,r=!!n,a=Object(de.getBlockType)("core/html"),c=[];let l;return r&&a?(l=Object(pe.sprintf)(Object(pe.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),c.push(Object(he.createElement)(ke.Button,{key:"convert",onClick:t,isPrimary:!0},Object(pe.__)("Keep as HTML")))):l=Object(pe.sprintf)(Object(pe.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(he.createElement)("div",Object(me.useBlockProps)({className:"has-warning"}),Object(he.createElement)(me.Warning,{actions:c},l),Object(he.createElement)(he.RawHTML,null,n))}));const Kc={apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:Xc}=Kc,el={name:Xc,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,o=t?Object(de.getBlockType)(t):void 0;return o?o.settings.title||t:""}},edit:Jc,save:function({attributes:e}){return Object(he.createElement)(he.RawHTML,null,e.originalContent)}};var tl=o(272);const ol=Object(pe.__)("Read more");var nl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:o}=e.dataset,n={};return t&&(n.customText=t),""===o&&(n.noTeaser=!0),Object(de.createBlock)("core/more",n)}}]};const rl={apiVersion:2,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:al}=rl,cl={icon:tl.a,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:nl,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:n}){const r={width:(e||ol).length+1.2+"em"};return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,null,Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>n({noTeaser:!t}),help:e=>e?Object(pe.__)("The excerpt is hidden."):Object(pe.__)("The excerpt is visible.")}))),Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)("div",{className:"wp-block-more"},Object(he.createElement)("input",{"aria-label":Object(pe.__)("Read more link text"),type:"text",value:e,placeholder:ol,onChange:e=>{n({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===ro.ENTER&&o([Object(de.createBlock)(Object(de.getDefaultBlockName)())])},style:r}))))},save:function({attributes:{customText:e,noTeaser:t}}){const o=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",n=t?"\x3c!--noteaser--\x3e":"";return Object(he.createElement)(he.RawHTML,null,Object(be.compact)([o,n]).join("\n"))}};var ll=o(273);var il={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>Object(de.createBlock)("core/nextpage",{})}]};const sl={apiVersion:2,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:ul}=sl,ml={icon:ll.a,example:{},transforms:il,edit:function(){return Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)("div",{className:"wp-block-nextpage"},Object(he.createElement)("span",null,Object(pe.__)("Page break"))))},save:function(){return Object(he.createElement)(he.RawHTML,null,"\x3c!--nextpage--\x3e")}};var dl=o(274);const bl=["id","title","link","type","parent"],pl=({pages:e,clientId:t,replaceBlock:o,createBlock:n})=>()=>{if(!e)return;const r={},a=[];e.forEach(({id:e,title:t,link:o,type:c,parent:l})=>{var i,s;const u=null!==(i=null===(s=r[e])||void 0===s?void 0:s.innerBlocks)&&void 0!==i?i:[];if(r[e]=n("core/navigation-link",{id:e,label:t.rendered,url:o,type:c,kind:"post-type"},u),l){r[l]||(r[l]={innerBlocks:[]});r[l].innerBlocks.push(r[e])}else a.push(r[e])}),o(t,a)};function gl({onClose:e,clientId:t}){const{pages:o,pagesFinished:n}=Object(He.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(ue.store),n=["postType","page",{per_page:100,_fields:bl,orderby:"menu_order",order:"asc"}];return{pages:t(...n),pagesFinished:o("getEntityRecords",n)}},[t]),{replaceBlock:r}=Object(He.useDispatch)(me.store);return Object(he.createElement)(ke.Modal,{closeLabel:Object(pe.__)("Close"),onRequestClose:e,title:Object(pe.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},Object(he.createElement)("p",{id:"wp-block-page-list-modal__description"},Object(pe.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),Object(he.createElement)("p",null,Object(pe.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),Object(he.createElement)("div",{className:"wp-block-page-list-modal-buttons"},Object(he.createElement)(ke.Button,{isTertiary:!0,onClick:e},Object(pe.__)("Cancel")),Object(he.createElement)(ke.Button,{isPrimary:!0,disabled:!n,onClick:pl({pages:o,replaceBlock:r,clientId:t,createBlock:de.createBlock})},Object(pe.__)("Convert"))))}const hl={apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:vl}=hl,Ol={icon:dl.a,example:{},edit:function({context:e,clientId:t}){const{textColor:o,backgroundColor:n,showSubmenuIcon:r,style:a}=e||{},[c,l]=Object(he.useState)(!1),i=Object(me.useBlockProps)({className:Oe()({"has-text-color":!!o,[`has-${o}-color`]:!!o,"has-background":!!n,[`has-${n}-background-color`]:!!n,"show-submenu-icons":!!r}),style:{...null==a?void 0:a.color}}),s=Object(He.useSelect)(e=>{const{getBlockParentsByBlockName:o}=e(me.store);return o(t,"core/navigation").length>0},[t]);Object(he.useEffect)(()=>{s?kt()({path:Object(Ie.addQueryArgs)("/wp/v2/pages",{per_page:1,_fields:["id"]}),parse:!1}).then(e=>{l(e.headers.get("X-WP-Total")<=100)}):l(!1)},[s]);const[u,m]=Object(he.useState)(!1);return Object(he.createElement)(he.Fragment,null,c&&Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(ke.ToolbarButton,{title:Object(pe.__)("Edit"),onClick:()=>m(!0)},Object(pe.__)("Edit"))),c&&u&&Object(he.createElement)(gl,{onClose:()=>m(!1),clientId:t}),Object(he.createElement)("div",i,Object(he.createElement)(Ko.a,{block:"core/page-list"})))}};var jl=o(275);var fl={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>Object(de.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>Object(de.createBlock)("core/code",e)}]};const yl={apiVersion:2,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0},fontSize:!0},style:"wp-block-preformatted"},{name:_l}=yl,wl={icon:jl.a,example:{attributes:{content:Object(pe.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:fl,edit:function({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:n}){const{content:r}=e,a=Object(me.useBlockProps)();return Object(he.createElement)(me.RichText,Object(we.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:r,onChange:e=>{o({content:e})},onRemove:n,"aria-label":Object(pe.__)("Preformatted text"),placeholder:Object(pe.__)("Write preformatted text…"),onMerge:t},a,{__unstablePastePlainText:!0}))},save:function({attributes:e}){const{content:t}=e;return Object(he.createElement)("pre",me.useBlockProps.save(),Object(he.createElement)(me.RichText.Content,{value:t}))},merge:(e,t)=>({content:e.content+t.content})};var kl=o(276);const El={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Cl(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}var xl=[{attributes:{...El,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:c,className:l,figureStyle:i}=e;let s,u;if(Object(be.includes)(l,"is-style-solid-color")){const e=Object(me.getColorClassName)("background-color",t);s=Oe()({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else if(o)u={borderColor:o};else if(t){u={borderColor:Cl(i)}}const m=Object(me.getColorClassName)("color",n),d=(n||r)&&Oe()("has-text-color",{[m]:m}),b=m?void 0:{color:r};return Object(he.createElement)("figure",{className:s,style:u},Object(he.createElement)("blockquote",{className:d,style:b},Object(he.createElement)(me.RichText.Content,{value:a,multiline:!0}),!me.RichText.isEmpty(c)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:c})))},migrate({className:e,figureStyle:t,mainColor:o,...n}){if(!Object(be.includes)(e,"is-style-solid-color")&&o&&t){const o=Cl(t);if(o)return{...n,className:e,customMainColor:o}}return{className:e,mainColor:o,...n}}},{attributes:El,save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:c,className:l}=e;let i,s;if(Object(be.includes)(l,"is-style-solid-color"))i=Object(me.getColorClassName)("background-color",t),i||(s={backgroundColor:o});else if(o)s={borderColor:o};else if(t){const e=Object(be.get)(Object(He.select)(me.store).getSettings(),["colors"],[]);s={borderColor:Object(me.getColorObjectByAttributeValues)(e,t).color}}const u=Object(me.getColorClassName)("color",n),m=n||r?Oe()("has-text-color",{[u]:u}):void 0,d=u?void 0:{color:r};return Object(he.createElement)("figure",{className:i,style:s},Object(he.createElement)("blockquote",{className:m,style:d},Object(he.createElement)(me.RichText.Content,{value:a,multiline:!0}),!me.RichText.isEmpty(c)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:c})))}},{attributes:{...El},save({attributes:e}){const{value:t,citation:o}=e;return Object(he.createElement)("blockquote",null,Object(he.createElement)(me.RichText.Content,{value:t,multiline:!0}),!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...El,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:o,align:n}=e;return Object(he.createElement)("blockquote",{className:"align"+n},Object(he.createElement)(me.RichText.Content,{value:t,multiline:!0}),!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"footer",value:o}))}}];var Sl=Object(me.withColors)({mainColor:"background-color",textColor:"color"})((function({colorUtils:e,textColor:t,attributes:{value:o,citation:n},setAttributes:r,setTextColor:a,setMainColor:c,mainColor:l,isSelected:i,insertBlocksAfter:s}){const u=Object(he.useRef)(!1),m=Object(me.useBlockProps)(),{style:d={},className:b}=m,p=Object(be.includes)(b,"is-style-solid-color"),g={...m,className:Oe()(b,{"has-background":p&&l.color,[l.class]:p&&l.class}),style:p?{...d,backgroundColor:l.color}:{...d,borderColor:l.color}};return Object(he.useEffect)(()=>{l&&!p&&r({mainColor:void 0,customMainColor:l.color})},[p,l]),Object(he.createElement)(he.Fragment,null,Object(he.createElement)("figure",g,Object(he.createElement)("blockquote",{style:{color:t.color},className:t.color&&Oe()("has-text-color",{[t.class]:t.class})},Object(he.createElement)(me.RichText,{identifier:"value",multiline:!0,value:o,onChange:e=>r({value:e}),"aria-label":Object(pe.__)("Pullquote text"),placeholder:Object(pe.__)("Add quote"),textAlign:"center"}),(!me.RichText.isEmpty(n)||i)&&Object(he.createElement)(me.RichText,{identifier:"citation",value:n,"aria-label":Object(pe.__)("Pullquote citation text"),placeholder:Object(pe.__)("Add citation"),onChange:e=>r({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>s(Object(de.createBlock)("core/paragraph"))}))),"web"===he.Platform.OS&&Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(me.PanelColorSettings,{title:Object(pe.__)("Color"),colorSettings:[{value:l.color,onChange:function(o){const n=!t.color||u.current,l=p&&n;p?c(o):r({customMainColor:o}),l&&(o?(u.current=!0,a(e.getMostReadableColor(o))):u.current&&(u.current=!1,a()))},label:Object(pe.__)("Main color")},{value:t.color,onChange:function(e){a(e),u.current=!1},label:Object(pe.__)("Text color")}]},p&&Object(he.createElement)(me.ContrastChecker,{textColor:t.color,backgroundColor:l.color,isLargeText:!1}))))}));var Bl={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/pullquote",{value:Object(fo.toHTMLString)({value:Object(fo.join)(e.map(({content:e})=>Object(fo.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(de.createBlock)("core/pullquote",{value:`<p>${e}</p>`,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&"<p></p>"!==e&&o.push(...Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(de.createBlock)("core/paragraph",{content:Object(fo.toHTMLString)({value:e})}))),t&&"<p></p>"!==t&&o.push(Object(de.createBlock)("core/paragraph",{content:t})),0===o.length?Object(de.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...o})=>{if("<p></p>"===e)return Object(de.createBlock)("core/heading",{content:t});const n=Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(de.createBlock)("core/heading",{content:Object(fo.toHTMLString)({value:n[0]})});if(!t&&1===n.length)return r;const a=n.slice(1);return[r,Object(de.createBlock)("core/pullquote",{...o,citation:t,value:Object(fo.toHTMLString)({value:a.length?Object(fo.join)(n.slice(1),"\u2028"):Object(fo.create)(),multilineTag:"p"})})]}}]};const Tl={apiVersion:2,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"solid-color",label:"Solid color"}],editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:zl}=Tl,Pl={icon:kl.a,example:{attributes:{value:"<p>"+Object(pe.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(pe.__)("Matt Mullenweg")}},transforms:Bl,edit:Sl,save:function({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:c,className:l}=e;let i,s;if(Object(be.includes)(l,"is-style-solid-color")){const e=Object(me.getColorClassName)("background-color",t);i=Oe()({"has-background":e||o,[e]:e}),s={backgroundColor:e?void 0:o}}else o&&(s={borderColor:o});const u=Object(me.getColorClassName)("color",n),m=(n||r)&&Oe()("has-text-color",{[u]:u}),d=u?void 0:{color:r};return Object(he.createElement)("figure",me.useBlockProps.save({className:i,style:s}),Object(he.createElement)("blockquote",{className:m,style:d},Object(he.createElement)(me.RichText.Content,{value:a,multiline:!0}),!me.RichText.isEmpty(c)&&Object(he.createElement)(me.RichText.Content,{tagName:"cite",value:c})))},deprecated:xl};var Nl=o(151),Ml=o(279);const Vl={apiVersion:2,name:"core/block",title:"Reusable block",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:Rl}=Vl,Hl={edit:function({attributes:{ref:e},clientId:t}){const[o,n]=Object(me.__experimentalUseNoRecursiveRenders)(e),{isMissing:r,hasResolved:a}=Object(He.useSelect)(t=>{const o=t(ue.store).getEntityRecord("postType","wp_block",e),n=t(ue.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",e]);return{hasResolved:n,isMissing:n&&!o}},[e,t]),{__experimentalConvertBlockToStatic:c}=Object(He.useDispatch)(Nl.store),[l,i,s]=Object(ue.useEntityBlockEditor)("postType","wp_block",{id:e}),[u,m]=Object(ue.useEntityProp)("postType","wp_block","title",e),d=Object(me.__experimentalUseInnerBlocksProps)({},{value:l,onInput:i,onChange:s,renderAppender:null!=l&&l.length?void 0:me.InnerBlocks.ButtonBlockAppender}),b=Object(me.useBlockProps)();return o?Object(he.createElement)("div",b,Object(he.createElement)(me.Warning,null,Object(pe.__)("Block cannot be rendered inside itself."))):r?Object(he.createElement)("div",b,Object(he.createElement)(me.Warning,null,Object(pe.__)("Block has been deleted or is unavailable."))):a?Object(he.createElement)(n,null,Object(he.createElement)("div",b,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.ToolbarButton,{onClick:()=>c(t),label:Object(pe.__)("Convert to regular blocks"),icon:Ml.a,showTooltip:!0}))),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,null,Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Name"),value:u,onChange:m}))),Object(he.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(he.createElement)("div",d)))):Object(he.createElement)("div",b,Object(he.createElement)(ke.Placeholder,null,Object(he.createElement)(ke.Spinner,null)))}};var Al=o(277);const Il={apiVersion:2,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Ll}=Il,Dl={icon:Al.a,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[o,n]=Object(he.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:c,displayDate:l,displayExcerpt:i,excerptLength:s,feedURL:u,itemsToShow:m}=e;function d(o){return()=>{const n=e[o];t({[o]:!n})}}const b=Object(me.useBlockProps)();if(o)return Object(he.createElement)("div",b,Object(he.createElement)(ke.Placeholder,{icon:Al.a,label:"RSS"},Object(he.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&n(!1)},className:"wp-block-rss__placeholder-form"},Object(he.createElement)(ke.TextControl,{placeholder:Object(pe.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),Object(he.createElement)(ke.Button,{isPrimary:!0,type:"submit"},Object(pe.__)("Use URL")))));const p=[{icon:Mo.a,title:Object(pe.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Cc.a,title:Object(pe.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:xc.a,title:Object(pe.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}];return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,{controls:p})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("RSS settings")},Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Number of items"),value:m,onChange:e=>t({itemsToShow:e}),min:1,max:10,required:!0}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display author"),checked:c,onChange:d("displayAuthor")}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display date"),checked:l,onChange:d("displayDate")}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Display excerpt"),checked:i,onChange:d("displayExcerpt")}),i&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Max number of words in excerpt"),value:s,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===r&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),Object(he.createElement)("div",b,Object(he.createElement)(ke.Disabled,null,Object(he.createElement)(Ko.a,{block:"core/rss",attributes:e}))))}},Fl=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Gl=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(he.createElement)(ke.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ul=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(he.createElement)(ke.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),ql=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Wl=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(he.createElement)(ke.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),$l=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(he.createElement)(ke.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Zl="web"===he.Platform.OS,Ql=[{value:"%",label:Zl?"%":Object(pe.__)("Percentage (%)"),default:50},{value:"px",label:Zl?"px":Object(pe.__)("Pixels (px)"),default:350}];var Yl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(pe.__)("Search"),label:Object(pe.__)("Search")}}];const Jl={apiVersion:2,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Kl}=Jl,Xl={icon:zt.a,example:{},variations:Yl,edit:function({className:e,attributes:t,setAttributes:o,toggleSelection:n,isSelected:r}){var a;const{label:c,showLabel:l,placeholder:i,width:s,widthUnit:u,align:m,buttonText:d,buttonPosition:b,buttonUseIcon:p,style:g}=t,h=null==g||null===(a=g.border)||void 0===a?void 0:a.radius,v="wp-block-search__width-"+Object(Ae.useInstanceId)(me.__experimentalUnitControl),O=()=>Object(he.createElement)("input",{className:"wp-block-search__input",style:{borderRadius:h},"aria-label":Object(pe.__)("Optional placeholder text"),placeholder:i?void 0:Object(pe.__)("Optional placeholder…"),value:i,onChange:e=>o({placeholder:e.target.value})}),j=()=>Object(he.createElement)(he.Fragment,null,p&&Object(he.createElement)(ke.Button,{icon:zt.a,className:"wp-block-search__button",style:{borderRadius:h}}),!p&&Object(he.createElement)(me.RichText,{className:"wp-block-search__button",style:{borderRadius:h},"aria-label":Object(pe.__)("Button text"),placeholder:Object(pe.__)("Add button text…"),withoutInteractiveFormatting:!0,value:d,onChange:e=>o({buttonText:e})})),f=Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.ToolbarButton,{title:Object(pe.__)("Toggle search label"),icon:$l,onClick:()=>{o({showLabel:!l})},className:l?"is-pressed":void 0}),Object(he.createElement)(ke.DropdownMenu,{icon:(()=>{switch(b){case"button-inside":return Ul;case"button-outside":return Gl;case"no-button":return ql;case"button-only":return Fl}})(),label:Object(pe.__)("Change button position")},({onClose:e})=>Object(he.createElement)(ke.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(he.createElement)(ke.MenuItem,{icon:ql,onClick:()=>{o({buttonPosition:"no-button"}),e()}},Object(pe.__)("No Button")),Object(he.createElement)(ke.MenuItem,{icon:Gl,onClick:()=>{o({buttonPosition:"button-outside"}),e()}},Object(pe.__)("Button Outside")),Object(he.createElement)(ke.MenuItem,{icon:Ul,onClick:()=>{o({buttonPosition:"button-inside"}),e()}},Object(pe.__)("Button Inside")))),"no-button"!==b&&Object(he.createElement)(ke.ToolbarButton,{title:Object(pe.__)("Use button with icon"),icon:Wl,onClick:()=>{o({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Display Settings")},Object(he.createElement)(ke.BaseControl,{label:Object(pe.__)("Width"),id:v},Object(he.createElement)(me.__experimentalUnitControl,{id:v,min:"220px",onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;o({width:parseInt(t,10)})},onUnitChange:e=>{o({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${s}${u}`,unit:u,units:Ql}),Object(he.createElement)(ke.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(pe.__)("Percentage Width")},[25,50,75,100].map(e=>Object(he.createElement)(ke.Button,{key:e,isSmall:!0,isPrimary:e+"%"==`${s}${u}`,onClick:()=>o({width:e,widthUnit:"%"})},e,"%"))))))),y=Object(me.useBlockProps)({className:Oe()(e,"button-inside"===b?"wp-block-search__button-inside":void 0,"button-outside"===b?"wp-block-search__button-outside":void 0,"no-button"===b?"wp-block-search__no-button":void 0,"button-only"===b?"wp-block-search__button-only":void 0,p||"no-button"===b?void 0:"wp-block-search__text-button",p&&"no-button"!==b?"wp-block-search__icon-button":void 0)});return Object(he.createElement)("div",y,f,l&&Object(he.createElement)(me.RichText,{className:"wp-block-search__label","aria-label":Object(pe.__)("Label text"),placeholder:Object(pe.__)("Add label…"),withoutInteractiveFormatting:!0,value:c,onChange:e=>o({label:e})}),Object(he.createElement)(ke.ResizableBox,{size:{width:`${s}${u}`},className:"wp-block-search__inside-wrapper",style:(()=>{var e;if("button-inside"===b&&null!=g&&null!==(e=g.border)&&void 0!==e&&e.radius){var t;return{borderRadius:parseInt(null==g||null===(t=g.border)||void 0===t?void 0:t.radius,10)+4+"px"}}})(),minWidth:220,enable:"button-only"===b?{}:{right:"right"!==m,left:"right"===m},onResizeStart:(e,t,r)=>{o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),n(!1)},onResizeStop:(e,t,r,a)=>{o({width:parseInt(s+a.width,10)}),n(!0)},showHandle:r},("button-inside"===b||"button-outside"===b)&&Object(he.createElement)(he.Fragment,null,O(),j()),"button-only"===b&&j(),"no-button"===b&&O()))}};var ei=o(264);const ti=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(be.omit)(e,["customTextColor","customBackgroundColor"]),style:t}};var oi=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return Object(he.createElement)(t,me.useBlockProps.save(),Object(he.createElement)("div",{className:"wp-block-group__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:ti,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=Object(me.getColorClassName)("background-color",t),c=Object(me.getColorClassName)("color",n),l=Oe()(a,c,{"has-text-color":n||r,"has-background":t||o}),i={backgroundColor:a?void 0:o,color:c?void 0:r};return Object(he.createElement)("div",{className:l,style:i},Object(he.createElement)("div",{className:"wp-block-group__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:ti,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=Object(me.getColorClassName)("background-color",t),c=Object(me.getColorClassName)("color",n),l=Oe()(a,{"has-text-color":n||r,"has-background":t||o}),i={backgroundColor:a?void 0:o,color:c?void 0:r};return Object(he.createElement)("div",{className:l,style:i},Object(he.createElement)("div",{className:"wp-block-group__inner-container"},Object(he.createElement)(me.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:ti,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o}=e,n=Object(me.getColorClassName)("background-color",t),r=Oe()(n,{"has-background":t||o}),a={backgroundColor:n?void 0:o};return Object(he.createElement)("div",{className:r,style:a},Object(he.createElement)(me.InnerBlocks.Content,null))}}];var ni=function({attributes:e,setAttributes:t,clientId:o}){const{hasInnerBlocks:n,themeSupportsLayout:r}=Object(He.useSelect)(e=>{var t;const{getBlock:n,getSettings:r}=e(me.store),a=n(o);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=r())||void 0===t?void 0:t.supportsLayout}},[o]),a=Object(me.__experimentalUseEditorFeature)("layout")||{},{tagName:c="div",templateLock:l,layout:i={}}=e,s=i&&i.inherit?a:i,{contentSize:u,wideSize:m}=s,d=u||m?["wide","full"]:["left","center","right"],b=Object(me.useBlockProps)(),p=Object(me.__experimentalUseInnerBlocksProps)(r?b:{className:"wp-block-group__inner-container"},{templateLock:l,renderAppender:n?void 0:me.InnerBlocks.ButtonBlockAppender,__experimentalLayout:{type:"default",alignments:r?d:void 0}});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorAdvancedControls,null,Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("HTML element"),options:[{label:Object(pe.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:c,onChange:e=>t({tagName:e})})),r&&Object(he.createElement)(c,p),!r&&Object(he.createElement)(c,b,Object(he.createElement)("div",p)))};const ri={apiVersion:2,name:"core/group",title:"Group",category:"design",description:"Combine blocks into a group.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:ai}=ri,ci={icon:ei.a,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(pe.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(pe.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(pe.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(pe.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(pe.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(pe.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){if(1===e.length&&"core/group"===e[0].name)return;const t=["wide","full"],o=e.reduce((e,o)=>{const{align:n}=o.attributes;return t.indexOf(n)>t.indexOf(e)?n:e},void 0),n=e.map(e=>Object(de.createBlock)(e.name,e.attributes,e.innerBlocks));return Object(de.createBlock)("core/group",{align:o},n)}}]},edit:ni,save:function({attributes:e}){const{tagName:t}=e;return Object(he.createElement)(t,me.useBlockProps.save(),Object(he.createElement)(me.InnerBlocks.Content,null))},deprecated:oi};var li=o(278);var ii=({color:e,setColor:t})=>Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(me.PanelColorSettings,{title:Object(pe.__)("Color"),colorSettings:[{value:e.color,onChange:t,label:Object(pe.__)("Color")}]}));var si=Object(me.withColors)("color",{textColor:"color"})((function({color:e,setColor:t,className:o}){return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.HorizontalRule,Object(me.useBlockProps)({className:Oe()(o,{"has-background":e.color,[e.class]:e.class}),style:{backgroundColor:e.color,color:e.color}})),Object(he.createElement)(ii,{color:e,setColor:t}))}));var ui={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>Object(de.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const mi={apiVersion:2,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:di}=mi,bi={icon:li.a,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:ui,edit:si,save:function({attributes:e}){const{color:t,customColor:o}=e,n=Object(me.getColorClassName)("background-color",t),r=Object(me.getColorClassName)("color",t),a=Oe()({"has-text-color has-background":t||o,[n]:n,[r]:r}),c={backgroundColor:n?void 0:o,color:r?void 0:o};return Object(he.createElement)("hr",me.useBlockProps.save({className:a,style:c}))}};var pi=o(253),gi=o(97);var hi=o(108);var vi={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>Object(hi.removep)(Object(hi.autop)(t))}},priority:20}]};const Oi={apiVersion:2,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:ji}=Oi,fi={icon:pi.a,transforms:vi,edit:function e({attributes:t,setAttributes:o}){const n="blocks-shortcode-input-"+Object(Ae.useInstanceId)(e);return Object(he.createElement)("div",Object(me.useBlockProps)({className:"components-placeholder"}),Object(he.createElement)("label",{htmlFor:n,className:"components-placeholder__label"},Object(he.createElement)(gi.a,{icon:pi.a}),Object(pe.__)("Shortcode")),Object(he.createElement)(me.PlainText,{className:"blocks-shortcode__textarea",id:n,value:t.text,"aria-label":Object(pe.__)("Shortcode text"),placeholder:Object(pe.__)("Write shortcode here…"),onChange:e=>o({text:e})}))},save:function({attributes:e}){return Object(he.createElement)(he.RawHTML,null,e.text)}};var yi=o(281);var _i=Object(Ae.compose)([Object(He.withDispatch)(e=>{const{toggleSelection:t}=e(me.store);return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}),Ae.withInstanceId])(({attributes:e,isSelected:t,setAttributes:o,onResizeStart:n,onResizeStop:r,context:a})=>{const{orientation:c}=a,[l,i]=Object(he.useState)(!1),{height:s,width:u}=e,m=e=>{o({height:e})},d=e=>{o({width:e})},b=(...e)=>{n(...e),i(!0)},p=(e,t,o,n)=>{r();const a=Math.min(parseInt(s+n.height,10),500);m(a),i(!1)},g=(e,t,o,n)=>{r();const a=Math.min(parseInt(u+n.width,10),500);d(a),i(!1)};return Object(he.useEffect)(()=>{"horizontal"!==c||u||(d(72),m(0))},[]),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(To.View,Object(me.useBlockProps)(),"horizontal"===c?Object(he.createElement)(ke.ResizableBox,{className:Oe()("block-library-spacer__resize-container","resize-horizontal",{"is-selected":t}),size:{width:u,height:24},minWidth:1,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:b,onResizeStop:g,showHandle:t,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"x",position:"corner",isVisible:l}}):Object(he.createElement)(ke.ResizableBox,{className:Oe()("block-library-spacer__resize-container",{"is-selected":t}),size:{height:s},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:b,onResizeStop:p,showHandle:t,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Spacer settings")},"horizontal"===c&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Width in pixels"),min:1,max:Math.max(500,u),value:u,onChange:d}),"horizontal"!==c&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Height in pixels"),min:1,max:Math.max(500,s),value:s,onChange:m}))))});const wi={apiVersion:2,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"number",default:100},width:{type:"number"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:ki}=wi,Ei={icon:yi.a,edit:_i,save:function({attributes:e}){return Object(he.createElement)("div",me.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0}))}};var Ci=o(282);const xi={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"};var Si=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a,caption:c}=e;if(!o.length&&!n.length&&!r.length)return null;const l=Object(me.getColorClassName)("background-color",a),i=Oe()(l,{"has-fixed-layout":t,"has-background":!!l}),s=!me.RichText.isEmpty(c),u=({type:e,rows:t})=>{if(!t.length)return null;const o="t"+e;return Object(he.createElement)(o,null,t.map(({cells:e},t)=>Object(he.createElement)("tr",{key:t},e.map(({content:e,tag:t,scope:o,align:n},r)=>{const a=Oe()({["has-text-align-"+n]:n});return Object(he.createElement)(me.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,key:r,scope:"th"===t?o:void 0})}))))};return Object(he.createElement)("figure",me.useBlockProps.save(),Object(he.createElement)("table",{className:""===i?void 0:i},Object(he.createElement)(u,{type:"head",rows:o}),Object(he.createElement)(u,{type:"body",rows:n}),Object(he.createElement)(u,{type:"foot",rows:r})),s&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:c}))},isEligible:e=>e.backgroundColor&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:xi[e.backgroundColor]}}})},{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a}=e;if(!o.length&&!n.length&&!r.length)return null;const c=Object(me.getColorClassName)("background-color",a),l=Oe()(c,{"has-fixed-layout":t,"has-background":!!c}),i=({type:e,rows:t})=>{if(!t.length)return null;const o="t"+e;return Object(he.createElement)(o,null,t.map(({cells:e},t)=>Object(he.createElement)("tr",{key:t},e.map(({content:e,tag:t,scope:o},n)=>Object(he.createElement)(me.RichText.Content,{tagName:t,value:e,key:n,scope:"th"===t?o:void 0})))))};return Object(he.createElement)("table",{className:l},Object(he.createElement)(i,{type:"head",rows:o}),Object(he.createElement)(i,{type:"body",rows:n}),Object(he.createElement)(i,{type:"foot",rows:r}))}}],Bi=o(164),Ti=o(165),zi=o(166),Pi=o(283),Ni=o(284),Mi=o(285),Vi=o(286),Ri=o(287),Hi=o(288),Ai=o(289);const Ii=["align"];function Li(e,t,o){if(!t)return e;const n=Object(be.pick)(e,["head","body","foot"]),{sectionName:r,rowIndex:a}=t;return Object(be.mapValues)(n,(e,n)=>r&&r!==n?e:e.map((e,r)=>a&&a!==r?e:{cells:e.cells.map((e,a)=>function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:n,columnIndex:a,rowIndex:r},t)?o(e):e)}))}function Di(e,{sectionName:t,rowIndex:o,columnCount:n}){const r=function(e){return Gi(e.head)?Gi(e.body)?Gi(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===n?Object(be.get)(r,["cells","length"]):n;return a?{[t]:[...e[t].slice(0,o),{cells:Object(be.times)(a,e=>{const o=Object(be.get)(r,["cells",e],{});return{...Object(be.pick)(o,Ii),content:"",tag:"head"===t?"th":"td"}})},...e[t].slice(o)]}:e}function Fi(e,t){if(!Gi(e[t]))return{[t]:[]};return Di(e,{sectionName:t,rowIndex:0,columnCount:Object(be.get)(e,["body",0,"cells","length"],1)})}function Gi(e){return!e||!e.length||Object(be.every)(e,Ui)}function Ui(e){return!(e.cells&&e.cells.length)}const qi=[{icon:Bi.a,title:Object(pe.__)("Align column left"),align:"left"},{icon:Ti.a,title:Object(pe.__)("Align column center"),align:"center"},{icon:zi.a,title:Object(pe.__)("Align column right"),align:"right"}],Wi={head:Object(pe.__)("Header cell text"),body:Object(pe.__)("Body cell text"),foot:Object(pe.__)("Footer cell text")},$i={head:Object(pe.__)("Header label"),foot:Object(pe.__)("Footer label")};function Zi({name:e,...t}){const o="t"+e;return Object(he.createElement)(o,t)}var Qi=function({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:n}){const{hasFixedLayout:r,caption:a,head:c,foot:l}=e,[i,s]=Object(he.useState)(2),[u,m]=Object(he.useState)(2),[d,b]=Object(he.useState)(),p=Object(me.__experimentalUseColorProps)(e),g=Object(me.__experimentalUseBorderProps)(e);function h(o){d&&t(Li(e,d,e=>({...e,content:o})))}function v(o){if(!d)return;const{sectionName:n,rowIndex:r}=d,a=r+o;t(Di(e,{sectionName:n,rowIndex:a})),b({sectionName:n,rowIndex:a,columnIndex:0,type:"cell"})}function O(o=0){if(!d)return;const{columnIndex:n}=d,r=n+o;t(function(e,{columnIndex:t}){const o=Object(be.pick)(e,["head","body","foot"]);return Object(be.mapValues)(o,(e,o)=>Gi(e)?e:e.map(e=>Ui(e)||e.cells.length<t?e:{cells:[...e.cells.slice(0,t),{content:"",tag:"head"===o?"th":"td"},...e.cells.slice(t)]}))}(e,{columnIndex:r})),b({rowIndex:0,columnIndex:r,type:"cell"})}Object(he.useEffect)(()=>{n||b()},[n]);const j=["head","body","foot"].filter(t=>!Gi(e[t])),f=[{icon:Pi.a,title:Object(pe.__)("Insert row before"),isDisabled:!d,onClick:function(){v(0)}},{icon:Ni.a,title:Object(pe.__)("Insert row after"),isDisabled:!d,onClick:function(){v(1)}},{icon:Mi.a,title:Object(pe.__)("Delete row"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,rowIndex:n}=d;b(),t(function(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter((e,t)=>t!==o)}}(e,{sectionName:o,rowIndex:n}))}},{icon:Vi.a,title:Object(pe.__)("Insert column before"),isDisabled:!d,onClick:function(){O(0)}},{icon:Ri.a,title:Object(pe.__)("Insert column after"),isDisabled:!d,onClick:function(){O(1)}},{icon:Hi.a,title:Object(pe.__)("Delete column"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,columnIndex:n}=d;b(),t(function(e,{columnIndex:t}){const o=Object(be.pick)(e,["head","body","foot"]);return Object(be.mapValues)(o,e=>Gi(e)?e:e.map(e=>({cells:e.cells.length>=t?e.cells.filter((e,o)=>o!==t):e.cells})).filter(e=>e.cells.length))}(e,{sectionName:o,columnIndex:n}))}}],y=["head","body","foot"].map(t=>Object(he.createElement)(Zi,{name:t,key:t},e[t].map(({cells:e},o)=>Object(he.createElement)("tr",{key:o},e.map(({content:e,tag:n,scope:r,align:a},c)=>Object(he.createElement)(me.RichText,{tagName:n,key:c,className:Oe()({["has-text-align-"+a]:a},"wp-block-table__cell-content"),scope:"th"===n?r:void 0,value:e,onChange:h,unstableOnFocus:()=>{b({sectionName:t,rowIndex:o,columnIndex:c,type:"cell"})},"aria-label":Wi[t],placeholder:$i[t]})))))),_=!j.length;return Object(he.createElement)("figure",Object(me.useBlockProps)(),!_&&Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.ToolbarItem,null,e=>Object(he.createElement)(ke.DropdownMenu,{hasArrowIndicator:!0,icon:Ai.a,toggleProps:e,label:Object(pe.__)("Edit table"),controls:f}))),Object(he.createElement)(me.AlignmentToolbar,{label:Object(pe.__)("Change column alignment"),alignmentControls:qi,value:function(){if(d)return function(e,t,o){const{sectionName:n,rowIndex:r,columnIndex:a}=t;return Object(be.get)(e,[n,r,"cells",a,o])}(e,d,"align")}(),onChange:o=>function(o){if(!d)return;const n={type:"column",columnIndex:d.columnIndex},r=Li(e,n,e=>({...e,align:o}));t(r)}(o)})),!_&&Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Table settings"),className:"blocks-table-settings"},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Fixed width table cells"),checked:!!r,onChange:function(){t({hasFixedLayout:!r})}}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Header section"),checked:!(!c||!c.length),onChange:function(){t(Fi(e,"head"))}}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Footer section"),checked:!(!l||!l.length),onChange:function(){t(Fi(e,"foot"))}}))),!_&&Object(he.createElement)("table",{className:Oe()(p.className,g.className,{"has-fixed-layout":r}),style:{...p.style,...g.style}},y),!_&&Object(he.createElement)(me.RichText,{tagName:"figcaption","aria-label":Object(pe.__)("Table caption text"),placeholder:Object(pe.__)("Add caption"),value:a,onChange:e=>t({caption:e}),unstableOnFocus:()=>b(),__unstableOnSplitAtEnd:()=>o(Object(de.createBlock)("core/paragraph"))}),_&&Object(he.createElement)(ke.Placeholder,{label:Object(pe.__)("Table"),icon:Object(he.createElement)(me.BlockIcon,{icon:Ci.a,showColors:!0}),instructions:Object(pe.__)("Insert a table for sharing data.")},Object(he.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Object(be.times)(e,()=>({cells:Object(be.times)(t,()=>({content:"",tag:"td"}))}))}}({rowCount:parseInt(i,10)||2,columnCount:parseInt(u,10)||2}))}},Object(he.createElement)(ke.TextControl,{type:"number",label:Object(pe.__)("Column count"),value:u,onChange:function(e){m(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(he.createElement)(ke.TextControl,{type:"number",label:Object(pe.__)("Row count"),value:i,onChange:function(e){s(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(he.createElement)(ke.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(pe.__)("Create Table")))))};const Yi=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope"]},td:{allowEmpty:!0,children:e}}}});var Ji={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:Yi(e)},tfoot:{allowEmpty:!0,children:Yi(e)},tbody:{allowEmpty:!0,children:Yi(e)}}}})}]};const Ki={apiVersion:2,name:"core/table",title:"Table",category:"text",description:"Insert a table — perfect for sharing charts and data.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:Xi}=Ki,es={icon:Ci.a,example:{attributes:{head:[{cells:[{content:Object(pe.__)("Version"),tag:"th"},{content:Object(pe.__)("Jazz Musician"),tag:"th"},{content:Object(pe.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(pe.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(pe.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(pe.__)("December 6, 2018"),tag:"td"}]}]}},transforms:Ji,edit:Qi,save:function({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const c=Object(me.__experimentalGetColorClassesAndStyles)(e),l=Object(me.__experimentalGetBorderClassesAndStyles)(e),i=Oe()(c.className,l.className,{"has-fixed-layout":t}),s=!me.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o="t"+e;return Object(he.createElement)(o,null,t.map(({cells:e},t)=>Object(he.createElement)("tr",{key:t},e.map(({content:e,tag:t,scope:o,align:n},r)=>{const a=Oe()({["has-text-align-"+n]:n});return Object(he.createElement)(me.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,key:r,scope:"th"===t?o:void 0})}))))};return Object(he.createElement)("figure",me.useBlockProps.save(),Object(he.createElement)("table",{className:""===i?void 0:i,style:{...c.style,...l.style}},Object(he.createElement)(u,{type:"head",rows:o}),Object(he.createElement)(u,{type:"body",rows:n}),Object(he.createElement)(u,{type:"foot",rows:r})),s&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:a}))},deprecated:Si};var ts=o(24),os=o.n(ts);var ns={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:n})=>Object(de.createBlock)("core/columns",{align:"wide"===n||"full"===n?n:void 0,className:e,columns:t},o.map(({children:e})=>Object(de.createBlock)("core/column",{},[Object(de.createBlock)("core/paragraph",{content:e})])))}]};const rs={apiVersion:2,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:as}=rs,cs={transforms:ns,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:o,content:n,columns:r}=e;return os()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.BlockAlignmentToolbar,{value:o,onChange:e=>t({width:e}),controls:["center","wide","full"]})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,null,Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),Object(he.createElement)("div",Object(me.useBlockProps)({className:`align${o} columns-${r}`}),Object(be.times)(r,e=>Object(he.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(he.createElement)(me.RichText,{tagName:"p",value:Object(be.get)(n,[e,"children"]),onChange:o=>{t({content:[...n.slice(0,e),{children:o},...n.slice(e+1)]})},"aria-label":Object(pe.sprintf)(Object(pe.__)("Column %d text"),e+1),placeholder:Object(pe.__)("New Column")})))))},save:function({attributes:e}){const{width:t,content:o,columns:n}=e;return Object(he.createElement)("div",me.useBlockProps.save({className:`align${t} columns-${n}`}),Object(be.times)(n,e=>Object(he.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(he.createElement)(me.RichText.Content,{tagName:"p",value:Object(be.get)(o,[e,"children"])}))))}};var ls=o(291);var is=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o}=e;return Object(he.createElement)(me.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}}];var ss={from:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/paragraph",e)}]};const us={apiVersion:2,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},__experimentalFontFamily:!0,fontSize:!0,spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:ms}=us,ds={icon:ls.a,example:{attributes:{content:Object(pe.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:ss,deprecated:is,merge:(e,t)=>({content:e.content+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:n}){const{textAlign:r,content:a}=e,c=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+r]:r})});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.AlignmentToolbar,{value:r,onChange:e=>{t({textAlign:e})}})),Object(he.createElement)(me.RichText,Object(we.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:a,onChange:e=>{t({content:e})},"aria-label":Object(pe.__)("Verse text"),placeholder:Object(pe.__)("Write verse…"),onRemove:n,onMerge:o,textAlign:r},c,{__unstablePastePlainText:!0})))},save:function({attributes:e}){const{textAlign:t,content:o}=e,n=Oe()({["has-text-align-"+t]:t});return Object(he.createElement)("pre",me.useBlockProps.save({className:n}),Object(he.createElement)(me.RichText.Content,{value:o}))}};var bs=o(292);const ps=[{value:"auto",label:Object(pe.__)("Auto")},{value:"metadata",label:Object(pe.__)("Metadata")},{value:"none",label:Object(pe.__)("None")}];var gs=({setAttributes:e,attributes:t})=>{const{autoplay:o,controls:n,loop:r,muted:a,playsInline:c,preload:l}=t,i=Object(he.useCallback)(e=>e?Object(pe.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null,[]),s=Object(he.useMemo)(()=>{const t=t=>o=>{e({[t]:o})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}},[]),u=Object(he.useCallback)(t=>{e({preload:t})},[]);return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Autoplay"),onChange:s.autoplay,checked:o,help:i}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Loop"),onChange:s.loop,checked:r}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Muted"),onChange:s.muted,checked:a}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Playback controls"),onChange:s.controls,checked:n}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Play inline"),onChange:s.playsInline,checked:c}),Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Preload"),value:l,onChange:u,options:ps,hideCancelButton:!0}))},hs=o(173);const vs=["text/vtt"],Os="subtitles",js=[{label:Object(pe.__)("Subtitles"),value:"subtitles"},{label:Object(pe.__)("Captions"),value:"captions"},{label:Object(pe.__)("Descriptions"),value:"descriptions"},{label:Object(pe.__)("Chapters"),value:"chapters"},{label:Object(pe.__)("Metadata"),value:"metadata"}],fs=Object(he.createElement)(ke.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(he.createElement)(ke.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(he.createElement)(ke.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(he.createElement)(ke.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function ys({tracks:e,onEditPress:t}){let o;return o=0===e.length?Object(he.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(pe.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map((e,o)=>Object(he.createElement)("div",{key:o,className:"block-library-video-tracks-editor__track-list-track"},Object(he.createElement)("span",null,e.label," "),Object(he.createElement)(ke.Button,{isTertiary:!0,onClick:()=>t(o),"aria-label":Object(pe.sprintf)(Object(pe.__)("Edit %s"),e.label)},Object(pe.__)("Edit")))),Object(he.createElement)(ke.MenuGroup,{label:Object(pe.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},o)}function _s({track:e,onChange:t,onClose:o,onRemove:n}){const{src:r="",label:a="",srcLang:c="",kind:l=Os}=e,i=r.startsWith("blob:")?"":r.substring(r.lastIndexOf("/")+1);return Object(he.createElement)(ke.NavigableMenu,null,Object(he.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(he.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(pe.__)("Edit track")),Object(he.createElement)("span",null,Object(pe.__)("File"),": ",Object(he.createElement)("b",null,i)),Object(he.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(he.createElement)(ke.TextControl,{autoFocus:!0,onChange:o=>t({...e,label:o}),label:Object(pe.__)("Label"),value:a,help:Object(pe.__)("Title of track")}),Object(he.createElement)(ke.TextControl,{onChange:o=>t({...e,srcLang:o}),label:Object(pe.__)("Source language"),value:c,help:Object(pe.__)("Language tag (en, fr, etc.)")})),Object(he.createElement)(ke.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:js,value:l,label:Object(pe.__)("Kind"),onChange:o=>{t({...e,kind:o})}}),Object(he.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(he.createElement)(ke.Button,{isSecondary:!0,onClick:()=>{const n={};let r=!1;""===a&&(n.label=Object(pe.__)("English"),r=!0),""===c&&(n.srcLang="en",r=!0),void 0===e.kind&&(n.kind=Os,r=!0),r&&t({...e,...n}),o()}},Object(pe.__)("Close")),Object(he.createElement)(ke.Button,{isDestructive:!0,isLink:!0,onClick:n},Object(pe.__)("Remove track")))))}function ws({tracks:e=[],onChange:t}){const o=Object(He.useSelect)(e=>e(me.store).getSettings().mediaUpload,[]),[n,r]=Object(he.useState)(null);return o?Object(he.createElement)(ke.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>Object(he.createElement)(ke.ToolbarButton,{label:Object(pe.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,icon:fs}),renderContent:({})=>null!==n?Object(he.createElement)(_s,{track:e[n],onChange:o=>{const r=[...e];r[n]=o,t(r)},onClose:()=>r(null),onRemove:()=>{t(e.filter((e,t)=>t!==n)),r(null)}}):Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.NavigableMenu,null,Object(he.createElement)(ys,{tracks:e,onEditPress:r}),Object(he.createElement)(ke.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(pe.__)("Add tracks")},Object(he.createElement)(me.MediaUpload,{onSelect:({url:o})=>{const n=e.length;t([...e,{src:o}]),r(n)},allowedTypes:vs,render:({open:e})=>Object(he.createElement)(ke.MenuItem,{icon:hs.a,onClick:e},Object(pe.__)("Open Media Library"))}),Object(he.createElement)(me.MediaUploadCheck,null,Object(he.createElement)(ke.FormFileUpload,{onChange:n=>{const a=n.target.files,c=e.length;o({allowedTypes:vs,filesList:a,onFileChange:([{url:o}])=>{const n=[...e];n[c]||(n[c]={}),n[c]={...e[c],src:o},t(n),r(c)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>Object(he.createElement)(ke.MenuItem,{icon:De.a,onClick:()=>{e()}},Object(pe.__)("Upload"))})))))}):null}function ks({tracks:e=[]}){return e.map(e=>Object(he.createElement)("track",Object(we.a)({key:e.src},e)))}const Es=["video"],Cs=["image"];var xs=Object(ke.withNotices)((function e({isSelected:t,noticeUI:o,attributes:n,className:r,setAttributes:a,insertBlocksAfter:c,onReplace:l,noticeOperations:i}){const s=Object(Ae.useInstanceId)(e),u=Object(he.useRef)(),m=Object(he.useRef)(),{id:d,caption:b,controls:p,poster:g,src:h,tracks:v}=n,O=!d&&Object(Re.isBlobURL)(h),j=Object(He.useSelect)(e=>e(me.store).getSettings().mediaUpload);function f(e){e&&e.url?a({src:e.url,id:e.id}):a({src:void 0,id:void 0})}function y(e){if(e!==h){const t=Je({attributes:{url:e}});if(void 0!==t)return void l(t);a({src:e,id:void 0})}}function _(e){i.removeAllNotices(),i.createErrorNotice(e)}Object(he.useEffect)(()=>{if(!d&&Object(Re.isBlobURL)(h)){const e=Object(Re.getBlobByURL)(h);e&&j({filesList:[e],onFileChange:([{url:e}])=>{a({src:e})},onError:e=>{i.createErrorNotice(e)},allowedTypes:Es})}},[]),Object(he.useEffect)(()=>{u.current&&u.current.load()},[g]);const w=Oe()(r,{"is-transient":O}),k=Object(me.useBlockProps)({className:w});if(!h)return Object(he.createElement)("div",k,Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:bs.a}),onSelect:f,onSelectURL:y,accept:"video/*",allowedTypes:Es,value:n,notices:o,onError:_}));const E="video-block__poster-image-description-"+s;return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(ws,{tracks:v,onChange:e=>{a({tracks:e})}})),Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaId:d,mediaURL:h,allowedTypes:Es,accept:"video/*",onSelect:f,onSelectURL:y,onError:_})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Video settings")},Object(he.createElement)(gs,{setAttributes:a,attributes:n}),Object(he.createElement)(me.MediaUploadCheck,null,Object(he.createElement)(ke.BaseControl,{className:"editor-video-poster-control"},Object(he.createElement)(ke.BaseControl.VisualLabel,null,Object(pe.__)("Poster image")),Object(he.createElement)(me.MediaUpload,{title:Object(pe.__)("Select poster image"),onSelect:function(e){a({poster:e.url})},allowedTypes:Cs,render:({open:e})=>Object(he.createElement)(ke.Button,{isPrimary:!0,onClick:e,ref:m,"aria-describedby":E},g?Object(pe.__)("Replace"):Object(pe.__)("Select"))}),Object(he.createElement)("p",{id:E,hidden:!0},g?Object(pe.sprintf)(Object(pe.__)("The current poster image url is %s"),g):Object(pe.__)("There is no poster image currently selected")),!!g&&Object(he.createElement)(ke.Button,{onClick:function(){a({poster:""}),this.posterImageButton.current.focus()},isTertiary:!0},Object(pe.__)("Remove")))))),Object(he.createElement)("figure",k,Object(he.createElement)(ke.Disabled,{isDisabled:!t},Object(he.createElement)("video",{controls:p,poster:g,src:h,ref:u},Object(he.createElement)(ks,{tracks:v}))),O&&Object(he.createElement)(ke.Spinner,null),(!me.RichText.isEmpty(b)||t)&&Object(he.createElement)(me.RichText,{tagName:"figcaption","aria-label":Object(pe.__)("Video caption text"),placeholder:Object(pe.__)("Add caption"),value:b,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(de.createBlock)("core/paragraph"))})))}));var Ss={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return Object(de.createBlock)("core/video",{src:Object(Re.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:n,ogv:r,flv:a}})=>e||t||o||n||r||a},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const Bs={apiVersion:2,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:Ts}=Bs,zs={icon:bs.a,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:Object(pe.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Ss,edit:xs,save:function({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:c,preload:l,src:i,playsInline:s,tracks:u}=e;return Object(he.createElement)("figure",me.useBlockProps.save(),i&&Object(he.createElement)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:c,preload:"metadata"!==l?l:void 0,src:i,playsInline:s},Object(he.createElement)(ks,{tracks:u})),!me.RichText.isEmpty(o)&&Object(he.createElement)(me.RichText.Content,{tagName:"figcaption",value:o}))}};var Ps=o(290);var Ns=Object(He.withSelect)(e=>({taxonomies:e(ue.store).getTaxonomies({per_page:-1})}))((function({attributes:e,setAttributes:t,taxonomies:o}){const{taxonomy:n,showTagCounts:r}=e,a=Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Tag Cloud settings")},Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Taxonomy"),options:[{label:Object(pe.__)("- Select -"),value:"",disabled:!0},...Object(be.map)(Object(be.filter)(o,"show_cloud"),e=>({value:e.slug,label:e.name}))],value:n,onChange:e=>t({taxonomy:e})}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show post counts"),checked:r,onChange:()=>t({showTagCounts:!r})})));return Object(he.createElement)(he.Fragment,null,a,Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)(Ko.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e})))}));const Ms={apiVersion:2,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0},editorStyle:"wp-block-tag-cloud-editor"},{name:Vs}=Ms,Rs={icon:Ps.a,example:{},edit:Ns};var Hs=o(265);var As=({clientId:e})=>{const{replaceBlocks:t}=Object(He.useDispatch)(me.store),o=Object(He.useSelect)(t=>t(me.store).getBlock(e),[e]);return Object(he.createElement)(ke.ToolbarButton,{onClick:()=>t(o.clientId,Object(de.rawHandler)({HTML:Object(de.serialize)(o)}))},Object(pe.__)("Convert to blocks"))};const{wp:Is}=window;const Ls={apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:Ds}=Ls,Fs={icon:Hs.a,edit:function({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const r=Object(he.useRef)(!1);return Object(he.useEffect)(()=>{if(!r.current)return;const o=window.tinymce.get("editor-"+e);(null==o?void 0:o.getContent())!==t&&o.setContent(t||"")},[t]),Object(he.useEffect)(()=>{const{baseURL:a,suffix:c}=window.wpEditorL10n.tinymce;function l(e){let r;t&&e.on("loadContent",()=>e.setContent(t)),e.on("blur",()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return o({content:e.getContent()}),e.once("focus",()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==n&&(t.scrollTop=n))}),!1}),e.on("mousedown touchstart",()=>{r=null});const a=Object(be.debounce)(()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))},250);e.on("Paste Change input Undo Redo",a),e.on("remove",a.cancel),e.on("keydown",t=>{ro.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==ro.BACKSPACE&&t.keyCode!==ro.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===ro.F10&&t.stopPropagation()}),e.on("init",()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())})}function i(){const{settings:t}=window.wpEditorL10n.tinymce;Is.oldEditor.initialize("editor-"+e,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-"+e,setup:l}})}function s(){"complete"===document.readyState&&i()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:a,suffix:c}),"complete"===document.readyState?i():document.addEventListener("readystatechange",s),()=>{document.removeEventListener("readystatechange",s),Is.oldEditor.remove("editor-"+e)}},[]),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(As,{clientId:e}))),Object(he.createElement)("div",Object(me.useBlockProps)(),Object(he.createElement)("div",{key:"toolbar",id:"toolbar-"+e,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get("editor-"+e);t&&t.focus()},"data-placeholder":Object(pe.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(he.createElement)("div",{key:"editor",id:"editor-"+e,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function({attributes:e}){const{content:t}=e;return Object(he.createElement)(he.RawHTML,null,t)}};var Gs=o(280);var Us=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:n,size:r}}=e,a=Oe()(r,{"has-icon-color":o,"has-icon-background-color":t,["items-justified-"+n]:n}),c={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return Object(he.createElement)("ul",me.useBlockProps.save({className:a,style:c}),Object(he.createElement)(me.InnerBlocks.Content,null))}}];const qs=["core/social-link"],Ws=[{name:Object(pe.__)("Small"),value:"has-small-icon-size"},{name:Object(pe.__)("Normal"),value:"has-normal-icon-size"},{name:Object(pe.__)("Large"),value:"has-large-icon-size"},{name:Object(pe.__)("Huge"),value:"has-huge-icon-size"}];var $s=Object(me.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{attributes:o,iconBackgroundColor:n,iconColor:r,isSelected:a,setAttributes:c,setIconBackgroundColor:l,setIconColor:i}=e,{iconBackgroundColorValue:s,iconColorValue:u,itemsJustification:m,openInNewTab:d,size:b}=o,p=(null===(t=o.className)||void 0===t?void 0:t.indexOf("is-style-logos-only"))>=0;Object(he.useEffect)(()=>{p&&c({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})},[p,c]);const g=Object(he.createElement)("li",{className:"wp-block-social-links__social-placeholder"},Object(he.createElement)("div",{className:"wp-social-link"}),Object(he.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},Object(he.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),Object(he.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),Object(he.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),h=Object(he.createElement)("li",{className:"wp-block-social-links__social-prompt"},Object(pe.__)("Click plus to add")),v=Oe()(b,{"has-icon-color":r.color||u,"has-icon-background-color":n.color||s,["items-justified-"+m]:m}),O=Object(me.useBlockProps)({className:v}),j=Object(me.__experimentalUseInnerBlocksProps)(O,{allowedBlocks:qs,orientation:"horizontal",placeholder:a?h:g,templateLock:!1,__experimentalAppenderTagName:"li"}),f={position:"bottom right",isAlternate:!0};return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.JustifyToolbar,{allowedControls:["left","center","right","space-between"],value:m,onChange:e=>c({itemsJustification:e}),popoverProps:{position:"bottom right",isAlternate:!0}}),Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.ToolbarItem,null,e=>Object(he.createElement)(ke.DropdownMenu,{label:Object(pe.__)("Size"),text:Object(pe.__)("Size"),icon:null,popoverProps:f,toggleProps:e},({onClose:e})=>Object(he.createElement)(ke.MenuGroup,null,Ws.map(t=>Object(he.createElement)(ke.MenuItem,{icon:(b===t.value||!b&&"has-normal-icon-size"===t.value)&&Nt.a,isSelected:b===t.value,key:t.value,onClick:()=>{c({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))))),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Link settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Open links in new tab"),checked:d,onChange:()=>c({openInNewTab:!d})})),Object(he.createElement)(me.PanelColorSettings,{title:Object(pe.__)("Color"),colorSettings:[{value:r.color||u,onChange:e=>{i(e),c({iconColorValue:e})},label:Object(pe.__)("Icon color")},!p&&{value:n.color||s,onChange:e=>{l(e),c({iconBackgroundColorValue:e})},label:Object(pe.__)("Icon background color")}]}),!p&&Object(he.createElement)(me.ContrastChecker,{textColor:u,backgroundColor:s,isLargeText:!1})),Object(he.createElement)("ul",j))}));const Zs={apiVersion:2,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or websites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",iconColorValue:"iconColorValue",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Qs}=Zs,Ys={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:Gs.a,edit:$s,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:n,size:r}}=e,a=Oe()(r,{"has-icon-color":o,"has-icon-background-color":t,["items-justified-"+n]:n});return Object(he.createElement)("ul",me.useBlockProps.save({className:a}),Object(he.createElement)(me.InnerBlocks.Content,null))},deprecated:Us};var Js=o(141);const Ks=()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"})),Xs=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(he.createElement)(To.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Ks},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},Object(he.createElement)(To.Circle,{cx:"363",cy:"205",r:"205"}),Object(he.createElement)(To.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},Object(he.createElement)(To.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},Object(he.createElement)(To.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>Object(he.createElement)(To.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(he.createElement)(To.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];Xs.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)});var eu=Xs;var tu=({attributes:e,context:t,isSelected:o,setAttributes:n})=>{const{url:r,service:a,label:c}=e,{iconColorValue:l,iconBackgroundColorValue:i}=t,[s,u]=Object(he.useState)(!1),m=Oe()("wp-social-link","wp-social-link-"+a,{"wp-social-link__is-incomplete":!r}),d=(e=>{const t=Object(be.find)(eu,{name:e});return t?t.icon:Ks})(a),b=(e=>{const t=Object(be.find)(eu,{name:e});return t?t.title:Object(pe.__)("Social Icon")})(a),p=Object(me.useBlockProps)({className:m,style:{color:l,backgroundColor:i}});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.sprintf)(Object(pe.__)("%s label"),b),initialOpen:!1},Object(he.createElement)(ke.PanelRow,null,Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Link label"),help:Object(pe.__)("Briefly describe the link to help screen reader users."),value:c,onChange:e=>n({label:e})})))),Object(he.createElement)("li",p,Object(he.createElement)(ke.Button,{onClick:()=>u(!0)},Object(he.createElement)(d,null),o&&s&&Object(he.createElement)(me.URLPopover,{onClose:()=>u(!1)},Object(he.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),u(!1)}},Object(he.createElement)("div",{className:"block-editor-url-input"},Object(he.createElement)(me.URLInput,{value:r,onChange:e=>n({url:e}),placeholder:Object(pe.__)("Enter address"),disableSuggestions:!0})),Object(he.createElement)(ke.Button,{icon:Js.a,label:Object(pe.__)("Apply"),type:"submit"}))))))};const ou={apiVersion:2,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or website.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab","iconColorValue","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:nu}=ou,ru={icon:Gs.a,edit:tu,variations:eu};var au=o(293);const cu=["image"],lu=({alt:e,attributes:{align:t,width:o,height:n},containerRef:r,isSelected:a,setAttributes:c,logoUrl:l,siteUrl:i})=>{const s=tt(r,[t]),u=Object(Ae.useViewportMatch)("medium"),m=!Object(be.includes)(["wide","full"],t)&&u,[{naturalWidth:d,naturalHeight:b},p]=Object(he.useState)({}),{toggleSelection:g}=Object(He.useDispatch)(me.store),h=Oe()({"is-transient":Object(Re.isBlobURL)(l)}),{maxWidth:v,title:O}=Object(He.useSelect)(e=>{const{getSettings:t}=e(me.store);return{title:e(ue.store).getEditedEntityRecord("root","site").title,...Object(be.pick)(t(),["imageSizes","maxWidth"])}});const j=Object(he.createElement)("a",{href:i,className:h,rel:"home",title:O,onClick:e=>e.preventDefault()},Object(he.createElement)("span",{className:"custom-logo-link"},Object(he.createElement)("img",{className:"custom-logo",src:l,alt:e,onLoad:e=>{p(Object(be.pick)(e.target,["naturalWidth","naturalHeight"]))}})));let f;if(s&&d&&b){f=d>s?s:d}if(!m||!f)return Object(he.createElement)("div",{style:{width:o,height:n}},j);const y=o||f,_=d/b,w=y/_,k=d<b?20:20*_,E=b<d?20:20/_,C=2.5*v;let x=!1,S=!1;return"center"===t?(x=!0,S=!0):Object(pe.isRTL)()?"left"===t?x=!0:S=!0:"right"===t?S=!0:x=!0,Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Settings")},Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Image width"),onChange:e=>c({width:e}),min:k,max:C,initialPosition:Math.min(120,C),value:o||"",disabled:!m}))),Object(he.createElement)(ke.ResizableBox,{size:{width:o,height:n},showHandle:a,minWidth:k,maxWidth:C,minHeight:E,maxHeight:C/_,lockAspectRatio:!0,enable:{top:!1,right:x,bottom:!0,left:S},onResizeStart:function(){g(!1)},onResizeStop:(e,t,o,n)=>{g(!0),c({width:parseInt(y+n.width,10),height:parseInt(w+n.height,10)})}},j))};const iu={apiVersion:2,name:"core/site-logo",title:"Site Logo",category:"layout",description:"Useful for displaying a graphic mark, design, or symbol to represent the site. Once a site logo is set, it can be reused in different places and templates. It should not be confused with the site icon, which is the small image used in the dashboard, browser tabs, public search results, etc, to help recognize a site.",textdomain:"default",attributes:{align:{type:"string"},width:{type:"number"}},supports:{html:!1},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:su}=iu,uu={icon:au.a,supports:{align:!0,alignWide:!1},edit:function({attributes:e,className:t,setAttributes:o,isSelected:n}){const{width:r}=e,[a,c]=Object(he.useState)(),[l,i]=Object(he.useState)(),s=Object(he.useRef)(),{mediaItemData:u,siteLogo:m,url:d}=Object(He.useSelect)(e=>{const t=e(ue.store).getEditedEntityRecord("root","site"),o=e(ue.store).getEntityRecord("root","media",t.site_logo);return{mediaItemData:o&&{url:o.source_url,alt:o.alt_text},siteLogo:t.site_logo,url:t.url}},[]),{editEntityRecord:b}=Object(He.useDispatch)(ue.store),p=e=>b("root","site",void 0,{site_logo:e});let g=null;u&&(g=u.alt,a!==u.url&&c(u.url));const h=e=>{if(e)return!e.id&&e.url?(p(void 0),i(null),void c(e.url)):void p(e.id)},v=e=>{i(e[2]?e[2]:null)},O=a&&Object(he.createElement)(me.BlockControls,{group:"other"},Object(he.createElement)(me.MediaReplaceFlow,{mediaURL:a,allowedTypes:cu,accept:"image/*",onSelect:h,onError:v})),j=Object(pe.__)("Site Logo");let f;void 0===m&&(f=Object(he.createElement)(ke.Spinner,null)),a&&(f=Object(he.createElement)(lu,{alt:g,attributes:e,className:t,containerRef:s,isSelected:n,setAttributes:o,logoUrl:a,siteUrl:d}));const y=Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:au.a}),labels:{title:j,instructions:Object(pe.__)("Upload an image, or pick one from your media library, to be your site logo")},onSelect:h,accept:"image/*",allowedTypes:cu,mediaPreview:f,notices:l&&Object(he.createElement)(ke.Notice,{status:"error",isDismissible:!1},l),onError:v}),_=Oe()(t,{"is-default-size":!r}),w=Object(me.useBlockProps)({ref:s,className:_});return Object(he.createElement)("div",w,O,a&&f,!a&&y)}};var mu=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(he.createElement)(ke.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(he.createElement)(ke.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"}));const du={apiVersion:2,name:"core/site-tagline",title:"Site Tagline",category:"design",description:"In a few words, what this site is about.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{gradients:!0},spacing:{padding:!0},fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0}},{name:bu}=du,pu={icon:mu,edit:function({attributes:e,setAttributes:t}){const{textAlign:o}=e,[n,r]=Object(ue.useEntityProp)("root","site","description"),a=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+o]:o})});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.AlignmentToolbar,{onChange:e=>t({textAlign:e}),value:o})),Object(he.createElement)(me.RichText,Object(we.a)({allowedFormats:[],onChange:r,"aria-label":Object(pe.__)("Site tagline text"),placeholder:Object(pe.__)("Write site tagline…"),tagName:"p",value:n},a)))}};var gu=o(294);function hu({level:e,isPressed:t=!1}){if(0===e)return ge.a;return Object(he.createElement)(ke.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},Object(he.createElement)(ke.Path,{d:{1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"}[e]}))}function vu({level:e,onChange:t}){const o=[1,2,3,4,5,6,0].map(o=>{const n=o===e;return{icon:Object(he.createElement)(hu,{level:o,isPressed:n}),title:0===o?Object(pe.__)("Paragraph"):Object(pe.sprintf)(Object(pe.__)("Heading %d"),o),isActive:n,onClick:()=>t(o)}});return Object(he.createElement)(ke.DropdownMenu,{label:Object(pe.__)("Change heading level"),icon:Object(he.createElement)(hu,{level:e}),controls:o,isToolbarButton:!0})}const Ou={apiVersion:2,name:"core/site-title",title:"Site Title",category:"design",description:"Displays and allows editing the name of the site. The site title usually appears in the browser title bar, in search results, and more. Also available in Settings > General.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,text:!1,link:!0},spacing:{padding:!0},fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0}},{name:ju}=Ou,fu={icon:gu.a,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{level:n,textAlign:r}=e,[a,c]=Object(ue.useEntityProp)("root","site","title"),l=0===n?"p":"h"+n,i=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+r]:r})});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,{group:"block"},Object(he.createElement)(vu,{level:n,onChange:e=>t({level:e})}),Object(he.createElement)(me.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})),Object(he.createElement)(l,i,Object(he.createElement)(me.RichText,{tagName:"a",style:{display:"inline-block"},"aria-label":Object(pe.__)("Site title text"),placeholder:Object(pe.__)("Write site title…"),value:a,onChange:c,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o(Object(de.createBlock)(Object(de.getDefaultBlockName)()))})))}};var yu=o(295),_u=o(296);function wu({attributes:{query:e,layout:t},setQuery:o,setLayout:n}){const r=Object(Ae.useInstanceId)(wu,"blocks-query-pagination-max-page-input"),a=[{icon:Cc.a,title:Object(pe.__)("List view"),onClick:()=>n({type:"list"}),isActive:"list"===(null==t?void 0:t.type)},{icon:xc.a,title:Object(pe.__)("Grid view"),onClick:()=>n({type:"flex",columns:(null==t?void 0:t.columns)||3}),isActive:"flex"===(null==t?void 0:t.type)}];return Object(he.createElement)(he.Fragment,null,!e.inherit&&Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>Object(he.createElement)(ke.ToolbarButton,{icon:_u.a,label:Object(pe.__)("Display settings"),onClick:e}),renderContent:()=>Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.BaseControl,null,Object(he.createElement)(ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(pe.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{var t;return o({perPage:null!==(t=+e)&&void 0!==t?t:-1})},step:"1",value:e.perPage,isDragEnabled:!1})),Object(he.createElement)(ke.BaseControl,null,Object(he.createElement)(ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(pe.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>o({offset:+e}),step:"1",value:e.offset,isDragEnabled:!1})),Object(he.createElement)(ke.BaseControl,{id:r,help:Object(pe.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},Object(he.createElement)(ke.__experimentalNumberControl,{id:r,__unstableInputWidth:"60px",label:Object(pe.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>o({pages:+e}),step:"1",value:e.pages,isDragEnabled:!1})))})),Object(he.createElement)(ke.ToolbarGroup,{controls:a}))}const ku=e=>({terms:e,...null==e?void 0:e.reduce((e,t)=>{const{mapById:o,mapByName:n,names:r}=e;return o[t.id]=t,n[t.name]=t,r.push(t.name),e},{mapById:{},mapByName:{},names:[]})});const Eu=[{label:Object(pe.__)("Include"),value:""},{label:Object(pe.__)("Exclude"),value:"exclude"},{label:Object(pe.__)("Only"),value:"only"}],Cu=({type:e})=>{const t=Object(Ie.addQueryArgs)("post-new.php",{post_type:e});return Object(he.createElement)("div",{className:"wp-block-query__create-new-link"},Object(he.createInterpolateElement)(Object(pe.__)("<a>Create a new post</a> for this feed."),{a:Object(he.createElement)("a",{href:t})}))};function xu({attributes:{query:e,layout:t},setQuery:o,setLayout:n}){var r,a;const{order:c,orderBy:l,author:i,postType:s,sticky:u,inherit:m}=e,[d,b]=Object(he.useState)(!0),[p,g]=Object(he.useState)(!0),[h,v]=Object(he.useState)("post"===s),{postTypesTaxonomiesMap:O,postTypesSelectOptions:j}=(()=>{const{postTypes:e}=Object(He.useSelect)(e=>{var t;const{getPostTypes:o}=e(ue.store),n=["attachment"];return{postTypes:null===(t=o({per_page:-1}))||void 0===t?void 0:t.filter(({viewable:e,slug:t})=>e&&!n.includes(t))}},[]);return{postTypesTaxonomiesMap:Object(he.useMemo)(()=>{if(null!=e&&e.length)return e.reduce((e,t)=>(e[t.slug]=t.taxonomies,e),{})},[e]),postTypesSelectOptions:Object(he.useMemo)(()=>(e||[]).map(({labels:e,slug:t})=>({label:e.singular_name,value:t})),[e])}})(),{authorList:f,categories:y,tags:_}=Object(He.useSelect)(e=>{const{getEntityRecords:t}=e(ue.store),o={per_page:100},n=t("taxonomy","category",o),r=t("taxonomy","post_tag",o);return{categories:ku(n),tags:ku(r),authorList:t("root","user",{per_page:-1})}},[]);Object(he.useEffect)(()=>{if(!O)return;const e=O[s];b(e.includes("category")),g(e.includes("post_tag"))},[s,O]),Object(he.useEffect)(()=>{v("post"===s)},[s]);const w=(e,t)=>n=>{const r=n.reduce((t,o)=>{var n;const r=(null==o?void 0:o.id)||(null===(n=e.mapByName[o])||void 0===n?void 0:n.id);return r&&t.push(r),t},[]);o({[t]:r})},k=w(y,"categoryIds"),E=w(_,"tagIds"),[C,x]=Object(he.useState)(e.search),S=Object(he.useCallback)(Object(be.debounce)(()=>{e.search!==C&&o({search:C})},250),[C,e.search]);Object(he.useEffect)(()=>(S(),S.cancel),[C,S]);const B=t=>{const o={category:{queryProp:"categoryIds",terms:y},post_tag:{queryProp:"tagIds",terms:_}}[t];return(e[o.queryProp]||[]).reduce((e,t)=>{const n=o.terms.mapById[t];return n&&e.push({id:t,value:n.name}),e},[])};return Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(Cu,{type:s}),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Inherit query from URL"),help:Object(pe.__)("Disable the option to customize the query arguments. Leave enabled to inherit the global query depending on the URL."),checked:!!m,onChange:e=>o({inherit:!!e})}),!m&&Object(he.createElement)(ke.SelectControl,{options:j,value:s,label:Object(pe.__)("Post Type"),onChange:e=>{const t={postType:e};O[e].includes("category")||(t.categoryIds=[]),O[e].includes("post_tag")||(t.tagIds=[]),"post"!==e&&(t.sticky=""),o(t)}}),"flex"===(null==t?void 0:t.type)&&Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Columns"),value:t.columns,onChange:e=>n({columns:e}),min:2,max:Math.max(6,t.columns)}),t.columns>6&&Object(he.createElement)(ke.Notice,{status:"warning",isDismissible:!1},Object(pe.__)("This column count exceeds the recommended amount and may cause visual breakage."))),!m&&Object(he.createElement)(ke.QueryControls,{order:c,orderBy:l,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e})}),h&&Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Sticky posts"),options:Eu,value:u,onChange:e=>o({sticky:e})})),!m&&Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Filters")},d&&(null==y||null===(r=y.terms)||void 0===r?void 0:r.length)>0&&Object(he.createElement)(ke.FormTokenField,{label:Object(pe.__)("Categories"),value:B("category"),suggestions:y.names,onChange:k}),p&&(null==_||null===(a=_.terms)||void 0===a?void 0:a.length)>0&&Object(he.createElement)(ke.FormTokenField,{label:Object(pe.__)("Tags"),value:B("post_tag"),suggestions:_.names,onChange:E}),Object(he.createElement)(ke.QueryControls,{selectedAuthorId:i,authorList:f,onAuthorChange:e=>o({author:""!==e?+e:void 0})}),Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Keyword"),value:C,onChange:x})))}var Su=({clientId:e,name:t,attributes:o,setAttributes:n})=>{var r;const{blockType:a,defaultVariation:c,scopeVariations:l,allVariations:i}=Object(He.useSelect)(e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(de.store);return{blockType:n(t),defaultVariation:r(t,"block"),scopeVariations:o(t,"block"),allVariations:o(t)}},[t]),{replaceInnerBlocks:s}=Object(He.useDispatch)(me.store),u=Object(me.useBlockProps)(),m=Object(me.__experimentalGetMatchingVariation)(o,i),d=(null==m?void 0:m.icon)||(null==a||null===(r=a.icon)||void 0===r?void 0:r.src),b=(null==m?void 0:m.title)||(null==a?void 0:a.title);return Object(he.createElement)("div",u,Object(he.createElement)(me.__experimentalBlockVariationPicker,{icon:d,label:b,variations:l,onSelect:(t=c)=>{t.attributes&&n(t.attributes),t.innerBlocks&&s(e,Object(de.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!1)}}))};const Bu=[["core/query-loop"]];function Tu({attributes:e,setAttributes:t}){const{queryId:o,query:n,layout:r,tagName:a="div"}=e,{__unstableMarkNextChangeAsNotPersistent:c}=Object(He.useDispatch)(me.store),l=Object(Ae.useInstanceId)(Tu),i=Object(me.useBlockProps)(),s=Object(me.__experimentalUseInnerBlocksProps)({},{template:Bu}),{postsPerPage:u}=Object(He.useSelect)(e=>{const{getSettings:t}=e(me.store);return{postsPerPage:+t().postsPerPage||3}},[]);Object(he.useEffect)(()=>{const e={};!n.perPage&&u&&(e.perPage=u),Object.keys(e).length&&(c(),m(e))},[n.perPage]),Object(he.useEffect)(()=>{o||(c(),t({queryId:l}))},[o,l]);const m=e=>t({query:{...n,...e}}),d=e=>t({layout:{...r,...e}});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(xu,{attributes:e,setQuery:m,setLayout:d}),Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(wu,{attributes:e,setQuery:m,setLayout:d})),Object(he.createElement)(me.InspectorAdvancedControls,null,Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("HTML element"),options:[{label:Object(pe.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:a,onChange:e=>t({tagName:e})})),Object(he.createElement)(a,i,Object(he.createElement)("div",s)))}function zu(e){const{clientId:t,name:o}=e,n=Object(me.useBlockProps)();return Object(he.createElement)("div",n,Object(he.createElement)(me.__experimentalBlockPatternSetup,{blockName:o,clientId:t,startBlankComponent:Object(he.createElement)(Su,e)}))}var Pu=e=>{const{clientId:t}=e,o=Object(He.useSelect)(e=>!!e(me.store).getBlocks(t).length,[t])?Tu:zu;return Object(he.createElement)(o,e)};const Nu=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(he.createElement)(ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Mu=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(he.createElement)(ke.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Vu=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(he.createElement)(ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Ru=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(he.createElement)(ke.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"}));var Hu=[{name:"posts-list",title:Object(pe.__)("Posts List"),description:Object(pe.__)("Display a list of your most recent posts, excluding sticky posts."),icon:_c.a,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude"}},scope:["inserter"]},{name:"title-date",title:Object(pe.__)("Title & Date"),icon:Nu,innerBlocks:[["core/query-loop",{},[["core/post-title"],["core/post-date"]]]],scope:["block"]},{name:"title-excerpt",title:Object(pe.__)("Title & Excerpt"),icon:Mu,innerBlocks:[["core/query-loop",{},[["core/post-title"],["core/post-excerpt"]]]],scope:["block"]},{name:"title-date-excerpt",title:Object(pe.__)("Title, Date, & Excerpt"),icon:Vu,innerBlocks:[["core/query-loop",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]]],scope:["block"]},{name:"image-date-title",title:Object(pe.__)("Image, Date, & Title"),icon:Ru,innerBlocks:[["core/query-loop",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]]],scope:["block"]}];var Au=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},save:()=>Object(he.createElement)(me.InnerBlocks.Content,null)}];const Iu={apiVersion:2,name:"core/query",title:"Query",category:"design",description:"Displays a list of posts as a result of a query.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},layout:{type:"object",default:{type:"list"}}},providesContext:{queryId:"queryId",query:"query",layout:"layout"},supports:{align:["wide","full"],html:!1},editorStyle:"wp-block-query-editor"},{name:Lu}=Iu,Du={icon:yu.a,edit:Pu,save:function({attributes:{tagName:e="div"}}){return Object(he.createElement)(e,me.useBlockProps.save(),Object(he.createElement)(me.InnerBlocks.Content,null))},variations:Hu,deprecated:Au},Fu=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];const Gu={apiVersion:2,name:"core/query-loop",title:"Query Loop",category:"design",parent:["core/query"],description:"Query loop.",textdomain:"default",usesContext:["queryId","query","queryContext","layout","templateSlug"],supports:{reusable:!1,html:!1},style:"wp-block-query-loop",editorStyle:"wp-block-query-loop-editor"},{name:Uu}=Gu,qu={icon:yu.a,edit:function({clientId:e,context:{query:{perPage:t,offset:o,categoryIds:n,postType:r,tagIds:a=[],order:c,orderBy:l,author:i,search:s,exclude:u,sticky:m,inherit:d}={},queryContext:b=[{page:1}],templateSlug:p,layout:{type:g="flex",columns:h=1}={}}}){const[{page:v}]=b,[O,j]=Object(he.useState)(),{posts:f,blocks:y}=Object(He.useSelect)(b=>{const{getEntityRecords:g}=b(ue.store),{getBlocks:h}=b(me.store),O={offset:t?t*(v-1)+o:0,categories:n,tags:a,order:c,orderby:l};return t&&(O.per_page=t),i&&(O.author=i),s&&(O.search=s),null!=u&&u.length&&(O.exclude=u),m&&(O.sticky="only"===m),d&&null!=p&&p.startsWith("archive-")&&(O.postType=p.replace("archive-",""),r=O.postType),{posts:g("postType",r,O),blocks:h(e)}},[t,v,o,n,a,c,l,e,i,s,r,u,m,d,p]),_=Object(he.useMemo)(()=>null==f?void 0:f.map(e=>({postType:e.type,postId:e.id})),[f]),w="flex"===g&&h>1,k=Object(me.useBlockProps)({className:Oe()({"is-flex-container":w,["columns-"+h]:w})}),E=Object(me.__experimentalUseInnerBlocksProps)({},{template:Fu});return f?f.length?Object(he.createElement)("ul",k,_&&_.map(e=>Object(he.createElement)(me.BlockContextProvider,{key:e.postId,value:e},e===(O||_[0])?Object(he.createElement)("li",E):Object(he.createElement)("li",null,Object(he.createElement)(me.BlockPreview,{blocks:y,__experimentalLive:!0,__experimentalOnClick:()=>j(e)}))))):Object(he.createElement)("p",k," ",Object(pe.__)("No results found.")):Object(he.createElement)("p",k,Object(he.createElement)(ke.Spinner,null))},save:function(){return Object(he.createElement)(me.InnerBlocks.Content,null)}},Wu=["archive"];var $u=o(297);const Zu=[{isDefault:!0,name:"archive-title",title:Object(pe.__)("Archive Title"),description:Object(pe.__)("Display the archive title based on the queried object."),icon:$u.a,attributes:{type:"archive"},scope:["inserter"]}];Zu.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Qu=Zu;const Yu={apiVersion:2,name:"core/query-title",title:"Query Title",category:"design",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0},editorStyle:"wp-block-query-title-editor"},{name:Ju}=Yu,Ku={edit:function({attributes:{type:e,level:t,textAlign:o},setAttributes:n}){const r="h"+t,a=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+o]:o,"wp-block-query-title__placeholder":"archive"===e})});if(!Wu.includes(e))return Object(he.createElement)("div",a,Object(he.createElement)(me.Warning,null,Object(pe.__)("Provided type is not supported.")));let c;return"archive"===e&&(c=Object(he.createElement)(r,a,Object(pe.__)("Archive title"))),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(io,{selectedLevel:t,onChange:e=>n({level:e})})),Object(he.createElement)(me.AlignmentToolbar,{value:o,onChange:e=>{n({textAlign:e})}})),c)},variations:Qu};var Xu=o(298);const em=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];const tm={apiVersion:2,name:"core/query-pagination",title:"Query Pagination",category:"design",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:om}=tm,nm={icon:Xu.a,edit:function(){const e=Object(me.useBlockProps)(),t=Object(me.__experimentalUseInnerBlocksProps)(e,{template:em,allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],orientation:"horizontal"});return Object(he.createElement)("div",e,Object(he.createElement)("div",t))},save:function(){return Object(he.createElement)("div",me.useBlockProps.save(),Object(he.createElement)(me.InnerBlocks.Content,null))}};var rm=o(299);const am={apiVersion:2,name:"core/query-pagination-next",title:"Query Pagination Next",category:"design",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},fontSize:!0,lineHeight:!0}},{name:cm}=am,lm={icon:rm.a,edit:function({attributes:{label:e},setAttributes:t}){return Object(he.createElement)(me.PlainText,Object(we.a)({__experimentalVersion:2,tagName:"a",style:{display:"inline-block"},"aria-label":Object(pe.__)("Next page link"),placeholder:Object(pe.__)("Next Page"),value:e,onChange:e=>t({label:e})},Object(me.useBlockProps)()))}};var im=o(300);const sm=(e,t="a",o="")=>Object(he.createElement)(t,{className:"page-numbers "+o},e);const um={apiVersion:2,name:"core/query-pagination-numbers",title:"Query Pagination Numbers",category:"design",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1},editorStyle:"query-pagination-numbers-editor"},{name:mm}=um,dm={icon:im.a,edit:function(){const e=Object(he.createElement)(he.Fragment,null,sm(1),sm(2),sm(3,"span","current"),sm(4),sm(5),sm("...","span","dots"),sm(8));return Object(he.createElement)("div",Object(me.useBlockProps)(),e)}};var bm=o(301);const pm={apiVersion:2,name:"core/query-pagination-previous",title:"Query Pagination Previous",category:"design",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},fontSize:!0,lineHeight:!0}},{name:gm}=pm,hm={icon:bm.a,edit:function({attributes:{label:e},setAttributes:t}){return Object(he.createElement)(me.PlainText,Object(we.a)({__experimentalVersion:2,tagName:"a",style:{display:"inline-block"},"aria-label":Object(pe.__)("Previous page link"),placeholder:Object(pe.__)("Previous Page"),value:e,onChange:e=>t({label:e})},Object(me.useBlockProps)()))}};var vm=o(302);const Om={apiVersion:2,name:"core/post-title",title:"Post Title",category:"design",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0},style:"wp-block-post-title"},{name:jm}=Om,fm={icon:vm.a,edit:function({attributes:{level:e,textAlign:t,isLink:o,rel:n,linkTarget:r},setAttributes:a,context:{postType:c,postId:l}}){const i=0===e?"p":"h"+e,s=Object(He.useSelect)(e=>e(ue.store).getEditedEntityRecord("postType",c,l),[c,l]),{editEntityRecord:u}=Object(He.useDispatch)(ue.store),m=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+t]:t})});if(!s)return null;const{title:d="",link:b}=s;let p=Object(he.createElement)(i,o?{}:m,Object(pe.__)("An example title"));return c&&l&&(p=Object(he.createElement)(me.PlainText,Object(we.a)({tagName:i,placeholder:Object(pe.__)("No Title"),value:d,onChange:e=>u("postType",c,l,{title:e}),__experimentalVersion:2},o?{}:m))),o&&(p=Object(he.createElement)(i,m,Object(he.createElement)(me.PlainText,{tagName:"a",href:b,target:r,rel:n,placeholder:0===d.length?Object(pe.__)("No Title"):null,value:d,onChange:e=>u("postType",c,l,{title:e}),__experimentalVersion:2}))),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(io,{selectedLevel:e,onChange:e=>a({level:e})})),Object(he.createElement)(me.AlignmentToolbar,{value:t,onChange:e=>{a({textAlign:e})}})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Link settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Make title a link"),onChange:()=>a({isLink:!o}),checked:o}),o&&Object(he.createElement)(he.Fragment,null,Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r}),Object(he.createElement)(ke.TextControl,{label:Object(pe.__)("Link rel"),value:n,onChange:e=>a({rel:e})})))),p)}};var ym=o(303);function _m({layout:e,postType:t,postId:o}){const n=Object(He.useSelect)(e=>{var t;const{getSettings:o}=e(me.store);return null===(t=o())||void 0===t?void 0:t.supportsLayout},[]),r=Object(me.__experimentalUseEditorFeature)("layout")||{},a=e&&e.inherit?r:e,{contentSize:c,wideSize:l}=a,i=c||l?["wide","full"]:["left","center","right"],[s,u,m]=Object(ue.useEntityBlockEditor)("postType",t,{id:o}),d=Object(me.__experimentalUseInnerBlocksProps)(Object(me.useBlockProps)({className:"entry-content"}),{value:s,onInput:u,onChange:m,__experimentalLayout:{type:"default",alignments:n?i:void 0}});return Object(he.createElement)("div",d)}function wm(){const e=Object(me.useBlockProps)();return Object(he.createElement)("div",e,Object(he.createElement)("div",{className:"wp-block-post-content__placeholder"},Object(he.createElement)("span",null,Object(pe.__)("This is a placeholder for post content."))))}function km(){const e=Object(me.useBlockProps)();return Object(he.createElement)("div",e,Object(he.createElement)(me.Warning,null,Object(pe.__)("Block cannot be rendered inside itself.")))}const Em={apiVersion:2,name:"core/post-content",title:"Post Content",category:"design",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType"],supports:{align:["wide","full"],html:!1,__experimentalLayout:!0},editorStyle:"wp-block-post-content-editor"},{name:Cm}=Em,xm={icon:ym.a,edit:function({context:{postId:e,postType:t},attributes:o}){const{layout:n={}}=o,[r,a]=Object(me.__experimentalUseNoRecursiveRenders)(e);return e&&t&&r?Object(he.createElement)(km,null):Object(he.createElement)(a,null,e&&t?Object(he.createElement)(_m,{postType:t,postId:e,layout:n}):Object(he.createElement)(wm,null))}};var Sm=function({isSelected:e,context:t,attributes:o,setAttributes:n}){const{postType:r,postId:a}=t,{authorId:c,authorDetails:l,authors:i}=Object(He.useSelect)(e=>{var t;const{getEditedEntityRecord:o,getUser:n,getUsers:c}=e(ue.store),l=null===(t=o("postType",r,a))||void 0===t?void 0:t.author;return{authorId:l,authorDetails:l?n(l):null,authors:c({who:"authors"})}},[r,a]),{editEntityRecord:s}=Object(He.useDispatch)(ue.store),{textAlign:u,showAvatar:m,showBio:d,byline:b}=o,p=[];l&&Object(be.forEach)(l.avatar_urls,(e,t)=>{p.push({value:t,label:`${t} x ${t}`})});const g=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+u]:u})});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Author Settings")},!(null==i||!i.length)&&Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Author"),value:c,options:i.map(({id:e,name:t})=>({value:e,label:t})),onChange:e=>{s("postType",r,a,{author:e})}}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show avatar"),checked:m,onChange:()=>n({showAvatar:!m})}),m&&Object(he.createElement)(ke.SelectControl,{label:Object(pe.__)("Avatar size"),value:o.avatarSize,options:p,onChange:e=>{n({avatarSize:Number(e)})}}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show bio"),checked:d,onChange:()=>n({showBio:!d})}))),Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.AlignmentToolbar,{value:u,onChange:e=>{n({textAlign:e})}})),Object(he.createElement)("div",g,m&&l&&Object(he.createElement)("div",{className:"wp-block-post-author__avatar"},Object(he.createElement)("img",{width:o.avatarSize,src:l.avatar_urls[o.avatarSize],alt:l.name})),Object(he.createElement)("div",{className:"wp-block-post-author__content"},(!me.RichText.isEmpty(b)||e)&&Object(he.createElement)(me.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":Object(pe.__)("Post author byline text"),placeholder:Object(pe.__)("Write byline…"),value:b,onChange:e=>n({byline:e})}),Object(he.createElement)("p",{className:"wp-block-post-author__name"},(null==l?void 0:l.name)||Object(pe.__)("Post Author")),d&&Object(he.createElement)("p",{className:"wp-block-post-author__bio"},null==l?void 0:l.description))))},Bm=Object(he.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(he.createElement)(ke.Path,{d:"M5.8 11c0-.7.6-1.2 1.2-1.2h4c.7 0 1.2.6 1.2 1.2v1h1.5v-1c0-1.5-1.2-2.8-2.8-2.8H7c-1.5 0-2.8 1.2-2.8 2.8v1h1.5v-1zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zM9 7c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));const Tm={apiVersion:2,name:"core/post-author",title:"Post Author",category:"design",description:"Add the author of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"}},usesContext:["postType","postId"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"},{name:zm}=Tm,Pm={icon:Bm,edit:Sm};var Nm=o(304);const Mm={apiVersion:2,name:"core/post-date",title:"Post Date",category:"design",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0},fontSize:!0,lineHeight:!0}},{name:Vm}=Mm,Rm={icon:Nm.a,edit:function({attributes:e,context:t,setAttributes:o}){const{textAlign:n,format:r,isLink:a}=e,{postId:c,postType:l}=t,[i]=Object(ue.useEntityProp)("root","site","date_format"),[s,u]=Object(ue.useEntityProp)("postType",l,"date",c),[m,d]=Object(he.useState)(!1),b=Object(Ec.__experimentalGetSettings)(),p=/a(?!\\)/i.test(b.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),g=Object.values(b.formats).map(e=>({key:e,name:Object(Ec.dateI18n)(e,s)})),h=r||i||b.formats.date,v=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+n]:n})});let O=s?Object(he.createElement)("time",{dateTime:Object(Ec.dateI18n)("c",s)},Object(Ec.dateI18n)(h,s),m&&Object(he.createElement)(ke.Popover,{onClose:d.bind(null,!1)},Object(he.createElement)(ke.DateTimePicker,{currentDate:s,onChange:u,is12Hour:p}))):Object(pe.__)("No Date");return a&&s&&(O=Object(he.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},O)),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.AlignmentToolbar,{value:n,onChange:e=>{o({textAlign:e})}}),s&&Object(he.createElement)(ke.ToolbarGroup,null,Object(he.createElement)(ke.ToolbarButton,{icon:Mo.a,title:Object(pe.__)("Change Date"),onClick:()=>d(e=>!e)}))),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Format settings")},Object(he.createElement)(ke.CustomSelectControl,{hideLabelFromVision:!0,label:Object(pe.__)("Date Format"),options:g,onChange:({selectedItem:e})=>o({format:e.key}),value:g.find(e=>e.key===h)})),Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Link settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.sprintf)(Object(pe.__)("Link to %s"),l),onChange:()=>o({isLink:!a}),checked:a}))),Object(he.createElement)("div",v,O))}};var Hm=o(305);const Am={apiVersion:2,name:"core/post-excerpt",title:"Post Excerpt",category:"design",description:"Display a post's excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},wordCount:{type:"number",default:55},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}},usesContext:["postId","postType"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:Im}=Am,Lm={icon:Hm.a,edit:function({attributes:{textAlign:e,wordCount:t,moreText:o,showMoreOnNewLine:n},setAttributes:r,isSelected:a,context:{postId:c,postType:l}}){const[i,s]=Object(ue.useEntityProp)("postType",l,"excerpt",c),u=function(e,t,o){const[,,n]=Object(ue.useEntityProp)("postType",o,"content",t),r=null==n?void 0:n.raw;return Object(he.useMemo)(()=>{if(!r)return"";const t=document.createElement("div");t.innerHTML=r;return(t.textContent||t.innerText||"").trim().split(" ",e).join(" ")},[r,e])}(t,c,l),m=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+e]:e})});if(!l||!c)return Object(he.createElement)("div",m,Object(he.createElement)(me.Warning,null,Object(pe.__)("Post excerpt block: no post found.")));const d=Object(he.createElement)(me.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":Object(pe.__)("Read more link text"),placeholder:Object(pe.__)("Read more…"),value:o,onChange:e=>r({moreText:e})});return Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})),Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Post Excerpt Settings")},!i&&Object(he.createElement)(ke.RangeControl,{label:Object(pe.__)("Max words"),value:t,onChange:e=>r({wordCount:e}),min:10,max:100}),Object(he.createElement)(ke.ToggleControl,{label:Object(pe.__)("Show link on new line"),checked:n,onChange:e=>r({showMoreOnNewLine:e})}))),Object(he.createElement)("div",m,Object(he.createElement)(me.RichText,{className:!n&&"wp-block-post-excerpt__excerpt is-inline","aria-label":Object(pe.__)("Post excerpt text"),value:i||u||(a?"":Object(pe.__)("No post excerpt found")),onChange:s}),!n&&" ",n?Object(he.createElement)("p",{className:"wp-block-post-excerpt__more-text"},d):d))}};var Dm=o(306);const Fm=["image"],Gm=Object(he.createElement)("div",{className:"post-featured-image_placeholder"},Object(he.createElement)(ke.Icon,{icon:Dm.a}),Object(he.createElement)("p",null," ",Object(pe.__)("Featured Image")));const Um=Object(ke.withNotices)((function({attributes:{isLink:e},setAttributes:t,context:{postId:o,postType:n},noticeUI:r,noticeOperations:a}){const[c,l]=Object(ue.useEntityProp)("postType",n,"featured_media",o),i=Object(He.useSelect)(e=>c&&e(ue.store).getMedia(c),[c]),s=e=>{null!=e&&e.id&&l(e.id)};function u(e){a.removeAllNotices(),a.createErrorNotice(e)}let m;return m=c?i?Object(he.createElement)("img",{src:i.source_url,alt:i.alt_text||Object(pe.__)("Featured image")}):Gm:Object(he.createElement)(me.MediaPlaceholder,{icon:Object(he.createElement)(me.BlockIcon,{icon:Dm.a}),onSelect:s,notices:r,onError:u,accept:"image/*",allowedTypes:Fm,labels:{title:Object(pe.__)("Featured image"),instructions:Object(pe.__)("Upload a media file or pick one from your media library.")}}),Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.InspectorControls,null,Object(he.createElement)(ke.PanelBody,{title:Object(pe.__)("Link settings")},Object(he.createElement)(ke.ToggleControl,{label:Object(pe.sprintf)(Object(pe.__)("Link to %s"),n),onChange:()=>t({isLink:!e}),checked:e}))),Object(he.createElement)(me.BlockControls,{group:"other"},!!i&&Object(he.createElement)(me.MediaReplaceFlow,{mediaId:c,mediaURL:i.source_url,allowedTypes:Fm,accept:"image/*",onSelect:s,onError:u})),Object(he.createElement)("div",Object(me.useBlockProps)(),m))}));const qm={apiVersion:2,name:"core/post-featured-image",title:"Post Featured Image",category:"design",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{align:["left","right","center","wide","full"],html:!1},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:Wm}=qm,$m={icon:Dm.a,edit:function(e){var t;return null!==(t=e.context)&&void 0!==t&&t.postId?Object(he.createElement)(Um,e):Gm}};var Zm=o(307);var Qm=[{name:"category",title:Object(pe.__)("Post Categories"),description:Object(pe.__)("Display a post's categories."),icon:Zm.a,isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term},{name:"post_tag",title:Object(pe.__)("Post Tags"),description:Object(pe.__)("Display a post's tags."),icon:Zm.a,attributes:{term:"post_tag"},isActive:e=>"post_tag"===e.term}];const Ym={apiVersion:2,name:"core/post-terms",title:"Post Terms",category:"design",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0}},{name:Jm}=Ym,Km={variations:Qm,edit:function({attributes:e,context:t,setAttributes:o}){var n;const{term:r,textAlign:a}=e,{postId:c,postType:l}=t,i=Object(He.useSelect)(e=>{if(!r)return{};const t=e(ue.store).getTaxonomies({per_page:-1});return Object(be.find)(t,e=>e.slug===r&&e.visibility.show_ui)||{}},[r]),{termLinks:s,isLoadingTermLinks:u}=function({postId:e,postType:t,term:o}){const{rest_base:n,slug:r}=o,[a]=Object(ue.useEntityProp)("postType",t,n,e),{termLinks:c,isLoadingTermLinks:l}=Object(He.useSelect)(e=>{const{getEntityRecord:t}=e(ue.store);let o=!0;return{termLinks:Object(be.map)(a,e=>{const n=t("taxonomy",r,e);return n?Object(he.createElement)("a",{key:e,href:n.link,onClick:e=>e.preventDefault()},n.name):o=!1}),isLoadingTermLinks:!o}},[a]);return{termLinks:c,isLoadingTermLinks:l}}({postId:c,postType:l,term:i}),m=c&&l,d=s&&s.length>0,b=Object(me.useBlockProps)({className:Oe()({["has-text-align-"+a]:a})});return m?r?Object(he.createElement)(he.Fragment,null,Object(he.createElement)(me.BlockControls,null,Object(he.createElement)(me.AlignmentToolbar,{value:a,onChange:e=>{o({textAlign:e})}})),Object(he.createElement)("div",b,u&&Object(he.createElement)(ke.Spinner,null),d&&!u&&s.reduce((e,t)=>[e," | ",t]),!u&&!d&&((null==i||null===(n=i.labels)||void 0===n?void 0:n.no_terms)||Object(pe.__)("Term items not found.")))):Object(he.createElement)("div",b,Object(pe.__)("Post Terms block: no term specified.")):Object(he.createElement)("div",b,Object(he.createElement)(me.Warning,null,Object(pe.__)("Post Terms block: post not found.")))}},Xm=e=>{if(!e)return;const{metadata:t,settings:o,name:n}=e;Object(de.registerBlockTypeFromMetadata)({name:n,...t},o)},ed=()=>[n,r,a,l,E,c,H,i,s,u,m,d,b,p,g,h,v,O,j,V,window.wp&&window.wp.oldEditor?U:null,f,y,_,w,C,x,S,B,T,z,N,M,R,P,q,W,A,I,G,L,D,F,$,Z,Q,Y,J,K,X,ee,te,oe,ne,re,ae,ce,le,ie,se,k],td=(e=ed())=>{e.forEach(Xm),Object(de.setDefaultBlockName)(ze),window.wp&&window.wp.oldEditor&&Object(de.setFreeformContentHandlerName)(Ds),Object(de.setUnregisteredTypeHandlerName)(Xc),Object(de.setGroupingBlockName)(ai)},od=void 0}]); |