/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=447)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,r){var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},136:function(e,t,r){"use strict";var n=r(5),o=r(13),c=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.icon,r=e.size,i=void 0===r?24:r,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);ra?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],g=b[3],h=b[4];return g?[Math.round(m/g),Math.round(d/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{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,o),c&&e(n,c),r}()}()},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(24);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},29:function(e,t){e.exports=window.wp.url},3:function(e,t){e.exports=window.wp.components},30:function(e,t){e.exports=window.wp.editor},301:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},302:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},303:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},309:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},310:function(e,t,r){"use strict";var n=r(311),o=r(312);function c(e){var t=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,o=10*r,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(1==e.deltaMode?(n*=40,o*=40):(n*=800,o*=800)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}}c.getEventType=function(){return n.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=c},311:function(e,t){var r,n,o,c,a,i,l,s,u,b,m,d,p,g,h,f=!1;function O(){if(!f){f=!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(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),b=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),m=!!/Win64/.exec(e),t){(r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);i=v?parseFloat(v[1])+4:r,n=t[2]?parseFloat(t[2]):NaN,o=t[3]?parseFloat(t[3]):NaN,(c=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else r=n=o=a=c=NaN;if(O){if(O[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!j||parseFloat(j[1].replace("_","."))}else l=!1;s=!!O[2],u=!!O[3]}else l=s=u=!1}}var v={ie:function(){return O()||r},ieCompatibilityMode:function(){return O()||i>r},ie64:function(){return v.ie()&&m},firefox:function(){return O()||n},opera:function(){return O()||o},webkit:function(){return O()||c},safari:function(){return v.webkit()},chrome:function(){return O()||a},windows:function(){return O()||s},osx:function(){return O()||l},linux:function(){return O()||u},iphone:function(){return O()||d},mobile:function(){return O()||d||p||b||h},nativeApp:function(){return O()||g},android:function(){return O()||b},ipad:function(){return O()||p}};e.exports=v},312:function(e,t,r){"use strict";var n,o=r(313);o.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(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,c=r in document;if(!c){var a=document.createElement("div");a.setAttribute(r,"return;"),c="function"==typeof a[r]}return!c&&n&&"wheel"===e&&(c=document.implementation.hasFeature("Events.wheel","3.0")),c}},313:function(e,t,r){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=o},314:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.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=c},315:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.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=c},32:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(55);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(n.a)(e,t)}},33:function(e,t){e.exports=window.wp.hooks},34:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(59),o=r.n(n),c=r(18);function a(e,t){return!t||"object"!==o()(t)&&"function"!=typeof t?Object(c.a)(e):t}},35:function(e,t){e.exports=window.wp.deprecated},37:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},4:function(e,t){e.exports=window.wp.data},42:function(e,t){e.exports=window.wp.coreData},43:function(e,t){e.exports=window.wp.blob},44:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},447:function(e,t,r){"use strict";r.r(t),r.d(t,"__experimentalGetCoreBlocks",(function(){return yb})),r.d(t,"registerCoreBlocks",(function(){return wb})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return _b}));var n={};r.r(n),r.d(n,"metadata",(function(){return Oe})),r.d(n,"name",(function(){return ve})),r.d(n,"settings",(function(){return je}));var o={};r.r(o),r.d(o,"metadata",(function(){return qt})),r.d(o,"name",(function(){return Zt})),r.d(o,"settings",(function(){return Yt}));var c={};r.r(c),r.d(c,"metadata",(function(){return pr})),r.d(c,"name",(function(){return gr})),r.d(c,"settings",(function(){return hr}));var a={};r.r(a),r.d(a,"metadata",(function(){return Br})),r.d(a,"name",(function(){return zr})),r.d(a,"settings",(function(){return Tr}));var i={};r.r(i),r.d(i,"metadata",(function(){return mn})),r.d(i,"name",(function(){return dn})),r.d(i,"settings",(function(){return pn}));var l={};r.r(l),r.d(l,"metadata",(function(){return On})),r.d(l,"name",(function(){return vn})),r.d(l,"settings",(function(){return jn}));var s={};r.r(s),r.d(s,"metadata",(function(){return Cn})),r.d(s,"name",(function(){return xn})),r.d(s,"settings",(function(){return Sn}));var u={};r.r(u),r.d(u,"metadata",(function(){return eo})),r.d(u,"name",(function(){return to})),r.d(u,"settings",(function(){return ro}));var b={};r.r(b),r.d(b,"metadata",(function(){return io})),r.d(b,"name",(function(){return lo})),r.d(b,"settings",(function(){return so}));var m={};r.r(m),r.d(m,"metadata",(function(){return Oo})),r.d(m,"name",(function(){return vo})),r.d(m,"settings",(function(){return jo}));var d={};r.r(d),r.d(d,"metadata",(function(){return _o})),r.d(d,"name",(function(){return ko})),r.d(d,"settings",(function(){return Eo}));var p={};r.r(p),r.d(p,"metadata",(function(){return Bo})),r.d(p,"name",(function(){return zo})),r.d(p,"settings",(function(){return To}));var g={};r.r(g),r.d(g,"metadata",(function(){return rc})),r.d(g,"name",(function(){return nc})),r.d(g,"settings",(function(){return oc}));var h={};r.r(h),r.d(h,"metadata",(function(){return uc})),r.d(h,"name",(function(){return bc})),r.d(h,"settings",(function(){return mc}));var f={};r.r(f),r.d(f,"metadata",(function(){return qc})),r.d(f,"name",(function(){return Zc})),r.d(f,"settings",(function(){return Yc}));var O={};r.r(O),r.d(O,"metadata",(function(){return Ca})),r.d(O,"name",(function(){return xa})),r.d(O,"settings",(function(){return Sa}));var v={};r.r(v),r.d(v,"metadata",(function(){return Ma})),r.d(v,"name",(function(){return Ra})),r.d(v,"settings",(function(){return Va}));var j={};r.r(j),r.d(j,"metadata",(function(){return La})),r.d(j,"name",(function(){return Ia})),r.d(j,"settings",(function(){return Da}));var y={};r.r(y),r.d(y,"metadata",(function(){return li})),r.d(y,"name",(function(){return si})),r.d(y,"settings",(function(){return ui}));var w={};r.r(w),r.d(w,"metadata",(function(){return mi})),r.d(w,"name",(function(){return di})),r.d(w,"settings",(function(){return pi}));var _={};r.r(_),r.d(_,"metadata",(function(){return Ci})),r.d(_,"name",(function(){return xi})),r.d(_,"settings",(function(){return Si}));var k={};r.r(k),r.d(k,"metadata",(function(){return qi})),r.d(k,"name",(function(){return Zi})),r.d(k,"settings",(function(){return Yi}));var E={};r.r(E),r.d(E,"metadata",(function(){return Ji})),r.d(E,"name",(function(){return Ki})),r.d(E,"settings",(function(){return Xi}));var C={};r.r(C),r.d(C,"metadata",(function(){return rl})),r.d(C,"name",(function(){return nl})),r.d(C,"settings",(function(){return ol}));var x={};r.r(x),r.d(x,"metadata",(function(){return il})),r.d(x,"name",(function(){return ll})),r.d(x,"settings",(function(){return sl}));var S={};r.r(S),r.d(S,"metadata",(function(){return dl})),r.d(S,"name",(function(){return pl})),r.d(S,"settings",(function(){return gl}));var P={};r.r(P),r.d(P,"metadata",(function(){return Ol})),r.d(P,"name",(function(){return vl})),r.d(P,"settings",(function(){return jl}));var B={};r.r(B),r.d(B,"metadata",(function(){return Ml})),r.d(B,"name",(function(){return Rl})),r.d(B,"settings",(function(){return Vl}));var z={};r.r(z),r.d(z,"metadata",(function(){return Ll})),r.d(z,"name",(function(){return Il})),r.d(z,"settings",(function(){return Dl}));var T={};r.r(T),r.d(T,"metadata",(function(){return Ul})),r.d(T,"name",(function(){return Gl})),r.d(T,"settings",(function(){return Wl}));var N={};r.r(N),r.d(N,"metadata",(function(){return ts})),r.d(N,"name",(function(){return rs})),r.d(N,"settings",(function(){return ns}));var M={};r.r(M),r.d(M,"metadata",(function(){return us})),r.d(M,"name",(function(){return bs})),r.d(M,"settings",(function(){return ms}));var R={};r.r(R),r.d(R,"metadata",(function(){return fs})),r.d(R,"name",(function(){return Os})),r.d(R,"settings",(function(){return vs}));var V={};r.r(V),r.d(V,"metadata",(function(){return ks})),r.d(V,"name",(function(){return Es})),r.d(V,"settings",(function(){return Cs}));var A={};r.r(A),r.d(A,"metadata",(function(){return Ps})),r.d(A,"name",(function(){return Bs})),r.d(A,"settings",(function(){return zs}));var H={};r.r(H),r.d(H,"metadata",(function(){return uu})),r.d(H,"name",(function(){return bu})),r.d(H,"settings",(function(){return mu}));var L={};r.r(L),r.d(L,"metadata",(function(){return hu})),r.d(L,"name",(function(){return fu})),r.d(L,"settings",(function(){return Ou}));var I={};r.r(I),r.d(I,"metadata",(function(){return wu})),r.d(I,"name",(function(){return _u})),r.d(I,"settings",(function(){return ku}));var D={};r.r(D),r.d(D,"metadata",(function(){return Fu})),r.d(D,"name",(function(){return Uu})),r.d(D,"settings",(function(){return Gu}));var F={};r.r(F),r.d(F,"metadata",(function(){return Zu})),r.d(F,"name",(function(){return Yu})),r.d(F,"settings",(function(){return $u}));var U={};r.r(U),r.d(U,"metadata",(function(){return tb})),r.d(U,"name",(function(){return rb})),r.d(U,"settings",(function(){return nb}));var G={};r.r(G),r.d(G,"metadata",(function(){return sb})),r.d(G,"name",(function(){return ub})),r.d(G,"settings",(function(){return bb}));var W={};r.r(W),r.d(W,"metadata",(function(){return fb})),r.d(W,"name",(function(){return Ob})),r.d(W,"settings",(function(){return vb}));var q=r(15),Z=r(5),Y=r(42),$=r(6),J=r(9),K=r(2),X=r(1),Q=r(0),ee=r(7),te=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"})),re=r(10),ne=r.n(re);function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t 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"}},_e=[{attributes:we,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(Q.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(Q.createElement)("figure",{className:b},i?Object(Q.createElement)("a",{href:i},m):m,!$.RichText.isEmpty(c)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:we,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(Q.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(Q.createElement)("figure",{className:c?"align".concat(c):null},a?Object(Q.createElement)("a",{href:a},u):u,!$.RichText.isEmpty(o)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:we,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(Q.createElement)("img",Object(ue.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(Q.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(Q.createElement)("a",{href:a},u):u,!$.RichText.isEmpty(o)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}}],ke=r(12),Ee=r(43),Ce=r(4),xe=r(11),Se=r(29),Pe=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Be=r(219),ze=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M15.3 14.5c-.1-.1-.2-.2-.2-.4v-2.8c0-1.2-.2-2-.7-2.5-.5-.5-1.2-.8-2.1-.8-1 0-1.9.2-2.7.7l.2 1.4c.4-.2.8-.4 1.1-.5.3-.1.7-.2 1-.2.5 0 .9.1 1.1.3.2.2.3.6.4 1.1-.7 0-1.3.1-2 .3-.7.2-1.2.5-1.7.9s-.7.9-.7 1.6c0 .7.2 1.2.6 1.7.4.4 1 .6 1.6.6.5 0 .9-.1 1.3-.3.4-.2.8-.4 1-.7.2.3.4.6.7.7.3.2.7.2 1.2.2h.5l.2-1.4h-.2c-.3.2-.5.2-.6.1zm-2-.6c-.2.2-.4.4-.7.5-.3.1-.5.2-.8.2-.7 0-1.1-.3-1.1-1 0-.5.2-.8.7-1.1.5-.2 1.1-.4 1.9-.4v1.8zm5-9.9H5.7C4.8 4 4 4.8 4 5.7v12.5c0 1 .8 1.7 1.7 1.7h12.5c1 0 1.7-.8 1.7-1.7V5.7c.1-.9-.7-1.7-1.6-1.7zm.2 14.3c0 .1-.1.2-.2.2H5.7c-.1 0-.2-.1-.2-.2V5.7c0-.1.1-.2.2-.2h12.5c.1 0 .2.1.2.2v12.6z"})),Te=r(51),Ne=[{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"}],Me=r(118),Re=r.n(Me),Ve=r(72),Ae=r.n(Ve);function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))}(e,r)}))},De=function(e){return e&&e.includes('class="wp-embedded-content"')},Fe=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preview,o=e.attributes,c=(o=void 0===o?{}:o).url,a=o.providerNameSlug,i=o.type;if(c&&Object(J.getBlockType)("core/embed")){var l=Ie(c),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(J.createBlock)("core/embed",Le({url:c},l.attributes));var b=null===(t=Object(J.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(e){return"wordpress"===e.name}));if(b&&n&&De(n.html)&&!s)return Object(J.createBlock)("core/embed",Le(Le({url:c},b.attributes),r))}},Ue=function(e){if(!e)return e;var t=Ne.reduce((function(e,t){return e[t.className]=!1,e}),{"wp-has-aspect-ratio":!1});return Re()(e,t)};function Ge(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r)return Ue(t);var n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;var o=n.body.querySelector("iframe");if(o&&o.height&&o.width)for(var c=(o.width/o.height).toFixed(2),a=0;a=i.ratio){var l=c-i.ratio;return l>.1?Ue(t):Re()(Ue(t),i.className,"wp-has-aspect-ratio")}}return t}var We=Ae()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(K.kebabCase)((s||t).toLowerCase());return De(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=Ge(l,r,n&&o),c})); /*! ***************************************************************************** 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 qe=function(e,t){return(qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var Ze=function(){return(Ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;ru*o?{width:u*o,height:u}:{width:s,height:s/o}}function Qe(e,t,r,n,o){void 0===o&&(o=0);var c=st(t.width,t.height,o),a=c.width,i=c.height;return{x:et(e.x,a,r.width,n),y:et(e.y,i,r.height,n)}}function et(e,t,r,n){var o=t*n/2-r/2;return Math.min(o,Math.max(e,-o))}function tt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function rt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function nt(e,t,r,n,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?ot:ct,l={x:i(100,((t.width-r.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-r.height/o)/2-e.y/o)/t.height*100),width:i(100,r.width/t.width*100/o),height:i(100,r.height/t.height*100/o)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:Ze(Ze({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function ot(e,t){return Math.min(e,Math.max(0,t))}function ct(e,t){return t}function at(e,t,r){var n=t.width/t.naturalWidth,o=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),c=n*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function it(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function lt(e,t,r,n,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-r)*c(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*c(i)+n]}function st(e,t,r){var n=e/2,o=t/2,c=[lt(0,0,n,o,r),lt(e,0,n,o,r),lt(e,t,n,o,r),lt(0,t,n,o,r)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-l}}function ut(){for(var e=[],t=0;t0})).join(" ").trim()}var bt=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var o=at(t,r.mediaSize,n),c=o.crop,a=o.zoom;r.props.onCropChange(c),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,o,c,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(o=r.videoRef)||void 0===o?void 0:o.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:Xe(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(c=r.state.cropSize)||void 0===c?void 0:c.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,o=e.x,c=e.y;r.dragStartPosition={x:o,y:c},r.dragStartCrop=Ze({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,o=n-r.dragStartPosition.y,c={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},a=r.props.restrictPosition?Qe(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),o=Ke()(e).pixelY,c=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(c,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,o=r.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(n+c.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),o=r.getPointOnMedia(n),c=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:o.x*c-n.x,y:o.y*c-n.y},i=r.props.restrictPosition?Qe(a,r.mediaSize,r.state.cropSize,c,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(c)}},r.getCropData=function(){return r.state.cropSize?nt(r.props.restrictPosition?Qe(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Qe(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}qe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(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,r,n,o,c,a,i,l;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===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(c=e.crop)||void 0===c?void 0:c.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(i=e.crop)||void 0===i?void 0:i.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.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,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=tt(r,n),this.lastPinchRotation=rt(r,n),this.onDragStart(it(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=it(n,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=tt(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,c),r.lastPinchDistance=e;var a=rt(n,o),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,o=t.mediaProps,c=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,O=f.containerClassName,v=f.cropAreaClassName,j=f.mediaClassName;return $e.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:ut("reactEasyCrop_Container",O)},r?$e.a.createElement("img",Ze({alt:"",className:ut("reactEasyCrop_Image",j)},o,{src:r,ref:function(t){return e.imageRef=t},style:Ze(Ze({},h),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&$e.a.createElement("video",Ze({autoPlay:!0,loop:!0,muted:!0,className:ut("reactEasyCrop_Video",j)},o,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:Ze(Ze({},h),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&$e.a.createElement("div",{style:Ze(Ze({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:ut("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",v)}))},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}($e.a.Component),mt={position:"bottom right",isAlternate:!0},dt=r(50),pt=r.n(dt);var gt=r(33);function ht(e,t){var r=function(e){var t=e.url,r=e.naturalWidth,n=e.naturalHeight,o=Object(Q.useState)(),c=Object(ke.a)(o,2),a=c[0],i=c[1],l=Object(Q.useState)(),s=Object(ke.a)(l,2),u=s[0],b=s[1],m=Object(Q.useState)({x:0,y:0}),d=Object(ke.a)(m,2),p=d[0],g=d[1],h=Object(Q.useState)(),f=Object(ke.a)(h,2),O=f[0],v=f[1],j=Object(Q.useState)(),y=Object(ke.a)(j,2),w=y[0],_=y[1],k=Object(Q.useState)(),E=Object(ke.a)(k,2),C=E[0],x=E[1],S=Object(Q.useState)(),P=Object(ke.a)(S,2),B=P[0],z=P[1],T=Object(Q.useCallback)((function(){g({x:0,y:0}),v(100),_(0),x(r/n),z(r/n)}),[r,n,g,v,_,x,z]),N=Object(Q.useCallback)((function(){var e=(w+90)%360,o=r/n;if(w%180==90&&(o=n/r),0===e)return i(),_(e),x(1/C),void g({x:-p.y*o,y:p.x*o});var c=new window.Image;c.src=t,c.onload=function(t){var r=document.createElement("canvas"),n=0,c=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(c=r.height);var a=r.getContext("2d");a.translate(n,c),a.rotate(e*Math.PI/180),a.drawImage(t.target,0,0),r.toBlob((function(t){i(URL.createObjectURL(t)),_(e),x(1/C),g({x:-p.y*o,y:p.x*o})}))};var a=Object(gt.applyFilters)("media.crossOrigin",void 0,t);"string"==typeof a&&(c.crossOrigin=a)}),[w,r,n,i,_,x,g]);return Object(Q.useMemo)((function(){return{editedUrl:a,setEditedUrl:i,crop:u,setCrop:b,position:p,setPosition:g,zoom:O,setZoom:v,rotation:w,setRotation:_,rotateClockwise:N,aspect:C,setAspect:x,defaultAspect:B,initializeTransformValues:T}}),[a,i,u,b,p,g,O,v,w,_,N,C,x,B,T])}(e),n=r.initializeTransformValues;return Object(Q.useEffect)((function(){t&&n()}),[t,n]),r}function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t0&&(e.rotation=r),e.src=a,pt()({path:"/wp/v2/media/".concat(i,"/edit"),method:"POST",data:e}).then((function(e){l({id:e.id,url:e.source_url,height:n&&o?o/c:void 0})})).catch((function(e){u(Object(X.sprintf)(Object(X.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s()}))}),[p,t,r,n,o,c,a,l,u,p,s]);return Object(Q.useMemo)((function(){return{isInProgress:d,apply:h,cancel:g}}),[d,h,g])}(Ot({id:t,url:r,onSaveImage:i,onFinishEditing:a},s)),b=Object(Q.useMemo)((function(){return Ot(Ot({},s),u)}),[s,u]);return Object(Q.createElement)(vt.Provider,{value:b},l)}function wt(e){var t=e.url,r=e.width,n=e.height,o=e.clientWidth,c=e.naturalHeight,a=e.naturalWidth,i=jt(),l=i.isInProgress,s=i.editedUrl,u=i.position,b=i.zoom,m=i.aspect,d=i.setPosition,p=i.setCrop,g=i.setZoom,h=n||o*c/a;return i.rotation%180==90&&(h=o*a/c),Object(Q.createElement)("div",{className:ne()("wp-block-image__crop-area",{"is-applying":l}),style:{width:r||o,height:h}},Object(Q.createElement)(bt,{image:s||t,disabled:l,minZoom:1,maxZoom:3,crop:u,zoom:b/100,aspect:m,onCropChange:d,onCropComplete:function(e){p(e)},onZoomChange:function(e){g(100*e)}}),l&&Object(Q.createElement)(be.Spinner,null))}var _t=r(215);function kt(){var e=jt(),t=e.isInProgress,r=e.zoom,n=e.setZoom;return Object(Q.createElement)(be.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:mt,renderToggle:function(e){var r=e.isOpen,n=e.onToggle;return Object(Q.createElement)(be.ToolbarButton,{icon:_t.a,label:Object(X.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:t})},renderContent:function(){return Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Zoom"),min:100,max:300,value:Math.round(r),onChange:n})}})}var Et=r(161),Ct=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));function xt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,o=e.onClick,c=e.value;return Object(Q.createElement)(be.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(Q.createElement)(be.MenuItem,{key:n,disabled:r,onClick:function(){o(n)},role:"menuitemradio",isSelected:n===c,icon:n===c?Et.a:void 0},t)})))}function St(e){var t=e.toggleProps,r=jt(),n=r.isInProgress,o=r.aspect,c=r.setAspect,a=r.defaultAspect;return Object(Q.createElement)(be.DropdownMenu,{icon:Ct,label:Object(X.__)("Aspect Ratio"),popoverProps:mt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(xt,{isDisabled:n,onClick:function(e){c(e),t()},value:o,aspectRatios:[{title:Object(X.__)("Original"),aspect:a},{title:Object(X.__)("Square"),aspect:1}]}),Object(Q.createElement)(xt,{label:Object(X.__)("Landscape"),isDisabled:n,onClick:function(e){c(e),t()},value:o,aspectRatios:[{title:Object(X.__)("16:10"),aspect:1.6},{title:Object(X.__)("16:9"),aspect:16/9},{title:Object(X.__)("4:3"),aspect:4/3},{title:Object(X.__)("3:2"),aspect:1.5}]}),Object(Q.createElement)(xt,{label:Object(X.__)("Portrait"),isDisabled:n,onClick:function(e){c(e),t()},value:o,aspectRatios:[{title:Object(X.__)("10:16"),aspect:.625},{title:Object(X.__)("9:16"),aspect:9/16},{title:Object(X.__)("3:4"),aspect:3/4},{title:Object(X.__)("2:3"),aspect:2/3}]}))}))}var Pt=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));function Bt(){var e=jt(),t=e.isInProgress,r=e.rotateClockwise;return Object(Q.createElement)(be.ToolbarButton,{icon:Pt,label:Object(X.__)("Rotate"),onClick:r,disabled:t})}function zt(){var e=jt(),t=e.isInProgress,r=e.apply,n=e.cancel;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(be.ToolbarButton,{onClick:r,disabled:t},Object(X.__)("Apply")),Object(Q.createElement)(be.ToolbarButton,{onClick:n},Object(X.__)("Cancel")))}function Tt(e){var t=e.url,r=e.width,n=e.height,o=e.clientWidth,c=e.naturalHeight,a=e.naturalWidth;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(wt,{url:t,width:r,height:n,clientWidth:o,naturalHeight:c,naturalWidth:a}),Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,null,Object(Q.createElement)(kt,null),Object(Q.createElement)(be.ToolbarItem,null,(function(e){return Object(Q.createElement)(St,{toggleProps:e})})),Object(Q.createElement)(Bt,null)),Object(Q.createElement)(be.ToolbarGroup,null,Object(Q.createElement)(zt,null))))}var Nt=["image"];function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;tfe;Re=He?fe:ce,Ve=He?fe*(ae/ce):ae}if(we&&ue)Ae=Object(Q.createElement)(Tt,{url:o,width:p,height:g,clientWidth:fe,naturalHeight:ae,naturalWidth:ce});else if(Oe&&Re){var Le=p||Re,Ie=g||Ve,De=ce/ae,Ue=ce 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,__experimentalBorder:{radius:!0}},editorStyle:"wp-block-image-editor",style:"wp-block-image"},Zt=qt.name,Yt={title:Object(X._x)("Image","block title"),description:Object(X.__)("Insert an image to make a visual statement."),icon:ye,keywords:["img",Object(X.__)("photo"),Object(X.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(X.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(X._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(X._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(X.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Wt,edit:It,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(K.isEmpty)(l)?void 0:l,f=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(Q.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),v=Object(Q.createElement)(Q.Fragment,null,i?Object(Q.createElement)("a",{className:s,href:i,target:d,rel:h},O):O,!$.RichText.isEmpty(c)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(Q.createElement)("div",$.useBlockProps.save(),Object(Q.createElement)("figure",{className:f},v)):Object(Q.createElement)("figure",$.useBlockProps.save({className:f}),v)},deprecated:_e},$t=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Jt=r(13);function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t".concat(t,"

"),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(J.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(J.createBlock)("core/quote",{value:"

".concat(e,"

")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

"!==t&&n.push.apply(n,Object(q.a)(Object(kr.split)(Object(kr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(kr.toHTMLString)({value:e})})})))),r&&"

"!==r&&n.push(Object(J.createBlock)("core/paragraph",{content:r})),0===n.length?Object(J.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Jt.a)(e,["value","citation"]);if("

"===t)return Object(J.createBlock)("core/heading",{content:r});var o=Object(kr.split)(Object(kr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(J.createBlock)("core/heading",{content:Object(kr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(J.createBlock)("core/quote",Cr(Cr({},n),{},{citation:r,value:Object(kr.toHTMLString)({value:a.length?Object(kr.join)(o.slice(1),"\u2028"):Object(kr.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(J.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;t"+Object(X.__)("In quoting others, we cite ourselves.")+"

",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(X._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(X._x)("Large","block style")}],transforms:xr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=e.mergedStyle,s=t.align,u=t.value,b=t.citation,m=Object($.useBlockProps)({className:ne()(a,Object(Z.a)({},"has-text-align-".concat(s),s)),style:l});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,{group:"block"},Object(Q.createElement)($.AlignmentControl,{value:s,onChange:function(e){r({align:e})}})),Object(Q.createElement)(be.BlockQuotation,m,Object(Q.createElement)($.RichText,{identifier:"value",multiline:!0,value:u,onChange:function(e){return r({value:e})},onMerge:o,onRemove:function(e){var t=!b||0===b.length;!e&&t&&c([])},"aria-label":Object(X.__)("Quote text"),placeholder:Object(X.__)("Add quote"),onReplace:c,onSplit:function(e){return Object(J.createBlock)("core/quote",_r(_r({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(J.createBlock)("core/paragraph")},textAlign:s}),(!$.RichText.isEmpty(b)||n)&&Object(Q.createElement)($.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:b,onChange:function(e){return r({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":Object(X.__)("Quote citation text"),placeholder:Object(X.__)("Add citation"),className:"wp-block-quote__citation",textAlign:s,__unstableOnSplitAtEnd:function(){return i(Object(J.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,r=t.align,n=t.value,o=t.citation,c=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(Q.createElement)("blockquote",$.useBlockProps.save({className:c}),Object(Q.createElement)($.RichText.Content,{multiline:!0,value:n}),!$.RichText.isEmpty(o)&&Object(Q.createElement)($.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var r=t.value,n=t.citation;return n||(n=e.citation),Pr(Pr({},e),{},r&&"

"!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:yr},Nr=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));function Mr(e){return Math.min(3,e.images.length)}var Rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(K.pick)(e,["alt","id","link","caption"]);r.url=Object(K.get)(e,["sizes",t,"url"])||Object(K.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(K.get)(e,["sizes","full","url"])||Object(K.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t0&&Object(Q.createElement)($.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:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(K.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return Ar(Ar({},e),{},{ids:Object(K.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Mr(t):n,c=t.imageCrop,a=t.linkTo;return Object(Q.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(Q.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(Q.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Q.createElement)("figure",null,t?Object(Q.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(Q.createElement)($.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:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Mr(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=ne()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(Q.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(Q.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(Q.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(Q.createElement)("a",{href:t},r):r)})))}}],Lr=r(115),Ir=Object(Q.createElement)($.BlockIcon,{icon:Nr}),Dr=r(25),Fr=r(26),Ur=r(18),Gr=r(32),Wr=r(34),qr=r(22),Zr=r(217),Yr=r(216),$r=r(272),Jr=r(159);function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(qr.a)(e);if(t){var o=Object(qr.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Wr.a)(this,r)}}var Xr=function(e){Object(Gr.a)(r,e);var t=Kr(r);function r(){var e;return Object(Dr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Ur.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Ur.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Ur.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Ur.a)(e)),e.onEdit=e.onEdit.bind(Object(Ur.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Ur.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Ur.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(Fr.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[cr.BACKSPACE,cr.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=Rr(e,i);(function(e,t){return!e&&Object(Ee.isBlobURL)(t)})(n,o)&&c&&(l=Object(K.omit)(l,["alt"])),a&&!Object(K.get)(l,["caption"])&&(l=Object(K.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(c){case"file":e=r;break;case"post":e=a}var f=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ee.isBlobURL)(r)&&Object(Q.createElement)(be.Spinner,null)),O=ne()({"is-selected":s,"is-transient":Object(Ee.isBlobURL)(r)});return Object(Q.createElement)("figure",{className:O},!h&&(e?Object(Q.createElement)("a",{href:e},f):f),h&&Object(Q.createElement)($.MediaPlaceholder,{labels:{title:Object(X.__)("Edit gallery image")},icon:ye,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:r}}),Object(Q.createElement)(be.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(Q.createElement)(be.Button,{icon:Zr.a,onClick:i?void 0:d,label:Object(X.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(Q.createElement)(be.Button,{icon:Yr.a,onClick:l?void 0:m,label:Object(X.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(Q.createElement)(be.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(Q.createElement)(be.Button,{icon:$r.a,onClick:this.onEdit,label:Object(X.__)("Replace image"),disabled:!s}),Object(Q.createElement)(be.Button,{icon:Jr.a,onClick:b,label:Object(X.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(Q.createElement)($.RichText,{tagName:"figcaption","aria-label":Object(X.__)("Image caption text"),placeholder:s?Object(X.__)("Add caption"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(Q.Component),Qr=Object(xe.compose)([Object(Ce.withSelect)((function(e,t){var r=e(Y.store).getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(Ce.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e($.store).__unstableMarkNextChangeAsNotPersistent}}))])(Xr);function en(e){var t=e.isHidden,r=Object(Jt.a)(e,["isHidden"]);return t?Object(Q.createElement)(be.VisuallyHidden,Object(ue.a)({as:$.RichText},r)):Object(Q.createElement)($.RichText,r)}var tn=function(e){var t,r=e.attributes,n=e.isSelected,o=e.setAttributes,c=e.selectedImage,a=e.mediaPlaceholder,i=e.onMoveBackward,l=e.onMoveForward,s=e.onRemoveImage,u=e.onSelectImage,b=e.onDeselectImage,m=e.onSetImageAttributes,d=e.onFocusGalleryCaption,p=e.insertBlocksAfter,g=e.blockProps,h=r.align,f=r.columns,O=void 0===f?Mr(r):f,v=r.caption,j=r.imageCrop,y=r.images;return Object(Q.createElement)("figure",Object(ue.a)({},g,{className:ne()(g.className,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(O),O),Object(Z.a)(t,"is-cropped",j),t))}),Object(Q.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var o=Object(X.sprintf)(Object(X.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(Q.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(Q.createElement)(Qr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:n&&c===t,onMoveBackward:i(t),onMoveForward:l(t),onRemove:s(t),onSelect:u(t),onDeselect:b(t),setAttributes:function(e){return m(t,e)},caption:e.caption,"aria-label":o,sizeSlug:r.sizeSlug}))}))),a,Object(Q.createElement)(en,{isHidden:!n&&$.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(X.__)("Gallery caption text"),placeholder:Object(X.__)("Write gallery caption…"),value:v,unstableOnFocus:d,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(J.createBlock)("core/paragraph"))}}))};function rn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nn(e){for(var t=1;t0&&Object(K.every)(m,(function(e){var t=e.url;return Object(Ee.isBlobURL)(t)}))){var e=Object(K.map)(m,(function(e){var t=e.url;return Object(Ee.getBlobByURL)(t)}));Object(K.forEach)(m,(function(e){var t=e.url;return Object(Ee.revokeBlobURL)(t)})),c({filesList:e,onFileChange:x,allowedTypes:["image"]})}}),[]),Object(Q.useEffect)((function(){r||O()}),[r]),Object(Q.useEffect)((function(){var e,t,r,n,o,c;d||(_(),k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(r=t.media)||void 0===r||null===(n=r.view)||void 0===n||null===(o=n.settings)||void 0===o||null===(c=o.defaultProps)||void 0===c?void 0:c.link)||"none"}))}),[d]);var S=!!m.length,P=S&&m.some((function(e){return!!e.id})),B=Object(Q.createElement)($.MediaPlaceholder,{addToGallery:P,isAppender:S,disableMediaButtons:S&&!r,icon:!S&&Ir,labels:{title:!S&&Object(X.__)("Gallery"),instructions:!S&&an},onSelect:x,accept:"image/*",allowedTypes:cn,multiple:!0,value:P?m:{},onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:S?void 0:n,onFocus:l}),z=Object($.useBlockProps)();if(!S)return Object(Q.createElement)(ee.View,z,B);var T=Object(K.map)(Object(K.filter)(a,(function(e){var t=e.slug;return Object(K.some)(i,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),N=S&&!Object(K.isEmpty)(T);return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Gallery settings")},m.length>1&&Object(Q.createElement)(be.RangeControl,Object(ue.a)({label:Object(X.__)("Columns"),value:u,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,m.length)},ln,{required:!0})),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Crop images"),checked:!!b,onChange:function(){k({imageCrop:!b})},help:function(e){return e?Object(X.__)("Thumbnails are cropped to align."):Object(X.__)("Thumbnails are not cropped.")}}),Object(Q.createElement)(be.SelectControl,{label:Object(X.__)("Link to"),value:d,onChange:function(e){k({linkTo:e})},options:on,hideCancelButton:!0}),N&&Object(Q.createElement)(be.SelectControl,{label:Object(X.__)("Image size"),value:p,options:T,onChange:function(e){k({images:Object(K.map)(m,(function(t){if(!t.id)return t;var r=Object(K.get)(i,[parseInt(t.id,10),e]);return nn(nn({},t),r&&{url:r})})),sizeSlug:e})},hideCancelButton:!0}))),n,Object(Q.createElement)(tn,Object(ue.a)({},e,{selectedImage:f,mediaPlaceholder:B,onMoveBackward:function(e){return function(){0!==e&&E(e,e-1)}},onMoveForward:function(e){return function(){e!==m.length-1&&E(e,e+1)}},onRemoveImage:function(e){return function(){var r=Object(K.filter)(m,(function(t,r){return e!==r}));O(),k({images:r,columns:t.columns?Math.min(r.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){O(e)}},onDeselectImage:function(){return function(){O()}},onSetImageAttributes:function(e,t){m[e]&&k({images:[].concat(Object(q.a)(m.slice(0,e)),[nn(nn({},m[e]),t)],Object(q.a)(m.slice(e+1)))})},onFocusGalleryCaption:function(){O()},blockProps:z})))}));var un=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},bn={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(K.every)(e,["align",r])?r:void 0,n=Object(K.every)(e,["sizeSlug",n])?n:void 0;var o=Object(K.filter)(e,(function(e){return e.url}));return Object(J.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,r=e.url,n=e.alt,o=e.caption;return{id:Object(K.toString)(t),url:r,alt:n,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return un(t).map((function(e){return{id:Object(K.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return un(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(K.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(J.createBlock)("core/gallery",{images:e.map((function(e){return Rr({url:Object(Ee.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(J.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:r,sizeSlug:n})})):Object(J.createBlock)("core/image",{align:r})}}]},mn={apiVersion:2,name:"core/gallery",category:"media",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"},dn=mn.name,pn={title:Object(X._x)("Gallery","block title"),description:Object(X.__)("Display multiple images in a rich gallery."),icon:Nr,keywords:[Object(X.__)("images"),Object(X.__)("photos")],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:bn,edit:sn,save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Mr(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo,l="columns-".concat(o," ").concat(c?"is-cropped":"");return Object(Q.createElement)("figure",$.useBlockProps.save({className:l}),Object(Q.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(Q.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-".concat(e.id):null});return Object(Q.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Q.createElement)("figure",null,t?Object(Q.createElement)("a",{href:t},r):r,!$.RichText.isEmpty(e.caption)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!$.RichText.isEmpty(a)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:Hr},gn=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"})),hn=r(76),fn=r.n(hn);var On={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},vn=On.name,jn={title:Object(X._x)("Archives","block title"),description:Object(X.__)("Display a monthly archive of your posts."),icon:gn,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Archives settings")},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(Q.createElement)("div",Object($.useBlockProps)(),Object(Q.createElement)(be.Disabled,null,Object(Q.createElement)(fn.a,{block:"core/archives",attributes:t}))))}},yn=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"})),wn=[{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:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(Q.createElement)("figure",null,Object(Q.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!$.RichText.isEmpty(n)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}}],_n=["audio"];var kn=Object(be.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object($.useBlockProps)(),g=Object(Ce.useSelect)((function(e){return(0,e($.store).getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Fe({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function O(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(Q.useEffect)((function(){if(!l&&Object(Ee.isBlobURL)(d)){var e=Object(Ee.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(ke.a)(e,1)[0],r=t.id,o=t.url;n({id:r,src:o})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:_n})}}),[]),d?Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,{group:"other"},Object(Q.createElement)($.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:_n,accept:"audio/*",onSelect:v,onSelectURL:f,onError:O})),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Audio settings")},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(X.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Loop"),onChange:h("loop"),checked:b}),Object(Q.createElement)(be.SelectControl,{label:Object(X.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(X.__)("Browser default")},{value:"auto",label:Object(X.__)("Auto")},{value:"metadata",label:Object(X.__)("Metadata")},{value:"none",label:Object(X.__)("None")}]}))),Object(Q.createElement)("figure",p,Object(Q.createElement)(be.Disabled,null,Object(Q.createElement)("audio",{controls:"controls",src:d})),(!$.RichText.isEmpty(u)||c)&&Object(Q.createElement)($.RichText,{tagName:"figcaption","aria-label":Object(X.__)("Audio caption text"),placeholder:Object(X.__)("Add caption"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(J.createBlock)("core/paragraph"))}}))):Object(Q.createElement)("div",p,Object(Q.createElement)($.MediaPlaceholder,{icon:Object(Q.createElement)($.BlockIcon,{icon:yn}),onSelect:v,onSelectURL:f,accept:"audio/*",allowedTypes:_n,value:t,notices:a,onError:O}))}));var En={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(J.createBlock)("core/audio",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,o=t.m4a,c=t.ogg,a=t.wav,i=t.wma;return r||n||o||c||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Cn={apiVersion:2,name:"core/audio",category:"media",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"},xn=Cn.name,Sn={title:Object(X._x)("Audio","block title"),description:Object(X.__)("Embed a simple audio player."),keywords:[Object(X.__)("music"),Object(X.__)("sound"),Object(X.__)("podcast"),Object(X.__)("recording")],icon:yn,transforms:En,deprecated:wn,edit:kn,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(Q.createElement)("figure",$.useBlockProps.save(),Object(Q.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!$.RichText.isEmpty(n)&&Object(Q.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}},Pn=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,O=Object($.getColorClassName)("background-color",p),v=Object($.__experimentalGetGradientClass)(h),j=Object($.getColorClassName)("color",g),y=ne()(j,v,(a={},Object(Z.a)(a,O,!(null!=f&&null!==(r=f.color)&&void 0!==r&&r.gradient||!O)),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(o=f.color)||void 0===o?void 0:o.background)||h||(null==f||null===(c=f.color)||void 0===c?void 0:c.gradient)),a)),w=null!=f&&null!==(i=f.color)&&void 0!==i&&i.background||null!=f&&null!==(l=f.color)&&void 0!==l&&l.text||null!=f&&null!==(s=f.color)&&void 0!==s&&s.gradient?{background:null!=f&&null!==(u=f.color)&&void 0!==u&&u.gradient?f.color.gradient:void 0,backgroundColor:null!=f&&null!==(b=f.color)&&void 0!==b&&b.background?f.color.background:void 0,color:null!=f&&null!==(m=f.color)&&void 0!==m&&m.text?f.color.text:void 0}:{};if(d){if(p){var _=Object($.getColorObjectByAttributeValues)(t,p);w.backgroundColor=_.color}if(g){var k=Object($.getColorObjectByAttributeValues)(t,g);w.color=k.color}}return{className:y||void 0,style:w}}function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function An(e){for(var t=1;t]*>/g,"")})},withoutInteractiveFormatting:!0,className:ne()(n,"wp-block-button__link",f.className,{"no-border-radius":0===i}),style:Wn({borderRadius:i?i+"px":void 0},f.style),onSplit:function(e){return Object(J.createBlock)("core/button",Wn(Wn({},t),{},{text:e}))},onReplace:c,onMerge:a,identifier:"text"})),Object(Q.createElement)($n,{url:m,setAttributes:r,isSelected:o,opensInNewTab:"_blank"===l,onToggleOpenInNewTab:h,anchorRef:O}),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(Zn,{borderRadius:i,setAttributes:r}),Object(Q.createElement)(Yn,{selectedWidth:d,setAttributes:r})),Object(Q.createElement)($.InspectorAdvancedControls,null,Object(Q.createElement)(be.TextControl,{label:Object(X.__)("Link rel"),value:u||"",onChange:p})))};function Kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t0&&(o?(r=m(c?0:null),Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(be.VisuallyHidden,{as:"label",htmlFor:l},Object(X.__)("Categories")),Object(Q.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},r.map((function(e){return f(e,0)}))))):function(){var e=m(c?0:null);return Object(Q.createElement)("ul",{className:d(0)},e.map((function(e){return h(e,0)})))}()))}},Co=r(315);function xo(e){return e.replace(/\[/g,"[")}function So(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Po={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(J.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(J.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Bo={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,fontSize:!0},style:"wp-block-code"},zo=Bo.name,To={title:Object(X._x)("Code","block title"),description:Object(X.__)("Display code snippets that respect your spacing and tabs."),icon:Co.a,example:{attributes:{content:Object(X.__)('// 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:Po,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.onRemove,o=Object($.useBlockProps)();return Object(Q.createElement)("pre",o,Object(Q.createElement)($.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},onRemove:n,placeholder:Object(X.__)("Write code…"),"aria-label":Object(X.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){var t,r=e.attributes;return Object(Q.createElement)("pre",$.useBlockProps.save(),Object(Q.createElement)($.RichText.Content,{tagName:"code",value:(t=r.content,Object(K.flow)(xo,So)(t||""))}))}},No=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ro(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,c=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw c}}}}function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(K.sumBy)(e,(function(e){return Do(e,t)}))}function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Do(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Go(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Fo(e,r);return Object(K.mapValues)(Uo(e,r),(function(e){return Io(t*e/n)}))}function Wo(e,t){return e.map((function(e){return Object(K.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var qo="web"===Q.Platform.OS,Zo=[{value:"%",label:qo?"%":Object(X.__)("Percentage (%)"),default:""},{value:"px",label:qo?"px":Object(X.__)("Pixels (px)"),default:""},{value:"em",label:qo?"em":Object(X.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:qo?"rem":Object(X.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:qo?"vw":Object(X.__)("Viewport width (vw)"),default:""}];var Yo=["core/column"];var $o=Object(Ce.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e($.store).updateBlockAttributes,i=r.select($.store).getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e($.store).replaceInnerBlocks,i=(0,r.select($.store).getBlocks)(c),l=i.every((function(e){var t,r=e.attributes.width;return Number.isFinite(null!=r&&null!==(t=r.endsWith)&&void 0!==t&&t.call(r,"%")?parseFloat(r):r)})),s=o>n;if(s&&l){var u=Io(100/o),b=Go(i,100-u);i=[].concat(Object(q.a)(Wo(i,b)),Object(q.a)(Object(K.times)(o-n,(function(){return Object(J.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(K.times)(o-n,(function(){return Object(J.createBlock)("core/column")}))));else{if(i=Object(K.dropRight)(i,n-o),l)i=Wo(i,Go(i,100))}a(c,i)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(Ce.useSelect)((function(e){return{count:e($.store).getBlockCount(o)}}),[o]).count,i=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(c),c)),l=Object($.useBlockProps)({className:i}),s=Object($.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:Yo,orientation:"horizontal",renderAppender:!1});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)($.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,null,Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(Q.createElement)(be.Notice,{status:"warning",isDismissible:!1},Object(X.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(Q.createElement)("div",s))}));function Jo(e){var t=e.clientId,r=e.name,n=e.setAttributes,o=Object(Ce.useSelect)((function(e){var t=e(J.store),n=t.getBlockVariations,o=t.getBlockType,c=t.getDefaultBlockVariation;return{blockType:o(r),defaultVariation:c(r,"block"),variations:n(r,"block")}}),[r]),c=o.blockType,a=o.defaultVariation,i=o.variations,l=Object(Ce.useDispatch)($.store).replaceInnerBlocks,s=Object($.useBlockProps)();return Object(Q.createElement)("div",s,Object(Q.createElement)($.__experimentalBlockVariationPicker,{icon:Object(K.get)(c,["icon","src"]),label:Object(K.get)(c,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Object(J.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var Ko=function(e){var t=e.clientId,r=Object(Ce.useSelect)((function(e){return e($.store).getBlocks(t).length>0}),[t])?$o:Jo;return Object(Q.createElement)(r,e)};var Xo=[{name:"one-column-full",title:Object(X.__)("100"),description:Object(X.__)("One column"),icon:Object(Q.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(be.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(X.__)("50 / 50"),description:Object(X.__)("Two columns; equal split"),icon:Object(Q.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(be.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(X.__)("30 / 70"),description:Object(X.__)("Two columns; one-third, two-thirds split"),icon:Object(Q.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(be.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(X.__)("70 / 30"),description:Object(X.__)("Two columns; two-thirds, one-third split"),icon:Object(Q.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(be.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(X.__)("33 / 33 / 33"),description:Object(X.__)("Three columns; equal split"),icon:Object(Q.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(be.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(X.__)("25 / 50 / 25"),description:Object(X.__)("Three columns; wide center column"),icon:Object(Q.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(be.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"]}];function Qo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ec(e){for(var t=1;t0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(Ce.useDispatch)($.store).updateBlockAttributes,d=Number.isFinite(n)?n+"%":n,p=Object($.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=Object($.__experimentalUseInnerBlocksProps)(p,{templateLock:c,renderAppender:u?void 0:$.InnerBlocks.ButtonBlockAppender});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)($.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Column settings")},Object(Q.createElement)(be.__experimentalUnitControl,{label:Object(X.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:Zo}))),Object(Q.createElement)("div",g))};var uc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},bc=uc.name,mc={title:Object(X._x)("Column","block title"),icon:cc,description:Object(X.__)("A single column within a columns block."),edit:sc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return o&&(t={flexBasis:Number.isFinite(o)?o+"%":o}),Object(Q.createElement)("div",$.useBlockProps.save({className:c,style:t}),Object(Q.createElement)($.InnerBlocks.Content,null))},deprecated:lc},dc=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));function pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var gc={"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 hc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}$.MEDIA_TYPE_IMAGE,$.MEDIA_TYPE_VIDEO;var fc="web"===Q.Platform.OS,Oc=[{value:"px",label:fc?"px":Object(X.__)("Pixels (px)"),default:"430"},{value:"em",label:fc?"em":Object(X.__)("Relative to parent font size (em)"),default:"20"},{value:"rem",label:fc?"rem":Object(X.__)("Relative to root font size (rem)"),default:"20"},{value:"vw",label:fc?"vw":Object(X.__)("Viewport width (vw)"),default:"20"},{value:"vh",label:fc?"vh":Object(X.__)("Viewport height (vh)"),default:"50"}];function vc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function jc(e){return function(t){if(t&&t.url){var r;if(Object(Ee.isBlobURL)(t.url)&&(t.type=Object(Ee.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(Q.useState)(!1),c=Object(ke.a)(o,2),a=c[0],i=c[1];return Object(Q.useEffect)((function(){e&&t<=50&&n.current&&Vc().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(Q.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(Bc()(r).isDark())}}),[r,t>50||!e,i]),Object(Q.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,g,l.color,H),I="image"===p,D="video"===p,F=Object(Q.useState)(null),U=Object(ke.a)(F,2),G=U[0],W=U[1],q=j?"".concat(v).concat(j):v,Y=!(f||O),J=Tc(Tc({},I&&!Y?hc(w):{backgroundImage:E||void 0}),{},{backgroundColor:l.color,minHeight:G||q||void 0}),K={objectPosition:h&&Y?Ic(h):void 0},ee=!!(w||l.color||E),te=D||I&&(!f||O),re=function(e){var t=H.current?[H.current.style,"objectPosition"]:[ce.current.style,"backgroundPosition"],r=Object(ke.a)(t,2);r[0][r[1]]=Ic(e)},oe=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,{group:"block"},Object(Q.createElement)($.__experimentalBlockAlignmentMatrixControl,{label:Object(X.__)("Change content position"),value:m,onChange:function(e){return s({contentPosition:e})},isDisabled:!ee}),Object(Q.createElement)($.__experimentalBlockFullHeightAligmentControl,{isActive:A,onToggle:function(){return A?s("vh"===R&&100===z?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:z,minHeightUnit:R}):(T(v),V(j),s({minHeight:100,minHeightUnit:"vh"}))},isDisabled:!ee})),Object(Q.createElement)($.BlockControls,{group:"other"},Object(Q.createElement)($.MediaReplaceFlow,{mediaId:d,mediaURL:w,allowedTypes:Nc,accept:"image/*,video/*",onSelect:x,name:w?Object(X.__)("Replace"):Object(X.__)("Add Media")})),Object(Q.createElement)($.InspectorControls,null,!!w&&Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Media settings")},I&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Fixed background"),checked:f,onChange:function(){s(Tc({hasParallax:!f},f?{}:{focalPoint:void 0}))}}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Repeated background"),checked:O,onChange:function(){s({isRepeated:!O})}})),te&&Object(Q.createElement)(be.FocalPointPicker,{label:Object(X.__)("Focal point picker"),url:w,value:h,onDragStart:re,onDrag:re,onChange:function(e){return s({focalPoint:e})}}),Object(Q.createElement)(be.PanelRow,null,Object(Q.createElement)(be.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return s({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(X.__)("Clear Media")))),Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Dimensions")},Object(Q.createElement)(Ac,{value:G||v,unit:j,onChange:function(e){return s({minHeight:e})},onUnitChange:function(e){return s({minHeightUnit:e})}})),Object(Q.createElement)($.__experimentalPanelColorGradientSettings,{title:Object(X.__)("Overlay"),initialOpen:!0,settings:[{colorValue:l.color,gradientValue:E,onColorChange:u,onGradientChange:C,label:Object(X.__)("Color")}]},!!w&&Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Opacity"),value:g,onChange:function(e){return s({dimRatio:e})},min:0,max:100,step:10,required:!0})))),ce=Object(Q.useRef)(),ae=Object($.useBlockProps)({ref:ce}),ie=Object($.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Mc,templateInsertUpdatesSelection:!0});if(!ee)return Object(Q.createElement)(Q.Fragment,null,oe,Object(Q.createElement)("div",Object(ue.a)({},ae,{className:ne()("is-placeholder",ae.className)}),Object(Q.createElement)(Dc,{noticeUI:a,onSelectMedia:x,noticeOperations:i},Object(Q.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(Q.createElement)($.ColorPalette,{disableCustomColors:!0,value:l.color,onChange:u,clearable:!1})))));var le=ne()(vc(g),(t={"is-dark-theme":L,"has-background-dim":0!==g,"is-transient":S,"has-parallax":f,"is-repeated":O},Object(Z.a)(t,l.class,l.class),Object(Z.a)(t,"has-background-gradient",E),Object(Z.a)(t,k,!w&&k),Object(Z.a)(t,"has-custom-content-position",!yc(m)),t),wc(m));return Object(Q.createElement)(Q.Fragment,null,oe,Object(Q.createElement)("div",Object(ue.a)({},ae,{className:ne()(le,ae.className),style:Tc(Tc({},J),ae.style),"data-url":w}),Object(Q.createElement)(Rc,{values:null==y||null===(r=y.spacing)||void 0===r?void 0:r.padding,showValues:null==y||null===(n=y.visualizers)||void 0===n?void 0:n.padding}),Object(Q.createElement)(Lc,{className:"block-library-cover__resize-container",onResizeStart:function(){s({minHeightUnit:"px"}),b(!1)},onResize:W,onResizeStop:function(e){b(!0),s({minHeight:e}),W(null)},showHandle:c}),w&&E&&0!==g&&Object(Q.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",k),style:{backgroundImage:E}}),w&&I&&Y&&Object(Q.createElement)("img",{ref:H,className:"wp-block-cover__image-background",alt:"",src:w,style:K}),w&&D&&Object(Q.createElement)("video",{ref:H,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:K}),S&&Object(Q.createElement)(be.Spinner,null),Object(Q.createElement)(Dc,{hasBackground:ee,noticeUI:a,onSelectMedia:x,noticeOperations:i}),Object(Q.createElement)("div",ie)))}));function Uc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;tSnow Patrol"),align:"center"}}]},transforms:Wc,save:function(e){var t,r=e.attributes,n=r.backgroundType,o=r.gradient,c=r.contentPosition,a=r.customGradient,i=r.customOverlayColor,l=r.dimRatio,s=r.focalPoint,u=r.hasParallax,b=r.isRepeated,m=r.overlayColor,d=r.url,p=r.id,g=r.minHeight,h=r.minHeightUnit,f=Object($.getColorClassName)("background-color",m),O=Object($.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===n,y="video"===n,w=!(u||b),_=Gc(Gc({},j&&!w?hc(d):{}),{},{backgroundColor:f?void 0:i,background:a&&!d?a:void 0,minHeight:v||void 0}),k=s&&w?"".concat(Math.round(100*s.x),"% ").concat(Math.round(100*s.y),"%"):void 0,E=ne()(vc(l),f,(t={"has-background-dim":0!==l,"has-parallax":u,"is-repeated":b,"has-background-gradient":o||a},Object(Z.a)(t,O,!d&&O),Object(Z.a)(t,"has-custom-content-position",!yc(c)),t),wc(c));return Object(Q.createElement)("div",$.useBlockProps.save({className:E,style:_}),d&&(o||a)&&0!==l&&Object(Q.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",O),style:a?{background:a}:void 0}),j&&w&&d&&Object(Q.createElement)("img",{className:ne()("wp-block-cover__image-background",p?"wp-image-".concat(p):null),alt:"",src:d,style:{objectPosition:k},"data-object-fit":"cover","data-object-position":k}),y&&d&&Object(Q.createElement)("video",{className:ne()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:k},"data-object-fit":"cover","data-object-position":k}),Object(Q.createElement)("div",{className:"wp-block-cover__inner-container"},Object(Q.createElement)($.InnerBlocks.Content,null)))},edit:Fc,deprecated:Cc},$c=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,null,r&&Object(Q.createElement)(be.ToolbarButton,{className:"components-toolbar__control",label:Object(X.__)("Edit URL"),icon:$r.a,onClick:i}))),n&&t&&Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Media settings"),className:"blocks-responsive"},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},Jc=function(){return Object(Q.createElement)("div",{className:"wp-block-embed is-loading"},Object(Q.createElement)(be.Spinner,null),Object(Q.createElement)("p",null,Object(X.__)("Embedding…")))},Kc=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(Q.createElement)(be.Placeholder,{icon:Object(Q.createElement)($.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(X.__)("Paste a link to the content you want to display on your site.")},Object(Q.createElement)("form",{onSubmit:o},Object(Q.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(X.__)("Enter URL to embed here…"),onChange:c}),Object(Q.createElement)(be.Button,{isPrimary:!0,type:"submit"},Object(X._x)("Embed","button label"))),Object(Q.createElement)("div",{className:"components-placeholder__learn-more"},Object(Q.createElement)(be.ExternalLink,{href:Object(X.__)("https://wordpress.org/support/article/embeds/")},Object(X.__)("Learn more about embeds"))),a&&Object(Q.createElement)("div",{className:"components-placeholder__error"},Object(Q.createElement)("div",{className:"components-placeholder__instructions"},Object(X.__)("Sorry, this content could not be embedded.")),Object(Q.createElement)(be.Button,{isSecondary:!0,onClick:l},Object(X._x)("Try again","button label"))," ",Object(Q.createElement)(be.Button,{isSecondary:!0,onClick:i},Object(X._x)("Convert to link","button label"))))};function Xc(e){var t=e.html,r=Object(Q.useRef)();Object(Q.useEffect)((function(){var e=r.current.ownerDocument,t=e.defaultView;function n(t){var r=t.data,n=(r=void 0===r?{}:r).secret,o=r.message,c=r.value;[n,o,c].some((function(e){return!e}))||"height"!==o||e.querySelectorAll('iframe[data-secret="'.concat(n,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}function o(){var t=e.activeElement;"IFRAME"===t.tagName&&t.parentNode===r.current&&t.focus()}return t.addEventListener("message",n),t.addEventListener("blur",o),function(){t.removeEventListener("message",n),t.removeEventListener("blur",o)}}),[]);var n=Object(Q.useMemo)((function(){var e=(new window.DOMParser).parseFromString(t,"text/html"),r=e.querySelector("iframe");r&&r.removeAttribute("style");var n=e.querySelector("blockquote");return n&&(n.style.display="none"),e.body.innerHTML}),[t]);return Object(Q.createElement)("div",{ref:r,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:n}})}function Qc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(qr.a)(e);if(t){var o=Object(qr.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Wr.a)(this,r)}}var ea=function(e){Object(Gr.a)(r,e);var t=Qc(r);function r(){var e;return Object(Dr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Ur.a)(e)),e.state={interactive:!1},e}return Object(Fr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=o.scripts,h=this.state.interactive,f="photo"===i?(t=(e=o).thumbnail_url||e.url,r=Object(Q.createElement)("p",null,Object(Q.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(Q.renderToString)(r)):o.html,O=new URL(a).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(X.sprintf)(Object(X.__)("Embedded content from %s"),v),y=Re()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(Q.createElement)(Xc,{html:f}):Object(Q.createElement)("div",{className:"wp-block-embed__wrapper"},Object(Q.createElement)(be.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(Q.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(Q.createElement)("figure",{className:Re()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?w:Object(Q.createElement)(be.Placeholder,{icon:Object(Q.createElement)($.BlockIcon,{icon:m,showColors:!0}),label:d},Object(Q.createElement)("p",{className:"components-placeholder__error"},Object(Q.createElement)("a",{href:a},a)),Object(Q.createElement)("p",{className:"components-placeholder__error"},Object(X.sprintf)(Object(X.__)("Embedded content from %s can't be previewed in the editor."),v))),(!$.RichText.isEmpty(l)||u)&&Object(Q.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(X.__)("Add caption"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(J.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(Q.Component);function ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ra(e){for(var t=1;t]*>/g,"")})}Object(Q.useEffect)((function(){if(Object(Ee.isBlobURL)(i)){var e=Object(Ee.getBlobByURL)(i);O({filesList:[e],onFileChange:function(e){return v(Object(ke.a)(e,1)[0])},onError:function(e){g(!0),o.createErrorNotice(e)}}),Object(Ee.revokeBlobURL)(i)}void 0===b&&y(Object(X._x)("Download","button label"))}),[]);var w=f&&f.link,_=Object($.useBlockProps)({className:ne()(Object(Ee.isBlobURL)(i)&&Object(be.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(Ee.isBlobURL)(i)})});return!i||p?Object(Q.createElement)("div",_,Object(Q.createElement)($.MediaPlaceholder,{icon:Object(Q.createElement)($.BlockIcon,{icon:Pa}),labels:{title:Object(X.__)("File"),instructions:Object(X.__)("Upload a file or pick one from your media library.")},onSelect:v,notices:n,onError:j,accept:"*"})):Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Ba,{hrefs:{href:i,textLinkHref:l,attachmentPage:w},openInNewWindow:!!s,showDownloadButton:u,changeLinkDestinationOption:function(e){r({textLinkHref:e})},changeOpenInNewWindow:function(e){r({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){r({showDownloadButton:e})}}),Object(Q.createElement)($.BlockControls,{group:"other"},Object(Q.createElement)($.MediaReplaceFlow,{mediaId:c,mediaURL:i,accept:"*",onSelect:v,onError:j}),Object(Q.createElement)(za,{text:i,disabled:Object(Ee.isBlobURL)(i)})),Object(Q.createElement)("div",_,Object(Q.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(Q.createElement)($.RichText,{style:{display:"inline-block"},tagName:"a",value:a,placeholder:Object(X.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return r({fileName:e})},href:l}),u&&Object(Q.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(Q.createElement)($.RichText,{tagName:"div","aria-label":Object(X.__)("Download button text"),className:"wp-block-file__button",value:b,withoutInteractiveFormatting:!0,placeholder:Object(X.__)("Add text…"),onChange:function(e){return y(e)}})))))}));var Na={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ee.createBlobURL)(e);t.push(Object(J.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(J.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(J.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(J.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:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(Ce.select)(Y.store).getMedia)(t);return!!r&&Object(K.includes)(r.mime_type,"audio")},transform:function(e){return Object(J.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(Ce.select)(Y.store).getMedia)(t);return!!r&&Object(K.includes)(r.mime_type,"video")},transform:function(e){return Object(J.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(Ce.select)(Y.store).getMedia)(t);return!!r&&Object(K.includes)(r.mime_type,"image")},transform:function(e){return Object(J.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},Ma={apiVersion:2,name:"core/file",category:"media",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]"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"},Ra=Ma.name,Va={title:Object(X._x)("File","block title"),description:Object(X.__)("Add a link to a downloadable file."),icon:Pa,keywords:[Object(X.__)("document"),Object(X.__)("pdf"),Object(X.__)("download")],transforms:Na,edit:Ta,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(Q.createElement)("div",$.useBlockProps.save(),!$.RichText.isEmpty(n)&&Object(Q.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(Q.createElement)($.RichText.Content,{value:n})),a&&Object(Q.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(Q.createElement)($.RichText.Content,{value:i})))}},Aa=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));var Ha={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(J.createBlock)("core/html",{content:t})}}]},La={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},Ia=La.name,Da={title:Object(X._x)("Custom HTML","block title"),description:Object(X.__)("Add custom HTML code and preview it as you edit."),icon:Aa,keywords:[Object(X.__)("embed")],example:{attributes:{content:""+Object(X.__)("Welcome to the wonderful world of blocks…")+""}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=Object(Q.useState)(),c=Object(ke.a)(o,2),a=c[0],i=c[1],l=Object(Ce.useSelect)((function(e){return["\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"].concat(Object(q.a)(Object($.transformStyles)(e($.store).getSettings().styles)))}),[]);return Object(Q.createElement)("div",Object($.useBlockProps)({className:"block-library-html__edit"}),Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,null,Object(Q.createElement)(be.ToolbarButton,{className:"components-tab-button",isPressed:!a,onClick:function(){i(!1)}},Object(Q.createElement)("span",null,"HTML")),Object(Q.createElement)(be.ToolbarButton,{className:"components-tab-button",isPressed:a,onClick:function(){i(!0)}},Object(Q.createElement)("span",null,Object(X.__)("Preview"))))),Object(Q.createElement)(be.Disabled.Consumer,null,(function(e){return a||e?Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(be.SandBox,{html:t.content,styles:l}),!n&&Object(Q.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(Q.createElement)($.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(X.__)("Write HTML…"),"aria-label":Object(X.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(Q.createElement)(Q.RawHTML,null,t.content)},transforms:Ha},Fa=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),Ua=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.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(Q.createElement)(be.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(Q.createElement)(be.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Ga=["image","video"];function Wa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var qa=Object(Q.forwardRef)((function(e,t){var r=e.isSelected,n=e.isStackedOnMobile,o=Object(Jt.a)(e,["isSelected","isStackedOnMobile"]),c=Object(xe.useViewportMatch)("small","<");return Object(Q.createElement)(be.ResizableBox,Object(ue.a)({ref:t,showHandle:r&&(!c||!n)},o))}));function Za(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(Q.createElement)($.BlockControls,{group:"other"},Object(Q.createElement)($.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:Ga,accept:"image/*,video/*",onSelect:n}))}function Ya(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,o=e.onSelectMedia;return Object(Q.createElement)($.MediaPlaceholder,{icon:Object(Q.createElement)($.BlockIcon,{icon:Ua}),labels:{title:Object(X.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:Ga,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var $a=Object(be.withNotices)(Object(Q.forwardRef)((function(e,t){var r=e.className,n=e.commitWidthChange,o=e.focalPoint,c=e.imageFill,a=e.isSelected,i=e.isStackedOnMobile,l=e.mediaAlt,s=e.mediaId,u=e.mediaPosition,b=e.mediaType,m=e.mediaUrl,d=e.mediaWidth,p=e.onSelectMedia,g=e.onWidthChange,h=Object(Ce.useDispatch)($.store).toggleSelection;if(b&&m){var f={right:"left"===u,left:"right"===u},O="image"===b&&c?Wa(m,o):{},v={image:function(){return Object(Q.createElement)("img",{src:m,alt:l})},video:function(){return Object(Q.createElement)("video",{controls:!0,src:m})}};return Object(Q.createElement)(qa,{as:"figure",className:ne()(r,"editor-media-container__resizer"),style:O,size:{width:d+"%"},minWidth:"10%",maxWidth:"100%",enable:f,onResizeStart:function(){h(!1)},onResize:function(e,t,r){g(parseInt(r.style.width))},onResizeStop:function(e,t,r){h(!0),n(parseInt(r.style.width))},axis:"x",isSelected:a,isStackedOnMobile:i,ref:t},Object(Q.createElement)(Za,{onSelectMedia:p,mediaUrl:m,mediaId:s}),(v[b]||K.noop)())}return Object(Q.createElement)(Ya,e)})));function Ja(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ka(e){for(var t=1;tEarns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(X.__)("— Kobayashi Issa (一茶)")}}]},transforms:ii,edit:ai,save:function(e){var t,r,n=e.attributes,o=n.isStackedOnMobile,c=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,O=n.mediaSizeSlug||"full",v=Object(K.isEmpty)(f)?void 0:f,j=ne()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(O),u&&"image"===i),t)),y=Object(Q.createElement)("img",{src:l,alt:c,className:j||null});g&&(y=Object(Q.createElement)("a",{className:p,href:g,target:h,rel:v},y));var w,_={image:function(){return y},video:function(){return Object(Q.createElement)("video",{controls:!0,src:l})}},k=ne()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":o},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),E=m?Wa(l,d):{};50!==s&&(w="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:w};return Object(Q.createElement)("div",$.useBlockProps.save({className:k,style:C}),Object(Q.createElement)("figure",{className:"wp-block-media-text__media",style:E},(_[i]||K.noop)()),Object(Q.createElement)("div",{className:"wp-block-media-text__content"},Object(Q.createElement)($.InnerBlocks.Content,null)))},deprecated:ei},bi=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));var mi={apiVersion:2,name:"core/latest-comments",category:"widgets",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"},di=mi.name,pi={title:Object(X._x)("Latest Comments","block title"),description:Object(X.__)("Display a list of your most recent comments."),icon:bi,keywords:[Object(X.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.commentsToShow,o=t.displayAvatar,c=t.displayDate,a=t.displayExcerpt;return Object(Q.createElement)("div",Object($.useBlockProps)(),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Latest comments settings")},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display avatar"),checked:o,onChange:function(){return r({displayAvatar:!o})}}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display date"),checked:c,onChange:function(){return r({displayDate:!c})}}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display excerpt"),checked:a,onChange:function(){return r({displayExcerpt:!a})}}),Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Number of comments"),value:n,onChange:function(e){return r({commentsToShow:e})},min:1,max:100,required:!0}))),Object(Q.createElement)(be.Disabled,null,Object(Q.createElement)(fn.a,{block:"core/latest-comments",attributes:t})))}},gi=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t0?a.map((function(e){return e.id})):[],d=r("postType","post",Object(K.pickBy)({categories:m,author:i,order:o,orderby:c,per_page:n},(function(e){return!Object(K.isUndefined)(e)})));return{defaultImageWidth:Object(K.get)(b,[f,"width"],0),defaultImageHeight:Object(K.get)(b,[f,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),r=Object(K.get)(t,["media_details","sizes",f,"source_url"],null);r||(r=Object(K.get)(t,"source_url",null));var n={url:r,alt:null==t?void 0:t.alt_text};return _i(_i({},e),{},{featuredImageInfo:n})})):d}}),[f,n,o,c,a,i]),w=y.imageSizeOptions,_=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Object(Q.useState)([]),x=Object(ke.a)(C,2),S=x[0],P=x[1],B=Object(Q.useState)([]),z=Object(ke.a)(B,2),T=z[0],N=z[1],M=S.reduce((function(e,t){return _i(_i({},e),{},Object(Z.a)({},t.name,t))}),{}),R=Object(Q.useRef)();Object(Q.useEffect)((function(){return R.current=!0,pt()({path:Object(Se.addQueryArgs)("/wp/v2/categories",ki)}).then((function(e){R.current&&P(e)})).catch((function(){R.current&&P([])})),pt()({path:Object(Se.addQueryArgs)("/wp/v2/users",Ei)}).then((function(e){R.current&&N(e)})).catch((function(){R.current&&N([])})),function(){R.current=!1}}),[]);var V=Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Post content settings")},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(Q.createElement)(be.RadioControl,{label:Object(X.__)("Show:"),selected:s,options:[{label:Object(X.__)("Excerpt"),value:"excerpt"},{label:Object(X.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Max number of words in excerpt"),value:g,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Post meta settings")},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display author name"),checked:m,onChange:function(e){return r({displayAuthor:e})}}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Featured image settings")},Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:f,width:O,height:v,imageWidth:k,imageHeight:E,imageSizeOptions:w,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(Q.createElement)(be.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(Q.createElement)(be.BaseControl.VisualLabel,null,Object(X.__)("Image alignment")),Object(Q.createElement)($.BlockAlignmentToolbar,{value:h,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Add link to featured image"),checked:j,onChange:function(e){return r({addLinkToFeaturedImage:e})}}))),Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Sorting and filtering")},Object(Q.createElement)(be.QueryControls,{order:o,orderBy:c,numberOfItems:n,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})},categorySuggestions:M,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!M[e]}))){var t=e.map((function(e){return"string"==typeof e?M[e]:e}));if(Object(K.includes)(t,null))return!1;r({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return r({selectedAuthor:""!==e?Number(e):void 0})},authorList:T,selectedAuthorId:i}),"grid"===d&&Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Columns"),value:p,onChange:function(e){return r({columns:e})},min:2,max:H?Math.min(6,_.length):6,required:!0}))),A=Object($.useBlockProps)({className:ne()(Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))}),H=Array.isArray(_)&&_.length;if(!H)return Object(Q.createElement)("div",A,V,Object(Q.createElement)(be.Placeholder,{icon:wo,label:Object(X.__)("Latest Posts")},Array.isArray(_)?Object(X.__)("No posts found."):Object(Q.createElement)(be.Spinner,null)));var L=_.length>n?_.slice(0,n):_,I=[{icon:ji,title:Object(X.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===d},{icon:yi,title:Object(X.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===d}],D=Object(vi.__experimentalGetSettings)().formats.date;return Object(Q.createElement)("div",null,V,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,{controls:I})),Object(Q.createElement)("ul",A,L.map((function(e,t){var r=Object(K.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=T.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=n,n=c.textContent||c.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=ne()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(h),!!h)),f=l&&i,y=f&&Object(Q.createElement)("img",{src:i,alt:d,style:{maxWidth:O,maxHeight:v}}),w=g1?n:Object(kr.replace)(n,/\n/g,kr.__UNSTABLE_LINE_SEPARATOR)})),kr.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(J.createBlock)("core/list",{values:Object(kr.toHTMLString)({value:Object(kr.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Fi(e).ol,ul:Fi(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(J.createBlock)("core/list",Di(Di({},Object(J.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(J.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(J.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(kr.split)(Object(kr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(kr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(kr.split)(Object(kr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(J.createBlock)("core/heading",{content:Object(kr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(J.createBlock)("core/quote",{value:Object(kr.toHTMLString)({value:Object(kr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(J.createBlock)("core/pullquote",{value:Object(kr.toHTMLString)({value:Object(kr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Gi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wi(e){for(var t=1;tAlice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Ui,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?Wi(Wi({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,o=e.onReplace,c=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object($.useBlockProps)();return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.RichText,Object(ue.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,"aria-label":Object(X.__)("List text"),placeholder:Object(X.__)("List"),onMerge:n,onSplit:function(e){return Object(J.createBlock)(Zi,Li(Li({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(J.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:u,reversed:s,type:l},m),(function(e){var t=e.value,n=e.onChange,o=e.onFocus;return Object(Q.createElement)(Q.Fragment,null,c&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(kr.__unstableOutdentListItems)(t))}}),Object(Q.createElement)($.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(kr.__unstableIndentListItems)(t,{type:b}))}}),Object(Q.createElement)($.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(kr.__unstableIndentListItems)(t,{type:b}))}}),Object(Q.createElement)($.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(kr.__unstableOutdentListItems)(t))}})),Object(Q.createElement)($.BlockControls,{group:"block"},Object(Q.createElement)(be.ToolbarButton,{icon:Object(X.isRTL)()?Pi:Bi,title:Object(X.__)("Unordered"),describedBy:Object(X.__)("Convert to unordered list"),isActive:Object(kr.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(kr.__unstableChangeListType)(t,{type:"ul"})),o(),Object(kr.__unstableIsListRootSelected)(t)&&r({ordered:!1})}}),Object(Q.createElement)(be.ToolbarButton,{icon:Object(X.isRTL)()?zi:Ti,title:Object(X.__)("Ordered"),describedBy:Object(X.__)("Convert to ordered list"),isActive:Object(kr.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(kr.__unstableChangeListType)(t,{type:"ol"})),o(),Object(kr.__unstableIsListRootSelected)(t)&&r({ordered:!0})}}),Object(Q.createElement)(be.ToolbarButton,{icon:Object(X.isRTL)()?Ni:Mi,title:Object(X.__)("Outdent"),describedBy:Object(X.__)("Outdent list item"),shortcut:Object(X._x)("Backspace","keyboard key"),isDisabled:!Object(kr.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(kr.__unstableOutdentListItems)(t)),o()}}),Object(Q.createElement)(be.ToolbarButton,{icon:Object(X.isRTL)()?Ri:Vi,title:Object(X.__)("Indent"),describedBy:Object(X.__)("Indent list item"),shortcut:Object(X._x)("Space","keyboard key"),isDisabled:!Object(kr.__unstableCanIndentListItems)(t),onClick:function(){n(Object(kr.__unstableIndentListItems)(t,{type:b})),o()}})))})),a&&Object(Q.createElement)(Ai,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,o=t.type,c=t.reversed,a=t.start,i=r?"ol":"ul";return Object(Q.createElement)(i,$.useBlockProps.save({type:o,reversed:c,start:a}),Object(Q.createElement)($.RichText.Content,{value:n,multiline:"li"}))}};var $i=Object(Ce.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,o=e($.store).replaceBlock;return{convertToHTML:function(){o(r,Object(J.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,o=r.originalName,c=r.originalUndelimitedContent,a=!!c,i=Object(J.getBlockType)("core/html"),l=[];return a&&i?(t=Object(X.sprintf)(Object(X.__)('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),l.push(Object(Q.createElement)(be.Button,{key:"convert",onClick:n,isPrimary:!0},Object(X.__)("Keep as HTML")))):t=Object(X.sprintf)(Object(X.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(Q.createElement)("div",Object($.useBlockProps)({className:"has-warning"}),Object(Q.createElement)($.Warning,{actions:l},t),Object(Q.createElement)(Q.RawHTML,null,c))}));var Ji={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Ki=Ji.name,Xi={name:Ki,title:Object(X._x)("Unsupported","block title"),description:Object(X.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(J.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:$i,save:function(e){var t=e.attributes;return Object(Q.createElement)(Q.RawHTML,null,t.originalContent)}},Qi=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),el=Object(X.__)("Read more");var tl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,r=t.customText,n=t.noTeaser,o={};return r&&(o.customText=r),""===n&&(o.noTeaser=!0),Object(J.createBlock)("core/more",o)}}]},rl={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},nl=rl.name,ol={title:Object(X._x)("More","block title"),description:Object(X.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(X.__)("read more")],icon:Qi,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:tl,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,o=e.insertBlocksAfter,c=e.setAttributes,a={width:"".concat((r||el).length+1.2,"em")};return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,null,Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return c({noTeaser:!n})},help:function(e){return e?Object(X.__)("The excerpt is hidden."):Object(X.__)("The excerpt is visible.")}}))),Object(Q.createElement)("div",Object($.useBlockProps)(),Object(Q.createElement)("div",{className:"wp-block-more"},Object(Q.createElement)("input",{"aria-label":Object(X.__)("Read more link text"),type:"text",value:r,placeholder:el,onChange:function(e){c({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===cr.ENTER&&o([Object(J.createBlock)(Object(J.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,o=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",c=n?"\x3c!--noteaser--\x3e":"";return Object(Q.createElement)(Q.RawHTML,null,Object(K.compact)([o,c]).join("\n"))}},cl=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));var al={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(J.createBlock)("core/nextpage",{})}}]},il={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},ll=il.name,sl={title:Object(X._x)("Page Break","block title"),description:Object(X.__)("Separate your content into a multi-page experience."),icon:cl,keywords:[Object(X.__)("next page"),Object(X.__)("pagination")],example:{},transforms:al,edit:function(){return Object(Q.createElement)("div",Object($.useBlockProps)(),Object(Q.createElement)("div",{className:"wp-block-nextpage"},Object(Q.createElement)("span",null,Object(X.__)("Page break"))))},save:function(){return Object(Q.createElement)(Q.RawHTML,null,"\x3c!--nextpage--\x3e")}},ul=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));function bl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t".concat(t,"

    "),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

    "!==t&&n.push.apply(n,Object(q.a)(Object(kr.split)(Object(kr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(kr.toHTMLString)({value:e})})})))),r&&"

    "!==r&&n.push(Object(J.createBlock)("core/paragraph",{content:r})),0===n.length?Object(J.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Jt.a)(e,["value","citation"]);if("

    "===t)return Object(J.createBlock)("core/heading",{content:r});var o=Object(kr.split)(Object(kr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(J.createBlock)("core/heading",{content:Object(kr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(J.createBlock)("core/pullquote",Tl(Tl({},n),{},{citation:r,value:Object(kr.toHTMLString)({value:a.length?Object(kr.join)(o.slice(1),"\u2028"):Object(kr.create)(),multilineTag:"p"})}))]}}]},Ml={apiVersion:2,name:"core/pullquote",category:"text",attributes:{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"}},supports:{anchor:!0,align:["left","right","wide","full"]},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},Rl=Ml.name,Vl={title:Object(X._x)("Pullquote","block title"),description:Object(X.__)("Give special visual emphasis to a quote from your text."),icon:yl,example:{attributes:{value:"

    "+Object(X.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(X.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(X._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(X.__)("Solid color")}],transforms:Nl,edit:Bl,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(K.includes)(u,wl)){var b=Object($.getColorClassName)("background-color",o);t=ne()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object($.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(Q.createElement)("figure",$.useBlockProps.save({className:t,style:r}),Object(Q.createElement)("blockquote",{className:d,style:p},Object(Q.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(Q.createElement)($.RichText.Content,{tagName:"cite",value:s})))},deprecated:xl},Al=r(146),Hl=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));var Ll={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},Il=Ll.name,Dl={title:Object(X._x)("Reusable block","block title"),description:Object(X.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=Object($.__experimentalUseNoRecursiveRenders)(t),o=Object(ke.a)(n,2),c=o[0],a=o[1],i=Object(Ce.useSelect)((function(e){var r=e(Y.store).getEntityRecord("postType","wp_block",t),n=e(Y.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:n,isMissing:n&&!r}}),[t,r]),l=i.isMissing,s=i.hasResolved,u=Object(Ce.useDispatch)(Al.store).__experimentalConvertBlockToStatic,b=Object(Y.useEntityBlockEditor)("postType","wp_block",{id:t}),m=Object(ke.a)(b,3),d=m[0],p=m[1],g=m[2],h=Object(Y.useEntityProp)("postType","wp_block","title",t),f=Object(ke.a)(h,2),O=f[0],v=f[1],j=Object($.__experimentalUseInnerBlocksProps)({},{value:d,onInput:p,onChange:g,renderAppender:null!=d&&d.length?void 0:$.InnerBlocks.ButtonBlockAppender}),y=Object($.useBlockProps)();return c?Object(Q.createElement)("div",y,Object(Q.createElement)($.Warning,null,Object(X.__)("Block cannot be rendered inside itself."))):l?Object(Q.createElement)("div",y,Object(Q.createElement)($.Warning,null,Object(X.__)("Block has been deleted or is unavailable."))):s?Object(Q.createElement)(a,null,Object(Q.createElement)("div",y,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,null,Object(Q.createElement)(be.ToolbarButton,{onClick:function(){return u(r)},label:Object(X.__)("Convert to regular blocks"),icon:Hl,showTooltip:!0}))),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,null,Object(Q.createElement)(be.TextControl,{label:Object(X.__)("Name"),value:O,onChange:v}))),Object(Q.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(Q.createElement)("div",j)))):Object(Q.createElement)("div",y,Object(Q.createElement)(be.Placeholder,null,Object(Q.createElement)(be.Spinner,null)))}},Fl=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));var Ul={apiVersion:2,name:"core/rss",category:"widgets",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"},Gl=Ul.name,Wl={title:Object(X._x)("RSS","block title"),description:Object(X.__)("Display entries from any RSS or Atom feed."),icon:Fl,keywords:[Object(X.__)("atom"),Object(X.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(Q.useState)(!t.feedURL),o=Object(ke.a)(n,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object($.useBlockProps)();if(c)return Object(Q.createElement)("div",h,Object(Q.createElement)(be.Placeholder,{icon:Fl,label:"RSS"},Object(Q.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(Q.createElement)(be.TextControl,{placeholder:Object(X.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Q.createElement)(be.Button,{isPrimary:!0,type:"submit"},Object(X.__)("Use URL")))));var f=[{icon:$r.a,title:Object(X.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ji,title:Object(X.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:yi,title:Object(X.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,{controls:f})),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("RSS settings")},Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(Q.createElement)(be.ToggleControl,{label:Object(X.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(Q.createElement)(be.RangeControl,{label:Object(X.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(Q.createElement)("div",h,Object(Q.createElement)(be.Disabled,null,Object(Q.createElement)(fn.a,{block:"core/rss",attributes:t}))))}},ql=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Zl=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.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(Q.createElement)(be.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Yl=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.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(Q.createElement)(be.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),$l=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.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"})),Jl=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Q.createElement)(be.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Kl=Object(Q.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(be.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(Q.createElement)(be.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Xl="web"===Q.Platform.OS,Ql=[{value:"%",label:Xl?"%":Object(X.__)("Percentage (%)"),default:50},{value:"px",label:Xl?"px":Object(X.__)("Pixels (px)"),default:350}];var es=[{name:"default",isDefault:!0,attributes:{buttonText:Object(X.__)("Search"),label:Object(X.__)("Search")}}],ts={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},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"},rs=ts.name,ns={title:Object(X._x)("Search","block title"),description:Object(X.__)("Help visitors find your content."),icon:_t.a,keywords:[Object(X.__)("find")],example:{},variations:es,edit:function(e){var t,r=e.className,n=e.attributes,o=e.setAttributes,c=e.toggleSelection,a=e.isSelected,i=n.label,l=n.showLabel,s=n.placeholder,u=n.width,b=n.widthUnit,m=n.align,d=n.buttonText,p=n.buttonPosition,g=n.buttonUseIcon,h=n.style,f=null==h||null===(t=h.border)||void 0===t?void 0:t.radius,O=Object(xe.useInstanceId)($.__experimentalUnitControl),v="wp-block-search__width-".concat(O),j=function(){return Object(Q.createElement)("input",{className:"wp-block-search__input",style:{borderRadius:f},"aria-label":Object(X.__)("Optional placeholder text"),placeholder:s?void 0:Object(X.__)("Optional placeholder…"),value:s,onChange:function(e){return o({placeholder:e.target.value})}})},y=function(){return Object(Q.createElement)(Q.Fragment,null,g&&Object(Q.createElement)(be.Button,{icon:_t.a,className:"wp-block-search__button",style:{borderRadius:f}}),!g&&Object(Q.createElement)($.RichText,{className:"wp-block-search__button",style:{borderRadius:f},"aria-label":Object(X.__)("Button text"),placeholder:Object(X.__)("Add button text…"),withoutInteractiveFormatting:!0,value:d,onChange:function(e){return o({buttonText:e})}}))},w=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)($.BlockControls,null,Object(Q.createElement)(be.ToolbarGroup,null,Object(Q.createElement)(be.ToolbarButton,{title:Object(X.__)("Toggle search label"),icon:Kl,onClick:function(){o({showLabel:!l})},className:l?"is-pressed":void 0}),Object(Q.createElement)(be.DropdownMenu,{icon:function(){switch(p){case"button-inside":return Yl;case"button-outside":return Zl;case"no-button":return $l;case"button-only":return ql}}(),label:Object(X.__)("Change button position")},(function(e){var t=e.onClose;return Object(Q.createElement)(be.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Q.createElement)(be.MenuItem,{icon:$l,onClick:function(){o({buttonPosition:"no-button"}),t()}},Object(X.__)("No Button")),Object(Q.createElement)(be.MenuItem,{icon:Zl,onClick:function(){o({buttonPosition:"button-outside"}),t()}},Object(X.__)("Button Outside")),Object(Q.createElement)(be.MenuItem,{icon:Yl,onClick:function(){o({buttonPosition:"button-inside"}),t()}},Object(X.__)("Button Inside")))})),"no-button"!==p&&Object(Q.createElement)(be.ToolbarButton,{title:Object(X.__)("Use button with icon"),icon:Jl,onClick:function(){o({buttonUseIcon:!g})},className:g?"is-pressed":void 0}))),Object(Q.createElement)($.InspectorControls,null,Object(Q.createElement)(be.PanelBody,{title:Object(X.__)("Display Settings")},Object(Q.createElement)(be.BaseControl,{label:Object(X.__)("Width"),id:v},Object(Q.createElement)($.__experimentalUnitControl,{id:v,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===b&&parseInt(e,10)>100?100:e;o({width:parseInt(t,10)})},onUnitChange:function(e){o({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(u).concat(b),unit:b,units:Ql}),Object(Q.createElement)(be.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(X.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Q.createElement)(be.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(u).concat(b),onClick:function(){return o({width:e,widthUnit:"%"})}},e,"%")}))))))),_=Object($.useBlockProps)({className:ne()(r,"button-inside"===p?"wp-block-search__button-inside":void 0,"button-outside"===p?"wp-block-search__button-outside":void 0,"no-button"===p?"wp-block-search__no-button":void 0,"button-only"===p?"wp-block-search__button-only":void 0,g||"no-button"===p?void 0:"wp-block-search__text-button",g&&"no-button"!==p?"wp-block-search__icon-button":void 0)});return Object(Q.createElement)("div",_,w,l&&Object(Q.createElement)($.RichText,{className:"wp-block-search__label","aria-label":Object(X.__)("Label text"),placeholder:Object(X.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:function(e){return o({label:e})}}),Object(Q.createElement)(be.ResizableBox,{size:{width:"".concat(u).concat(b)},className:"wp-block-search__inside-wrapper",style:function(){var e;if("button-inside"===p&&null!=h&&null!==(e=h.border)&&void 0!==e&&e.radius){var t,r=parseInt(null==h||null===(t=h.border)||void 0===t?void 0:t.radius,10)+4;return{borderRadius:"".concat(r,"px")}}}(),minWidth:220,enable:"button-only"===p?{}:{right:"right"!==m,left:"right"===m},onResizeStart:function(e,t,r){o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),c(!1)},onResizeStop:function(e,t,r,n){o({width:parseInt(u+n.width,10)}),c(!0)},showHandle:a},("button-inside"===p||"button-outside"===p)&&Object(Q.createElement)(Q.Fragment,null,j(),y()),"button-only"===p&&y(),"no-button"===p&&j()))}},os=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.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"}));function cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function as(e){for(var t=1;t)"),value:"div"},{label:"
    ",value:"header"},{label:"
    ",value:"main"},{label:"
    ",value:"section"},{label:"
    ",value:"article"},{label:"