(()=>{var e={138:()=>{jQuery,acf.jsxNameReplacements={"accent-height":"accentHeight",accentheight:"accentHeight","accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey","alignment-baseline":"alignmentBaseline",alignmentbaseline:"alignmentBaseline",allowedblocks:"allowedBlocks",allowfullscreen:"allowFullScreen",allowreorder:"allowReorder","arabic-form":"arabicForm",arabicform:"arabicForm",attributename:"attributeName",attributetype:"attributeType",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autoreverse:"autoReverse",autosave:"autoSave",basefrequency:"baseFrequency","baseline-shift":"baselineShift",baselineshift:"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode","cap-height":"capHeight",capheight:"capHeight",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className","clip-path":"clipPath","clip-rule":"clipRule",clippath:"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering",colorinterpolation:"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters",colorprofile:"colorProfile",colorrendering:"colorRendering",colspan:"colSpan",contenteditable:"contentEditable",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",diffuseconstant:"diffuseConstant",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback","dominant-baseline":"dominantBaseline",dominantbaseline:"dominantBaseline",edgemode:"edgeMode","enable-background":"enableBackground",enablebackground:"enableBackground",enctype:"encType",enterkeyhint:"enterKeyHint",externalresourcesrequired:"externalResourcesRequired","fill-opacity":"fillOpacity","fill-rule":"fillRule",fillopacity:"fillOpacity",fillrule:"fillRule",filterres:"filterRes",filterunits:"filterUnits","flood-color":"floodColor","flood-opacity":"floodOpacity",floodcolor:"floodColor",floodopacity:"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight",fontfamily:"fontFamily",fontsize:"fontSize",fontsizeadjust:"fontSizeAdjust",fontstretch:"fontStretch",fontstyle:"fontStyle",fontvariant:"fontVariant",fontweight:"fontWeight",for:"htmlFor",foreignobject:"foreignObject",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical",glyphname:"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX",horizadvx:"horizAdvX",horizoriginx:"horizOriginX",hreflang:"hrefLang",htmlfor:"htmlFor","http-equiv":"httpEquiv",httpequiv:"httpEquiv","image-rendering":"imageRendering",imagerendering:"imageRendering",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keyparams:"keyParams",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",keytype:"keyType",lengthadjust:"lengthAdjust","letter-spacing":"letterSpacing",letterspacing:"letterSpacing","lighting-color":"lightingColor",lightingcolor:"lightingColor",limitingconeangle:"limitingConeAngle",marginheight:"marginHeight",marginwidth:"marginWidth","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart",markerend:"markerEnd",markerheight:"markerHeight",markermid:"markerMid",markerstart:"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",numoctaves:"numOctaves","overline-position":"overlinePosition","overline-thickness":"overlineThickness",overlineposition:"overlinePosition",overlinethickness:"overlineThickness","paint-order":"paintOrder",paintorder:"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",playsinline:"playsInline","pointer-events":"pointerEvents",pointerevents:"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",refx:"refX",refy:"refY","rendering-intent":"renderingIntent",renderingintent:"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",rowspan:"rowSpan","shape-rendering":"shapeRendering",shaperendering:"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spellcheck:"spellCheck",spreadmethod:"spreadMethod",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles","stop-color":"stopColor","stop-opacity":"stopOpacity",stopcolor:"stopColor",stopopacity:"stopOpacity","strikethrough-position":"strikethroughPosition","strikethrough-thickness":"strikethroughThickness",strikethroughposition:"strikethroughPosition",strikethroughthickness:"strikethroughThickness","stroke-dasharray":"strokeDasharray","stroke-dashoffset":"strokeDashoffset","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","stroke-miterlimit":"strokeMiterlimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth",strokedasharray:"strokeDasharray",strokedashoffset:"strokeDashoffset",strokelinecap:"strokeLinecap",strokelinejoin:"strokeLinejoin",strokemiterlimit:"strokeMiterlimit",strokeopacity:"strokeOpacity",strokewidth:"strokeWidth",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tabindex:"tabIndex",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",templatelock:"templateLock","text-anchor":"textAnchor","text-decoration":"textDecoration","text-rendering":"textRendering",textanchor:"textAnchor",textdecoration:"textDecoration",textlength:"textLength",textrendering:"textRendering","underline-position":"underlinePosition","underline-thickness":"underlineThickness",underlineposition:"underlinePosition",underlinethickness:"underlineThickness","unicode-bidi":"unicodeBidi","unicode-range":"unicodeRange",unicodebidi:"unicodeBidi",unicoderange:"unicodeRange","units-per-em":"unitsPerEm",unitsperem:"unitsPerEm",usemap:"useMap","v-alphabetic":"vAlphabetic","v-hanging":"vHanging","v-ideographic":"vIdeographic","v-mathematical":"vMathematical",valphabetic:"vAlphabetic","vector-effect":"vectorEffect",vectoreffect:"vectorEffect","vert-adv-y":"vertAdvY","vert-origin-x":"vertOriginX","vert-origin-y":"vertOriginY",vertadvy:"vertAdvY",vertoriginx:"vertOriginX",vertoriginy:"vertOriginY",vhanging:"vHanging",videographic:"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","word-spacing":"wordSpacing",wordspacing:"wordSpacing","writing-mode":"writingMode",writingmode:"writingMode","x-height":"xHeight",xchannelselector:"xChannelSelector",xheight:"xHeight","xlink:actuate":"xlinkActuate","xlink:arcrole":"xlinkArcrole","xlink:href":"xlinkHref","xlink:role":"xlinkRole","xlink:show":"xlinkShow","xlink:title":"xlinkTitle","xlink:type":"xlinkType",xlinkactuate:"xlinkActuate",xlinkarcrole:"xlinkArcrole",xlinkhref:"xlinkHref",xlinkrole:"xlinkRole",xlinkshow:"xlinkShow",xlinktitle:"xlinkTitle",xlinktype:"xlinkType","xml:base":"xmlBase","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlbase:"xmlBase",xmllang:"xmlLang","xmlns:xlink":"xmlnsXlink",xmlnsxlink:"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"}},151:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r>>6-2*o);return n}},e.exports=n},206:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},503:(e,t,n)=>{var r,o,i,s,a;r=n(939),o=n(151).utf8,i=n(206),s=n(151).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,p=-1732584194,d=271733878,f=0;f>>24)|4278255360&(n[f]<<24|n[f]>>>8);n[c>>>5]|=128<>>9<<4)]=c;var h=a._ff,m=a._gg,g=a._hh,y=a._ii;for(f=0;f>>0,u=u+b>>>0,p=p+v>>>0,d=d+x>>>0}return r.endian([l,u,p,d])})._ff=function(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+(o>>>0)+s;return(a<>>32-i)+t},a._gg=function(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+(o>>>0)+s;return(a<>>32-i)+t},a._hh=function(e,t,n,r,o,i,s){var a=e+(t^n^r)+(o>>>0)+s;return(a<>>32-i)+t},a._ii=function(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+(o>>>0)+s;return(a<>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(a(e,t));return t&&t.asBytes?n:t&&t.asString?s.bytesToString(n):r.bytesToHex(n)}},20:(e,t,n)=>{"use strict";var r=n(540),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,c={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!a.hasOwnProperty(r)&&(c[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===c[r]&&(c[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:c,_owner:s.current}}t.jsx=c,t.jsxs=c},287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function k(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=y.prototype;var v=b.prototype=new k;v.constructor=b,m(v,y.prototype),v.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)w.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1{"use strict";e.exports=n(287)},848:(e,t,n)=>{"use strict";e.exports=n(20)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{"use strict";n(138);var e=n(848);const t=n(503);((n,r)=>{const{BlockControls:o,InspectorControls:i,InnerBlocks:s,useBlockProps:a,AlignmentToolbar:c,BlockVerticalAlignmentToolbar:l}=wp.blockEditor,{ToolbarGroup:u,ToolbarButton:p,Placeholder:d,Spinner:f}=wp.components,{Fragment:h}=wp.element,{Component:m}=React,{useSelect:g}=wp.data,{createHigherOrderComponent:y}=wp.compose,k=wp.blockEditor.__experimentalBlockAlignmentMatrixToolbar||wp.blockEditor.BlockAlignmentMatrixToolbar,b=wp.blockEditor.__experimentalBlockAlignmentMatrixControl||wp.blockEditor.BlockAlignmentMatrixControl,v=wp.blockEditor.__experimentalBlockFullHeightAligmentControl||wp.blockEditor.__experimentalBlockFullHeightAlignmentControl||wp.blockEditor.BlockFullHeightAlignmentControl,x=wp.blockEditor.__experimentalUseInnerBlocksProps||wp.blockEditor.useInnerBlocksProps,w={};function _(e){return w[e]||!1}function S(e){return _(e).acf_block_version||1}function j(e){return _(e).validate}function A(e){const t=wp.data.select("core/block-editor").getBlockParents(e);return wp.data.select("core/block-editor").getBlocksByClientId(t).filter((e=>"core/query"===e.name)).length}function I(){return"string"==typeof pagenow&&"site-editor"===pagenow}function T(){const e=B("core/edit-post");return!!e&&!!e.isEditingTemplate&&e.isEditingTemplate()}function C(){return n("iframe[name=editor-canvas]").length&&!function(){const e=B("core/edit-post");return!e||(e.__experimentalGetPreviewDeviceType?"Desktop"===e.__experimentalGetPreviewDeviceType():!e.getPreviewDeviceType||"Desktop"===e.getPreviewDeviceType())}()}function E(t){const n=t.post_types||[];if(n.length){n.push("wp_block");const e=acf.get("postType");if(!n.includes(e))return!1}if("string"==typeof t.icon&&"e===t.category)).pop()||(t.category="common"),t=acf.parseArgs(t,{title:"",name:"",category:"",api_version:2,acf_block_version:1});for(const e in t.attributes)"default"in t.attributes[e]&&0===t.attributes[e].default.length&&delete t.attributes[e].default;t.supports.anchor&&(t.attributes.anchor={type:"string"});let i=L,s=V;var a;(t.supports.alignText||t.supports.align_text)&&(t.attributes=K(t.attributes,"align_text","string"),i=function(t,n){const r=G;return n.alignText=r(n.alignText),class extends m{render(){const{attributes:n,setAttributes:i}=this.props,{alignText:s}=n;return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{group:"block",children:(0,e.jsx)(c,{value:r(s),onChange:function(e){i({alignText:r(e)})}})}),(0,e.jsx)(t,{...this.props})]})}}}(i,t)),(t.supports.alignContent||t.supports.align_content)&&(t.attributes=K(t.attributes,"align_content","string"),i=function(t,n){let i,s,a=n.supports.align_content||n.supports.alignContent;return"matrix"===a?(i=b||k,s=Q):(i=l,s=Y),i===r?(console.warn(`The "${a}" alignment component was not found.`),t):(n.alignContent=s(n.alignContent),class extends m{render(){const{attributes:n,setAttributes:r}=this.props,{alignContent:a}=n;return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{group:"block",children:(0,e.jsx)(i,{label:acf.__("Change content alignment"),value:s(a),onChange:function(e){r({alignContent:s(e)})}})}),(0,e.jsx)(t,{...this.props})]})}})}(i,t)),(t.supports.fullHeight||t.supports.full_height)&&(t.attributes=K(t.attributes,"full_height","boolean"),a=i,t.blockType,i=v?class extends m{render(){const{attributes:t,setAttributes:n}=this.props,{fullHeight:r}=t;return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{group:"block",children:(0,e.jsx)(v,{isActive:r,onToggle:function(e){n({fullHeight:e})}})}),(0,e.jsx)(a,{...this.props})]})}}:a),t.edit=t=>(wp.element.useEffect((()=>()=>{wp.data.dispatch("core/editor")&&wp.data.dispatch("core/editor").unlockPostSaving("acf/block/"+t.clientId)}),[]),(0,e.jsx)(i,{...t})),t.save=()=>(0,e.jsx)(s,{}),w[t.name]=t;const u=wp.blocks.registerBlockType(t.name,t);return u.attributes.anchor&&(u.attributes.anchor={type:"string"}),u}function B(e){return"core/block-editor"===e?wp.data.select("core/block-editor")||wp.data.select("core/editor"):wp.data.select(e)}acf.blockInstances={};const R={},O={};function P(e){const{attributes:r={},context:o={},query:i={},clientId:s=null,delay:a=0}=e,c=t(JSON.stringify({...r,...o,...i})),l=R[c]||{query:{},timeout:!1,promise:n.Deferred(),started:!1};return l.query={...l.query,...i},l.started||(clearTimeout(l.timeout),l.timeout=setTimeout((()=>{l.started=!0,O[c]?(R[c]=null,l.promise.resolve.apply(O[c][0],O[c][1])):n.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax({action:"acf/ajax/fetch-block",block:JSON.stringify(r),clientId:s,context:JSON.stringify(o),query:l.query})}).always((()=>{R[c]=null})).done((function(){O[c]=[this,arguments],l.promise.resolve.apply(this,arguments)})).fail((function(){l.promise.reject.apply(this,arguments)}))}),a),R[c]=l),l.promise}function $(e,t){return JSON.stringify(e)===JSON.stringify(t)}function F(t,n,r=0){const o=function(e,t){switch(e){case"innerblocks":return t<2?s:"ACFInnerBlocks";case"script":return q;case"#comment":return null;default:e=N(e)}return e}(t.nodeName.toLowerCase(),n);if(!o)return null;const i={};if(1===r&&"ACFInnerBlocks"!==o&&(i.ref=React.createRef()),acf.arrayArgs(t.attributes).map(M).forEach((({name:e,value:t})=>{i[e]=t})),"ACFInnerBlocks"===o)return(0,e.jsx)(D,{...i});const a=[o,i];return acf.arrayArgs(t.childNodes).forEach((e=>{if(e instanceof Text){const t=e.textContent;t&&a.push(t)}else a.push(F(e,n,r+1))})),React.createElement.apply(this,a)}function N(e){return acf.isget(acf,"jsxNameReplacements",e)||e}function D(t){const{className:n="acf-innerblocks-container"}=t,r=x({className:n},t);return(0,e.jsx)("div",{...r,children:r.children})}function M(e){let t=e.name,n=e.value,r=acf.applyFilters("acf_blocks_parse_node_attr",!1,e);if(r)return r;switch(t){case"class":t="className";break;case"style":const e={};n.split(";").forEach((t=>{const n=t.indexOf(":");if(n>0){let r=t.substr(0,n).trim();const o=t.substr(n+1).trim();"-"!==r.charAt(0)&&(r=acf.strCamelCase(r)),e[r]=o}})),n=e;break;default:if(0===t.indexOf("data-"))break;t=N(t);const r=n.charAt(0);"["!==r&&"{"!==r||(n=JSON.parse(n)),"true"!==n&&"false"!==n||(n="true"===n)}return{name:t,value:n}}acf.parseJSX=(e,t)=>(e=(e="
"+e+"
").replace(/]+)?\/>/,""),F(n(e)[0],t,0).props.children);const H=y((t=>class extends m{constructor(e){super(e);const{name:t,attributes:n}=this.props,o=_(t);if(!o)return;Object.keys(n).forEach((e=>{""===n[e]&&delete n[e]}));const i={full_height:"fullHeight",align_content:"alignContent",align_text:"alignText"};Object.keys(i).forEach((e=>{n[e]!==r?n[i[e]]=n[e]:n[i[e]]===r&&o[e]!==r&&(n[i[e]]=o[e]),delete o[e],delete n[e]}));for(let e in o.attributes)n[e]===r&&o[e]!==r&&(n[e]=o[e])}render(){return(0,e.jsx)(t,{...this.props})}}),"withDefaultAttributes");function V(){return(0,e.jsx)(s.Content,{})}wp.hooks.addFilter("editor.BlockListBlock","acf/with-default-attributes",H);class L extends m{constructor(e){super(e),this.setup()}setup(){const{name:e,attributes:t,clientId:n}=this.props,r=_(e);function o(e){e.includes(t.mode)||(t.mode=e[0])}if(A(n)||I()||C()||T()||r.api_version>2)o(["preview"]);else switch(r.mode){case"edit":o(["edit","preview"]);break;case"preview":o(["preview","edit"]);break;default:o(["auto"])}}render(){const{name:t,attributes:n,setAttributes:r,clientId:s}=this.props,a=_(t),c=A(s)||I()||C()||T()||a.api_version>2;let{mode:l}=n;c&&(l="preview");let d=a.supports.mode;("auto"===l||c)&&(d=!1);const f="preview"===l?acf.__("Switch to Edit"):acf.__("Switch to Preview"),m="preview"===l?"edit":"welcome-view-site";return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{children:d&&(0,e.jsx)(u,{children:(0,e.jsx)(p,{className:"components-icon-button components-toolbar__control",label:f,icon:m,onClick:function(){r({mode:"preview"===l?"edit":"preview"})}})})}),(0,e.jsx)(i,{children:"preview"===l&&(0,e.jsx)("div",{className:"acf-block-component acf-block-panel",children:(0,e.jsx)(X,{...this.props})})}),(0,e.jsx)(U,{...this.props})]})}}function U(t){const{attributes:n,isSelected:r,name:o,clientId:i}=t,{mode:s}=n,c=g((e=>{const t=e("core/block-editor").getBlockRootClientId(i);return e("core/block-editor").getBlockIndex(i,t)}));let l=!0,u="acf-block-component acf-block-body";return("auto"===s&&!r||"preview"===s)&&(u+=" acf-block-preview",l=!1),i in acf.blockInstances||(acf.blockInstances[i]={validation_errors:!1,mode:s}),acf.blockInstances[i].mode=s,r||(j(o)&&acf.blockInstances[i].validation_errors&&(u+=" acf-block-has-validation-error"),acf.blockInstances[i].has_been_deselected=!0),S(o)>1?(0,e.jsx)("div",{...a({className:u}),children:l?(0,e.jsx)(X,{...t,index:c}):(0,e.jsx)(J,{...t,index:c})}):(0,e.jsx)("div",{...a(),children:(0,e.jsx)("div",{className:"acf-block-component acf-block-body",children:l?(0,e.jsx)(X,{...t,index:c}):(0,e.jsx)(J,{...t,index:c})})})}class z extends m{render(){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:this.props.children}})}}class q extends m{render(){return(0,e.jsx)("div",{ref:e=>this.el=e})}setHTML(e){n(this.el).html(`