File: /www/wwwroot/www.waciwang.com/wp-content/plugins/gutenberg/build/scripts/block-library/index.min.js
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var Fce=Object.create;var H2=Object.defineProperty;var Oce=Object.getOwnPropertyDescriptor;var jce=Object.getOwnPropertyNames;var Uce=Object.getPrototypeOf,Gce=Object.prototype.hasOwnProperty;var Wce=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$=(e,t)=>{for(var r in t)H2(e,r,{get:t[r],enumerable:!0})},AM=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jce(t))!Gce.call(e,n)&&n!==r&&H2(e,n,{get:()=>t[n],enumerable:!(a=Oce(t,n))||a.enumerable});return e};var o=(e,t,r)=>(r=e!=null?Fce(Uce(e)):{},AM(t||!e||!e.__esModule?H2(r,"default",{value:e,enumerable:!0}):r,e)),$ce=e=>AM(H2({},"__esModule",{value:!0}),e);var U=Se((Lke,zM)=>{zM.exports=window.wp.blocks});var fe=Se((Mke,VM)=>{VM.exports=window.wp.compose});var V=Se((Rke,HM)=>{HM.exports=window.wp.data});var T=Se((Ake,FM)=>{FM.exports=window.wp.blockEditor});var su=Se((zke,OM)=>{OM.exports=window.wp.serverSideRender});var P=Se((Vke,jM)=>{jM.exports=window.wp.i18n});var x8=Se(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.Doctype=Zt.CDATA=Zt.Tag=Zt.Style=Zt.Script=Zt.Comment=Zt.Directive=Zt.Text=Zt.Root=Zt.isTag=Zt.ElementType=void 0;var zn;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(zn=Zt.ElementType||(Zt.ElementType={}));function Zce(e){return e.type===zn.Tag||e.type===zn.Script||e.type===zn.Style}Zt.isTag=Zce;Zt.Root=zn.Root;Zt.Text=zn.Text;Zt.Directive=zn.Directive;Zt.Comment=zn.Comment;Zt.Script=zn.Script;Zt.Style=zn.Style;Zt.Tag=zn.Tag;Zt.CDATA=zn.CDATA;Zt.Doctype=zn.Doctype});var C8=Se(Ue=>{"use strict";var cu=Ue&&Ue.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}})(),Vg=Ue&&Ue.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Vg.apply(this,arguments)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.cloneNode=Ue.hasChildren=Ue.isDocument=Ue.isDirective=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=Ue.Element=Ue.Document=Ue.CDATA=Ue.NodeWithChildren=Ue.ProcessingInstruction=Ue.Comment=Ue.Text=Ue.DataNode=Ue.Node=void 0;var tn=x8(),k8=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),w8(this,t)},e})();Ue.Node=k8;var F2=(function(e){cu(t,e);function t(r){var a=e.call(this)||this;return a.data=r,a}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(k8);Ue.DataNode=F2;var GM=(function(e){cu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=tn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(F2);Ue.Text=GM;var WM=(function(e){cu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=tn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(F2);Ue.Comment=WM;var $M=(function(e){cu(t,e);function t(r,a){var n=e.call(this,a)||this;return n.name=r,n.type=tn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(F2);Ue.ProcessingInstruction=$M;var O2=(function(e){cu(t,e);function t(r){var a=e.call(this)||this;return a.children=r,a}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(k8);Ue.NodeWithChildren=O2;var qM=(function(e){cu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=tn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(O2);Ue.CDATA=qM;var ZM=(function(e){cu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=tn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(O2);Ue.Document=ZM;var KM=(function(e){cu(t,e);function t(r,a,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?tn.ElementType.Script:r==="style"?tn.ElementType.Style:tn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=a,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(a){var n,i;return{name:a,value:r.attribs[a],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[a],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[a]}})},enumerable:!1,configurable:!0}),t})(O2);Ue.Element=KM;function QM(e){return(0,tn.isTag)(e)}Ue.isTag=QM;function YM(e){return e.type===tn.ElementType.CDATA}Ue.isCDATA=YM;function XM(e){return e.type===tn.ElementType.Text}Ue.isText=XM;function JM(e){return e.type===tn.ElementType.Comment}Ue.isComment=JM;function eR(e){return e.type===tn.ElementType.Directive}Ue.isDirective=eR;function tR(e){return e.type===tn.ElementType.Root}Ue.isDocument=tR;function Kce(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ue.hasChildren=Kce;function w8(e,t){t===void 0&&(t=!1);var r;if(XM(e))r=new GM(e.data);else if(JM(e))r=new WM(e.data);else if(QM(e)){var a=t?_8(e.children):[],n=new KM(e.name,Vg({},e.attribs),a);a.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Vg({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Vg({},e["x-attribsPrefix"])),r=n}else if(YM(e)){var a=t?_8(e.children):[],i=new qM(a);a.forEach(function(u){return u.parent=i}),r=i}else if(tR(e)){var a=t?_8(e.children):[],l=new ZM(a);a.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(eR(e)){var s=new $M(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Ue.cloneNode=w8;function _8(e){for(var t=e.map(function(a){return w8(a,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var aR=Se(ns=>{"use strict";var Qce=ns&&ns.__createBinding||(Object.create?(function(e,t,r,a){a===void 0&&(a=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,n)}):(function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]})),Yce=ns&&ns.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qce(t,e,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.DomHandler=void 0;var S8=x8(),uu=C8();Yce(C8(),ns);var rR={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},oR=(function(){function e(t,r,a){this.dom=[],this.root=new uu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(a=r,r=rR),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??rR,this.elementCB=a??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new uu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var a=this.options.xmlMode?S8.ElementType.Tag:void 0,n=new uu.Element(t,r,void 0,a);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===S8.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var a=new uu.Text(t);this.addNode(a),this.lastNode=a}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===S8.ElementType.Comment){this.lastNode.data+=t;return}var r=new uu.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new uu.Text(""),r=new uu.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var a=new uu.ProcessingInstruction(t,r);this.addNode(a)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],a=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),a&&(t.prev=a,a.next=t),t.parent=r,this.lastNode=null},e})();ns.DomHandler=oR;ns.default=oR});var nR=Se(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Po.CARRIAGE_RETURN_PLACEHOLDER=Po.CARRIAGE_RETURN_REGEX=Po.CARRIAGE_RETURN=Po.CASE_SENSITIVE_TAG_NAMES_MAP=Po.CASE_SENSITIVE_TAG_NAMES=void 0;Po.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];Po.CASE_SENSITIVE_TAG_NAMES_MAP=Po.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Po.CARRIAGE_RETURN="\r";Po.CARRIAGE_RETURN_REGEX=new RegExp(Po.CARRIAGE_RETURN,"g");Po.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Po.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Po.CARRIAGE_RETURN_PLACEHOLDER,"g")});var T8=Se(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.formatAttributes=iR;Hd.escapeSpecialCharacters=eue;Hd.revertEscapedCharacters=lR;Hd.formatDOM=sR;var j2=aR(),Hg=nR();function Xce(e){return Hg.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function iR(e){for(var t={},r=0,a=e.length;r<a;r++){var n=e[r];t[n.name]=n.value}return t}function Jce(e){e=e.toLowerCase();var t=Xce(e);return t||e}function eue(e){return e.replace(Hg.CARRIAGE_RETURN_REGEX,Hg.CARRIAGE_RETURN_PLACEHOLDER)}function lR(e){return e.replace(Hg.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Hg.CARRIAGE_RETURN)}function sR(e,t,r){t===void 0&&(t=null);for(var a=[],n,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=Jce(s.nodeName);n=new j2.Element(c,iR(s.attributes)),n.children=sR(c==="template"?s.content.childNodes:s.childNodes,n);break}case 3:n=new j2.Text(lR(s.nodeValue));break;case 8:n=new j2.Comment(s.nodeValue);break;default:continue}var u=a[i-1]||null;u&&(u.next=n),n.parent=t,n.prev=u,n.next=null,a.push(n)}return r&&(n=new j2.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),n.next=a[0]||null,n.parent=t,a.unshift(n),a[1]&&(a[1].prev=a[0])),a}});var gR=Se(N8=>{"use strict";Object.defineProperty(N8,"__esModule",{value:!0});N8.default=oue;var tue=T8(),cR="html",uR="head",U2="body",rue=/<([a-zA-Z]+[0-9]?)/,mR=/<head[^]*>/i,pR=/<body[^]*>/i,W2=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},P8=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},dR=typeof window=="object"&&window.DOMParser;typeof dR=="function"&&(fR=new dR,hR="text/html",P8=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),fR.parseFromString(e,hR)},W2=P8);var fR,hR;typeof document=="object"&&document.implementation&&(Fg=document.implementation.createHTMLDocument(),W2=function(e,t){if(t){var r=Fg.documentElement.querySelector(t);return r&&(r.innerHTML=e),Fg}return Fg.documentElement.innerHTML=e,Fg});var Fg,G2=typeof document=="object"&&document.createElement("template"),B8;G2&&G2.content&&(B8=function(e){return G2.innerHTML=e,G2.content.childNodes});function oue(e){var t,r;e=(0,tue.escapeSpecialCharacters)(e);var a=e.match(rue),n=a&&a[1]?a[1].toLowerCase():"";switch(n){case cR:{var i=P8(e);if(!mR.test(e)){var l=i.querySelector(uR);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!pR.test(e)){var l=i.querySelector(U2);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(cR)}case uR:case U2:{var s=W2(e).querySelectorAll(n);return pR.test(e)&&mR.test(e)?s[0].parentNode.childNodes:s}default:{if(B8)return B8(e);var l=W2(e,U2).querySelector(U2);return l.childNodes}}}});var vR=Se(Og=>{"use strict";var aue=Og&&Og.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Og,"__esModule",{value:!0});Og.default=sue;var nue=aue(gR()),iue=T8(),lue=/<(![a-zA-Z\s]+)>/;function sue(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(lue),r=t?t[1]:void 0;return(0,iue.formatDOM)((0,nue.default)(e),null,r)}});var bR=Se($2=>{var cue=0;$2.SAME=cue;var uue=1;$2.CAMELCASE=uue;$2.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var xR=Se(il=>{"use strict";function mue(e){return Bo.hasOwnProperty(e)?Bo[e]:null}function wa(e,t,r,a,n,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Bo={},pue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];pue.forEach(e=>{Bo[e]=new wa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Bo[e]=new wa(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Bo[e]=new wa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Bo[e]=new wa(e,2,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Bo[e]=new wa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Bo[e]=new wa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Bo[e]=new wa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Bo[e]=new wa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Bo[e]=new wa(e,5,!1,e.toLowerCase(),null,!1,!1)});var E8=/[\-\:]([a-z])/g,I8=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(E8,I8);Bo[t]=new wa(t,1,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(E8,I8);Bo[t]=new wa(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(E8,I8);Bo[t]=new wa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Bo[e]=new wa(e,1,!1,e.toLowerCase(),null,!1,!1)});var due="xlinkHref";Bo[due]=new wa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Bo[e]=new wa(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:fue,SAME:hue,possibleStandardNames:yR}=bR(),gue=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vue=gue+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",bue=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+vue+"]*$")),yue=Object.keys(yR).reduce((e,t)=>{let r=yR[t];return r===hue?e[t]=t:r===fue?e[t.toLowerCase()]=t:e[t]=r,e},{});il.BOOLEAN=3;il.BOOLEANISH_STRING=2;il.NUMERIC=5;il.OVERLOADED_BOOLEAN=4;il.POSITIVE_NUMERIC=6;il.RESERVED=0;il.STRING=1;il.getPropertyInfo=mue;il.isCustomAttribute=bue;il.possibleStandardNames=yue});var D8=Se((Kke,_R)=>{_R.exports=window.React});var PR=Se((Qke,TR)=>{"use strict";var kR=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xue=/\n/g,_ue=/^\s*/,kue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wue=/^:\s*/,Cue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Sue=/^[;\s]*/,Tue=/^\s+|\s+$/g,Pue=`
`,wR="/",CR="*",Mm="",Bue="comment",Nue="declaration";function Eue(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,a=1;function n(h){var v=h.match(xue);v&&(r+=v.length);var y=h.lastIndexOf(Pue);a=~y?h.length-y:a+h.length}function i(){var h={line:r,column:a};return function(v){return v.position=new l(h),u(),v}}function l(h){this.start=h,this.end={line:r,column:a},this.source=t.source}l.prototype.content=e;function s(h){var v=new Error(t.source+":"+r+":"+a+": "+h);if(v.reason=h,v.filename=t.source,v.line=r,v.column=a,v.source=e,!t.silent)throw v}function c(h){var v=h.exec(e);if(v){var y=v[0];return n(y),e=e.slice(y.length),v}}function u(){c(_ue)}function m(h){var v;for(h=h||[];v=p();)v!==!1&&h.push(v);return h}function p(){var h=i();if(!(wR!=e.charAt(0)||CR!=e.charAt(1))){for(var v=2;Mm!=e.charAt(v)&&(CR!=e.charAt(v)||wR!=e.charAt(v+1));)++v;if(v+=2,Mm===e.charAt(v-1))return s("End of comment missing");var y=e.slice(2,v-2);return a+=2,n(y),e=e.slice(v),a+=2,h({type:Bue,comment:y})}}function d(){var h=i(),v=c(kue);if(v){if(p(),!c(wue))return s("property missing ':'");var y=c(Cue),b=h({type:Nue,property:SR(v[0].replace(kR,Mm)),value:y?SR(y[0].replace(kR,Mm)):Mm});return c(Sue),b}}function f(){var h=[];m(h);for(var v;v=d();)v!==!1&&(h.push(v),m(h));return h}return u(),f()}function SR(e){return e?e.replace(Tue,Mm):Mm}TR.exports=Eue});var BR=Se(jg=>{"use strict";var Iue=jg&&jg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jg,"__esModule",{value:!0});jg.default=Lue;var Due=Iue(PR());function Lue(e,t){let r=null;if(!e||typeof e!="string")return r;let a=(0,Due.default)(e),n=typeof t=="function";return a.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;n?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var ER=Se(q2=>{"use strict";Object.defineProperty(q2,"__esModule",{value:!0});q2.camelCase=void 0;var Mue=/^--[a-zA-Z0-9_-]+$/,Rue=/-([a-z])/g,Aue=/^[^-]+$/,zue=/^-(webkit|moz|ms|o|khtml)-/,Vue=/^-(ms)-/,Hue=function(e){return!e||Aue.test(e)||Mue.test(e)},Fue=function(e,t){return t.toUpperCase()},NR=function(e,t){return"".concat(t,"-")},Oue=function(e,t){return t===void 0&&(t={}),Hue(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Vue,NR):e=e.replace(zue,NR),e.replace(Rue,Fue))};q2.camelCase=Oue});var DR=Se((M8,IR)=>{"use strict";var jue=M8&&M8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Uue=jue(BR()),Gue=ER();function L8(e,t){var r={};return!e||typeof e!="string"||(0,Uue.default)(e,function(a,n){a&&n&&(r[(0,Gue.camelCase)(a,t)]=n)}),r}L8.default=L8;IR.exports=L8});var R8=Se(Ca=>{"use strict";var Wue=Ca&&Ca.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.returnFirstArg=Ca.canTextBeChildOfNode=Ca.ELEMENTS_WITH_NO_TEXT_CHILDREN=Ca.PRESERVE_CUSTOM_ATTRIBUTES=void 0;Ca.isCustomComponent=Kue;Ca.setStyleProp=Yue;var $ue=D8(),que=Wue(DR()),Zue=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Kue(e,t){return e.includes("-")?!Zue.has(e):!!(t&&typeof t.is=="string")}var Que={reactCompat:!0};function Yue(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,que.default)(e,Que)}catch{t.style={}}}}Ca.PRESERVE_CUSTOM_ATTRIBUTES=Number($ue.version.split(".")[0])>=16;Ca.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Xue=function(e){return!Ca.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};Ca.canTextBeChildOfNode=Xue;var Jue=function(e){return e};Ca.returnFirstArg=Jue});var z8=Se(A8=>{"use strict";Object.defineProperty(A8,"__esModule",{value:!0});A8.default=ome;var Ug=xR(),LR=R8(),eme=["checked","value"],tme=["input","select","textarea"],rme={reset:!0,submit:!0};function ome(e,t){e===void 0&&(e={});var r={},a=!!(e.type&&rme[e.type]);for(var n in e){var i=e[n];if((0,Ug.isCustomAttribute)(n)){r[n]=i;continue}var l=n.toLowerCase(),s=MR(l);if(s){var c=(0,Ug.getPropertyInfo)(s);switch(eme.includes(s)&&tme.includes(t)&&!a&&(s=MR("default"+l)),r[s]=i,c&&c.type){case Ug.BOOLEAN:r[s]=!0;break;case Ug.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}LR.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,LR.setStyleProp)(e.style,r),r}function MR(e){return Ug.possibleStandardNames[e]}});var AR=Se(Wg=>{"use strict";var ame=Wg&&Wg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wg,"__esModule",{value:!0});Wg.default=RR;var V8=D8(),nme=ame(z8()),Gg=R8(),ime={cloneElement:V8.cloneElement,createElement:V8.createElement,isValidElement:V8.isValidElement};function RR(e,t){t===void 0&&(t={});for(var r=[],a=typeof t.replace=="function",n=t.transform||Gg.returnFirstArg,i=t.library||ime,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,m=0;m<u;m++){var p=e[m];if(a){var d=t.replace(p,m);if(c(d)){u>1&&(d=l(d,{key:d.key||m})),r.push(n(d,p,m));continue}}if(p.type==="text"){var f=!p.data.trim().length;if(f&&p.parent&&!(0,Gg.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,m));continue}var h=p,v={};lme(h)?((0,Gg.setStyleProp)(h.attribs.style,h.attribs),v=h.attribs):h.attribs&&(v=(0,nme.default)(h.attribs,h.name));var y=void 0;switch(p.type){case"script":case"style":p.children[0]&&(v.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?v.defaultValue=p.children[0].data:p.children&&p.children.length&&(y=RR(p.children,t));break;default:continue}u>1&&(v.key=m),r.push(n(s(p.name,v,y),p,m))}return r.length===1?r[0]:r}function lme(e){return Gg.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,Gg.isCustomComponent)(e.name,e.attribs)}});var H8=Se(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.Doctype=Kt.CDATA=Kt.Tag=Kt.Style=Kt.Script=Kt.Comment=Kt.Directive=Kt.Text=Kt.Root=Kt.isTag=Kt.ElementType=void 0;var Vn;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Vn=Kt.ElementType||(Kt.ElementType={}));function sme(e){return e.type===Vn.Tag||e.type===Vn.Script||e.type===Vn.Style}Kt.isTag=sme;Kt.Root=Vn.Root;Kt.Text=Vn.Text;Kt.Directive=Vn.Directive;Kt.Comment=Vn.Comment;Kt.Script=Vn.Script;Kt.Style=Vn.Style;Kt.Tag=Vn.Tag;Kt.CDATA=Vn.CDATA;Kt.Doctype=Vn.Doctype});var U8=Se(Ge=>{"use strict";var mu=Ge&&Ge.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}})(),$g=Ge&&Ge.__assign||function(){return $g=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},$g.apply(this,arguments)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.cloneNode=Ge.hasChildren=Ge.isDocument=Ge.isDirective=Ge.isComment=Ge.isText=Ge.isCDATA=Ge.isTag=Ge.Element=Ge.Document=Ge.CDATA=Ge.NodeWithChildren=Ge.ProcessingInstruction=Ge.Comment=Ge.Text=Ge.DataNode=Ge.Node=void 0;var rn=H8(),O8=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),j8(this,t)},e})();Ge.Node=O8;var Z2=(function(e){mu(t,e);function t(r){var a=e.call(this)||this;return a.data=r,a}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(O8);Ge.DataNode=Z2;var zR=(function(e){mu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=rn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Z2);Ge.Text=zR;var VR=(function(e){mu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=rn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Z2);Ge.Comment=VR;var HR=(function(e){mu(t,e);function t(r,a){var n=e.call(this,a)||this;return n.name=r,n.type=rn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Z2);Ge.ProcessingInstruction=HR;var K2=(function(e){mu(t,e);function t(r){var a=e.call(this)||this;return a.children=r,a}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(O8);Ge.NodeWithChildren=K2;var FR=(function(e){mu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=rn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(K2);Ge.CDATA=FR;var OR=(function(e){mu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=rn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(K2);Ge.Document=OR;var jR=(function(e){mu(t,e);function t(r,a,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?rn.ElementType.Script:r==="style"?rn.ElementType.Style:rn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=a,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(a){var n,i;return{name:a,value:r.attribs[a],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[a],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[a]}})},enumerable:!1,configurable:!0}),t})(K2);Ge.Element=jR;function UR(e){return(0,rn.isTag)(e)}Ge.isTag=UR;function GR(e){return e.type===rn.ElementType.CDATA}Ge.isCDATA=GR;function WR(e){return e.type===rn.ElementType.Text}Ge.isText=WR;function $R(e){return e.type===rn.ElementType.Comment}Ge.isComment=$R;function qR(e){return e.type===rn.ElementType.Directive}Ge.isDirective=qR;function ZR(e){return e.type===rn.ElementType.Root}Ge.isDocument=ZR;function cme(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ge.hasChildren=cme;function j8(e,t){t===void 0&&(t=!1);var r;if(WR(e))r=new zR(e.data);else if($R(e))r=new VR(e.data);else if(UR(e)){var a=t?F8(e.children):[],n=new jR(e.name,$g({},e.attribs),a);a.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=$g({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=$g({},e["x-attribsPrefix"])),r=n}else if(GR(e)){var a=t?F8(e.children):[],i=new FR(a);a.forEach(function(u){return u.parent=i}),r=i}else if(ZR(e)){var a=t?F8(e.children):[],l=new OR(a);a.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(qR(e)){var s=new HR(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Ge.cloneNode=j8;function F8(e){for(var t=e.map(function(a){return j8(a,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var YR=Se(is=>{"use strict";var ume=is&&is.__createBinding||(Object.create?(function(e,t,r,a){a===void 0&&(a=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,n)}):(function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]})),mme=is&&is.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ume(t,e,r)};Object.defineProperty(is,"__esModule",{value:!0});is.DomHandler=void 0;var G8=H8(),pu=U8();mme(U8(),is);var KR={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},QR=(function(){function e(t,r,a){this.dom=[],this.root=new pu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(a=r,r=KR),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??KR,this.elementCB=a??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new pu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var a=this.options.xmlMode?G8.ElementType.Tag:void 0,n=new pu.Element(t,r,void 0,a);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===G8.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var a=new pu.Text(t);this.addNode(a),this.lastNode=a}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===G8.ElementType.Comment){this.lastNode.data+=t;return}var r=new pu.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new pu.Text(""),r=new pu.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var a=new pu.ProcessingInstruction(t,r);this.addNode(a)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],a=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),a&&(t.prev=a,a.next=t),t.parent=r,this.lastNode=null},e})();is.DomHandler=QR;is.default=QR});var $8=Se(Yr=>{"use strict";var W8=Yr&&Yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.htmlToDOM=Yr.domToReact=Yr.attributesToProps=Yr.Text=Yr.ProcessingInstruction=Yr.Element=Yr.Comment=void 0;Yr.default=fme;var XR=W8(vR());Yr.htmlToDOM=XR.default;var pme=W8(z8());Yr.attributesToProps=pme.default;var JR=W8(AR());Yr.domToReact=JR.default;var Q2=YR();Object.defineProperty(Yr,"Comment",{enumerable:!0,get:function(){return Q2.Comment}});Object.defineProperty(Yr,"Element",{enumerable:!0,get:function(){return Q2.Element}});Object.defineProperty(Yr,"ProcessingInstruction",{enumerable:!0,get:function(){return Q2.ProcessingInstruction}});Object.defineProperty(Yr,"Text",{enumerable:!0,get:function(){return Q2.Text}});var dme={lowerCaseAttributeNames:!1};function fme(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,JR.default)((0,XR.default)(e,t?.htmlparser2||dme),t):[]}});var ls=Se((l4e,tA)=>{tA.exports=window.wp.dom});var g=Se((s4e,rA)=>{rA.exports=window.ReactJSXRuntime});var M=Se((p4e,nA)=>{nA.exports=window.wp.components});var O=Se((d4e,iA)=>{iA.exports=window.wp.element});var zr=Se((f4e,lA)=>{lA.exports=window.wp.blob});var Q=Se((h4e,sA)=>{sA.exports=window.wp.coreData});var L=Se((k4e,hA)=>{hA.exports=window.wp.primitives});var Br=Se((z7e,ZA)=>{ZA.exports=window.wp.url});var Xr=Se((F7e,JA)=>{JA.exports=window.wp.htmlEntities});var Nr=Se((X7e,dz)=>{dz.exports=window.wp.notices});var hz=Se((r9e,fz)=>{fz.exports=window.wp.privateApis});var ms=Se(($9e,Wz)=>{Wz.exports=window.wp.keycodes});var tf=Se((Y9e,Zz)=>{Zz.exports=window.wp.deprecated});var op=Se((xSe,nV)=>{nV.exports=window.wp.richText});var R_=Se((mBe,eF)=>{eF.exports=window.wp.date});var h1=Se((zBe,pF)=>{pF.exports=window.wp.apiFetch});var wc=Se((uEe,WO)=>{WO.exports=window.wp.hooks});var B1=Se((NDe,D5)=>{var vU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u1EA2:"A",\u1EA0:"A",\u1EA8:"A",\u1EAA:"A",\u1EAC:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u1EBA:"E",\u1EBC:"E",\u1EB8:"E",\u1EC2:"E",\u1EC4:"E",\u1EC6:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u1EC8:"I",\u1ECA:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u1ECE:"O",\u1ECC:"O",\u1ED4:"O",\u1ED6:"O",\u1ED8:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u1EDA:"O",\u1EE2:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u1EE6:"U",\u1EE4:"U",\u1EEC:"U",\u1EEE:"U",\u1EF0:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u1EA3:"a",\u1EA1:"a",\u1EA9:"a",\u1EAB:"a",\u1EAD:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u1EBB:"e",\u1EBD:"e",\u1EB9:"e",\u1EC3:"e",\u1EC5:"e",\u1EC7:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u1EC9:"i",\u1ECB:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u1ECF:"o",\u1ECD:"o",\u1ED5:"o",\u1ED7:"o",\u1ED9:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u1EDB:"o",\u1EE3:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u1EE7:"u",\u1EE5:"u",\u1EED:"u",\u1EEF:"u",\u1EF1:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z",\u0439:"\u0438",\u0419:"\u0418",\u0451:"\u0435",\u0401:"\u0415"},bU=Object.keys(vU).join("|"),Ohe=new RegExp(bU,"g"),jhe=new RegExp(bU,"");function Uhe(e){return vU[e]}var yU=function(e){return e.replace(Ohe,Uhe)},Ghe=function(e){return!!e.match(jhe)};D5.exports=yU;D5.exports.has=Ghe;D5.exports.remove=yU});var j1=Se((QAe,w$)=>{w$.exports=window.wp.a11y});var bK=Se((kFe,vK)=>{vK.exports=window.wp.escapeHtml});var PJ=Se((F$e,TJ)=>{TJ.exports=window.wp.wordcount});var Are=Se((IQe,Rre)=>{Rre.exports=window.wp.patterns});var Poe=Se((zYe,Toe)=>{Toe.exports=window.wp.autop});var tie=Se((ftt,eie)=>{"use strict";eie.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(n=a;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(a=t.length,a!=r.length)return!1;for(n=a;n--!==0;)if(t[n]!==r[n])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(r).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=a;n--!==0;){var l=i[n];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var xce=Se((Dnt,yce)=>{yce.exports=window.wp.keyboardShortcuts});var Eke={};$(Eke,{__experimentalGetCoreBlocks:()=>Nce,__experimentalRegisterExperimentalCoreBlocks:()=>Nke,privateApis:()=>NM,registerCoreBlocks:()=>Bke});var rl=o(U(),1),Cce=o(fe(),1),Sce=o(V(),1),Tce=o(T(),1),Pce=o(su(),1),I2=o(P(),1);function UM(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=UM(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function qce(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=UM(e))&&(a&&(a+=" "),a+=t);return a}var w=qce;var q8=o($8(),1),ll=o($8(),1),eA=q8.default.default||q8.default;var oA=o(ls(),1),aA=o(g(),1),hme=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let m=(0,ll.attributesToProps)(s||{}),p=i;if(!c){let d={...m,...e,className:w(m.className,e.className),style:{...m.style||{},...e.style||{}}};return(0,aA.jsx)(p,{...d,children:(0,ll.domToReact)(u,r)})}}}},a=(0,oA.safeHTML)(t);return eA(a,r)},on=hme;var Y8={};$(Y8,{init:()=>yme,metadata:()=>tb,name:()=>vA,settings:()=>bA});var Q8=o(P(),1);var ra=o(T(),1),Hn=o(P(),1),uo=o(M(),1),Fd=o(V(),1),J2=o(U(),1);var Y2=o(V(),1),Rm=o(O(),1),du=o(zr(),1),Z8=o(T(),1),cA=o(Q(),1),uA=o(fe(),1);function X2(e,t,r){return(0,Y2.useSelect)(a=>a(cA.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function fu(e={}){let t=(0,Rm.useRef)(e),r=(0,Rm.useRef)(!1),{getSettings:a}=(0,Y2.useSelect)(Z8.store);(0,Rm.useLayoutEffect)(()=>{t.current=e}),(0,Rm.useEffect)(()=>{if(r.current||!t.current.url||!(0,du.isBlobURL)(t.current.url))return;let n=(0,du.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=a();u&&(r.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([m])=>{(0,du.isBlobURL)(m?.url)||((0,du.revokeBlobURL)(i),s(m),r.current=!1)},onError:m=>{(0,du.revokeBlobURL)(i),c(m),r.current=!1}}))},[a])}function qg(){return(0,Y2.useSelect)(t=>{let{getSettings:r}=t(Z8.store),{__experimentalDiscussionSettings:a}=r();return a?.avatarURL??""},[])}function W(){return(0,uA.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var mr=o(g(),1),K8="core/accordion-item",gme="core/accordion-heading",vme={name:K8};function mA({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:a,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,Fd.useRegistry)(),{getBlockOrder:u}=(0,Fd.useSelect)(ra.store),m=(0,ra.useBlockProps)({role:"group"}),p=W(),{updateBlockAttributes:d,insertBlock:f}=(0,Fd.useDispatch)(ra.store),v=(0,ra.useBlockEditingMode)()==="contentOnly",y=(0,ra.useInnerBlocksProps)(m,{template:[[K8]],defaultBlock:vme,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,mr.jsxs)(mr.Fragment,{children:[s&&!v&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(ra.BlockControls,{children:(0,mr.jsx)(uo.ToolbarGroup,{children:(0,mr.jsx)(ra.HeadingLevelDropdown,{value:a,options:n,onChange:x=>{let k=u(i),C=[];k.forEach(S=>{let N=u(S);C.push(...N)}),c.batch(()=>{l({headingLevel:x}),d(C,{level:x})})}})})}),(0,mr.jsx)(ra.BlockControls,{group:"other",children:(0,mr.jsx)(uo.ToolbarButton,{onClick:()=>{let x=(0,J2.createBlock)(K8,{},[(0,J2.createBlock)(gme,{level:a}),(0,J2.createBlock)("core/accordion-panel",{})]);f(x,void 0,i)},children:(0,Hn.__)("Add item")})})]}),(0,mr.jsx)(ra.InspectorControls,{children:(0,mr.jsxs)(uo.__experimentalToolsPanel,{label:(0,Hn.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,mr.jsx)(uo.__experimentalToolsPanelItem,{label:(0,Hn.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,mr.jsx)(uo.ToggleControl,{isBlock:!0,label:(0,Hn.__)("Auto-close"),onChange:x=>{l({autoclose:x})},checked:e,help:(0,Hn.__)("Automatically close accordions when a new one is opened.")})}),(0,mr.jsx)(uo.__experimentalToolsPanelItem,{label:(0,Hn.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,mr.jsx)(uo.ToggleControl,{isBlock:!0,label:(0,Hn.__)("Show icon"),onChange:x=>{l({showIcon:x,iconPosition:x?t:"right"})},checked:r,help:(0,Hn.__)("Display a plus icon next to the accordion header.")})}),r&&(0,mr.jsx)(uo.__experimentalToolsPanelItem,{label:(0,Hn.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,mr.jsxs)(uo.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,Hn.__)("Icon Position"),value:t,onChange:x=>{l({iconPosition:x})},children:[(0,mr.jsx)(uo.__experimentalToggleGroupControlOption,{label:(0,Hn.__)("Left"),value:"left"}),(0,mr.jsx)(uo.__experimentalToggleGroupControlOption,{label:(0,Hn.__)("Right"),value:"right"})]})})]})},"setting"),(0,mr.jsx)("div",{...y})]})}var eb=o(T(),1),pA=o(g(),1);function dA(){let e=eb.useBlockProps.save({role:"group"});return(0,pA.jsx)("div",{...eb.useInnerBlocksProps.save(e)})}var tb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion",title:"Accordion",category:"design",description:"Displays a foldable layout that groups content in collapsible sections.",example:{},supports:{anchor:!0,html:!1,align:["wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{background:!0,gradients:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{padding:!0,margin:["top","bottom"],blockGap:!0},shadow:!0,layout:!0,ariaLabel:!0,interactivity:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},autoclose:{type:"boolean",default:!1},headingLevel:{type:"number",default:3},levelOptions:{type:"array"}},providesContext:{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},allowedBlocks:["core/accordion-item"],textdomain:"default",viewScriptModule:"@wordpress/block-library/accordion/view"};var fA=o(U(),1);function I(e){if(!e)return;let{metadata:t,settings:r,name:a}=e;return(0,fA.registerBlockType)({name:a,...t},r)}var Am=o(L(),1),zm=o(g(),1),gA=(0,zm.jsxs)(Am.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,zm.jsx)(Am.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,zm.jsx)(Am.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,zm.jsx)(Am.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,zm.jsx)(Am.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]});var{name:vA}=tb,bA={icon:gA,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,Q8.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,Q8.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:mA,save:dA},yme=()=>I({name:vA,metadata:tb,settings:bA});var X8={};$(X8,{init:()=>kme,metadata:()=>ob,name:()=>CA,settings:()=>SA});var Zg=o(P(),1),hu=o(T(),1),yA=o(V(),1),Od=o(M(),1);var ss=o(g(),1),xme=[["core/accordion-heading"],["core/accordion-panel"]];function xA({attributes:e,clientId:t,setAttributes:r,isSelected:a}){let{openByDefault:n}=e,i=W(),{isSelected:l}=(0,yA.useSelect)(u=>a||n?{isSelected:!0}:{isSelected:u(hu.store).hasSelectedInnerBlock(t,!0)},[t,a,n]),s=(0,hu.useBlockProps)({className:w({"is-open":n||l})}),c=(0,hu.useInnerBlocksProps)(s,{template:xme,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,ss.jsxs)(ss.Fragment,{children:[(0,ss.jsx)(hu.InspectorControls,{children:(0,ss.jsx)(Od.__experimentalToolsPanel,{label:(0,Zg.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,ss.jsx)(Od.__experimentalToolsPanelItem,{label:(0,Zg.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,ss.jsx)(Od.ToggleControl,{label:(0,Zg.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,Zg.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,ss.jsx)("div",{...c})]})}var rb=o(T(),1);var _A=o(g(),1);function kA({attributes:e}){let{openByDefault:t}=e,r=rb.useBlockProps.save({className:w({"is-open":t})}),a=rb.useInnerBlocksProps.save(r);return(0,_A.jsx)("div",{...a})}var ob={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-item",title:"Accordion Item",category:"design",description:"Wraps the heading and panel in one unit.",parent:["core/accordion"],allowedBlocks:["core/accordion-heading","core/accordion-panel"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{margin:["top","bottom"],blockGap:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},shadow:!0,layout:{allowEditing:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{openByDefault:{type:"boolean",default:!1}},providesContext:{"core/accordion-open-by-default":"openByDefault"},textdomain:"default",style:"wp-block-accordion-item"};var Vm=o(L(),1),Hm=o(g(),1),wA=(0,Hm.jsxs)(Vm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Hm.jsx)(Vm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z",fill:"currentColor"}),(0,Hm.jsx)(Vm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z",fill:"currentColor"}),(0,Hm.jsx)(Vm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z",fill:"currentColor"}),(0,Hm.jsx)(Vm.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z",fill:"currentColor"})]});var{name:CA}=ob,SA={icon:wA,edit:xA,save:kA},kme=()=>I({name:CA,metadata:ob,settings:SA});var J8={};$(J8,{init:()=>Tme,metadata:()=>ab,name:()=>LA,settings:()=>MA});var TA=o(P(),1),PA=o(O(),1),Ci=o(T(),1),BA=o(V(),1),Fm=o(g(),1);function NA({attributes:e,setAttributes:t,context:r}){let{title:a}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,BA.useDispatch)(Ci.store);(0,PA.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,m]=(0,Ci.useSettings)("typography.fluid","layout"),p=(0,Ci.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:m?.wideSize}}),d=(0,Ci.useBlockProps)(),f=(0,Ci.__experimentalGetSpacingClassesAndStyles)(e);return(0,Fm.jsx)(s,{...d,children:(0,Fm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,Fm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Fm.jsx)(Ci.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:a,onChange:h=>t({title:h}),placeholder:(0,TA.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,Fm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var gu=o(T(),1),Om=o(g(),1);function EA({attributes:e}){let{level:t,title:r,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=(0,gu.getTypographyClassesAndStyles)(e),s=gu.useBlockProps.save(),c=(0,gu.__experimentalGetSpacingClassesAndStyles)(e);return(0,Om.jsx)(i,{...s,children:(0,Om.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&a==="left"&&(0,Om.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Om.jsx)(gu.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&a==="right"&&(0,Om.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var ab={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-heading",title:"Accordion Heading",category:"design",description:"Displays a heading that toggles the accordion panel.",parent:["core/accordion-item"],usesContext:["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},selectors:{typography:{letterSpacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title",textDecoration:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},textdomain:"default"};var Kg=o(L(),1),Qg=o(g(),1),IA=(0,Qg.jsxs)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Qg.jsx)(Kg.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z",fill:"currentColor"}),(0,Qg.jsx)(Kg.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z",fill:"currentColor"})]});var sl=o(T(),1),Si=o(g(),1),Cme={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){let{level:t,title:r,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=sl.useBlockProps.save(),s=(0,sl.__experimentalGetSpacingClassesAndStyles)(e);return(0,Si.jsx)(i,{...l,children:(0,Si.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&a==="left"&&(0,Si.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Si.jsx)(sl.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&a==="right"&&(0,Si.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Sme={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=(0,sl.getTypographyClassesAndStyles)(e),s=sl.useBlockProps.save(),c=(0,sl.__experimentalGetSpacingClassesAndStyles)(e);return(0,Si.jsx)(i,{...s,children:(0,Si.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&a==="left"&&(0,Si.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Si.jsx)(sl.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&a==="right"&&(0,Si.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},DA=[Cme,Sme];var{name:LA}=ab,MA={icon:IA,edit:NA,save:EA,deprecated:DA},Tme=()=>I({name:LA,metadata:ab,settings:MA});var t7={};$(t7,{init:()=>Bme,metadata:()=>ib,name:()=>OA,settings:()=>jA});var jd=o(T(),1),RA=o(V(),1),AA=o(g(),1);function zA({attributes:e,context:t,clientId:r,isSelected:a}){let{allowedBlocks:n,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,RA.useSelect)(m=>{if(a||l)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:d,hasSelectedInnerBlock:f}=m(jd.store),h=p(r);return{hasSelection:d(h)||f(h,!0)}},[r,a,l]),c=(0,jd.useBlockProps)({"aria-hidden":!s,role:"region"}),u=(0,jd.useInnerBlocksProps)(c,{allowedBlocks:n,template:[["core/paragraph",{}]],templateLock:i});return(0,AA.jsx)("div",{...u})}var nb=o(T(),1),VA=o(g(),1);function HA(){let e=nb.useBlockProps.save({role:"region"}),t=nb.useInnerBlocksProps.save(e);return(0,VA.jsx)("div",{...t})}var ib={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-panel",title:"Accordion Panel",category:"design",description:"Contains the hidden or revealed content beneath the heading.",parent:["core/accordion-item"],usesContext:["core/accordion-open-by-default"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,layout:{allowEditing:!1},visibility:!1,contentRole:!0,allowedBlocks:!0,lock:!1},attributes:{templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1],default:!1}},textdomain:"default",style:"wp-block-accordion-panel"};var lb=o(L(),1),e7=o(g(),1),FA=(0,e7.jsx)(lb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e7.jsx)(lb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z",fill:"currentColor"})});var{name:OA}=ib,jA={icon:FA,edit:zA,save:HA},Bme=()=>I({name:OA,metadata:ib,settings:jA});var oP={};$(oP,{init:()=>Eme,metadata:()=>Rx,name:()=>$A,settings:()=>qA});var sb=o(O(),1),Sa=(0,sb.forwardRef)(({icon:e,size:t=24,...r},a)=>(0,sb.cloneElement)(e,{width:t,height:t,...r,ref:a}));var cb=o(L(),1),r7=o(g(),1),jm=(0,r7.jsx)(cb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r7.jsx)(cb.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})});var ub=o(L(),1),o7=o(g(),1),a7=(0,o7.jsx)(ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o7.jsx)(ub.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var mb=o(L(),1),n7=o(g(),1),i7=(0,n7.jsx)(mb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n7.jsx)(mb.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var pb=o(L(),1),l7=o(g(),1),s7=(0,l7.jsx)(pb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l7.jsx)(pb.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var db=o(L(),1),c7=o(g(),1),u7=(0,c7.jsx)(db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c7.jsx)(db.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var fb=o(L(),1),m7=o(g(),1),p7=(0,m7.jsx)(fb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m7.jsx)(fb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});var hb=o(L(),1),d7=o(g(),1),Yg=(0,d7.jsx)(hb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d7.jsx)(hb.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"})});var gb=o(L(),1),f7=o(g(),1),h7=(0,f7.jsx)(gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,f7.jsx)(gb.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});var vb=o(L(),1),g7=o(g(),1),Xg=(0,g7.jsx)(vb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,g7.jsx)(vb.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})});var bb=o(L(),1),v7=o(g(),1),b7=(0,v7.jsx)(bb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v7.jsx)(bb.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var yb=o(L(),1),y7=o(g(),1),x7=(0,y7.jsx)(yb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,y7.jsx)(yb.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});var xb=o(L(),1),_7=o(g(),1),k7=(0,_7.jsx)(xb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,_7.jsx)(xb.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})});var _b=o(L(),1),w7=o(g(),1),Jg=(0,w7.jsx)(_b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,w7.jsx)(_b.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})});var kb=o(L(),1),C7=o(g(),1),S7=(0,C7.jsx)(kb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,C7.jsx)(kb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});var wb=o(L(),1),T7=o(g(),1),vu=(0,T7.jsx)(wb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T7.jsx)(wb.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})});var Cb=o(L(),1),P7=o(g(),1),e0=(0,P7.jsx)(Cb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,P7.jsx)(Cb.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var Sb=o(L(),1),B7=o(g(),1),N7=(0,B7.jsx)(Sb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B7.jsx)(Sb.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var Tb=o(L(),1),E7=o(g(),1),I7=(0,E7.jsx)(Tb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E7.jsx)(Tb.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var Pb=o(L(),1),D7=o(g(),1),L7=(0,D7.jsx)(Pb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,D7.jsx)(Pb.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var Bb=o(L(),1),M7=o(g(),1),t0=(0,M7.jsx)(Bb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,M7.jsx)(Bb.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})});var Nb=o(L(),1),R7=o(g(),1),Um=(0,R7.jsx)(Nb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R7.jsx)(Nb.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var Eb=o(L(),1),A7=o(g(),1),r0=(0,A7.jsx)(Eb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,A7.jsx)(Eb.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"})});var Ib=o(L(),1),z7=o(g(),1),V7=(0,z7.jsx)(Ib.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z7.jsx)(Ib.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})});var Db=o(L(),1),H7=o(g(),1),F7=(0,H7.jsx)(Db.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,H7.jsx)(Db.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});var Lb=o(L(),1),O7=o(g(),1),o0=(0,O7.jsx)(Lb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,O7.jsx)(Lb.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});var Gm=o(L(),1),Ud=o(g(),1),j7=(0,Ud.jsxs)(Gm.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ud.jsx)(Gm.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",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ud.jsx)(Gm.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ud.jsx)(Gm.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var Mb=o(L(),1),U7=o(g(),1),G7=(0,U7.jsx)(Mb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,U7.jsx)(Mb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});var Rb=o(L(),1),W7=o(g(),1),$7=(0,W7.jsx)(Rb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,W7.jsx)(Rb.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});var Ab=o(L(),1),q7=o(g(),1),Z7=(0,q7.jsx)(Ab.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,q7.jsx)(Ab.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});var zb=o(L(),1),K7=o(g(),1),a0=(0,K7.jsx)(zb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,K7.jsx)(zb.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 Vb=o(L(),1),Q7=o(g(),1),Wm=(0,Q7.jsx)(Vb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q7.jsx)(Vb.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"})});var Hb=o(L(),1),Y7=o(g(),1),n0=(0,Y7.jsx)(Hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y7.jsx)(Hb.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})});var Fb=o(L(),1),X7=o(g(),1),i0=(0,X7.jsx)(Fb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X7.jsx)(Fb.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})});var Ob=o(L(),1),J7=o(g(),1),e9=(0,J7.jsx)(Ob.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,J7.jsx)(Ob.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})});var l0=o(L(),1),s0=o(g(),1),t9=(0,s0.jsxs)(l0.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,s0.jsx)(l0.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,s0.jsx)(l0.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var jb=o(L(),1),r9=o(g(),1),c0=(0,r9.jsx)(jb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r9.jsx)(jb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});var Ub=o(L(),1),o9=o(g(),1),a9=(0,o9.jsx)(Ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o9.jsx)(Ub.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var Gb=o(L(),1),n9=o(g(),1),i9=(0,n9.jsx)(Gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n9.jsx)(Gb.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})});var Wb=o(L(),1),l9=o(g(),1),s9=(0,l9.jsx)(Wb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l9.jsx)(Wb.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})});var $b=o(L(),1),c9=o(g(),1),u0=(0,c9.jsx)($b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c9.jsx)($b.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})});var qb=o(L(),1),u9=o(g(),1),m0=(0,u9.jsx)(qb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u9.jsx)(qb.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var Zb=o(L(),1),m9=o(g(),1),p0=(0,m9.jsx)(Zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m9.jsx)(Zb.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})});var Kb=o(L(),1),p9=o(g(),1),Ti=(0,p9.jsx)(Kb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p9.jsx)(Kb.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})});var Qb=o(L(),1),d9=o(g(),1),f9=(0,d9.jsx)(Qb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d9.jsx)(Qb.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});var Yb=o(L(),1),h9=o(g(),1),d0=(0,h9.jsx)(Yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h9.jsx)(Yb.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})});var Xb=o(L(),1),g9=o(g(),1),f0=(0,g9.jsx)(Xb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g9.jsx)(Xb.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})});var Jb=o(L(),1),v9=o(g(),1),$m=(0,v9.jsx)(Jb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v9.jsx)(Jb.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var ey=o(L(),1),b9=o(g(),1),h0=(0,b9.jsx)(ey.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,b9.jsx)(ey.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})});var ty=o(L(),1),y9=o(g(),1),cl=(0,y9.jsx)(ty.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y9.jsx)(ty.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});var ry=o(L(),1),x9=o(g(),1),qm=(0,x9.jsx)(ry.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,x9.jsx)(ry.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"})});var oy=o(L(),1),_9=o(g(),1),k9=(0,_9.jsx)(oy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_9.jsx)(oy.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var ay=o(L(),1),w9=o(g(),1),C9=(0,w9.jsx)(ay.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w9.jsx)(ay.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var ny=o(L(),1),S9=o(g(),1),T9=(0,S9.jsx)(ny.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S9.jsx)(ny.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})});var iy=o(L(),1),P9=o(g(),1),B9=(0,P9.jsx)(iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P9.jsx)(iy.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})});var ly=o(L(),1),N9=o(g(),1),E9=(0,N9.jsx)(ly.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N9.jsx)(ly.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var sy=o(L(),1),I9=o(g(),1),D9=(0,I9.jsx)(sy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I9.jsx)(sy.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})});var cy=o(L(),1),L9=o(g(),1),M9=(0,L9.jsx)(cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L9.jsx)(cy.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var uy=o(L(),1),R9=o(g(),1),A9=(0,R9.jsx)(uy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R9.jsx)(uy.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var my=o(L(),1),z9=o(g(),1),V9=(0,z9.jsx)(my.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z9.jsx)(my.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var py=o(L(),1),H9=o(g(),1),F9=(0,H9.jsx)(py.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,H9.jsx)(py.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 dy=o(L(),1),O9=o(g(),1),bu=(0,O9.jsx)(dy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,O9.jsx)(dy.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});var fy=o(L(),1),j9=o(g(),1),U9=(0,j9.jsx)(fy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,j9.jsx)(fy.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});var hy=o(L(),1),G9=o(g(),1),Zm=(0,G9.jsx)(hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G9.jsx)(hy.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var gy=o(L(),1),W9=o(g(),1),g0=(0,W9.jsx)(gy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,W9.jsx)(gy.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});var vy=o(L(),1),$9=o(g(),1),Fn=(0,$9.jsx)(vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$9.jsx)(vy.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var by=o(L(),1),q9=o(g(),1),Z9=(0,q9.jsx)(by.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q9.jsx)(by.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var yy=o(L(),1),K9=o(g(),1),ul=(0,K9.jsx)(yy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,K9.jsx)(yy.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})});var xy=o(L(),1),Q9=o(g(),1),Y9=(0,Q9.jsx)(xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q9.jsx)(xy.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})});var _y=o(L(),1),X9=o(g(),1),Km=(0,X9.jsx)(_y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,X9.jsx)(_y.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})});var ky=o(L(),1),J9=o(g(),1),eS=(0,J9.jsx)(ky.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,J9.jsx)(ky.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})});var wy=o(L(),1),tS=o(g(),1),rS=(0,tS.jsx)(wy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tS.jsx)(wy.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});var Cy=o(L(),1),oS=o(g(),1),aS=(0,oS.jsx)(Cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oS.jsx)(Cy.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var v0=o(L(),1),b0=o(g(),1),y0=(0,b0.jsxs)(v0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,b0.jsx)(v0.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,b0.jsx)(v0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});var Sy=o(L(),1),nS=o(g(),1),iS=(0,nS.jsx)(Sy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nS.jsx)(Sy.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var Ty=o(L(),1),lS=o(g(),1),x0=(0,lS.jsx)(Ty.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lS.jsx)(Ty.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Py=o(L(),1),sS=o(g(),1),cS=(0,sS.jsx)(Py.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,sS.jsx)(Py.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var By=o(L(),1),uS=o(g(),1),Qm=(0,uS.jsx)(By.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,uS.jsx)(By.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var Ny=o(L(),1),mS=o(g(),1),pS=(0,mS.jsx)(Ny.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mS.jsx)(Ny.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var Ey=o(L(),1),dS=o(g(),1),fS=(0,dS.jsx)(Ey.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dS.jsx)(Ey.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})});var Iy=o(L(),1),hS=o(g(),1),gS=(0,hS.jsx)(Iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hS.jsx)(Iy.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});var _0=o(L(),1),k0=o(g(),1),dc=(0,k0.jsxs)(_0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,k0.jsx)(_0.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,k0.jsx)(_0.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]});var Gd=o(L(),1),Wd=o(g(),1),vS=(0,Wd.jsxs)(Gd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Wd.jsx)(Gd.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,Wd.jsx)(Gd.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,Wd.jsx)(Gd.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var Dy=o(L(),1),bS=o(g(),1),yS=(0,bS.jsx)(Dy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bS.jsx)(Dy.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});var Ly=o(L(),1),xS=o(g(),1),Ym=(0,xS.jsx)(Ly.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xS.jsx)(Ly.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var My=o(L(),1),_S=o(g(),1),w0=(0,_S.jsx)(My.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_S.jsx)(My.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});var Ry=o(L(),1),kS=o(g(),1),wS=(0,kS.jsx)(Ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,kS.jsx)(Ry.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})});var Ay=o(L(),1),CS=o(g(),1),$d=(0,CS.jsx)(Ay.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CS.jsx)(Ay.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var zy=o(L(),1),SS=o(g(),1),TS=(0,SS.jsx)(zy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SS.jsx)(zy.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var Vy=o(L(),1),PS=o(g(),1),BS=(0,PS.jsx)(Vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PS.jsx)(Vy.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var Hy=o(L(),1),NS=o(g(),1),ES=(0,NS.jsx)(Hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NS.jsx)(Hy.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var Fy=o(L(),1),IS=o(g(),1),Xm=(0,IS.jsx)(Fy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,IS.jsx)(Fy.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})});var Oy=o(L(),1),DS=o(g(),1),qd=(0,DS.jsx)(Oy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,DS.jsx)(Oy.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})});var jy=o(L(),1),LS=o(g(),1),C0=(0,LS.jsx)(jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LS.jsx)(jy.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});var Uy=o(L(),1),MS=o(g(),1),RS=(0,MS.jsx)(Uy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MS.jsx)(Uy.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});var Gy=o(L(),1),AS=o(g(),1),zS=(0,AS.jsx)(Gy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AS.jsx)(Gy.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})});var Wy=o(L(),1),VS=o(g(),1),HS=(0,VS.jsx)(Wy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,VS.jsx)(Wy.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var S0=o(L(),1),T0=o(g(),1),P0=(0,T0.jsxs)(S0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,T0.jsx)(S0.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,T0.jsx)(S0.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]});var $y=o(L(),1),FS=o(g(),1),OS=(0,FS.jsx)($y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,FS.jsx)($y.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});var qy=o(L(),1),jS=o(g(),1),US=(0,jS.jsx)(qy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jS.jsx)(qy.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});var Zy=o(L(),1),GS=o(g(),1),B0=(0,GS.jsx)(Zy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,GS.jsx)(Zy.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});var Ky=o(L(),1),WS=o(g(),1),$S=(0,WS.jsx)(Ky.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,WS.jsx)(Ky.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var Qy=o(L(),1),qS=o(g(),1),ZS=(0,qS.jsx)(Qy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,qS.jsx)(Qy.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})});var Yy=o(L(),1),KS=o(g(),1),QS=(0,KS.jsx)(Yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,KS.jsx)(Yy.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var Xy=o(L(),1),YS=o(g(),1),XS=(0,YS.jsx)(Xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YS.jsx)(Xy.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var Jy=o(L(),1),JS=o(g(),1),eT=(0,JS.jsx)(Jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,JS.jsx)(Jy.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var ex=o(L(),1),tT=o(g(),1),rT=(0,tT.jsx)(ex.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,tT.jsx)(ex.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var tx=o(L(),1),oT=o(g(),1),N0=(0,oT.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oT.jsx)(tx.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var rx=o(L(),1),aT=o(g(),1),E0=(0,aT.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aT.jsx)(rx.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});var ox=o(L(),1),nT=o(g(),1),I0=(0,nT.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nT.jsx)(ox.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});var ax=o(L(),1),iT=o(g(),1),D0=(0,iT.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iT.jsx)(ax.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var nx=o(L(),1),lT=o(g(),1),sT=(0,lT.jsx)(nx.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,lT.jsx)(nx.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})});var ix=o(L(),1),cT=o(g(),1),uT=(0,cT.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cT.jsx)(ix.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});var lx=o(L(),1),mT=o(g(),1),pT=(0,mT.jsx)(lx.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,mT.jsx)(lx.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var sx=o(L(),1),dT=o(g(),1),fT=(0,dT.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dT.jsx)(sx.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})});var cx=o(L(),1),hT=o(g(),1),L0=(0,hT.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hT.jsx)(cx.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 ux=o(L(),1),gT=o(g(),1),M0=(0,gT.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gT.jsx)(ux.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var mx=o(L(),1),vT=o(g(),1),bT=(0,vT.jsx)(mx.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,vT.jsx)(mx.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var px=o(L(),1),yT=o(g(),1),R0=(0,yT.jsx)(px.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,yT.jsx)(px.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})});var dx=o(L(),1),xT=o(g(),1),A0=(0,xT.jsx)(dx.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xT.jsx)(dx.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})});var fx=o(L(),1),_T=o(g(),1),kT=(0,_T.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_T.jsx)(fx.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var hx=o(L(),1),wT=o(g(),1),CT=(0,wT.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wT.jsx)(hx.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});var gx=o(L(),1),ST=o(g(),1),TT=(0,ST.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ST.jsx)(gx.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var vx=o(L(),1),PT=o(g(),1),BT=(0,PT.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PT.jsx)(vx.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})});var bx=o(L(),1),NT=o(g(),1),z0=(0,NT.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NT.jsx)(bx.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var yx=o(L(),1),ET=o(g(),1),IT=(0,ET.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ET.jsx)(yx.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var xx=o(L(),1),DT=o(g(),1),Zd=(0,DT.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DT.jsx)(xx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})});var _x=o(L(),1),LT=o(g(),1),MT=(0,LT.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LT.jsx)(_x.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})});var kx=o(L(),1),RT=o(g(),1),AT=(0,RT.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RT.jsx)(kx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})});var V0=o(L(),1),H0=o(g(),1),F0=(0,H0.jsxs)(V0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,H0.jsx)(V0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,H0.jsx)(V0.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});var wx=o(L(),1),zT=o(g(),1),VT=(0,zT.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zT.jsx)(wx.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})});var Cx=o(L(),1),HT=o(g(),1),FT=(0,HT.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,HT.jsx)(Cx.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})});var Sx=o(L(),1),OT=o(g(),1),jT=(0,OT.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OT.jsx)(Sx.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})});var Tx=o(L(),1),UT=o(g(),1),GT=(0,UT.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UT.jsx)(Tx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});var Px=o(L(),1),WT=o(g(),1),O0=(0,WT.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WT.jsx)(Px.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})});var j0=o(L(),1),U0=o(g(),1),$T=(0,U0.jsxs)(j0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,U0.jsx)(j0.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,U0.jsx)(j0.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var Bx=o(L(),1),qT=o(g(),1),ZT=(0,qT.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qT.jsx)(Bx.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});var G0=o(L(),1),W0=o(g(),1),KT=(0,W0.jsxs)(G0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,W0.jsx)(G0.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,W0.jsx)(G0.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var Nx=o(L(),1),QT=o(g(),1),$0=(0,QT.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QT.jsx)(Nx.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});var Ex=o(L(),1),YT=o(g(),1),ml=(0,YT.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YT.jsx)(Ex.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var Ix=o(L(),1),XT=o(g(),1),fc=(0,XT.jsx)(Ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XT.jsx)(Ix.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var Dx=o(L(),1),JT=o(g(),1),q0=(0,JT.jsx)(Dx.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,JT.jsx)(Dx.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})});var Lx=o(L(),1),eP=o(g(),1),Kd=(0,eP.jsx)(Lx.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,eP.jsx)(Lx.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"})});var Mx=o(L(),1),tP=o(g(),1),rP=(0,tP.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tP.jsx)(Mx.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});var Rx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0}}};var Ta=o(M(),1),No=o(P(),1),Ax=o(T(),1),UA=o(su(),1),GA=o(fe(),1);var Vr=o(g(),1);function WA({attributes:e,setAttributes:t,name:r}){let{showLabel:a,showPostCounts:n,displayAsDropdown:i,type:l}=e,s=W(),{content:c,status:u,error:m}=(0,UA.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,GA.useDisabled)(),d=(0,Ax.useBlockProps)({ref:p});return(0,Vr.jsxs)(Vr.Fragment,{children:[(0,Vr.jsx)(Ax.InspectorControls,{children:(0,Vr.jsxs)(Ta.__experimentalToolsPanel,{label:(0,No.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,Vr.jsx)(Ta.__experimentalToolsPanelItem,{label:(0,No.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,Vr.jsx)(Ta.ToggleControl,{label:(0,No.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,Vr.jsx)(Ta.__experimentalToolsPanelItem,{label:(0,No.__)("Show label"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>t({showLabel:!0}),children:(0,Vr.jsx)(Ta.ToggleControl,{label:(0,No.__)("Show label"),checked:a,onChange:()=>t({showLabel:!a})})}),(0,Vr.jsx)(Ta.__experimentalToolsPanelItem,{label:(0,No.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,Vr.jsx)(Ta.ToggleControl,{label:(0,No.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,Vr.jsx)(Ta.__experimentalToolsPanelItem,{label:(0,No.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,Vr.jsx)(Ta.SelectControl,{__next40pxDefaultSize:!0,label:(0,No.__)("Group by"),options:[{label:(0,No.__)("Year"),value:"yearly"},{label:(0,No.__)("Month"),value:"monthly"},{label:(0,No.__)("Week"),value:"weekly"},{label:(0,No.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,Vr.jsx)("div",{...d,children:(0,Vr.jsx)(Ta.Spinner,{})}),u==="error"&&(0,Vr.jsx)("div",{...d,children:(0,Vr.jsx)("p",{children:(0,No.sprintf)((0,No.__)("Error: %s"),m)})}),u==="success"&&(0,Vr.jsx)(on,{wrapperProps:d,html:c})]})}var{name:$A}=Rx,qA={icon:p7,example:{},edit:WA},Eme=()=>I({name:$A,metadata:Rx,settings:qA});var nP={};$(nP,{init:()=>Ame,metadata:()=>zx,name:()=>uz,settings:()=>mz});var zx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user\u2019s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{anchor:!0,html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1},filter:{duotone:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img",filter:{duotone:".wp-block-avatar img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"};var Jm=o(T(),1),an=o(M(),1),Pi=o(P(),1),Hx=o(Br(),1);var Z0=o(Q(),1),yu=o(P(),1),KA=o(V(),1);function QA(e){let t=e?e[0]:24,r=e?e[e.length-1]:96,a=Math.floor(r*2.5);return{minSize:t,maxSize:a}}function YA({commentId:e}){let[t]=(0,Z0.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,Z0.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=QA(n),s=qg();return{src:a?a[a.length-1]:s,minSize:i,maxSize:l,alt:r?(0,yu.sprintf)((0,yu.__)("%s Avatar"),r):(0,yu.__)("Default Avatar")}}function XA({userId:e,postId:t,postType:r}){let{authorDetails:a}=(0,KA.useSelect)(u=>{let{getEditedEntityRecord:m,getUser:p}=u(Z0.store);if(e)return{authorDetails:p(e)};let d=m("postType",r,t)?.author;return{authorDetails:d?p(d):null}},[r,t,e]),n=a?.avatar_urls?Object.values(a.avatar_urls):null,i=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:s}=QA(i),c=qg();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:a?(0,yu.sprintf)((0,yu.__)("%s Avatar"),a?.name):(0,yu.__)("Default Avatar")}}var aP=o(P(),1),ez=o(M(),1),tz=o(V(),1),rz=o(Q(),1),Vx=o(O(),1),oz=o(fe(),1),az=o(Xr(),1),nz=o(g(),1),Dme={who:"authors",per_page:100,_fields:"id,name",context:"view"};function iz({value:e,onChange:t}){let[r,a]=(0,Vx.useState)(""),{authors:n,isLoading:i}=(0,tz.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(rz.store),m={...Dme};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,Vx.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,az.decodeEntities)(s.name)})),[n]);return(0,nz.jsx)(ez.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,aP.__)("User"),help:(0,aP.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:l,onFilterValueChange:(0,oz.debounce)(a,300),isLoading:i})}var Bt=o(g(),1),lz=({setAttributes:e,avatar:t,attributes:r,selectUser:a})=>{let n=W();return(0,Bt.jsx)(Jm.InspectorControls,{children:(0,Bt.jsxs)(an.__experimentalToolsPanel,{label:(0,Pi.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,Bt.jsx)(an.__experimentalToolsPanelItem,{label:(0,Pi.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,Bt.jsx)(an.RangeControl,{__next40pxDefaultSize:!0,label:(0,Pi.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,Bt.jsx)(an.__experimentalToolsPanelItem,{label:(0,Pi.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,Bt.jsx)(an.ToggleControl,{label:(0,Pi.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,Bt.jsx)(an.__experimentalToolsPanelItem,{label:(0,Pi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,Bt.jsx)(an.ToggleControl,{label:(0,Pi.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),a&&(0,Bt.jsx)(an.__experimentalToolsPanelItem,{label:(0,Pi.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,Bt.jsx)(iz,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},Lme=({children:e,isLink:t})=>t?(0,Bt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,sz=({setAttributes:e,attributes:t,avatar:r,blockProps:a,isSelected:n})=>{let i=(0,Jm.__experimentalUseBorderProps)(t),l=(0,Hx.addQueryArgs)((0,Hx.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,Bt.jsx)("div",{...a,children:(0,Bt.jsx)(Lme,{isLink:t.isLink,children:(0,Bt.jsx)(an.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,m)=>{e({size:parseInt(t.size+(m.height||m.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Pi.isRTL)(),bottom:!0,left:(0,Pi.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,Bt.jsx)("img",{src:l,alt:r.alt,className:w("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},Mme=({attributes:e,context:t,setAttributes:r,isSelected:a})=>{let{commentId:n}=t,i=(0,Jm.useBlockProps)(),l=YA({commentId:n});return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(lz,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,Bt.jsx)(sz,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:r})]})},Rme=({attributes:e,context:t,setAttributes:r,isSelected:a})=>{let{postId:n,postType:i}=t,l=XA({userId:e?.userId,postId:n,postType:i}),s=(0,Jm.useBlockProps)();return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(lz,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,Bt.jsx)(sz,{attributes:e,avatar:l,blockProps:s,isSelected:a,setAttributes:r})]})};function cz(e){return e?.context?.commentId||e?.context?.commentId===null?(0,Bt.jsx)(Mme,{...e}):(0,Bt.jsx)(Rme,{...e})}var{name:uz}=zx,mz={icon:o0,edit:cz,example:{}},Ame=()=>I({name:uz,metadata:zx,settings:mz});var dP={};$(dP,{init:()=>qme,metadata:()=>jx,name:()=>Az,settings:()=>Ux});var pP=o(P(),1);var Rz=o(U(),1);var iP=o(T(),1),K0=o(g(),1),pz=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){let{autoplay:t,caption:r,loop:a,preload:n,src:i}=e;return(0,K0.jsxs)("figure",{children:[(0,K0.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!iP.RichText.isEmpty(r)&&(0,K0.jsx)(iP.RichText.Content,{tagName:"figcaption",value:r})]})}}];var Tz=o(zr(),1),Ba=o(M(),1),ln=o(T(),1),Pa=o(P(),1),Pz=o(V(),1);var Bz=o(Nr(),1),Nz=o(O(),1);function Qd(e,t){var r=0,a,n;t=t||{};function i(){var l=a,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==a&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=a,l.prev=null,a.prev=l,a=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},a?(a.prev=l,l.next=a):n=l,r===t.maxSize?(n=n.prev,n.next=null):r++,a=l,l.val}return i.clear=function(){a=null,n=null,r=0},i}var bz=o(M(),1),sP=o(O(),1),us=o(U(),1);var cs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},type:{type:"string",role:"content"},providerNameSlug:{type:"string",role:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,role:"content"},previewable:{type:"boolean",default:!0,role:"content"}},supports:{anchor:!0,align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Q0=[{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"}],lP="wp-embed";var gz=o(hz(),1),{lock:vz,unlock:Z}=(0,gz.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library");var Fx=o(g(),1),{name:Yd}=cs,{kebabCase:Vme}=Z(bz.privateApis),yz=e=>(0,us.getBlockVariations)(Yd)?.find(({name:t})=>t===e),cP=(e,t=[])=>t.some(r=>e.match(r)),Hme=e=>(0,us.getBlockVariations)(Yd)?.find(({patterns:t})=>cP(e,t)),xz=e=>e&&e.includes('class="wp-embedded-content"'),_z=e=>{let t=e.url||e.thumbnail_url,r=(0,Fx.jsx)("p",{children:(0,Fx.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,sP.renderToString)(r)},xu=(e,t={})=>{let{preview:r,attributes:a={}}=e,{url:n,providerNameSlug:i,type:l,...s}=a;if(!n||!(0,us.getBlockType)(Yd))return;let c=Hme(n),u=i==="wordpress"||l===lP;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,us.createBlock)(Yd,{url:n,...s,...c.attributes});let p=(0,us.getBlockVariations)(Yd)?.find(({name:d})=>d==="wordpress");if(!(!p||!r||!xz(r.html)||u))return(0,us.createBlock)(Yd,{url:n,...p.attributes,...t})},Fme=e=>e?Q0.some(({className:t})=>e.includes(t)):!1,ep=e=>{if(!e)return e;let t=Q0.reduce((a,{className:n})=>(a.push(n),a),["wp-has-aspect-ratio"]),r=e;for(let a of t)r=r.replace(a,"");return r.trim()};function uP(e,t,r=!0){if(!r)return ep(t);let a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;let n=a.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let l=0;l<Q0.length;l++){let s=Q0[l];if(i>=s.ratio)return i-s.ratio>.1?ep(t):w(ep(t),s.className,"wp-has-aspect-ratio")}}return t}function kz(e,t){t((0,us.createBlock)("core/paragraph",{content:(0,sP.renderToString)((0,Fx.jsx)("a",{href:e,children:e}))}))}var Ome=Qd((e,t,r,a,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=Vme((c||t).toLowerCase());return xz(s)&&(l=lP),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),Fme(r)||(i.className=uP(s,r,a&&n)),i}),wz=(e,t,r,a)=>{let{allowResponsive:n,className:i}=e;return{...e,...Ome(t,r,i,a,n)}};var tp=o(O(),1),Cz=o(fe(),1),Y0=o(P(),1),Xd=o(T(),1),Sz=o(M(),1);var Ox=o(U(),1);var _u=o(g(),1);function nn({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:a,insertBlocksAfter:n,placeholder:i=(0,Y0.__)("Add caption"),label:l=(0,Y0.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:m,tagName:p="figcaption",addLabel:d=(0,Y0.__)("Add caption"),removeLabel:f=(0,Y0.__)("Remove caption"),icon:h=S7,...v}){let y=t[e],b=(0,Cz.usePrevious)(y),{PrivateRichText:_}=Z(Xd.privateApis),x=_.isEmpty(y),k=_.isEmpty(b),[C,S]=(0,tp.useState)(!x);(0,tp.useEffect)(()=>{!x&&k&&S(!0)},[x,k]),(0,tp.useEffect)(()=>{!a&&x&&S(!1)},[a,x]);let N=(0,tp.useCallback)(B=>{B&&x&&B.focus()},[x]);return(0,_u.jsxs)(_u.Fragment,{children:[s&&(0,_u.jsx)(Xd.BlockControls,{group:"block",children:(0,_u.jsx)(Sz.ToolbarButton,{onClick:()=>{S(!C),C&&y&&r({[e]:void 0})},icon:h,isPressed:C,label:C?f:d})}),C&&(!_.isEmpty(y)||a)&&(0,_u.jsx)(_,{identifier:e,tagName:p,className:w(u,c?"":(0,Xd.__experimentalGetElementClassName)("caption")),ref:N,"aria-label":l,placeholder:i,value:y,onChange:B=>r({[e]:B}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,Ox.createBlock)((0,Ox.getDefaultBlockName)())),readOnly:m,...v})]})}var pr=o(g(),1),mP=["audio"];function jme({attributes:e,className:t,setAttributes:r,onReplace:a,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:m}=e,[p,d]=(0,Nz.useState)(e.blob),h=(0,ln.useBlockEditingMode)()==="default";fu({url:p,allowedTypes:mP,onChange:k,onError:_});function v(B){return D=>{r({[B]:D})}}function y(B){if(B!==m){let D=xu({attributes:{url:B}});if(D!==void 0&&a){a(D);return}r({src:B,id:void 0,blob:void 0}),d()}}let{createErrorNotice:b}=(0,Pz.useDispatch)(Bz.store);function _(B){b(B,{type:"snackbar"})}function x(B){return B?(0,Pa.__)("Autoplay may cause usability issues for some users."):null}function k(B){if(!B||!B.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,Tz.isBlobURL)(B.url)){d(B.url);return}r({blob:void 0,src:B.url,id:B.id,caption:B.caption}),d()}let C=w(t,{"is-transient":!!p}),S=(0,ln.useBlockProps)({className:C}),N=W();return!m&&!p?(0,pr.jsx)("div",{...S,children:(0,pr.jsx)(ln.MediaPlaceholder,{icon:(0,pr.jsx)(ln.BlockIcon,{icon:Yg}),onSelect:k,onSelectURL:y,accept:"audio/*",allowedTypes:mP,value:e,onError:_})}):(0,pr.jsxs)(pr.Fragment,{children:[n&&(0,pr.jsx)(ln.BlockControls,{group:"other",children:(0,pr.jsx)(ln.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:mP,accept:"audio/*",onSelect:k,onSelectURL:y,onError:_,onReset:()=>k(void 0),variant:"toolbar"})}),(0,pr.jsx)(ln.InspectorControls,{children:(0,pr.jsxs)(Ba.__experimentalToolsPanel,{label:(0,Pa.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:N,children:[(0,pr.jsx)(Ba.__experimentalToolsPanelItem,{label:(0,Pa.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,pr.jsx)(Ba.ToggleControl,{label:(0,Pa.__)("Autoplay"),onChange:v("autoplay"),checked:!!s,help:x})}),(0,pr.jsx)(Ba.__experimentalToolsPanelItem,{label:(0,Pa.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,pr.jsx)(Ba.ToggleControl,{label:(0,Pa.__)("Loop"),onChange:v("loop"),checked:!!c})}),(0,pr.jsx)(Ba.__experimentalToolsPanelItem,{label:(0,Pa.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,pr.jsx)(Ba.SelectControl,{__next40pxDefaultSize:!0,label:(0,Pa._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:B=>r({preload:B||void 0}),options:[{value:"",label:(0,Pa.__)("Browser default")},{value:"auto",label:(0,Pa.__)("Auto")},{value:"metadata",label:(0,Pa.__)("Metadata")},{value:"none",label:(0,Pa._x)("None","Preload value")}]})})]})}),(0,pr.jsxs)("figure",{...S,children:[(0,pr.jsx)(Ba.Disabled,{isDisabled:!n,children:(0,pr.jsx)("audio",{controls:"controls",src:m??p})}),!!p&&(0,pr.jsx)(Ba.Spinner,{}),(0,pr.jsx)(nn,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,Pa.__)("Audio caption text"),showToolbarButton:n&&h})]})]})}var Ez=jme;var jx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},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,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var rp=o(T(),1),X0=o(g(),1);function Iz({attributes:e}){let{autoplay:t,caption:r,loop:a,preload:n,src:i}=e;return i&&(0,X0.jsxs)("figure",{...rp.useBlockProps.save(),children:[(0,X0.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!rp.RichText.isEmpty(r)&&(0,X0.jsx)(rp.RichText.Content,{tagName:"figcaption",value:r,className:(0,rp.__experimentalGetElementClassName)("caption")})]})}var Dz=o(zr(),1),Lz=o(U(),1),Gme={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,Lz.createBlock)("core/audio",{blob:(0,Dz.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:a,wav:n,wma:i}})=>e||t||r||a||n||i},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},Mz=Gme;var{fieldsKey:Wme,formKey:$me}=Z(Rz.privateApis),{name:Az}=jx,Ux={icon:Yg,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Mz,deprecated:pz,edit:Ez,save:Iz};window.__experimentalContentOnlyInspectorFields&&(Ux[Wme]=[{id:"audio",label:(0,pP.__)("Audio"),type:"media",Edit:{control:"media",allowedTypes:["audio"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.src}),setValue:({value:e})=>({id:e.id,src:e.url})},{id:"caption",label:(0,pP.__)("Caption"),type:"text",Edit:"rich-text"}],Ux[$me]={fields:["audio","caption"]});var qme=()=>I({name:Az,metadata:jx,settings:Ux});var fP={};$(fP,{init:()=>Kme,metadata:()=>Gx,name:()=>Oz,settings:()=>jz});var Gx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/breadcrumbs",title:"Breadcrumbs",category:"theme",description:"Display a breadcrumb trail showing the path to the current page.",textdomain:"default",attributes:{prefersTaxonomy:{type:"boolean",default:!1},separator:{type:"string",default:"/"},showHomeItem:{type:"boolean",default:!0},showCurrentItem:{type:"boolean",default:!0},showOnHomePage:{type:"boolean",default:!1}},usesContext:["postId","postType","templateSlug"],supports:{anchor:!0,html:!1,align:["wide","full"],spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!0,width:!0,style:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-breadcrumbs"};var Er=o(P(),1),J0=o(T(),1),Eo=o(M(),1),zz=o(V(),1),$x=o(Q(),1),qx=o(O(),1),Vz=o(su(),1),Hz=o(fe(),1);var Ct=o(g(),1),Wx="/";function Fz({attributes:e,setAttributes:t,name:r,context:{postId:a,postType:n,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:m}=e,{post:p,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:v}=(0,zz.useSelect)(R=>{if(!n)return{};let j=R($x.store).getEntityRecord("postType",n,a),z=R($x.store).getPostType(n),E=z&&z.taxonomies.length,H;return E&&(H=R($x.store).getTaxonomies({type:n,per_page:-1})),{post:j,isPostTypeHierarchical:z?.hierarchical,postTypeHasTaxonomies:E,hasTermsAssigned:j&&(H||[]).filter(({visibility:G})=>G?.publicly_queryable).some(G=>!!j[G.rest_base]?.length),isLoading:a&&!j||!z||E&&!H}},[n,a]),[y,b]=(0,qx.useState)(0);(0,qx.useEffect)(()=>{b(R=>R+1)},[p]);let _=W(),{content:x,status:k,error:C}=(0,Vz.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:a,invalidationKey:y}}),S=(0,Hz.useDisabled)(),N=(0,J0.useBlockProps)({ref:S});if(v)return(0,Ct.jsx)("div",{...N,children:(0,Ct.jsx)(Eo.Spinner,{})});let B;!d&&!p?.parent?B=!0:f?B=u:B=!1;let D=null,A=!a||!n||i&&!n||!B&&!d||B&&!h;if(A){let R=[];s&&R.push((0,Er.__)("Home")),i&&!a?R.push((0,Er.__)("Page")):B?R.push((0,Er.__)("Category")):R.push((0,Er.__)("Ancestor"),(0,Er.__)("Parent")),D=(0,Ct.jsx)("nav",{...N,children:(0,Ct.jsxs)("ol",{children:[R.map((j,z)=>(0,Ct.jsx)("li",{children:(0,Ct.jsx)("a",{href:`#breadcrumbs-pseudo-link-${z}`,children:j})},z)),c&&(0,Ct.jsx)("li",{children:(0,Ct.jsx)("span",{"aria-current":"page",children:(0,Er.__)("Current")})})]})})}return(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(J0.InspectorControls,{children:(0,Ct.jsxs)(Eo.__experimentalToolsPanel,{label:(0,Er.__)("Settings"),resetAll:()=>{t({separator:Wx,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,Ct.jsx)(Eo.__experimentalToolsPanelItem,{label:(0,Er.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,Ct.jsx)(Eo.ToggleControl,{label:(0,Er.__)("Show home breadcrumb"),onChange:R=>t({showHomeItem:R}),checked:s})}),(0,Ct.jsx)(Eo.__experimentalToolsPanelItem,{label:(0,Er.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Ct.jsx)(Eo.ToggleControl,{label:(0,Er.__)("Show current breadcrumb"),onChange:R=>t({showCurrentItem:R}),checked:c})}),(0,Ct.jsx)(Eo.__experimentalToolsPanelItem,{label:(0,Er.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==Wx,onDeselect:()=>t({separator:Wx}),children:(0,Ct.jsx)(Eo.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Er.__)("Separator"),value:l,onChange:R=>t({separator:R}),onBlur:()=>{l||t({separator:Wx})}})})]})}),(0,Ct.jsxs)(J0.InspectorControls,{group:"advanced",children:[(0,Ct.jsx)(Eo.CheckboxControl,{label:(0,Er.__)("Show on homepage"),checked:m,onChange:R=>t({showOnHomePage:R}),help:(0,Er.__)("If this breadcrumbs block appears in a template or template part that\u2019s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.")}),(0,Ct.jsx)(Eo.CheckboxControl,{label:(0,Er.__)("Prefer taxonomy terms"),checked:u,onChange:R=>t({prefersTaxonomy:R}),help:(0,Er.__)("The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.")})]}),k==="loading"&&(0,Ct.jsx)("div",{...N,children:(0,Ct.jsx)(Eo.Spinner,{})}),k==="error"&&(0,Ct.jsx)("div",{...N,children:(0,Ct.jsx)("p",{children:(0,Er.sprintf)((0,Er.__)("Error: %s"),C)})}),A&&D,!A&&k==="success"&&(0,Ct.jsx)(on,{wrapperProps:N,html:x})]})}var{name:Oz}=Gx,jz={icon:b7,edit:Fz},Kme=()=>I({name:Oz,metadata:Gx,settings:jz});var bP={};$(bP,{init:()=>mpe,metadata:()=>Yx,name:()=>rV,settings:()=>Jx});var Xx=o(P(),1);var tV=o(U(),1);var ve=o(T(),1),e1=o(fe(),1);var Uz=o(T(),1);var{cleanEmptyObject:Qme}=Z(Uz.privateApis);function Mt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Qme({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function On(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Ot=o(g(),1),Jd=e=>{let{borderRadius:t,...r}=e,a=[t,r.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return a?{...r,style:{...r.style,border:{...r.style?.border,radius:`${a}px`}}}:r};function Yme(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:w(r.className,`align${e.align}`)}}var gP=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);let{customTextColor:r,customBackgroundColor:a,customGradient:n,...i}=e;return{...i,style:t}},hP=e=>{let{color:t,textColor:r,...a}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return gP(a)},hc={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},Xme={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",v=a||"button",y=(0,ve.__experimentalGetBorderClassesAndStyles)(e),b=(0,ve.__experimentalGetColorClassesAndStyles)(e),_=(0,ve.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ve.__experimentalGetShadowClassesAndStyles)(e),k=(0,ve.getTypographyClassesAndStyles)(e),C=w("wp-block-button__link",b.className,y.className,k.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,ve.__experimentalGetElementClassName)("button")),S={...y.style,...b.style,..._.style,...x.style,...k.style,writingMode:void 0},N=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:N}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:f,type:h?v:null,className:C,href:h?null:p,title:m,style:S,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign},migrate:On},Jme={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){let{tagName:r,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",v=a||"button",y=(0,ve.__experimentalGetBorderClassesAndStyles)(e),b=(0,ve.__experimentalGetColorClassesAndStyles)(e),_=(0,ve.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ve.__experimentalGetShadowClassesAndStyles)(e),k=w("wp-block-button__link",b.className,y.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,ve.__experimentalGetElementClassName)("button")),C={...y.style,...b.style,..._.style,...x.style},S=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:S}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:f,type:h?v:null,className:k,href:h?null:p,title:m,style:C,value:u,target:h?null:l,rel:h?null:s})})}},epe={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ve.__experimentalGetBorderClassesAndStyles)(e),p=(0,ve.__experimentalGetColorClassesAndStyles)(e),d=(0,ve.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},v=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:v}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:a,rel:n})})}},tpe={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ve.__experimentalGetBorderClassesAndStyles)(e),p=(0,ve.__experimentalGetColorClassesAndStyles)(e),d=(0,ve.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},v=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:v}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:a,rel:n})})},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},rpe=[Xme,Jme,epe,tpe,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=i?.border?.radius,p=(0,ve.__experimentalGetColorClassesAndStyles)(e),d=w("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:m||void 0,...p.style},h=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:h}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:a,rel:n})})},migrate:(0,e1.compose)(Mt,Jd)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ve.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:d}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,e1.compose)(Mt,Jd)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ve.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ot.jsx)("div",{...ve.useBlockProps.save({className:d}),children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,e1.compose)(Mt,Jd)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){let{borderRadius:t,linkTarget:r,rel:a,text:n,title:i,url:l}=e,s=w("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:r,rel:a})},migrate:Jd},{supports:{align:!0,alignWide:!1},attributes:{...hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient||!!e.align,migrate:(0,e1.compose)(Jd,gP,Yme),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:a,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:m,title:p,url:d}=e,f=(0,ve.getColorClassName)("color",m),h=!i&&(0,ve.getColorClassName)("background-color",t),v=(0,ve.__experimentalGetGradientClass)(s),y=w("wp-block-button__link",{"has-text-color":m||n,[f]:f,"has-background":t||a||i||s,[h]:h,"no-border-radius":r===0,[v]:v}),b={background:i||void 0,backgroundColor:h||i||s?void 0:a,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Ot.jsx)("div",{children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:y,href:d,title:p,style:b,value:u,target:l,rel:c})})}},{attributes:{...hc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Jd(gP({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:a,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,m=(0,ve.getColorClassName)("color",s),p=(0,ve.getColorClassName)("background-color",t),d=w("wp-block-button__link",{"has-text-color":s||a,[m]:m,"has-background":t||r,[p]:p}),f={backgroundColor:p?void 0:r,color:m?void 0:a};return(0,Ot.jsx)("div",{children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...hc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:hP,save({attributes:e}){let{url:t,text:r,title:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,ve.getColorClassName)("color",i),u=(0,ve.getColorClassName)("background-color",n),m=w("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),p={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,Ot.jsx)("div",{children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:m,href:t,title:a,style:p,value:r})})}},{attributes:{...hc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:a,align:n,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,Ot.jsx)("div",{className:`align${n}`,children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:s,value:r})})},migrate:hP},{attributes:{...hc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:a,align:n,color:i,textColor:l}=e;return(0,Ot.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Ot.jsx)(ve.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:r})})},migrate:hP}],Gz=rpe;var Io=o(P(),1),sn=o(O(),1),oa=o(M(),1),at=o(T(),1),wu=o(ms(),1);var gc=o(U(),1),r1=o(fe(),1),o1=o(V(),1);var Zx="noreferrer noopener",Kx="_blank",ef="nofollow";var $z=o(Br(),1);function qz({rel:e="",url:t="",opensInNewTab:r,nofollow:a}){let n,i=e;if(r)n=Kx,i=i?.includes(Zx)?i:i+` ${Zx}`;else{let l=new RegExp(`\\b${Zx}\\s*`,"g");i=i?.replace(l,"").trim()}if(a)i=i?.includes(ef)?i:(i+` ${ef}`).trim();else{let l=new RegExp(`\\b${ef}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,$z.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function t1(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var Kz=o(fe(),1),Qx=o(O(),1),Qz=o(tf(),1),Yz=o(V(),1),Xz=o(T(),1);function ku(e){let{name:t,attributes:r,setAttributes:a}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,Yz.useDispatch)(Xz.store),l=(0,Kz.useEvent)(()=>{(0,Qz.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),a(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,Qx.useRef)();(0,Qx.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}var vr=o(g(),1),{HTMLElementControl:ope}=Z(at.privateApis),ape=[...at.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,Io.__)("Mark as nofollow")}];function npe(e){let{replaceBlocks:t,selectionChange:r}=(0,o1.useDispatch)(at.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i}=(0,o1.useSelect)(at.store),l=(0,sn.useRef)(e);return l.current=e,(0,r1.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==wu.ENTER)return;let{content:m,clientId:p}=l.current;if(m.length)return;u.preventDefault();let d=a(n(p)),f=i(p),h=(0,gc.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,f)}),v=(0,gc.createBlock)((0,gc.getDefaultBlockName)()),y=d.innerBlocks.slice(f+1),b=y.length?[(0,gc.cloneBlock)({...d,innerBlocks:y})]:[];t(d.clientId,[h,v,...b],1),r(v.clientId)}return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c)}},[])}function ipe({selectedWidth:e,setAttributes:t}){let r=W();return(0,vr.jsx)(oa.__experimentalToolsPanel,{label:(0,Io.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:r,children:(0,vr.jsx)(oa.__experimentalToolsPanelItem,{label:(0,Io.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),children:(0,vr.jsx)(oa.__experimentalToggleGroupControl,{label:(0,Io.__)("Width"),value:e,onChange:a=>t({width:a}),isBlock:!0,__next40pxDefaultSize:!0,children:[25,50,75,100].map(a=>(0,vr.jsx)(oa.__experimentalToggleGroupControlOption,{value:a,label:(0,Io.sprintf)((0,Io.__)("%d%%"),a)},a))})})})}function lpe(e){let{attributes:t,setAttributes:r,className:a,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:m,placeholder:p,rel:d,style:f,text:h,url:v,width:y,metadata:b}=t;ku(e);let _=u||"a";function x(Be){wu.isKeyboardEvent.primary(Be,"k")?oe(Be):wu.isKeyboardEvent.primaryShift(Be,"k")&&(le(),R.current?.focus())}let[k,C]=(0,sn.useState)(null),S=(0,at.__experimentalUseBorderProps)(t),N=(0,at.__experimentalUseColorProps)(t),B=(0,at.__experimentalGetSpacingClassesAndStyles)(t),D=(0,at.__experimentalGetShadowClassesAndStyles)(t),A=(0,sn.useRef)(),R=(0,sn.useRef)(),j=(0,at.useBlockProps)({ref:(0,r1.useMergeRefs)([C,A]),onKeyDown:x}),z=(0,at.useBlockEditingMode)(),[E,H]=(0,sn.useState)(!1),G=!!v,F=m===Kx,q=!!d?.includes(ef),K=_==="a",{createPageEntity:te,userCanCreatePages:X,lockUrlControls:re=!1}=(0,o1.useSelect)(Be=>{if(!n)return{};let de=Be(at.store).getSettings(),lt=(0,gc.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:de.__experimentalCreatePageEntity,userCanCreatePages:de.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!lt?.canUserEditValue?.({select:Be,context:c,args:b?.bindings?.url?.args})}},[c,n,b?.bindings?.url]);async function J(Be){let de=await te({title:Be,status:"draft"});return{id:de.id,type:de.type,title:de.title.rendered,url:de.link,kind:"post-type"}}function ne(Be){return(0,sn.createInterpolateElement)((0,Io.sprintf)((0,Io.__)("Create page: <mark>%s</mark>"),Be),{mark:(0,vr.jsx)("mark",{})})}function oe(Be){Be.preventDefault(),H(!0)}function le(){r({url:void 0,linkTarget:void 0,rel:void 0}),H(!1)}(0,sn.useEffect)(()=>{n||H(!1)},[n]);let ce=(0,sn.useMemo)(()=>({url:v,opensInNewTab:F,nofollow:q}),[v,F,q]),ye=npe({content:h,clientId:s}),Me=(0,r1.useMergeRefs)([ye,R]),[ie,Ve]=(0,at.useSettings)("typography.fluid","layout"),Re=(0,at.getTypographyClassesAndStyles)(t,{typography:{fluid:ie},layout:{wideSize:Ve?.wideSize}}),pe=z==="default"||K&&!re;return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)("div",{...j,className:w(j.className,{[`has-custom-width wp-block-button__width-${y}`]:y}),children:(0,vr.jsx)(at.RichText,{ref:Me,"aria-label":(0,Io.__)("Button text"),placeholder:p||(0,Io.__)("Add text\u2026"),value:h,onChange:Be=>r({text:t1(Be)}),withoutInteractiveFormatting:!0,className:w(a,"wp-block-button__link",N.className,S.className,Re.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":j.style.fontSize},(0,at.__experimentalGetElementClassName)("button")),style:{...S.style,...N.style,...B.style,...D.style,...Re.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),pe&&(0,vr.jsx)(at.BlockControls,{group:"block",children:K&&!re&&(0,vr.jsx)(oa.ToolbarButton,{name:"link",icon:G?g0:Fn,title:G?(0,Io.__)("Unlink"):(0,Io.__)("Link"),shortcut:G?wu.displayShortcut.primaryShift("k"):wu.displayShortcut.primary("k"),onClick:G?le:oe,isActive:G})}),K&&n&&(E||G)&&!re&&(0,vr.jsx)(oa.Popover,{placement:"bottom",onClose:()=>{H(!1),R.current?.focus()},anchor:k,focusOnMount:E?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,vr.jsx)(at.LinkControl,{value:ce,onChange:({url:Be,opensInNewTab:de,nofollow:lt})=>r(qz({rel:d,url:Be,opensInNewTab:de,nofollow:lt})),onRemove:()=>{le(),R.current?.focus()},forceIsEditingLink:E,settings:ape,createSuggestion:te&&J,withCreateSuggestion:X,createSuggestionButtonText:ne})}),(0,vr.jsx)(at.InspectorControls,{children:(0,vr.jsx)(ipe,{selectedWidth:y,setAttributes:r})}),(0,vr.jsxs)(at.InspectorControls,{group:"advanced",children:[(0,vr.jsx)(ope,{tagName:u,onChange:Be=>r({tagName:Be}),options:[{label:(0,Io.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),K&&(0,vr.jsx)(oa.TextControl,{__next40pxDefaultSize:!0,label:(0,Io.__)("Link relation"),help:(0,sn.createInterpolateElement)((0,Io.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,vr.jsx)(oa.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:Be=>r({rel:Be})})]})]})}var Jz=lpe;var Yx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button",selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}}};var aa=o(T(),1),vP=o(g(),1);function eV({attributes:e,className:t}){let{tagName:r,type:a,fontSize:n,linkTarget:i,rel:l,style:s,text:c,title:u,url:m,width:p}=e,d=r||"a",f=d==="button",h=a||"button",v=(0,aa.__experimentalGetBorderClassesAndStyles)(e),y=(0,aa.__experimentalGetColorClassesAndStyles)(e),b=(0,aa.__experimentalGetSpacingClassesAndStyles)(e),_=(0,aa.__experimentalGetShadowClassesAndStyles)(e),x=(0,aa.getTypographyClassesAndStyles)(e),k=w("wp-block-button__link",y.className,v.className,x.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,aa.__experimentalGetElementClassName)("button")),C={...v.style,...y.style,...b.style,..._.style,...x.style,writingMode:void 0},S=w(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,vP.jsx)("div",{...aa.useBlockProps.save({className:S}),children:(0,vP.jsx)(aa.RichText.Content,{tagName:d,type:f?h:null,className:k,href:f?null:m,title:u,style:C,value:c,target:f?null:i,rel:f?null:l})})}var{fieldsKey:cpe,formKey:upe}=Z(tV.privateApis),{name:rV}=Yx,Jx={icon:x7,example:{attributes:{className:"is-style-fill",text:(0,Xx.__)("Call to action")}},edit:Jz,save:eV,deprecated:Gz,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,a=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(a||n))return a||r}};window.__experimentalContentOnlyInspectorFields&&(Jx[cpe]=[{id:"text",label:(0,Xx.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Xx.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({url:e.url,rel:e.rel,linkTarget:e.linkTarget})}],Jx[upe]={fields:["text","link"]});var mpe=()=>I({name:rV,metadata:Yx,settings:Jx});var _P={};$(_P,{init:()=>vpe,metadata:()=>t_,name:()=>dV,settings:()=>fV});var xP=o(P(),1);var n1=o(T(),1),a1=o(g(),1),oV=e=>{if(e.layout)return e;let{contentJustification:t,orientation:r,...a}=e;return(t||r)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),a},ppe=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:oV,save({attributes:{contentJustification:e,orientation:t}}){return(0,a1.jsx)("div",{...n1.useBlockProps.save({className:w({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,a1.jsx)(n1.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,a1.jsx)("div",{children:(0,a1.jsx)(n1.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return oV({...e,align:void 0,contentJustification:e.align})}}],aV=ppe;var l1=o(U(),1),yP=o(op(),1);var i1=o(U(),1);function vc(e,t,r=null){if(!e)return;let a=(0,i1.getBlockType)(t);if(!a)return;let n={};if((0,i1.hasBlockSupport)(a,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,i1.hasBlockSupport)(a,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?r(u):u),s),{});Object.keys(l).length>0&&(n.metadata=l)}}if(Object.keys(n).length!==0)return n}var dpe={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,l1.createBlock)("core/buttons",{},e.map(t=>(0,l1.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,l1.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,a=(0,yP.__unstableCreateElement)(document,r),n=a.innerText||"",l=a.querySelector("a")?.getAttribute("href");return(0,l1.createBlock)("core/button",{...t,...vc(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let r=(0,yP.__unstableCreateElement)(document,t.content),a=r.innerText||"",n=r.querySelectorAll("a");return a.length<=30&&n.length<=1})}]},iV=dpe;var e_=o(T(),1),lV=o(V(),1),sV=o(U(),1),cV=o(g(),1),fpe={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function hpe({attributes:e,className:t}){let{fontSize:r,layout:a,style:n}=e,i=(0,e_.useBlockProps)({className:w(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),{hasButtonVariations:l}=(0,lV.useSelect)(c=>({hasButtonVariations:c(sV.store).getBlockVariations("core/button","inserter").length>0}),[]),s=(0,e_.useInnerBlocksProps)(i,{defaultBlock:fpe,directInsert:!l,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:a?.orientation??"horizontal"});return(0,cV.jsx)("div",{...s})}var uV=hpe;var t_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0,contentRole:!0},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var r_=o(T(),1),mV=o(g(),1);function pV({attributes:e,className:t}){let{fontSize:r,style:a}=e,n=r_.useBlockProps.save({className:w(t,{"has-custom-font-size":r||a?.typography?.fontSize})}),i=r_.useInnerBlocksProps.save(n);return(0,mV.jsx)("div",{...i})}var{name:dV}=t_,fV={icon:k7,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,xP.__)("Find out more")}},{name:"core/button",attributes:{text:(0,xP.__)("Contact us")}}]},deprecated:aV,transforms:iV,edit:uV,save:pV},vpe=()=>I({name:dV,metadata:t_,settings:fV});var wP={};$(wP,{init:()=>_pe,metadata:()=>o_,name:()=>kV,settings:()=>wV});var o_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site\u2019s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{anchor:!0,align:!0,html:!1,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"};var s1=o(M(),1),hV=o(V(),1),gV=o(su(),1),vV=o(T(),1),bV=o(Q(),1),rf=o(P(),1),yV=o(fe(),1);var jn=o(g(),1),ype=Qd(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function xV({attributes:e,name:t}){let{date:r,hasPosts:a,hasPostsResolved:n}=(0,hV.useSelect)(m=>{let{getEntityRecords:p,hasFinishedResolution:d}=m(bV.store),f={status:"publish",per_page:1},h=p("postType","post",f),v=d("getEntityRecords",["postType","post",f]),y,b=m("core/editor");return b&&b.getEditedPostAttribute("type")==="post"&&(y=b.getEditedPostAttribute("date")),{date:y,hasPostsResolved:v,hasPosts:v&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,gV.useServerSideRender)({attributes:{...e,...ype(r)},block:t}),c=(0,yV.useDisabled)(),u=(0,vV.useBlockProps)({ref:c});return a?(0,jn.jsxs)(jn.Fragment,{children:[l==="loading"&&(0,jn.jsx)("div",{...u,children:(0,jn.jsx)(s1.Spinner,{})}),l==="error"&&(0,jn.jsx)("div",{...u,children:(0,jn.jsx)("p",{children:(0,rf.sprintf)((0,rf.__)("Error: %s"),s)})}),l==="success"&&(0,jn.jsx)(on,{wrapperProps:u,html:i})]}):(0,jn.jsx)("div",{...u,children:(0,jn.jsx)(s1.Placeholder,{icon:Jg,label:(0,rf.__)("Calendar"),children:n?(0,rf.__)("No published posts found."):(0,jn.jsx)(s1.Spinner,{})})})}var kP=o(U(),1),xpe={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,kP.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,kP.createBlock)("core/archives")}]},_V=xpe;var{name:kV}=o_,wV={icon:Jg,example:{},edit:xV,transforms:_V},_pe=()=>I({name:kV,metadata:o_,settings:wV});var TP={};$(TP,{init:()=>Cpe,metadata:()=>a_,name:()=>NV,settings:()=>EV});var a_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{anchor:!0,align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var Qt=o(M(),1),CV=o(fe(),1),of=o(T(),1),SV=o(Xr(),1),dr=o(P(),1);var CP=o(Q(),1),TV=o(V(),1),PV=o(Nr(),1);var ct=o(g(),1);function SP({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:a,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:m}){let p=(0,CV.useInstanceId)(SP,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,CP.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(F=>F.visibility.public),v=h?.find(F=>F.slug===s),y=!f&&v?.hierarchical,b={per_page:-1,hide_empty:!n,context:"view"};y&&a&&(b.parent=0);let{records:_,isResolving:x}=(0,CP.useEntityRecords)("taxonomy",s,b),{createWarningNotice:k}=(0,TV.useDispatch)(PV.store),C=F=>{F.preventDefault(),k((0,dr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${m}`,type:"snackbar"})},S=F=>_?.length?F===null?_:_.filter(({parent:q})=>q===F):[],N=F=>q=>c({[F]:q}),B=F=>F?(0,SV.decodeEntities)(F).trim():(0,dr.__)("(Untitled)"),D=()=>S(y&&t?0:null).map(K=>A(K)),A=F=>{let q=S(F.id),{id:K,link:te,count:X,name:re}=F;return(0,ct.jsxs)("li",{className:`cat-item cat-item-${K}`,children:[(0,ct.jsx)("a",{href:te,onClick:C,children:B(re)}),r&&` (${X})`,y&&t&&!!q.length&&(0,ct.jsx)("ul",{className:"children",children:q.map(J=>A(J))})]},K)},R=()=>{let q=S(y&&t?0:null);return(0,ct.jsxs)(ct.Fragment,{children:[l?(0,ct.jsx)(of.RichText,{className:"wp-block-categories__label","aria-label":(0,dr.__)("Label text"),placeholder:v?.name,withoutInteractiveFormatting:!0,value:i,onChange:K=>c({label:K})}):(0,ct.jsx)(Qt.VisuallyHidden,{as:"label",htmlFor:p,children:i||v?.name}),(0,ct.jsxs)("select",{id:p,children:[(0,ct.jsx)("option",{children:(0,dr.sprintf)((0,dr.__)("Select %s"),v?.labels?.singular_name)}),q.map(K=>j(K,0))]})]})},j=(F,q)=>{let{id:K,count:te,name:X}=F,re=S(K);return[(0,ct.jsxs)("option",{className:`level-${q}`,children:[Array.from({length:q*3}).map(()=>"\xA0"),B(X),r&&` (${te})`]},K),y&&t&&!!re.length&&re.map(J=>j(J,q+1))]},z=_?.length&&!e&&!x?"ul":"div",E=w(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!x,"wp-block-categories-dropdown":!!_?.length&&e&&!x}),H=(0,of.useBlockProps)({className:E}),G=W();return(0,ct.jsxs)(z,{...H,children:[(0,ct.jsx)(of.InspectorControls,{children:(0,ct.jsxs)(Qt.__experimentalToolsPanel,{label:(0,dr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:G,children:[Array.isArray(h)&&(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,dr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,ct.jsx)(Qt.SelectControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Taxonomy"),options:h.map(F=>({label:F.name,value:F.slug})),value:s,onChange:F=>c({taxonomy:F})})}),(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,dr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,ct.jsx)(Qt.ToggleControl,{label:(0,dr.__)("Display as dropdown"),checked:e,onChange:N("displayAsDropdown")})}),e&&(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,dr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,ct.jsx)(Qt.ToggleControl,{className:"wp-block-categories__indentation",label:(0,dr.__)("Show label"),checked:l,onChange:N("showLabel")})}),(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,dr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,ct.jsx)(Qt.ToggleControl,{label:(0,dr.__)("Show post counts"),checked:r,onChange:N("showPostCounts")})}),y&&(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,dr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,ct.jsx)(Qt.ToggleControl,{label:(0,dr.__)("Show only top level terms"),checked:a,onChange:N("showOnlyTopLevel")})}),(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,dr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,ct.jsx)(Qt.ToggleControl,{label:(0,dr.__)("Show empty terms"),checked:n,onChange:N("showEmpty")})}),y&&!a&&(0,ct.jsx)(Qt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,dr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,ct.jsx)(Qt.ToggleControl,{label:(0,dr.__)("Show hierarchy"),checked:t,onChange:N("showHierarchy")})})]})}),x&&(0,ct.jsx)(Qt.Placeholder,{icon:w0,label:(0,dr.__)("Terms"),children:(0,ct.jsx)(Qt.Spinner,{})}),!x&&_?.length===0&&(0,ct.jsx)("p",{children:v.labels.no_terms}),!x&&_?.length>0&&(e?R():D())]})}var n_=o(P(),1);var wpe=[{name:"terms",title:(0,n_.__)("Terms List"),icon:vu,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,n_.__)("Categories List"),description:(0,n_.__)("Display a list of all categories."),icon:vu,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],BV=wpe;var{name:NV}=a_,EV={icon:vu,example:{},edit:SP,variations:BV},Cpe=()=>I({name:NV,metadata:a_,settings:EV});var BP={};$(BP,{init:()=>Npe,metadata:()=>c_,name:()=>u1,settings:()=>GV});var bc=o(T(),1),HV=o(V(),1),yc=o(M(),1),nf=o(O(),1),c1=o(P(),1);var IV=o(P(),1),DV=o(M(),1),i_=o(V(),1),l_=o(U(),1),PP=o(T(),1),LV=o(g(),1),Spe=({clientId:e})=>{let{replaceBlocks:t}=(0,i_.useDispatch)(PP.store),r=(0,i_.useSelect)(a=>a(PP.store).getBlock(e),[e]);return(0,LV.jsx)(DV.ToolbarButton,{onClick:()=>t(r.clientId,(0,l_.rawHandler)({HTML:(0,l_.serialize)(r)})),children:(0,IV.__)("Convert to blocks")})},MV=Spe;var RV=o(T(),1),pl=o(M(),1),s_=o(O(),1),af=o(P(),1),AV=o(V(),1);var zV=o(fe(),1),Bi=o(g(),1);function Tpe({onClick:e,isModalFullScreen:t}){return(0,zV.useViewportMatch)("small","<")?null:(0,Bi.jsx)(pl.Button,{size:"compact",onClick:e,icon:$m,isPressed:t,label:t?(0,af.__)("Exit fullscreen"):(0,af.__)("Enter fullscreen")})}function Ppe(e){let t=(0,AV.useSelect)(r=>r(RV.store).getSettings().styles);return(0,s_.useEffect)(()=>{let{baseURL:r,suffix:a,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Bi.jsx)("textarea",{...e})}function VV({clientId:e,content:t,onClose:r,onChange:a}){let[n,i]=(0,s_.useState)(!1),l=`editor-${e}`;return(0,Bi.jsxs)(pl.Modal,{title:(0,af.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,Bi.jsx)(Tpe,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,Bi.jsx)(Ppe,{id:l,defaultValue:t}),(0,Bi.jsxs)(pl.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Bi.jsx)(pl.FlexItem,{children:(0,Bi.jsx)(pl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,af.__)("Cancel")})}),(0,Bi.jsx)(pl.FlexItem,{children:(0,Bi.jsx)(pl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{a(window.wp.oldEditor.getContent(l)),r()},children:(0,af.__)("Save")})})]})]})}var Do=o(g(),1);function FV({attributes:e,setAttributes:t,clientId:r}){let{content:a}=e,[n,i]=(0,nf.useState)(!1),l=(0,nf.useRef)(null),s=(0,HV.useSelect)(c=>c(bc.store).canRemoveBlock(r),[r]);return(0,Do.jsxs)(Do.Fragment,{children:[s&&(0,Do.jsx)(bc.BlockControls,{children:(0,Do.jsx)(yc.ToolbarGroup,{children:(0,Do.jsx)(MV,{clientId:r})})}),(0,Do.jsx)(bc.BlockControls,{children:(0,Do.jsx)(yc.ToolbarGroup,{children:(0,Do.jsx)(yc.ToolbarButton,{ref:l,onClick:()=>i(!0),children:(0,c1.__)("Edit")})})}),(0,Do.jsxs)("div",{...(0,bc.useBlockProps)(),children:[a?(0,Do.jsx)(nf.RawHTML,{children:a}):(0,Do.jsx)(yc.Placeholder,{icon:(0,Do.jsx)(bc.BlockIcon,{icon:t0}),label:(0,c1.__)("Classic"),instructions:(0,c1.__)("Use the classic editor to add content."),children:(0,Do.jsx)(yc.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,c1.__)("Edit contents")})}),n&&(0,Do.jsx)(VV,{clientId:r,content:a,onClose:()=>{i(!1),l.current&&l.current.focus()},onChange:c=>t({content:c})})]})]})}var c_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1},editorStyle:"wp-block-freeform-editor"};var OV=o(O(),1),jV=o(g(),1);function UV({attributes:e}){let{content:t}=e;return(0,jV.jsx)(OV.RawHTML,{children:t})}var{name:u1}=c_,GV={icon:t0,edit:FV,save:UV},Npe=()=>I({name:u1,metadata:c_,settings:GV});var LP={};$(LP,{init:()=>Ape,metadata:()=>p_,name:()=>YV,settings:()=>h_});var DP=o(P(),1);var QV=o(U(),1);var NP=o(P(),1),u_=o(T(),1),m_=o(U(),1),EP=o(g(),1);function WV({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:a,mergeBlocks:n}){let i=(0,u_.useBlockProps)();return(0,EP.jsx)("pre",{...i,children:(0,EP.jsx)(u_.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:n,placeholder:(0,NP.__)("Write code\u2026"),"aria-label":(0,NP.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,m_.createBlock)((0,m_.getDefaultBlockName)()))})})}var p_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"};var d_=o(T(),1);var $V=o(fe(),1);function qV(e){return(0,$V.pipe)(Ipe,Dpe)(e||"")}function Ipe(e){return e.replace(/\[/g,"[")}function Dpe(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var IP=o(g(),1);function ZV({attributes:e}){return(0,IP.jsx)("pre",{...d_.useBlockProps.save(),children:(0,IP.jsx)(d_.RichText.Content,{tagName:"code",value:qV(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var m1=o(U(),1),f_=o(op(),1);var Lpe={from:[{type:"input",regExp:/^```$/,transform:()=>(0,m1.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,m1.createBlock)("core/code",{...e,...vc(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return(0,m1.createBlock)("core/code",{...e,...vc(e,"core/code"),content:(0,f_.toHTMLString)({value:(0,f_.create)({text:t})})})}},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,m1.createBlock)("core/paragraph",{...vc(e,"core/paragraph"),content:t})}}]},KV=Lpe;var{fieldsKey:Mpe,formKey:Rpe}=Z(QV.privateApis),{name:YV}=p_,h_={icon:r0,example:{attributes:{content:(0,DP.__)(`// A \u201Cblock\u201D is the abstract term used
// to describe units of markup that
// when composed together, form the
// content or layout of a page.
registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`
`+t.content}},transforms:KV,edit:WV,save:ZV};window.__experimentalContentOnlyInspectorFields&&(h_[Mpe]=[{id:"content",label:(0,DP.__)("Code"),type:"text",Edit:"rich-text"}],h_[Rpe]={fields:["content"]});var Ape=()=>I({name:YV,metadata:p_,settings:h_});var RP={};$(RP,{init:()=>Ope,metadata:()=>v_,name:()=>oH,settings:()=>aH});var XV=o(T(),1),MP=o(g(),1),zpe=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){let{verticalAlignment:t,width:r}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,MP.jsx)("div",{className:a,style:n,children:(0,MP.jsx)(XV.InnerBlocks.Content,{})})}}],JV=zpe;var Lo=o(T(),1),Cu=o(M(),1),g_=o(V(),1),ap=o(P(),1);var Un=o(g(),1);function Vpe({width:e,setAttributes:t}){let[r]=(0,Lo.useSettings)("spacing.units"),a=(0,Cu.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=W();return(0,Un.jsx)(Cu.__experimentalToolsPanel,{label:(0,ap.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,Un.jsx)(Cu.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,ap.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,Un.jsx)(Cu.__experimentalUnitControl,{label:(0,ap.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:a})})})}function Hpe({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:a},setAttributes:n,clientId:i}){let l=w("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,g_.useSelect)(_=>{let{getBlockOrder:x,getBlockRootClientId:k}=_(Lo.store),C=k(i);return{hasChildBlocks:x(i).length>0,rootClientId:C,columnsIds:x(C)}},[i]),{updateBlockAttributes:m}=(0,g_.useDispatch)(Lo.store),p=_=>{n({verticalAlignment:_}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,Lo.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,v=s.indexOf(i)+1,y=(0,ap.sprintf)((0,ap.__)("%1$s (%2$d of %3$d)"),f["aria-label"],v,h),b=(0,Lo.useInnerBlocksProps)({...f,"aria-label":y},{templateLock:r,allowedBlocks:a,renderAppender:c?void 0:Lo.InnerBlocks.ButtonBlockAppender});return(0,Un.jsxs)(Un.Fragment,{children:[(0,Un.jsx)(Lo.BlockControls,{children:(0,Un.jsx)(Lo.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,Un.jsx)(Lo.InspectorControls,{children:(0,Un.jsx)(Vpe,{width:t,setAttributes:n})}),(0,Un.jsx)("div",{...b})]})}var eH=Hpe;var v_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0},allowedBlocks:!0}};var b_=o(T(),1),tH=o(g(),1);function rH({attributes:e}){let{verticalAlignment:t,width:r}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let s=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(s=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:s}}let i=b_.useBlockProps.save({className:a,style:n}),l=b_.useInnerBlocksProps.save(i);return(0,tH.jsx)("div",{...l})}var{name:oH}=v_,aH={icon:V7,edit:eH,save:rH,deprecated:JV},Ope=()=>I({name:oH,metadata:v_,settings:aH});var VP={};$(VP,{init:()=>ede,metadata:()=>__,name:()=>fH,settings:()=>hH});var p1=o(P(),1);var nH=o(U(),1),ip=o(T(),1),np=o(g(),1);function y_(e){let{doc:t}=y_;t||(t=document.implementation.createHTMLDocument(""),y_.doc=t);let r;t.body.innerHTML=e;for(let a of t.body.firstChild.classList)if(r=a.match(/^layout-column-(\d+)$/))return Number(r[1])-1}var jpe=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:a,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},iH=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:jpe,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:a,textColor:n,customTextColor:i}=e,l=(0,ip.getColorClassName)("background-color",r),s=(0,ip.getColorClassName)("color",n),c=w({"has-background":r||a,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,np.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:a,color:s?void 0:i},children:(0,np.jsx)(ip.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(a=>/layout-column-\d+/.test(a.originalContent))?t.some(a=>y_(a.originalContent)!==void 0):!1},migrate(e,t){let a=t.reduce((l,s)=>{let{originalContent:c}=s,u=y_(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,nH.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},a]},save({attributes:e}){let{columns:t}=e;return(0,np.jsx)("div",{className:`has-${t}-columns`,children:(0,np.jsx)(ip.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:r,...a}=e;return e={...a,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:r}=e,a=w(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,np.jsx)("div",{className:a,children:(0,np.jsx)(ip.InnerBlocks.Content,{})})}}];var lp=o(P(),1),Ei=o(M(),1),Ir=o(T(),1),Ni=o(V(),1),sp=o(U(),1);var x_=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function lH(e,t){let{width:r=100/t}=e.attributes;return x_(r)}function Upe(e,t=e.length){return e.reduce((r,a)=>r+lH(a,t),0)}function Gpe(e,t=e.length){return e.reduce((r,a)=>{let n=lH(a,t);return Object.assign(r,{[a.clientId]:n})},{})}function AP(e,t,r=e.length){let a=Upe(e,r);return Object.fromEntries(Object.entries(Gpe(e,r)).map(([n,i])=>{let l=t*i/a;return[n,x_(l)]}))}function sH(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function zP(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var Jr=o(g(),1),Wpe={name:"core/column"};function $pe({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:a,canInsertColumnBlock:n,minCount:i}=(0,Ni.useSelect)(m=>{let{canInsertBlockType:p,canRemoveBlock:d,getBlockOrder:f}=m(Ir.store),h=f(e),v=h.reduce((y,b,_)=>(d(b)||y.push(_),y),[]);return{count:h.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...v)+1}},[e]),{getBlocks:l}=(0,Ni.useSelect)(Ir.store),{replaceInnerBlocks:s}=(0,Ni.useDispatch)(Ir.store);function c(m,p){let d=l(e),f=sH(d),h=p>m;if(h&&f){let v=x_(100/p),y=p-m,b=AP(d,100-v*y);d=[...zP(d,b),...Array.from({length:y}).map(()=>(0,sp.createBlock)("core/column",{width:`${v}%`}))]}else if(h)d=[...d,...Array.from({length:p-m}).map(()=>(0,sp.createBlock)("core/column"))];else if(p<m&&(d=d.slice(0,-(m-p)),f)){let v=AP(d,100);d=zP(d,v)}s(e,d)}let u=W();return(0,Jr.jsxs)(Ei.__experimentalToolsPanel,{label:(0,lp.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,Jr.jsxs)(Ei.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,Jr.jsx)(Ei.RangeControl,{__next40pxDefaultSize:!0,label:(0,lp.__)("Columns"),value:a,onChange:m=>c(a,Math.max(i,m)),min:Math.max(1,i),max:Math.max(6,a)}),a>6&&(0,Jr.jsx)(Ei.Notice,{status:"warning",isDismissible:!1,children:(0,lp.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Jr.jsx)(Ei.__experimentalToolsPanelItem,{label:(0,lp.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Jr.jsx)(Ei.ToggleControl,{label:(0,lp.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function qpe({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:a,verticalAlignment:n,templateLock:i}=e,l=(0,Ni.useRegistry)(),{getBlockOrder:s}=(0,Ni.useSelect)(Ir.store),{updateBlockAttributes:c}=(0,Ni.useDispatch)(Ir.store),u=w({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!a}),m=(0,Ir.useBlockProps)({className:u}),p=(0,Ir.useInnerBlocksProps)(m,{defaultBlock:Wpe,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function d(f){let h=s(r);l.batch(()=>{t({verticalAlignment:f}),c(h,{verticalAlignment:f})})}return(0,Jr.jsxs)(Jr.Fragment,{children:[(0,Jr.jsx)(Ir.BlockControls,{children:(0,Jr.jsx)(Ir.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,Jr.jsx)(Ir.InspectorControls,{children:(0,Jr.jsx)($pe,{clientId:r,setAttributes:t,isStackedOnMobile:a})}),(0,Jr.jsx)("div",{...p})]})}function Zpe({clientId:e,name:t,setAttributes:r}){let{blockType:a,defaultVariation:n,variations:i}=(0,Ni.useSelect)(c=>{let{getBlockVariations:u,getBlockType:m,getDefaultBlockVariation:p}=c(sp.store);return{blockType:m(t),defaultVariation:p(t,"block"),variations:u(t,"block")}},[t]),{replaceInnerBlocks:l}=(0,Ni.useDispatch)(Ir.store),s=(0,Ir.useBlockProps)();return(0,Jr.jsx)("div",{...s,children:(0,Jr.jsx)(Ir.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:i,instructions:(0,lp.__)("Divide into columns. Select a layout:"),onSelect:(c=n)=>{c.attributes&&r(c.attributes),c.innerBlocks&&l(e,(0,sp.createBlocksFromInnerBlocksTemplate)(c.innerBlocks),!0)},allowSkip:!0})})}var Kpe=e=>{let{clientId:t}=e,a=(0,Ni.useSelect)(n=>n(Ir.store).getBlocks(t).length>0,[t])?qpe:Zpe;return(0,Jr.jsx)(a,{...e})},cH=Kpe;var __={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"};var k_=o(T(),1),uH=o(g(),1);function mH({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,a=w({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=k_.useBlockProps.save({className:a}),i=k_.useInnerBlocksProps.save(n);return(0,uH.jsx)("div",{...i})}var cn=o(M(),1),Gn=o(P(),1),Wn=o(g(),1),Ype=[{name:"one-column-full",title:(0,Gn.__)("100"),description:(0,Gn.__)("One column"),icon:(0,Wn.jsx)(cn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)(cn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,Gn.__)("50 / 50"),description:(0,Gn.__)("Two columns; equal split"),icon:(0,Wn.jsx)(cn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)(cn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,Gn.__)("33 / 66"),description:(0,Gn.__)("Two columns; one-third, two-thirds split"),icon:(0,Wn.jsx)(cn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)(cn.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,Gn.__)("66 / 33"),description:(0,Gn.__)("Two columns; two-thirds, one-third split"),icon:(0,Wn.jsx)(cn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)(cn.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,Gn.__)("33 / 33 / 33"),description:(0,Gn.__)("Three columns; equal split"),icon:(0,Wn.jsx)(cn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)(cn.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,Gn.__)("25 / 50 / 25"),description:(0,Gn.__)("Three columns; wide center column"),icon:(0,Wn.jsx)(cn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)(cn.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],pH=Ype;var lf=o(U(),1),Xpe=6,Jpe={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:a,attributes:n,innerBlocks:i})=>["core/column",{width:`${t}%`},[[a,{...n},i]]]);return(0,lf.createBlock)("core/columns",{},(0,lf.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=Xpe},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:a,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:m,mediaUrl:p,mediaWidth:d,verticalAlignment:f}=e,h;if(m==="image"||!m){let y={id:s,alt:l,url:p,sizeSlug:u},b={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...y,...b}]}else h=["core/video",{id:s,src:p}];let v=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&v.reverse(),(0,lf.createBlock)("core/columns",{align:r,backgroundColor:a,textColor:n,style:i,verticalAlignment:f},(0,lf.createBlocksFromInnerBlocksTemplate)(v))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},dH=Jpe;var{name:fH}=__,hH={icon:F7,variations:pH,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,p1.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,p1.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,p1.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,p1.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:iH,edit:cH,save:mH,transforms:dH},ede=()=>I({name:fH,metadata:__,settings:hH});var jP={};$(jP,{init:()=>ide,metadata:()=>w_,name:()=>LH,settings:()=>MH});var w_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]};var C_=o(T(),1),HP=o(g(),1),rde={attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){let t=C_.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,HP.jsx)(e,{...i,children:(0,HP.jsx)(C_.InnerBlocks.Content,{})})}},gH=[rde];var B_=o(T(),1);var vH=o(P(),1),d1=o(T(),1);var S_=o(g(),1),{HTMLElementControl:ode}=Z(d1.privateApis);function bH({attributes:{tagName:e},setAttributes:t}){return(0,S_.jsx)(d1.InspectorControls,{children:(0,S_.jsx)(d1.InspectorControls,{group:"advanced",children:(0,S_.jsx)(ode,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,vH.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Tu=o(T(),1),OP=o(P(),1),PH=o(M(),1);var kH=o(T(),1),eo=o(P(),1),wH=o(V(),1),CH=o(Q(),1),SH=o(O(),1);var Ii=o(P(),1),Su=o(T(),1),yH=o(M(),1),xH=o(fe(),1),T_=o(Q(),1),FP=o(V(),1),Na=o(g(),1),_H=()=>{let e=(0,xH.useInstanceId)(_H);return(0,Na.jsxs)("div",{className:"comment-respond",children:[(0,Na.jsx)("h3",{className:"comment-reply-title",children:(0,Ii.__)("Leave a Reply")}),(0,Na.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,Na.jsxs)("p",{children:[(0,Na.jsx)("label",{htmlFor:`comment-${e}`,children:(0,Ii.__)("Comment")}),(0,Na.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,Na.jsx)("p",{className:"form-submit wp-block-button",children:(0,Na.jsx)("input",{name:"submit",type:"submit",className:w("wp-block-button__link",(0,Su.__experimentalGetElementClassName)("button")),label:(0,Ii.__)("Post Comment"),value:(0,Ii.__)("Post Comment"),"aria-disabled":"true"})})]})]})},ade=({postId:e,postType:t})=>{let[r,a]=(0,T_.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,FP.useSelect)(s=>s(Su.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,FP.useSelect)(s=>t?!!s(T_.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let s=[(0,Na.jsx)(yH.Button,{__next40pxDefaultSize:!0,onClick:()=>a("open"),variant:"primary",children:(0,Ii._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,Na.jsx)(Su.Warning,{actions:s,children:(0,Ii.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,Na.jsx)(Su.Warning,{children:(0,Ii.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,Na.jsx)(Su.Warning,{children:(0,Ii.sprintf)((0,Ii.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,Na.jsx)(_H,{})},P_=ade;var Je=o(g(),1);function TH({postType:e,postId:t}){let[r]=(0,CH.useEntityProp)("postType",e,"title",t);r=r||(0,eo.__)("Post Title");let a=(0,wH.useSelect)(n=>n(kH.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,Je.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,Je.jsx)("h3",{children:(0,eo.sprintf)((0,eo.__)("One response to %s"),r)}),(0,Je.jsxs)("div",{className:"navigation",children:[(0,Je.jsx)("div",{className:"alignleft",children:(0,Je.jsxs)("a",{href:"#top",children:["\xAB ",(0,eo.__)("Older Comments")]})}),(0,Je.jsx)("div",{className:"alignright",children:(0,Je.jsxs)("a",{href:"#top",children:[(0,eo.__)("Newer Comments")," \xBB"]})})]}),(0,Je.jsx)("ol",{className:"commentlist",children:(0,Je.jsx)("li",{className:"comment even thread-even depth-1",children:(0,Je.jsxs)("article",{className:"comment-body",children:[(0,Je.jsxs)("footer",{className:"comment-meta",children:[(0,Je.jsxs)("div",{className:"comment-author vcard",children:[(0,Je.jsx)("img",{alt:(0,eo.__)("Commenter Avatar"),src:a,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,Je.jsx)("b",{className:"fn",children:(0,Je.jsx)("a",{href:"#top",className:"url",children:(0,eo.__)("A WordPress Commenter")})})," ",(0,Je.jsxs)("span",{className:"says",children:[(0,eo.__)("says"),":"]})]}),(0,Je.jsxs)("div",{className:"comment-metadata",children:[(0,Je.jsx)("a",{href:"#top",children:(0,Je.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,eo.__)("January 1, 2000 at 00:00 am")})})," ",(0,Je.jsx)("span",{className:"edit-link",children:(0,Je.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,eo.__)("Edit")})})]})]}),(0,Je.jsx)("div",{className:"comment-content",children:(0,Je.jsxs)("p",{children:[(0,eo.__)("Hi, this is a comment."),(0,Je.jsx)("br",{}),(0,eo.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,Je.jsx)("br",{}),(0,SH.createInterpolateElement)((0,eo.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,Je.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,Je.jsx)("div",{className:"reply",children:(0,Je.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,eo.__)("Reply to A WordPress Commenter"),children:(0,eo.__)("Reply")})})]})})}),(0,Je.jsxs)("div",{className:"navigation",children:[(0,Je.jsx)("div",{className:"alignleft",children:(0,Je.jsxs)("a",{href:"#top",children:["\xAB ",(0,eo.__)("Older Comments")]})}),(0,Je.jsx)("div",{className:"alignright",children:(0,Je.jsxs)("a",{href:"#top",children:[(0,eo.__)("Newer Comments")," \xBB"]})})]}),(0,Je.jsx)(P_,{postId:t,postType:e})]})}var dl=o(g(),1);function BH({attributes:e,setAttributes:t,context:{postType:r,postId:a}}){let{textAlign:n}=e,i=[(0,dl.jsx)(PH.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,OP.__)("Switch to editable mode")},"convert")],l=(0,Tu.useBlockProps)({className:w({[`has-text-align-${n}`]:n})});return(0,dl.jsxs)(dl.Fragment,{children:[(0,dl.jsx)(Tu.BlockControls,{group:"block",children:(0,dl.jsx)(Tu.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,dl.jsxs)("div",{...l,children:[(0,dl.jsx)(Tu.Warning,{actions:i,children:(0,OP.__)("Comments block: You\u2019re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,dl.jsx)(TH,{postId:a,postType:r})]})]})}var nde=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]],NH=nde;var Pu=o(g(),1);function EH(e){let{attributes:t,setAttributes:r,clientId:a}=e,{tagName:n,legacy:i}=t,l=(0,B_.useBlockProps)(),s=(0,B_.useInnerBlocksProps)(l,{template:NH});return i?(0,Pu.jsx)(BH,{...e}):(0,Pu.jsxs)(Pu.Fragment,{children:[(0,Pu.jsx)(bH,{attributes:t,setAttributes:r,clientId:a}),(0,Pu.jsx)(n,{...s})]})}var N_=o(T(),1),IH=o(g(),1);function DH({attributes:{tagName:e,legacy:t}}){let r=N_.useBlockProps.save(),a=N_.useInnerBlocksProps.save(r);return t?null:(0,IH.jsx)(e,{...a})}var{name:LH}=w_,MH={icon:zS,example:{},edit:EH,save:DH,deprecated:gH},ide=()=>I({name:LH,metadata:w_,settings:MH});var GP={};$(GP,{init:()=>sde,metadata:()=>E_,name:()=>zH,settings:()=>VH});var E_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}};var Bu=o(T(),1),sf=o(M(),1),UP=o(Q(),1),RH=o(V(),1),cp=o(P(),1),fl=o(g(),1);function AH({attributes:e,context:{commentId:t},setAttributes:r,isSelected:a}){let{height:n,width:i}=e,[l]=(0,UP.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,UP.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,m=u?u[0]:24,p=u?u[u.length-1]:96,d=(0,Bu.useBlockProps)(),f=(0,Bu.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(p*2.5),v=(0,RH.useSelect)(_=>{let{__experimentalDiscussionSettings:x}=_(Bu.store).getSettings();return x?.avatarURL},[]),y=(0,fl.jsx)(Bu.InspectorControls,{children:(0,fl.jsx)(sf.PanelBody,{title:(0,cp.__)("Settings"),children:(0,fl.jsx)(sf.RangeControl,{__next40pxDefaultSize:!0,label:(0,cp.__)("Image size"),onChange:_=>r({width:_,height:_}),min:m,max:h,initialPosition:i,value:i})})}),b=(0,fl.jsx)(sf.ResizableBox,{size:{width:i,height:n},showHandle:a,onResizeStop:(_,x,k,C)=>{r({height:parseInt(n+C.height,10),width:parseInt(i+C.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,cp.isRTL)(),bottom:!0,left:(0,cp.isRTL)()},minWidth:m,maxWidth:h,children:(0,fl.jsx)("img",{src:c?c[c.length-1]:v,alt:`${s} ${(0,cp.__)("Avatar")}`,...d})});return(0,fl.jsxs)(fl.Fragment,{children:[y,(0,fl.jsx)("div",{...f,children:b})]})}var{name:zH}=E_,VH={icon:o0,edit:AH},sde=()=>I({name:zH,metadata:E_,settings:VH});var WP={};$(WP,{init:()=>pde,metadata:()=>I_,name:()=>UH,settings:()=>GH});var I_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},usesContext:["commentId"],supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-author-name"};var xc=o(P(),1),HH=o(V(),1),D_=o(T(),1),FH=o(Q(),1),Nu=o(M(),1);var $n=o(g(),1);function OH(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:a},setAttributes:n}=e;ku(e);let i=W(),l=(0,D_.useBlockProps)(),s=(0,HH.useSelect)(m=>{let{getEntityRecord:p}=m(FH.store),d=p("root","comment",a),f=d?.author_name;return d&&!f?p("root","user",d.author)?.name??(0,xc.__)("Anonymous"):f??""},[a]),c=(0,$n.jsx)(D_.InspectorControls,{children:(0,$n.jsxs)(Nu.__experimentalToolsPanel,{label:(0,xc.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,$n.jsx)(Nu.__experimentalToolsPanelItem,{label:(0,xc.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,$n.jsx)(Nu.ToggleControl,{label:(0,xc.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,$n.jsx)(Nu.__experimentalToolsPanelItem,{label:(0,xc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,$n.jsx)(Nu.ToggleControl,{label:(0,xc.__)("Open in new tab"),onChange:m=>n({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!a||!s)&&(s=(0,xc._x)("Comment Author","block title")),(0,$n.jsxs)($n.Fragment,{children:[c,(0,$n.jsx)("div",{...l,children:t?(0,$n.jsx)("a",{href:"#comment-author-pseudo-link",onClick:m=>m.preventDefault(),children:s}):s})]})}var ude={attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},save(){return null},migrate:On,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},mde={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},jH=[ude,mde];var{name:UH}=I_,GH={icon:j7,edit:OH,deprecated:jH,example:{}},pde=()=>I({name:UH,metadata:I_,settings:GH});var $P={};$($P,{init:()=>hde,metadata:()=>L_,name:()=>XH,settings:()=>JH});var L_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1},style:"wp-block-comment-content"};var WH=o(P(),1),$H=o(O(),1),qH=o(M(),1),ZH=o(Q(),1),KH=o(T(),1);var hl=o(g(),1);function QH(e){let{context:{commentId:t}}=e;ku(e);let r=(0,KH.useBlockProps)(),[a]=(0,ZH.useEntityProp)("root","comment","content",t);return!t||!a?(0,hl.jsx)(hl.Fragment,{children:(0,hl.jsx)("div",{...r,children:(0,hl.jsx)("p",{children:(0,WH._x)("Comment Content","block title")})})}):(0,hl.jsx)(hl.Fragment,{children:(0,hl.jsx)("div",{...r,children:(0,hl.jsx)(qH.Disabled,{children:(0,hl.jsx)($H.RawHTML,{children:a.rendered},"html")})})})}var fde={attributes:{textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:["horizontal","vertical"]},html:!1},save(){return null},migrate:On,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},YH=[fde];var{name:XH}=L_,JH={icon:G7,edit:QH,deprecated:YH,example:{}},hde=()=>I({name:XH,metadata:L_,settings:JH});var ZP={};$(ZP,{init:()=>bde,metadata:()=>M_,name:()=>oF,settings:()=>aF});var M_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-date"};var qP=o(Q(),1),mp=o(R_(),1),cf=o(T(),1),pp=o(M(),1),up=o(P(),1);var Ea=o(g(),1);function tF({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:a}){let n=(0,cf.useBlockProps)(),i=W(),[l]=(0,qP.useEntityProp)("root","comment","date",r),[s=(0,mp.getSettings)().formats.date]=(0,qP.useEntityProp)("root","site","date_format"),c=(0,Ea.jsx)(cf.InspectorControls,{children:(0,Ea.jsxs)(pp.__experimentalToolsPanel,{label:(0,up.__)("Settings"),resetAll:()=>{a({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,Ea.jsx)(pp.__experimentalToolsPanelItem,{label:(0,up.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Ea.jsx)(cf.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:m=>a({format:m})})}),(0,Ea.jsx)(pp.__experimentalToolsPanelItem,{label:(0,up.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>a({isLink:!0}),isShownByDefault:!0,children:(0,Ea.jsx)(pp.ToggleControl,{label:(0,up.__)("Link to comment"),onChange:()=>a({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,up._x)("Comment Date","block title"));let u=l instanceof Date?(0,Ea.jsx)("time",{dateTime:(0,mp.dateI18n)("c",l),children:e==="human-diff"?(0,mp.humanTimeDiff)(l):(0,mp.dateI18n)(e||s,l)}):(0,Ea.jsx)("time",{children:l});return t&&(u=(0,Ea.jsx)("a",{href:"#comment-date-pseudo-link",onClick:m=>m.preventDefault(),children:u})),(0,Ea.jsxs)(Ea.Fragment,{children:[c,(0,Ea.jsx)("div",{...n,children:u})]})}var vde={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},rF=[vde];var{name:oF}=M_,aF={icon:P0,edit:tF,deprecated:rF,example:{}},bde=()=>I({name:oF,metadata:M_,settings:aF});var KP={};$(KP,{init:()=>xde,metadata:()=>A_,name:()=>iF,settings:()=>lF});var A_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{anchor:!0,html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-comment-edit-link"};var Eu=o(T(),1),uf=o(M(),1),f1=o(P(),1);var qn=o(g(),1);function nF({attributes:{linkTarget:e,textAlign:t},setAttributes:r}){let a=(0,Eu.useBlockProps)({className:w({[`has-text-align-${t}`]:t})}),n=W(),i=(0,qn.jsx)(Eu.BlockControls,{group:"block",children:(0,qn.jsx)(Eu.AlignmentControl,{value:t,onChange:s=>r({textAlign:s})})}),l=(0,qn.jsx)(Eu.InspectorControls,{children:(0,qn.jsx)(uf.__experimentalToolsPanel,{label:(0,f1.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:n,children:(0,qn.jsx)(uf.__experimentalToolsPanelItem,{label:(0,f1.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>e==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,qn.jsx)(uf.ToggleControl,{label:(0,f1.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:e==="_blank"})})})});return(0,qn.jsxs)(qn.Fragment,{children:[i,l,(0,qn.jsx)("div",{...a,children:(0,qn.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,f1.__)("Edit")})})]})}var{name:iF}=A_,lF={icon:$7,edit:nF,example:{}},xde=()=>I({name:iF,metadata:A_,settings:lF});var QP={};$(QP,{init:()=>wde,metadata:()=>z_,name:()=>uF,settings:()=>mF});var z_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1},style:"wp-block-comment-reply-link"};var sF=o(P(),1),mf=o(T(),1),_c=o(g(),1);function kde({setAttributes:e,attributes:{textAlign:t}}){let r=(0,mf.useBlockProps)({className:w({[`has-text-align-${t}`]:t})});return(0,_c.jsxs)(_c.Fragment,{children:[(0,_c.jsx)(mf.BlockControls,{group:"block",children:(0,_c.jsx)(mf.AlignmentControl,{value:t,onChange:n=>e({textAlign:n})})}),(0,_c.jsx)("div",{...r,children:(0,_c.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:n=>n.preventDefault(),children:(0,sF.__)("Reply")})})]})}var cF=kde;var{name:uF}=z_,mF={edit:cF,icon:Z7,example:{}},wde=()=>I({name:uF,metadata:z_,settings:mF});var XP={};$(XP,{init:()=>Ide,metadata:()=>V_,name:()=>BF,settings:()=>NF});var V_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{anchor:!0,align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-template"};var H_=o(O(),1),YP=o(V(),1),xF=o(P(),1),gl=o(T(),1),_F=o(M(),1),kF=o(Q(),1);var dp=o(O(),1),fF=o(V(),1),hF=o(T(),1),gF=o(Br(),1),vF=o(h1(),1),dF=100,bF=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:a,defaultCommentsPage:n}=(0,fF.useSelect)(s=>{let{getSettings:c}=s(hF.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(a,dF):dF,l=Sde({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,dp.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},Sde=({defaultPage:e,postId:t,perPage:r,queryArgs:a})=>{let[n,i]=(0,dp.useState)({}),l=`${t}_${r}`,s=n[l]||0;return(0,dp.useEffect)(()=>{s||e!=="newest"||(0,vF.default)({path:(0,gF.addQueryArgs)("/wp/v2/comments",{...a,post:t,per_page:r,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...n,[l]:u<=1?1:u})}).catch(()=>{i({...n,[l]:1})})},[e,t,r,i]),e==="newest"?s:1},yF=e=>(0,dp.useMemo)(()=>e?.map(({id:r,_embedded:a})=>{let[n]=a?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var Zn=o(g(),1),Tde=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],Pde=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:a})=>{let n=r?Math.min(a,3):1,i=s=>{if(s<n){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&l.push({commentId:-3,children:[]}),l};function Bde({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:a,blocks:n}){let{children:i,...l}=(0,gl.useInnerBlocksProps)({},{template:Tde});return(0,Zn.jsxs)("li",{...l,children:[e.commentId===(t||a)?i:null,(0,Zn.jsx)(Ede,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||a)}),e?.children?.length>0?(0,Zn.jsx)(wF,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:a}):null]})}var Nde=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:a})=>{let n=(0,gl.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,Zn.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:a?"none":void 0},onClick:i,onKeyPress:i})},Ede=(0,H_.memo)(Nde),wF=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:a,blocks:n,firstCommentId:i})=>(0,Zn.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,Zn.jsx)(gl.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,Zn.jsx)(Bde,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:a,blocks:n,firstCommentId:i})},s.commentId||c))});function CF({clientId:e,context:{postId:t}}){let r=(0,gl.useBlockProps)(),[a,n]=(0,H_.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,YP.useSelect)(h=>{let{getSettings:v}=h(gl.store);return v().__experimentalDiscussionSettings??{}},[]),m=bF({postId:t}),{topLevelComments:p,blocks:d}=(0,YP.useSelect)(h=>{let{getEntityRecords:v}=h(kF.store),{getBlocks:y}=h(gl.store);return{topLevelComments:m?v("root","comment",m):null,blocks:y(e)}},[e,m]),f=yF(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=Pde({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,Zn.jsx)(wF,{comments:f,blockProps:r,blocks:d,activeCommentId:a,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,Zn.jsx)("p",{...r,children:(0,xF.__)("No results found.")})):(0,Zn.jsx)("p",{...r,children:(0,Zn.jsx)(_F.Spinner,{})})}var SF=o(T(),1),TF=o(g(),1);function PF(){return(0,TF.jsx)(SF.InnerBlocks.Content,{})}var{name:BF}=V_,NF={icon:Zm,edit:CF,save:PF},Ide=()=>I({name:BF,metadata:V_,settings:NF});var eB={};$(eB,{init:()=>Mde,metadata:()=>F_,name:()=>DF,settings:()=>LF});var IF=o(P(),1);var F_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var JP=o(P(),1),O_=o(T(),1),g1=o(g(),1),Lde={none:"",arrow:"\u2190",chevron:"\xAB"};function EF({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let a=Lde[r];return(0,g1.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,O_.useBlockProps)(),children:[a&&(0,g1.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:a}),(0,g1.jsx)(O_.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,JP.__)("Older comments page link"),placeholder:(0,JP.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:DF}=F_,LF={icon:I0,edit:EF,example:{attributes:{label:(0,IF.__)("Older Comments")}}},Mde=()=>I({name:DF,metadata:F_,settings:LF});var rB={};$(rB,{init:()=>zde,metadata:()=>j_,name:()=>HF,settings:()=>FF});var j_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},example:{attributes:{paginationArrow:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"};var U_=o(P(),1),bl=o(T(),1),tB=o(V(),1),G_=o(M(),1);var fp=o(P(),1),pf=o(M(),1),df=o(g(),1);function MF({value:e,onChange:t}){return(0,df.jsxs)(pf.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,fp.__)("Arrow"),value:e,onChange:t,help:(0,fp.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,df.jsx)(pf.__experimentalToggleGroupControlOption,{value:"none",label:(0,fp._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,df.jsx)(pf.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,fp._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,df.jsx)(pf.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,fp._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var vl=o(g(),1),Ade=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function RF({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let a=(0,tB.useSelect)(c=>{let{getBlocks:u}=c(bl.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,bl.useBlockProps)(),i=W(),l=(0,bl.useInnerBlocksProps)(n,{template:Ade});return(0,tB.useSelect)(c=>{let{getSettings:u}=c(bl.store),{__experimentalDiscussionSettings:m}=u();return m?.pageComments},[])?(0,vl.jsxs)(vl.Fragment,{children:[a&&(0,vl.jsx)(bl.InspectorControls,{children:(0,vl.jsx)(G_.__experimentalToolsPanel,{label:(0,U_.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,vl.jsx)(G_.__experimentalToolsPanelItem,{label:(0,U_.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,vl.jsx)(MF,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,vl.jsx)("div",{...l})]}):(0,vl.jsx)(bl.Warning,{children:(0,U_.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var AF=o(T(),1),zF=o(g(),1);function VF(){return(0,zF.jsx)(AF.InnerBlocks.Content,{})}var{name:HF}=j_,FF={icon:D0,edit:RF,save:VF},zde=()=>I({name:HF,metadata:j_,settings:FF});var aB={};$(aB,{init:()=>Fde,metadata:()=>W_,name:()=>UF,settings:()=>GF});var jF=o(P(),1);var W_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var oB=o(P(),1),$_=o(T(),1),v1=o(g(),1),Hde={none:"",arrow:"\u2192",chevron:"\xBB"};function OF({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let a=Hde[r];return(0,v1.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,$_.useBlockProps)(),children:[(0,v1.jsx)($_.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,oB.__)("Newer comments page link"),placeholder:(0,oB.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),a&&(0,v1.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:a})]})}var{name:UF}=W_,GF={icon:N0,edit:OF,example:{attributes:{label:(0,jF.__)("Newer Comments")}}},Fde=()=>I({name:UF,metadata:W_,settings:GF});var nB={};$(nB,{init:()=>jde,metadata:()=>q_,name:()=>qF,settings:()=>ZF});var q_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!0}}}};var WF=o(T(),1),Di=o(g(),1),hp=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,Di.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:a=>a.preventDefault(),children:e}):(0,Di.jsx)(t,{className:`page-numbers ${r}`,children:e});function $F(){return(0,Di.jsxs)("div",{...(0,WF.useBlockProps)(),children:[(0,Di.jsx)(hp,{content:"1"}),(0,Di.jsx)(hp,{content:"2"}),(0,Di.jsx)(hp,{content:"3",tag:"span",extraClass:"current"}),(0,Di.jsx)(hp,{content:"4"}),(0,Di.jsx)(hp,{content:"5"}),(0,Di.jsx)(hp,{content:"...",tag:"span",extraClass:"dots"}),(0,Di.jsx)(hp,{content:"8"})]})}var{name:qF}=q_,ZF={icon:E0,edit:$F,example:{}},jde=()=>I({name:qF,metadata:q_,settings:ZF});var iB={};$(iB,{init:()=>$de,metadata:()=>ff,name:()=>tO,settings:()=>rO});var ff={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}};var Li=o(T(),1),br=o(P(),1),KF=o(Q(),1),Iu=o(M(),1),Z_=o(O(),1),QF=o(V(),1),YF=o(h1(),1),XF=o(Br(),1);var Ia=o(g(),1);function JF({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:r,level:a,levelOptions:n},setAttributes:i,context:{postType:l,postId:s}}){let c="h"+a,[u,m]=(0,Z_.useState)(),[p]=(0,KF.useEntityProp)("postType",l,"title",s),d=typeof s>"u",f=(0,Li.useBlockProps)({className:w({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:h,threadComments:v,commentsPerPage:y,pageComments:b}=(0,QF.useSelect)(N=>{let{getSettings:B}=N(Li.store);return B().__experimentalDiscussionSettings??{}},[]),_=W();(0,Z_.useEffect)(()=>{if(d){let B=v?Math.min(h,3)-1:0,D=b?y:3,A=parseInt(B)+parseInt(D);m(Math.min(A,3));return}let N=s;(0,YF.default)({path:(0,XF.addQueryArgs)("/wp/v2/comments",{post:s,_fields:"id"}),method:"HEAD",parse:!1}).then(B=>{N===s&&m(parseInt(B.headers.get("X-WP-Total")))}).catch(()=>{m(0)})},[s]);let x=(0,Ia.jsxs)(Li.BlockControls,{group:"block",children:[(0,Ia.jsx)(Li.AlignmentControl,{value:e,onChange:N=>i({textAlign:N})}),(0,Ia.jsx)(Li.HeadingLevelDropdown,{value:a,options:n,onChange:N=>i({level:N})})]}),k=(0,Ia.jsx)(Li.InspectorControls,{children:(0,Ia.jsxs)(Iu.__experimentalToolsPanel,{label:(0,br.__)("Settings"),resetAll:()=>{i({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:_,children:[(0,Ia.jsx)(Iu.__experimentalToolsPanelItem,{label:(0,br.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>i({showPostTitle:!0}),children:(0,Ia.jsx)(Iu.ToggleControl,{label:(0,br.__)("Show post title"),checked:t,onChange:N=>i({showPostTitle:N})})}),(0,Ia.jsx)(Iu.__experimentalToolsPanelItem,{label:(0,br.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i({showCommentsCount:!0}),children:(0,Ia.jsx)(Iu.ToggleControl,{label:(0,br.__)("Show comments count"),checked:r,onChange:N=>i({showCommentsCount:N})})})]})}),C=d?(0,br.__)("Post Title"):p,S;return r&&u!==void 0?t?u===1?S=(0,br.sprintf)((0,br.__)('One response to "%s"'),C):S=(0,br.sprintf)((0,br._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',u),u,C):u===1?S=(0,br.__)("One response"):S=(0,br.sprintf)((0,br._n)("%s response","%s responses",u),u):t?u===1?S=(0,br.sprintf)((0,br.__)('Response to "%s"'),C):S=(0,br.sprintf)((0,br.__)('Responses to "%s"'),C):u===1?S=(0,br.__)("Response"):S=(0,br.__)("Responses"),(0,Ia.jsxs)(Ia.Fragment,{children:[x,k,(0,Ia.jsx)(c,{...f,children:S})]})}var{attributes:Gde,supports:Wde}=ff,eO=[{attributes:{...Gde,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:Wde,migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...a}=e;return a},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];var{name:tO}=ff,rO={icon:ml,edit:JF,deprecated:eO,example:{}},$de=()=>I({name:tO,metadata:ff,settings:rO});var CB={};$(CB,{init:()=>ahe,metadata:()=>u5,name:()=>rj,settings:()=>p5});var wB=o(P(),1);var tj=o(U(),1);var Y_=o(U(),1),_e=o(T(),1),X_=o(P(),1),b1=o(fe(),1);var K_=o(zr(),1),qde={"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"},jt="image",fr="video",gp="embed-video",oO=50;var Zde={x:.5,y:.5},Q_=["image","video"];function Mo({x:e,y:t}=Zde){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Mi(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function aO(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,K_.isBlobURL)(e.url)&&(e.type=(0,K_.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===jt?t=jt:t=fr;else if(e.type&&(e.type===jt||e.type===fr))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===fr?{hasParallax:void 0}:{}}}function Da(e){return!e||e==="center center"||e==="center"}function un(e){return Da(e)?"":qde[e]}var se=o(g(),1);function ps(e){return e?{backgroundImage:`url(${e})`}:{}}function vp(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function J_(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Du(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var bp={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},y1={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},lB={...y1,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Kde={...lB,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},hf={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},sB={...hf,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},Qde={...sB,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},Yde={attributes:Kde,supports:Qde,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:v,minHeight:y,minHeightUnit:b,tagName:_,sizeSlug:x}=e,k=(0,_e.getColorClassName)("background-color",d),C=(0,_e.__experimentalGetGradientClass)(r),S=y&&b?`${y}${b}`:y,N=jt===t,B=fr===t,D=!(u||p),A={minHeight:S||void 0},R={backgroundColor:k?void 0:i,background:n||void 0},j=s&&D?Mo(s):void 0,z=f?`url(${f})`:void 0,E=Mo(s),H=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Da(a)},un(a)),G=w("wp-block-cover__image-background",v?`wp-image-${v}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),F=r||n;return(0,se.jsxs)(_,{..._e.useBlockProps.save({className:H,style:A}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",k,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&F&&l!==0,"has-background-gradient":F,[C]:C}),style:R}),!c&&N&&f&&(D?(0,se.jsx)("img",{className:G,alt:h,src:f,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}):(0,se.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:G,style:{backgroundPosition:E,backgroundImage:z}})),B&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Xde={attributes:lB,supports:sB,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:v,minHeight:y,minHeightUnit:b,tagName:_}=e,x=(0,_e.getColorClassName)("background-color",d),k=(0,_e.__experimentalGetGradientClass)(r),C=y&&b?`${y}${b}`:y,S=jt===t,N=fr===t,B=!(u||p),D={minHeight:C||void 0},A={backgroundColor:x?void 0:i,background:n||void 0},R=s&&B?Mo(s):void 0,j=f?`url(${f})`:void 0,z=Mo(s),E=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Da(a)},un(a)),H=w("wp-block-cover__image-background",v?`wp-image-${v}`:null,{"has-parallax":u,"is-repeated":p}),G=r||n;return(0,se.jsxs)(_,{..._e.useBlockProps.save({className:E,style:D}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[k]:k}),style:A}),!c&&S&&f&&(B?(0,se.jsx)("img",{className:H,alt:h,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}):(0,se.jsx)("div",{role:"img",className:H,style:{backgroundPosition:z,backgroundImage:j}})),N&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Jde={attributes:lB,supports:sB,isEligible(e){return(e.customOverlayColor!==void 0||e.overlayColor!==void 0)&&e.isUserOverlayColor===void 0},migrate(e){return{...e,isUserOverlayColor:!0}},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:v,minHeight:y,minHeightUnit:b,tagName:_}=e,x=(0,_e.getColorClassName)("background-color",d),k=(0,_e.__experimentalGetGradientClass)(r),C=y&&b?`${y}${b}`:y,S=jt===t,N=fr===t,B=!(u||p),D={minHeight:C||void 0},A={backgroundColor:x?void 0:i,background:n||void 0},R=s&&B?Mo(s):void 0,j=f?`url(${f})`:void 0,z=Mo(s),E=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Da(a)},un(a)),H=w("wp-block-cover__image-background",v?`wp-image-${v}`:null,{"has-parallax":u,"is-repeated":p}),G=r||n;return(0,se.jsxs)(_,{..._e.useBlockProps.save({className:E,style:D}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[k]:k}),style:A}),!c&&S&&f&&(B?(0,se.jsx)("img",{className:H,alt:h,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}):(0,se.jsx)("div",{role:"img",className:H,style:{backgroundPosition:z,backgroundImage:j}})),N&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},efe={attributes:y1,supports:hf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:v,minHeight:y,minHeightUnit:b}=e,_=(0,_e.getColorClassName)("background-color",d),x=(0,_e.__experimentalGetGradientClass)(r),k=y&&b?`${y}${b}`:y,C=jt===t,S=fr===t,N=!(u||p),B={minHeight:k||void 0},D={backgroundColor:_?void 0:i,background:n||void 0},A=s&&N?Mo(s):void 0,R=f?`url(${f})`:void 0,j=Mo(s),z=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Da(a)},un(a)),E=w("wp-block-cover__image-background",v?`wp-image-${v}`:null,{"has-parallax":u,"is-repeated":p}),H=r||n;return(0,se.jsxs)("div",{..._e.useBlockProps.save({className:z,style:B}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&H&&l!==0,"has-background-gradient":H,[x]:x}),style:D}),!c&&C&&f&&(N?(0,se.jsx)("img",{className:E,alt:h,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}):(0,se.jsx)("div",{role:"img",className:E,style:{backgroundPosition:j,backgroundImage:R}})),S&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Du},tfe={attributes:y1,supports:hf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:v,minHeight:y,minHeightUnit:b}=e,_=(0,_e.getColorClassName)("background-color",d),x=(0,_e.__experimentalGetGradientClass)(r),k=y&&b?`${y}${b}`:y,C=jt===t,S=fr===t,N=!(u||p),B={...C&&!N&&!c?ps(f):{},minHeight:k||void 0},D={backgroundColor:_?void 0:i,background:n||void 0},A=s&&N?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,R=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Da(a)},un(a)),j=r||n;return(0,se.jsxs)("div",{..._e.useBlockProps.save({className:R,style:B}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&j&&l!==0,"has-background-gradient":j,[x]:x}),style:D}),!c&&C&&N&&f&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",v?`wp-image-${v}`:null),alt:h,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}),S&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Du},rfe={attributes:y1,supports:hf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:v,minHeightUnit:y}=e,b=(0,_e.getColorClassName)("background-color",p),_=(0,_e.__experimentalGetGradientClass)(r),x=y?`${v}${y}`:v,k=jt===t,C=fr===t,S=!(c||m),N={...k&&!S?ps(d):{},minHeight:x||void 0},B={backgroundColor:b?void 0:i,background:n||void 0},D=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,A=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Da(a)},un(a)),R=r||n;return(0,se.jsxs)("div",{..._e.useBlockProps.save({className:A,style:N}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",b,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&R&&l!==0,"has-background-gradient":R,[_]:_}),style:B}),k&&S&&d&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),C&&d&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Du},ofe={attributes:y1,supports:hf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:v,minHeightUnit:y}=e,b=(0,_e.getColorClassName)("background-color",p),_=(0,_e.__experimentalGetGradientClass)(r),x=y?`${v}${y}`:v,k=jt===t,C=fr===t,S=!(c||m),N={...k&&!S?ps(d):{},minHeight:x||void 0},B={backgroundColor:b?void 0:i,background:n||void 0},D=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,A=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Da(a)},un(a));return(0,se.jsxs)("div",{..._e.useBlockProps.save({className:A,style:N}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w(b,Mi(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":r||n,[_]:!d&&_}),style:B}),k&&S&&d&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),C&&d&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,se.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Du},afe={attributes:{...bp,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:hf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:f,minHeight:h,minHeightUnit:v}=e,y=(0,_e.getColorClassName)("background-color",m),b=(0,_e.__experimentalGetGradientClass)(r),_=v?`${h}${v}`:h,x=jt===t,k=fr===t,C=!(c||u),S={...x&&!C?ps(p):{},backgroundColor:y?void 0:i,background:n&&!p?n:void 0,minHeight:_||void 0},N=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,B=w(vp(l),y,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[b]:!p&&b,"has-custom-content-position":!Da(a)},un(a));return(0,se.jsxs)("div",{..._e.useBlockProps.save({className:B,style:S}),children:[p&&(r||n)&&l!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",b),style:n?{background:n}:void 0}),x&&C&&p&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:p,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),k&&p&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,b1.compose)(J_,Du)},nfe={attributes:{...bp,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,minHeight:d,minHeightUnit:f}=e,h=(0,_e.getColorClassName)("background-color",m),v=(0,_e.__experimentalGetGradientClass)(r),y=f?`${d}${f}`:d,b=jt===t,_=fr===t,x=b?ps(p):{},k={};h||(x.backgroundColor=i),n&&!p&&(x.background=n),x.minHeight=y||void 0;let C;s&&(C=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,b&&!c&&(x.backgroundPosition=C),_&&(k.objectPosition=C));let S=w(vp(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[v]:!p&&v,"has-custom-content-position":!Da(a)},un(a));return(0,se.jsxs)("div",{..._e.useBlockProps.save({className:S,style:x}),children:[p&&(r||n)&&l!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",v),style:n?{background:n}:void 0}),_&&p&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:k}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,b1.compose)(J_,Du)},ife={attributes:{...bp,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,_e.getColorClassName)("background-color",c),d=(0,_e.__experimentalGetGradientClass)(r),f=t===jt?ps(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let h=w(vp(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,se.jsxs)("div",{className:h,style:f,children:[u&&(r||a)&&i!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),fr===t&&u&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,b1.compose)(J_,Du)},lfe={attributes:{...bp,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,_e.getColorClassName)("background-color",c),d=(0,_e.__experimentalGetGradientClass)(r),f=t===jt?ps(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let h=w(vp(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,se.jsxs)("div",{className:h,style:f,children:[u&&(r||a)&&i!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),fr===t&&u&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,b1.compose)(J_,Du)},sfe={attributes:{...bp,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:r,customOverlayColor:a,dimRatio:n,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,m=(0,_e.getColorClassName)("background-color",s),p=t===jt?ps(u):{};m||(p.backgroundColor=a),i&&!l&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=w(vp(n),m,{"has-background-dim":n!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,se.jsxs)("div",{className:d,style:p,children:[fr===t&&u&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!_e.RichText.isEmpty(c)&&(0,se.jsx)(_e.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c})]})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:a,...n}=t;return[n,[(0,Y_.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,X_.__)("Write title\u2026")})]]}},cfe={attributes:{...bp,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:a,dimRatio:n,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,_e.getColorClassName)("background-color",s),m=ps(t);u||(m.backgroundColor=c);let p=w("wp-block-cover-image",vp(n),u,{"has-background-dim":n!==0,"has-parallax":a,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,se.jsx)("div",{className:p,style:m,children:!_e.RichText.isEmpty(r)&&(0,se.jsx)(_e.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:a,align:n,...i}=t;return[i,[(0,Y_.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,X_.__)("Write title\u2026")})]]}},ufe={attributes:{...bp,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:a,dimRatio:n,align:i}=e,l=ps(t),s=w("wp-block-cover-image",vp(n),{"has-background-dim":n!==0,"has-parallax":a},i?`align${i}`:null);return(0,se.jsx)("section",{className:s,style:l,children:(0,se.jsx)(_e.RichText.Content,{tagName:"h2",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:a,align:n,...i}=t;return[i,[(0,Y_.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,X_.__)("Write title\u2026")})]]}},nO=[Yde,Xde,Jde,efe,tfe,rfe,ofe,afe,nfe,ife,lfe,sfe,cfe,ufe];var C1=o(Q(),1),Ru=o(O(),1),S1=o(M(),1),c5=o(fe(),1),po=o(T(),1),_B=o(P(),1),Mu=o(V(),1),ZO=o(zr(),1),KO=o(Nr(),1);var mO=o(O(),1),Rt=o(M(),1),pO=o(fe(),1),Ro=o(T(),1),to=o(P(),1),cB=o(V(),1),dO=o(Q(),1);var gf="full";var vf=o(T(),1),lO=o(Nr(),1),La=o(M(),1),sO=o(zr(),1),Kn=o(P(),1),e5=o(O(),1),cO=o(fe(),1),t5=o(V(),1),na=o(g(),1),iO=["image"];function uO({poster:e,onChange:t}){let r=(0,e5.useRef)(),[a,n]=(0,e5.useState)(!1),i=(0,cO.useInstanceId)(uO,"block-library-poster-image-description"),{getSettings:l}=(0,t5.useSelect)(vf.store),{createErrorNotice:s}=(0,t5.useDispatch)(lO.store),c=m=>{l().mediaUpload({allowedTypes:iO,filesList:m,onFileChange:([p])=>{if((0,sO.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{s(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&a?(0,na.jsx)(La.Spinner,{}):e?(0,Kn.__)("Replace"):(0,Kn.__)("Set poster image");return(0,na.jsx)(vf.MediaUploadCheck,{children:(0,na.jsxs)(La.__experimentalToolsPanelItem,{label:(0,Kn.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,na.jsx)(La.BaseControl.VisualLabel,{children:(0,Kn.__)("Poster image")}),(0,na.jsx)(vf.MediaUpload,{title:(0,Kn.__)("Select poster image"),onSelect:t,allowedTypes:iO,render:({open:m})=>(0,na.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,na.jsxs)(La.Button,{__next40pxDefaultSize:!0,onClick:m,"aria-haspopup":"dialog","aria-label":(0,Kn.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:a,accessibleWhenDisabled:!0,children:[(0,na.jsx)("img",{src:e,alt:(0,Kn.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),a&&(0,na.jsx)(La.Spinner,{})]}),(0,na.jsxs)(La.__experimentalHStack,{className:w("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,na.jsx)(La.Button,{__next40pxDefaultSize:!0,onClick:m,ref:r,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:a,accessibleWhenDisabled:!0,children:u()}),(0,na.jsx)("p",{id:i,hidden:!0,children:e?(0,Kn.sprintf)((0,Kn.__)("The current poster image url is %s."),e):(0,Kn.__)("There is no poster image currently selected.")}),!!e&&(0,na.jsx)(La.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:a,accessibleWhenDisabled:!0,children:(0,Kn.__)("Remove")})]}),(0,na.jsx)(La.DropZone,{onFilesDrop:c})]})})]})})}var r5=uO;var ut=o(g(),1),{cleanEmptyObject:mfe,ResolutionTool:pfe,HTMLElementControl:dfe}=Z(Ro.privateApis);function ffe({onChange:e,onUnitChange:t,unit:r="px",value:a=""}){let i=`block-cover-height-input-${(0,pO.useInstanceId)(Rt.__experimentalUnitControl)}`,l=r==="px",[s]=(0,Ro.useSettings)("spacing.units"),c=(0,Rt.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},m=(0,mO.useMemo)(()=>{let[d]=(0,Rt.__experimentalParseQuantityAndUnitFromRawValue)(a);return[d,r].join("")},[r,a]),p=l?oO:0;return(0,ut.jsx)(Rt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,to.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:m})}function fO({attributes:e,setAttributes:t,clientId:r,setOverlayColor:a,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:m,focalPoint:p,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:v,alt:y,tagName:b,poster:_}=e,{isVideoBackground:x,isImageBackground:k,mediaElement:C,url:S,overlayColor:N}=i,B=e.sizeSlug||gf,{gradientValue:D,setGradient:A}=(0,Ro.__experimentalUseGradient)(),{getSettings:R}=(0,cB.useSelect)(Ro.store),j=R()?.imageSizes,z=(0,cB.useSelect)(J=>u&&k?J(dO.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,k]),E=c?s:z;function H(J){let ne=E?.media_details?.sizes?.[J]?.source_url;if(!ne)return null;t({url:ne,sizeSlug:J})}let G=j?.filter(({slug:J})=>E?.media_details?.sizes?.[J]?.source_url)?.map(({name:J,slug:ne})=>({value:ne,label:J})),F=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},q=()=>{t({isRepeated:!f})},K=x||k&&(!d||f),te=J=>{let[ne,oe]=C.current?[C.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];ne[oe]=Mo(J)},X=(0,Ro.__experimentalUseMultipleOriginColorsAndGradients)(),re=W();return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Ro.InspectorControls,{children:(!!S||c)&&(0,ut.jsxs)(Rt.__experimentalToolsPanel,{label:(0,to.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),H(gf)},dropdownMenuProps:re,children:[k&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Rt.__experimentalToolsPanelItem,{label:(0,to.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,ut.jsx)(Rt.ToggleControl,{label:(0,to.__)("Fixed background"),checked:!!d,onChange:F})}),(0,ut.jsx)(Rt.__experimentalToolsPanelItem,{label:(0,to.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,ut.jsx)(Rt.ToggleControl,{label:(0,to.__)("Repeated background"),checked:f,onChange:q})})]}),K&&(0,ut.jsx)(Rt.__experimentalToolsPanelItem,{label:(0,to.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,ut.jsx)(Rt.FocalPointPicker,{label:(0,to.__)("Focal point"),url:S,value:p,onDragStart:te,onDrag:te,onChange:J=>t({focalPoint:J})})}),x&&(0,ut.jsx)(r5,{poster:_,onChange:J=>t({poster:J?.url})}),!c&&S&&!x&&(0,ut.jsx)(Rt.__experimentalToolsPanelItem,{label:(0,to.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!y,onDeselect:()=>t({alt:""}),children:(0,ut.jsx)(Rt.TextareaControl,{label:(0,to.__)("Alternative text"),value:y,onChange:J=>t({alt:J}),help:(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Rt.ExternalLink,{href:(0,to.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,to.__)("Describe the purpose of the image.")}),(0,ut.jsx)("br",{}),(0,to.__)("Leave empty if decorative.")]})})}),!!G?.length&&(0,ut.jsx)(pfe,{value:B,onChange:H,options:G,defaultValue:gf})]})}),X.hasColorsOrGradients&&(0,ut.jsxs)(Ro.InspectorControls,{group:"color",children:[(0,ut.jsx)(Ro.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:N.color,gradientValue:D,label:(0,to.__)("Overlay"),onColorChange:a,onGradientChange:A,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...X}),(0,ut.jsx)(Rt.__experimentalToolsPanelItem,{hasValue:()=>m===void 0?!1:m!==(S?50:100),label:(0,to.__)("Overlay opacity"),onDeselect:()=>l(S?50:100),resetAllFilter:()=>({dimRatio:S?50:100}),isShownByDefault:!0,panelId:r,children:(0,ut.jsx)(Rt.RangeControl,{label:(0,to.__)("Overlay opacity"),value:m,onChange:J=>l(J),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,ut.jsx)(Ro.InspectorControls,{group:"dimensions",children:(0,ut.jsx)(Rt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!h,label:(0,to.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:r,children:(0,ut.jsx)(ffe,{value:e?.style?.dimensions?.aspectRatio?"":h,unit:v,onChange:J=>t({minHeight:J,style:mfe({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:J=>t({minHeightUnit:J})})})}),(0,ut.jsx)(Ro.InspectorControls,{group:"advanced",children:(0,ut.jsx)(dfe,{tagName:b,onChange:J=>t({tagName:J}),clientId:r,options:[{label:(0,to.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})]})}var o5=o(O(),1),yl=o(T(),1),x1=o(P(),1),xO=o(M(),1);var uB=o(O(),1),Lu=o(M(),1),yp=o(P(),1);var hO=o(U(),1);var hfe="core/embed",gfe=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function gO(e){return e?vfe(e)!==null:!1}function vfe(e){let t=(0,hO.getBlockVariations)(hfe);if(!t)return null;let r=t.find(({patterns:a})=>cP(e,a));return!r||!gfe.includes(r.name)?null:r}function vO(e){if(!e)return null;let t=e.match(/src=["']([^"']+)["']/);return t?t[1]:null}function bfe(e){if(!e)return null;let t=e.toLowerCase();return t.includes("youtube.com")||t.includes("youtu.be")?"youtube":t.includes("vimeo.com")?"vimeo":t.includes("videopress.com")?"videopress":t.includes("animoto.com")?"animoto":t.includes("tiktok.com")?"tiktok":t.includes("wordpress.tv")?"wordpress-tv":null}function bO(e){if(!e)return e;try{let t=new URL(e);switch(bfe(e)){case"youtube":t.searchParams.set("autoplay","1"),t.searchParams.set("mute","1"),t.searchParams.set("loop","1"),t.searchParams.set("controls","0"),t.searchParams.set("showinfo","0"),t.searchParams.set("modestbranding","1"),t.searchParams.set("playsinline","1"),t.searchParams.set("rel","0");let a=t.pathname.split("/").pop();a&&t.searchParams.set("playlist",a);break;case"vimeo":t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1"),t.searchParams.set("background","1"),t.searchParams.set("controls","0");break;case"videopress":case"wordpress-tv":t.searchParams.set("autoplay","1"),t.searchParams.set("loop","1"),t.searchParams.set("muted","1");break;default:t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1");break}return t.toString()}catch{return e}}var bf=o(g(),1);function yO({onSubmit:e,onClose:t}){let[r,a]=(0,uB.useState)(""),[n,i]=(0,uB.useState)("");return(0,bf.jsx)(Lu.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!r){i((0,yp.__)("Please enter a URL."));return}if(!gO(r)){i((0,yp.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(r),t()},onCancel:t,confirmButtonText:(0,yp.__)("Add video"),size:"medium",children:(0,bf.jsxs)(Lu.__experimentalVStack,{spacing:4,children:[n&&(0,bf.jsx)(Lu.Notice,{status:"error",isDismissible:!1,children:n}),(0,bf.jsx)(Lu.TextControl,{__next40pxDefaultSize:!0,label:(0,yp.__)("Video URL"),value:r,onChange:s=>{a(s),i("")},placeholder:(0,yp.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,yp.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Ri=o(g(),1),{cleanEmptyObject:yfe}=Z(yl.privateApis);function _O({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:a,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,blockEditingMode:s}){let{contentPosition:c,id:u,useFeaturedImage:m,minHeight:p,minHeightUnit:d}=e,{hasInnerBlocks:f,url:h}=a,[v,y]=(0,o5.useState)(p),[b,_]=(0,o5.useState)(d),[x,k]=(0,o5.useState)(!1),C=d==="vh"&&p===100&&!e?.style?.dimensions?.aspectRatio,S=s==="contentOnly",N=()=>C?t(b==="vh"&&v===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:v,minHeightUnit:b}):(y(p),_(d),t({minHeight:100,minHeightUnit:"vh",style:yfe({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Ri.jsxs)(Ri.Fragment,{children:[!S&&(0,Ri.jsxs)(yl.BlockControls,{group:"block",children:[(0,Ri.jsx)(yl.__experimentalBlockAlignmentMatrixControl,{label:(0,x1.__)("Change content position"),value:c,onChange:B=>t({contentPosition:B}),isDisabled:!f}),(0,Ri.jsx)(yl.__experimentalBlockFullHeightAligmentControl,{isActive:C,onToggle:N,isDisabled:!f})]}),(0,Ri.jsx)(yl.BlockControls,{group:"other",children:(0,Ri.jsx)(yl.MediaReplaceFlow,{mediaId:u,mediaURL:h,allowedTypes:Q_,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:m,name:h?(0,x1.__)("Replace"):(0,x1.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:B})=>(0,Ri.jsx)(xO.MenuItem,{icon:Fn,onClick:()=>{k(!0),B()},children:(0,x1.__)("Embed video from URL")})})}),x&&(0,Ri.jsx)(yO,{onSubmit:B=>{l(B)},onClose:()=>k(!1)})]})}var a5=o(T(),1),kO=o(P(),1);var mB=o(g(),1);function pB({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:a,style:n,toggleUseFeaturedImage:i}){return(0,mB.jsx)(a5.MediaPlaceholder,{icon:(0,mB.jsx)(a5.BlockIcon,{icon:Wm}),labels:{title:(0,kO.__)("Cover")},onSelect:r,allowedTypes:Q_,disableMediaButtons:e,onToggleFeaturedImage:i,onError:a,style:n,children:t})}var wO=o(O(),1),CO=o(T(),1);var SO=o(g(),1),xfe={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:_fe}=Z(CO.privateApis);function dB({className:e,height:t,minHeight:r,onResize:a,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[m,p]=(0,wO.useState)(!1),d={className:w(e,{"is-resizing":m}),enable:xfe,onResizeStart:(f,h,v)=>{n(v.clientHeight),a(v.clientHeight)},onResize:(f,h,v)=>{a(v.clientHeight),m||p(!0)},onResizeStop:(f,h,v)=>{i(v.clientHeight),p(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,SO.jsx)(_fe,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var kfe={grad:.9,turn:360,rad:360/(2*Math.PI)},kc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},mo=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Ai=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},LO=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},TO=function(e){return{r:Ai(e.r,0,255),g:Ai(e.g,0,255),b:Ai(e.b,0,255),a:Ai(e.a)}},fB=function(e){return{r:mo(e.r),g:mo(e.g),b:mo(e.b),a:mo(e.a,3)}},wfe=/^#([0-9a-f]{3,8})$/i,n5=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},MO=function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=Math.max(t,r,a),l=i-Math.min(t,r,a),s=l?i===t?(r-a)/l:i===r?2+(a-t)/l:4+(t-r)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:n}},RO=function(e){var t=e.h,r=e.s,a=e.v,n=e.a;t=t/360*6,r/=100,a/=100;var i=Math.floor(t),l=a*(1-r),s=a*(1-(t-i)*r),c=a*(1-(1-t+i)*r),u=i%6;return{r:255*[a,s,l,l,c,a][u],g:255*[c,a,a,s,l,l][u],b:255*[l,l,c,a,a,s][u],a:n}},PO=function(e){return{h:LO(e.h),s:Ai(e.s,0,100),l:Ai(e.l,0,100),a:Ai(e.a)}},BO=function(e){return{h:mo(e.h),s:mo(e.s),l:mo(e.l),a:mo(e.a,3)}},NO=function(e){return RO((r=(t=e).s,{h:t.h,s:(r*=((a=t.l)<50?a:100-a)/100)>0?2*r/(a+r)*100:0,v:a+r,a:t.a}));var t,r,a},_1=function(e){return{h:(t=MO(e)).h,s:(n=(200-(r=t.s))*(a=t.v)/100)>0&&n<200?r*a/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,a,n},Cfe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Sfe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tfe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pfe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vB={string:[[function(e){var t=wfe.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?mo(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?mo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Tfe.exec(e)||Pfe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:TO({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Cfe.exec(e)||Sfe.exec(e);if(!t)return null;var r,a,n=PO({h:(r=t[1],a=t[2],a===void 0&&(a="deg"),Number(r)*(kfe[a]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return NO(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=n===void 0?1:n;return kc(t)&&kc(r)&&kc(a)?TO({r:Number(t),g:Number(r),b:Number(a),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,a=e.l,n=e.a,i=n===void 0?1:n;if(!kc(t)||!kc(r)||!kc(a))return null;var l=PO({h:Number(t),s:Number(r),l:Number(a),a:Number(i)});return NO(l)},"hsl"],[function(e){var t=e.h,r=e.s,a=e.v,n=e.a,i=n===void 0?1:n;if(!kc(t)||!kc(r)||!kc(a))return null;var l=(function(s){return{h:LO(s.h),s:Ai(s.s,0,100),v:Ai(s.v,0,100),a:Ai(s.a)}})({h:Number(t),s:Number(r),v:Number(a),a:Number(i)});return RO(l)},"hsv"]]},EO=function(e,t){for(var r=0;r<t.length;r++){var a=t[r][0](e);if(a)return[a,t[r][1]]}return[null,void 0]},Bfe=function(e){return typeof e=="string"?EO(e.trim(),vB.string):typeof e=="object"&&e!==null?EO(e,vB.object):[null,void 0]};var hB=function(e,t){var r=_1(e);return{h:r.h,s:Ai(r.s+100*t,0,100),l:r.l,a:r.a}},gB=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},IO=function(e,t){var r=_1(e);return{h:r.h,s:r.s,l:Ai(r.l+100*t,0,100),a:r.a}},bB=(function(){function e(t){this.parsed=Bfe(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return mo(gB(this.rgba),2)},e.prototype.isDark=function(){return gB(this.rgba)<.5},e.prototype.isLight=function(){return gB(this.rgba)>=.5},e.prototype.toHex=function(){return t=fB(this.rgba),r=t.r,a=t.g,n=t.b,l=(i=t.a)<1?n5(mo(255*i)):"","#"+n5(r)+n5(a)+n5(n)+l;var t,r,a,n,i,l},e.prototype.toRgb=function(){return fB(this.rgba)},e.prototype.toRgbString=function(){return t=fB(this.rgba),r=t.r,a=t.g,n=t.b,(i=t.a)<1?"rgba("+r+", "+a+", "+n+", "+i+")":"rgb("+r+", "+a+", "+n+")";var t,r,a,n,i},e.prototype.toHsl=function(){return BO(_1(this.rgba))},e.prototype.toHslString=function(){return t=BO(_1(this.rgba)),r=t.h,a=t.s,n=t.l,(i=t.a)<1?"hsla("+r+", "+a+"%, "+n+"%, "+i+")":"hsl("+r+", "+a+"%, "+n+"%)";var t,r,a,n,i},e.prototype.toHsv=function(){return t=MO(this.rgba),{h:mo(t.h),s:mo(t.s),v:mo(t.v),a:mo(t.a,3)};var t},e.prototype.invert=function(){return Ma({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Ma(hB(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ma(hB(this.rgba,-t))},e.prototype.grayscale=function(){return Ma(hB(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ma(IO(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ma(IO(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ma({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):mo(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=_1(this.rgba);return typeof t=="number"?Ma({h:t,s:r.s,l:r.l,a:r.a}):mo(r.h)},e.prototype.isEqual=function(t){return this.toHex()===Ma(t).toHex()},e})(),Ma=function(e){return e instanceof bB?e:new bB(e)},DO=[],AO=function(e){e.forEach(function(t){DO.indexOf(t)<0&&(t(bB,vB),DO.push(t))})};function zO(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var n in r)a[r[n]]=n;var i={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=a[this.toHex()];if(u)return u;if(l?.closest){var m=this.toRgb(),p=1/0,d="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var h in r){var v=(s=m,c=i[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));v<p&&(p=v,d=h)}return d}},t.string.push([function(l){var s=l.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new e(c).toRgb():null},"name"])}function Nfe(e){var t=e.toString(16);return t.length===1?"0"+t:t}function VO(e){return"#"+e.map(Nfe).join("")}function Efe(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function Ife(e){return e?Dfe(e)?e:[e]:[]}function Dfe(e){return Array.isArray(e[0])}function xB(e,t,r){for(var a=0;a<r.length;a++)if(Lfe(e,t,r[a]))return!0;return!1}function Lfe(e,t,r){switch(r.length){case 3:if(Mfe(e,t,r))return!0;break;case 4:if(Rfe(e,t,r))return!0;break;case 5:if(Afe(e,t,r))return!0;break;default:return!1}}function Mfe(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function Rfe(e,t,r){return e[t+3]&&r[3]?e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]&&e[t+3]===r[3]:e[t+3]===r[3]}function i5(e,t,r){return e>=t-r&&e<=t+r}function Afe(e,t,r){var a=r[0],n=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=i5(c,l,s);return l?!!(!c&&u||i5(e[t],a,s)&&i5(e[t+1],n,s)&&i5(e[t+2],i,s)&&u):u}function zfe(e,t,r){for(var a={},n=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],m=e[c+1],p=e[c+2],d=e[c+3];if(!(i&&xB(e,c,i))){var f=Math.round(u/n)+","+Math.round(m/n)+","+Math.round(p/n);a[f]?a[f]=[a[f][0]+u*d,a[f][1]+m*d,a[f][2]+p*d,a[f][3]+d,a[f][4]+1]:a[f]=[u*d,m*d,p*d,d,1],s[4]<a[f][4]&&(s=a[f])}}var h=s[0],v=s[1],y=s[2],b=s[3],_=s[4];return b?[Math.round(h/b),Math.round(v/b),Math.round(y/b),Math.round(b/_)]:r.defaultColor}function Vfe(e,t,r){for(var a=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m+3],d=e[m]*p,f=e[m+1]*p,h=e[m+2]*p;c&&xB(e,m,c)||(a+=d,n+=f,i+=h,l+=p,s++)}return l?[Math.round(a/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function Hfe(e,t,r){for(var a=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m],d=e[m+1],f=e[m+2],h=e[m+3];c&&xB(e,m,c)||(a+=p*p*h,n+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function HO(e){return w1(e,"defaultColor",[0,0,0,0])}function w1(e,t,r){return e[t]===void 0?r:e[t]}var FO=10,yB=100;function Ffe(e){return e.search(/\.svg(\?|$)/i)!==-1}function Ofe(e){if(jO(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&Ffe(e.src)&&(t=r=yB),{width:t,height:r}}return Ufe(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function OO(e){return Gfe(e)?"canvas":jfe(e)?"offscreencanvas":Wfe(e)?"imagebitmap":e.src}function jO(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function jfe(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function Ufe(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function Gfe(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function Wfe(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function $fe(e,t){var r=w1(t,"left",0),a=w1(t,"top",0),n=w1(t,"width",e.width),i=w1(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=yB,s=Math.round(l/c)):(c=i/n,s=yB,l=Math.round(s/c)),(l>n||s>i||l<FO||s<FO)&&(l=n,s=i),{srcLeft:r,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var qfe=typeof window>"u";function Zfe(){return qfe?new OffscreenCanvas(1,1):document.createElement("canvas")}var UO="FastAverageColor: ";function l5(e,t,r){t||(console.error(UO+e),r&&console.error(r))}function k1(e){return Error(UO+e)}var GO=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(k1("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(k1("resource as string is not supported in this environment"));var a=new Image;return a.crossOrigin=r&&r.crossOrigin||"",a.src=t,this.bindImageEvents(a,r)}else{if(jO(t)&&!t.complete)return this.bindImageEvents(t,r);var n=this.getColor(t,r);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,r){r=r||{};var a=HO(r);if(!t)return l5("call .getColor(null) without resource",r.silent),this.prepareResult(a);var n=Ofe(t),i=$fe(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return l5('incorrect sizes for resource "'.concat(OO(t),'"'),r.silent),this.prepareResult(a);if(this.canvas||(this.canvas=Zfe()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return l5("Canvas Context 2D is not supported in this browser",r.silent),this.prepareResult(a);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=a;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,r)}catch(c){l5("security error (CORS) for resource ".concat(OO(t),`.
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var a=4,n=t.length,i=HO(r);if(n<a)return i;var l=n-n%a,s=(r.step||1)*a,c;switch(r.algorithm||"sqrt"){case"simple":c=Vfe;break;case"sqrt":c=Hfe;break;case"dominant":c=zfe;break;default:throw k1("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:Ife(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),a=[t[0],t[1],t[2],t[3]/255],n=Efe(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:VO(r),hexa:VO(t),isDark:n,isLight:!n}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,r){var a=this;return new Promise(function(n,i){var l=function(){u();var m=a.getColor(t,r);m.error?i(m.error):n(m)},s=function(){u(),i(k1('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(k1('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",l),t.removeEventListener("error",s),t.removeEventListener("abort",c)};t.addEventListener("load",l),t.addEventListener("error",s),t.addEventListener("abort",c)})},e})();var $O=o(wc(),1);AO([zO]);var yf="#FFF",qO="#000";function Kfe(e,t){return{r:e.r*e.a+t.r*t.a*(1-e.a),g:e.g*e.a+t.g*t.a*(1-e.a),b:e.b*e.a+t.b*t.a*(1-e.a),a:e.a+t.a*(1-e.a)}}function s5(){return s5.fastAverageColor||(s5.fastAverageColor=new GO),s5.fastAverageColor}var xf=Qd(async e=>{if(!e)return yf;let{r:t,g:r,b:a,a:n}=Ma(yf).toRgb();try{let i=(0,$O.applyFilters)("media.crossOrigin",void 0,e);return(await s5().getColorAsync(e,{defaultColor:[t,r,a,n*255],silent:!0,crossOrigin:i})).hex}catch{return yf}});function xp(e,t,r){if(t===r||e===100)return Ma(t).isDark();let a=Ma(t).alpha(e/100).toRgb(),n=Ma(r).toRgb(),i=Kfe(a,n);return Ma(i).isDark()}var At=o(g(),1);function Qfe(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,_B.__)("Write title\u2026"),...e}]]}var Yfe=(e,t)=>!e&&(0,ZO.isBlobURL)(t);function Xfe({attributes:e,clientId:t,isSelected:r,overlayColor:a,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:m,url:p,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:v,hasParallax:y,isDark:b,isRepeated:_,minHeight:x,minHeightUnit:k,alt:C,allowedBlocks:S,templateLock:N,tagName:B="div",isUserOverlayColor:D,sizeSlug:A,poster:R}=e,[j]=(0,C1.useEntityProp)("postType",c,"featured_media",s),{getSettings:z}=(0,Mu.useSelect)(po.store),{__unstableMarkNextChangeAsNotPersistent:E}=(0,Mu.useDispatch)(po.store),{media:H}=(0,Mu.useSelect)(Ce=>({media:j&&f?Ce(C1.store).getEntityRecord("postType","attachment",j,{context:"view"}):void 0}),[j,f]),G=H?.media_details?.sizes?.[A]?.source_url??H?.source_url;(0,Ru.useEffect)(()=>{(async()=>{if(!f)return;let Ce=await xf(G),yt=a.color;D||(yt=Ce,E(),i(yt));let Tr=xp(h,yt,Ce);E(),n({isDark:Tr,isUserOverlayColor:D||!1})})()},[G]);let F=f?G:p?.replaceAll("&","&"),q=f?jt:d,{createErrorNotice:K}=(0,Mu.useDispatch)(KO.store),{gradientClass:te,gradientValue:X}=(0,po.__experimentalUseGradient)(),re=async Ce=>{let yt=aO(Ce),Tr=[Ce?.type,Ce?.media_type].includes(jt),al=await xf(Tr?Ce?.url:void 0),os=a.color;D||(os=al,i(os),E());let nl=p===void 0&&h===100?50:h,pc=xp(nl,os,al);if(q===jt&&yt?.id){let{imageDefaultSize:co}=z();A&&(Ce?.sizes?.[A]||Ce?.media_details?.sizes?.[A])?(yt.sizeSlug=A,yt.url=Ce?.sizes?.[A]?.url||Ce?.media_details?.sizes?.[A]?.source_url):Ce?.sizes?.[co]||Ce?.media_details?.sizes?.[co]?(yt.sizeSlug=co,yt.url=Ce?.sizes?.[co]?.url||Ce?.media_details?.sizes?.[co]?.source_url):yt.sizeSlug=gf}n({...yt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:nl,isDark:pc,isUserOverlayColor:D||!1})},J=()=>{let Ce=a.color;D||(Ce=qO,i(void 0),E());let yt=xp(h,Ce,yf);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:yt})},ne=async Ce=>{let yt=await xf(F),Tr=xp(h,Ce,yt);i(Ce),E(),n({isUserOverlayColor:!0,isDark:Tr})},oe=async Ce=>{let yt=await xf(F),Tr=xp(Ce,a.color,yt);n({dimRatio:Ce,isDark:Tr})},le=Ce=>{K(Ce,{type:"snackbar"})},ce=Ce=>{n({url:Ce,backgroundType:gp,dimRatio:p===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:ye,isFetchingEmbed:Me}=(0,Mu.useSelect)(Ce=>{if(q!==gp||!F)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:yt,isRequestingEmbedPreview:Tr}=Ce(C1.store);return{embedPreview:yt(F),isFetchingEmbed:Tr(F)}},[F,q]),ie=(0,Ru.useMemo)(()=>{if(q!==gp||!ye?.html)return null;let Ce=vO(ye.html);return Ce?bO(Ce):null},[ye,q]),Ve=Yfe(m,F),Re=jt===q,ae=fr===q,pe=gp===q,Be=(0,po.useBlockEditingMode)(),de=Be==="default",[lt,{height:Ie,width:st}]=(0,c5.useResizeObserver)(),Lt=(0,Ru.useMemo)(()=>({height:k==="px"&&x?x:"auto",width:"auto"}),[x,k]),Qe=x&&k?`${x}${k}`:x,gr=!(y||_),je={minHeight:Qe||void 0},Y=F?`url(${F})`:void 0,he=Mo(v),Fe={backgroundColor:a.color},Oe={objectPosition:v&&gr?Mo(v):void 0},He=!!(F||a.color||X),rr=(0,Mu.useSelect)(Ce=>Ce(po.store).getBlock(t).innerBlocks.length>0,[t]),cr=(0,Ru.useRef)(),Ar=(0,po.useBlockProps)({ref:cr}),[$e]=(0,po.useSettings)("typography.fontSizes"),To=$e?.length>0,ru=Qfe({fontSize:To?"large":void 0}),ka=(0,po.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:rr?void 0:ru,templateInsertUpdatesSelection:!0,allowedBlocks:S,templateLock:N,dropZoneElement:cr.current}),Ja=(0,Ru.useRef)(),ou={isVideoBackground:ae,isImageBackground:Re,mediaElement:Ja,hasInnerBlocks:rr,url:F,isImgElement:gr,overlayColor:a},wi=async()=>{let Ce=!f,yt=Ce?await xf(G):yf,Tr=D?a.color:yt;D||(i(Ce?Tr:void 0),E());let al=h===100?50:h,os=xp(al,Tr,yt);n({id:void 0,url:void 0,useFeaturedImage:Ce,dimRatio:al,backgroundType:f?jt:void 0,isDark:os})},ol=(0,At.jsx)(_O,{attributes:e,setAttributes:n,onSelectMedia:re,onSelectEmbedUrl:ce,currentSettings:ou,toggleUseFeaturedImage:wi,onClearMedia:J,blockEditingMode:Be}),mc=(0,At.jsx)(fO,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:ne,coverRef:cr,currentSettings:ou,toggleUseFeaturedImage:wi,updateDimRatio:oe,onClearMedia:J,featuredImage:H}),Md={className:"block-library-cover__resize-container",clientId:t,height:Ie,minHeight:Qe,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:Ce=>{n({minHeight:Ce})},onResizeStop:Ce=>{l(!0),n({minHeight:Ce})},showHandle:!e.style?.dimensions?.aspectRatio,size:Lt,width:st};if(!f&&!rr&&!He)return(0,At.jsxs)(At.Fragment,{children:[ol,mc,de&&r&&(0,At.jsx)(dB,{...Md}),(0,At.jsxs)(B,{...Ar,className:w("is-placeholder",Ar.className),style:{...Ar.style,minHeight:Qe||void 0},children:[lt,(0,At.jsx)(pB,{onSelectMedia:re,onError:le,toggleUseFeaturedImage:wi,children:(0,At.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,At.jsx)(po.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:ne,clearable:!1,asButtons:!0,"aria-label":(0,_B.__)("Overlay color")})})})]})]});let au=w({"is-dark-theme":b,"is-light":!b,"is-transient":Ve,"has-parallax":y,"is-repeated":_,"has-custom-content-position":!Da(u)},un(u)),Rd=F||!f||f&&!F;return(0,At.jsxs)(At.Fragment,{children:[ol,mc,(0,At.jsxs)(B,{...Ar,className:w(au,Ar.className),style:{...je,...Ar.style},"data-url":F,children:[lt,!F&&f&&(0,At.jsx)(S1.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),F&&Re&&(gr?(0,At.jsx)("img",{ref:Ja,className:"wp-block-cover__image-background",alt:C,src:F,style:Oe}):(0,At.jsx)("div",{ref:Ja,role:C?"img":void 0,"aria-label":C||void 0,className:w(au,"wp-block-cover__image-background"),style:{backgroundImage:Y,backgroundPosition:he}})),F&&ae&&(0,At.jsx)("video",{ref:Ja,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:F,poster:R,style:Oe}),pe&&ie&&(0,At.jsx)("div",{ref:Ja,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:Oe,children:(0,At.jsx)("iframe",{src:ie,title:"Background video",frameBorder:"0",allow:"autoplay; fullscreen"})}),pe&&!ie&&Me&&(0,At.jsx)(S1.Spinner,{}),Rd&&(0,At.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",Mi(h),{[a.class]:a.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":F&&X&&h!==0,"has-background-gradient":X,[te]:te}),style:{backgroundImage:X,...Fe}}),Ve&&(0,At.jsx)(S1.Spinner,{}),(0,At.jsx)(pB,{disableMediaButtons:!0,onSelectMedia:re,onError:le,toggleUseFeaturedImage:wi}),(0,At.jsx)("div",{...ka})]}),de&&r&&(0,At.jsx)(dB,{...Md})]})}var QO=(0,c5.compose)([(0,po.withColors)({overlayColor:"background-color"})])(Xfe);var u5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var Au=o(T(),1);var ds=o(g(),1);function YO({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:v,minHeight:y,minHeightUnit:b,tagName:_,sizeSlug:x,poster:k}=e,C=(0,Au.getColorClassName)("background-color",d),S=(0,Au.__experimentalGetGradientClass)(r),N=y&&b?`${y}${b}`:y,B=jt===t,D=fr===t,A=gp===t,R=!(u||p),j={minHeight:N||void 0},z={backgroundColor:C?void 0:i,background:n||void 0},E=s&&R?Mo(s):void 0,H=f?`url(${f})`:void 0,G=Mo(s),F=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Da(a)},un(a)),q=w("wp-block-cover__image-background",v?`wp-image-${v}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),K=r||n;return(0,ds.jsxs)(_,{...Au.useBlockProps.save({className:F,style:j}),children:[!c&&B&&f&&(R?(0,ds.jsx)("img",{className:q,alt:h,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,ds.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:q,style:{backgroundPosition:G,backgroundImage:H}})),D&&f&&(0,ds.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:k,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),A&&f&&(0,ds.jsx)("figure",{className:w("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,ds.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,ds.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",C,Mi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&K&&l!==0,"has-background-gradient":K,[S]:S}),style:z}),(0,ds.jsx)("div",{...Au.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var Qn=o(U(),1),XO=o(T(),1);var{cleanEmptyObject:m5}=Z(XO.privateApis),ehe={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:a,id:n,anchor:i,style:l})=>(0,Qn.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,Qn.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:r,id:a,anchor:n})=>(0,Qn.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:a,backgroundType:fr,anchor:n},[(0,Qn.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:r,anchor:a,backgroundColor:n,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,Qn.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=n||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:r,anchor:a,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:m5({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Qn.createBlock)("core/cover",c,[(0,Qn.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===jt:!r&&!a&&!n&&!i,transform:({title:e,url:t,alt:r,align:a,id:n,anchor:i,style:l})=>(0,Qn.createBlock)("core/image",{caption:e,url:t,alt:r,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===fr:!r&&!a&&!n&&!i,transform:({title:e,url:t,align:r,id:a,anchor:n})=>(0,Qn.createBlock)("core/video",{caption:e,src:t,id:a,align:r,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:m5({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(t?.length===1&&t[0]?.name==="core/group"){let a=m5(t[0].attributes||{});return a?.backgroundColor||a?.gradient||a?.style?.color?.background||a?.style?.color?.gradient?(0,Qn.createBlock)("core/group",a,t[0]?.innerBlocks):(0,Qn.createBlock)("core/group",{...r,...a,style:m5({...a?.style,color:r?.style?.color||a?.style?.color?{...r?.style?.color,...a?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Qn.createBlock)("core/group",{...e,...r},t)}}]},JO=ehe;var kB=o(P(),1);var the=[{name:"cover",title:(0,kB.__)("Cover"),description:(0,kB.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Wm}],ej=the;var{fieldsKey:rhe,formKey:ohe}=Z(tj.privateApis),{name:rj}=u5,p5={icon:Wm,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,wB.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:JO,save:YO,edit:QO,deprecated:nO,variations:ej};window.__experimentalContentOnlyInspectorFields&&(p5[rhe]=[{id:"background",label:(0,wB.__)("Background"),type:"media",Edit:{control:"media",allowedTypes:["image","video"],multiple:!1,useFeaturedImage:!0},getValue:({item:e})=>({id:e.id,url:e.url,alt:e.alt,mediaType:e.backgroundType,featuredImage:e.useFeaturedImage}),setValue:({value:e})=>({id:e.id,url:e.url,alt:e.alt,mediaType:e.backgroundType,useFeaturedImage:e.featuredImage})}],p5[ohe]={fields:["background"]});var ahe=()=>I({name:rj,metadata:u5,settings:p5});var SB={};$(SB,{init:()=>mhe,metadata:()=>d5,name:()=>cj,settings:()=>h5});var zu=o(P(),1),sj=o(U(),1);var d5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary",role:"content"},name:{type:"string",source:"attribute",attribute:"name",selector:".wp-block-details"},placeholder:{type:"string"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-details-editor",style:"wp-block-details"};var xl=o(T(),1),fs=o(M(),1),Cc=o(P(),1),oj=o(O(),1),aj=o(V(),1);var mn=o(g(),1),{withIgnoreIMEEvents:ihe}=Z(fs.privateApis),lhe=[["core/paragraph",{placeholder:(0,Cc.__)("Type / to add a hidden block")}]];function she({attributes:e,setAttributes:t,clientId:r}){let{name:a,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,xl.useBlockProps)(),u=(0,xl.useInnerBlocksProps)(c,{template:lhe,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[m,p]=(0,oj.useState)(n),d=W(),f=(0,aj.useSelect)(y=>y(xl.store).hasSelectedInnerBlock(r,!0),[r]),h=y=>{y.key==="Enter"&&!y.shiftKey&&(p(b=>!b),y.preventDefault())},v=y=>{y.key===" "&&y.preventDefault()};return(0,mn.jsxs)(mn.Fragment,{children:[(0,mn.jsx)(xl.InspectorControls,{children:(0,mn.jsx)(fs.__experimentalToolsPanel,{label:(0,Cc.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,mn.jsx)(fs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Cc.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,mn.jsx)(fs.ToggleControl,{label:(0,Cc.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,mn.jsx)(xl.InspectorControls,{group:"advanced",children:(0,mn.jsx)(fs.TextControl,{__next40pxDefaultSize:!0,label:(0,Cc.__)("Name attribute"),value:a||"",onChange:y=>t({name:y}),help:(0,Cc.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,mn.jsxs)("details",{...u,open:m||f,onToggle:y=>p(y.target.open),name:a||"",children:[(0,mn.jsx)("summary",{onKeyDown:ihe(h),onKeyUp:v,children:(0,mn.jsx)(xl.RichText,{identifier:"summary","aria-label":(0,Cc.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,Cc.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:y=>t({summary:y})})}),u.children]})]})}var nj=she;var kf=o(T(),1),_f=o(g(),1);function ij({attributes:e}){let{name:t,showContent:r}=e,a=e.summary?e.summary:"Details",n=kf.useBlockProps.save();return(0,_f.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,_f.jsx)("summary",{children:(0,_f.jsx)(kf.RichText.Content,{value:a})}),(0,_f.jsx)(kf.InnerBlocks.Content,{})]})}var f5=o(U(),1),lj={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,f5.createBlock)("core/details",{},e.map(t=>(0,f5.cloneBlock)(t)))}}]};var{fieldsKey:che,formKey:uhe}=Z(sj.privateApis),{name:cj}=d5,h5={icon:t9,example:{attributes:{summary:(0,zu.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,zu.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},__experimentalLabel(e,{context:t}){let{summary:r}=e,a=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(a||n))return a||r;if(t==="accessibility")return n?(0,zu.sprintf)((0,zu.__)("Details. %s"),r):(0,zu.__)("Details. Empty.")},save:ij,edit:nj,transforms:lj};window.__experimentalContentOnlyInspectorFields&&(h5[che]=[{id:"summary",label:(0,zu.__)("Summary"),type:"text",Edit:"rich-text"}],h5[uhe]={fields:["summary"]});var mhe=()=>I({name:cj,metadata:d5,settings:h5});var DB={};$(DB,{init:()=>whe,metadata:()=>cs,name:()=>$j,settings:()=>qj});var _p=o(P(),1),hs=o(M(),1),g5=o(T(),1);var zi=o(g(),1);function phe(e){return e?(0,_p.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,_p.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var dhe=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:a,toggleResponsive:n,switchBackToURLInput:i})=>{let l=W();return(0,zi.jsxs)(zi.Fragment,{children:[(0,zi.jsx)(g5.BlockControls,{children:(0,zi.jsx)(hs.ToolbarGroup,{children:t&&(0,zi.jsx)(hs.ToolbarButton,{className:"components-toolbar__control",label:(0,_p.__)("Edit URL"),icon:Ym,onClick:i})})}),r&&e&&(0,zi.jsx)(g5.InspectorControls,{children:(0,zi.jsx)(hs.__experimentalToolsPanel,{label:(0,_p.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,zi.jsx)(hs.__experimentalToolsPanelItem,{label:(0,_p.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{n(!a)},children:(0,zi.jsx)(hs.ToggleControl,{label:(0,_p.__)("Resize for smaller devices"),checked:a,help:phe,onChange:n})})})})]})},uj=dhe;var xe=o(M(),1),ke=o(g(),1),_l=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})}),v5=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})}),TB=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),wf=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})}),mj={foreground:"#000000",src:(0,ke.jsx)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},pj={foreground:"#ff0000",src:(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})})},dj={foreground:"#3b5998",src:(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"})})},fj=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.G,{children:(0,ke.jsx)(xe.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})})}),hj={foreground:"#0073AA",src:(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.G,{children:(0,ke.jsx)(xe.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})})})},gj={foreground:"#1db954",src:(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"})})},vj=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})}),bj={foreground:"#1ab7ea",src:(0,ke.jsx)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.G,{children:(0,ke.jsx)(xe.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})})})},yj=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),xj={foreground:"#35465c",src:(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"})})},_j=(0,ke.jsxs)(xe.SVG,{viewBox:"0 0 24 24",children:[(0,ke.jsx)(xe.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,ke.jsx)(xe.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,ke.jsx)(xe.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})]}),kj=(0,ke.jsxs)(xe.SVG,{viewBox:"0 0 24 24",children:[(0,ke.jsx)(xe.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,ke.jsx)(xe.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,ke.jsx)(xe.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,ke.jsx)(xe.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,ke.jsx)(xe.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,ke.jsx)(xe.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),wj=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),Cj=(0,ke.jsx)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ke.jsx)(xe.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})}),Sj=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 44 44",children:(0,ke.jsx)(xe.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})}),Tj={foreground:"#f43e37",src:(0,ke.jsxs)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ke.jsx)(xe.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,ke.jsx)(xe.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},Pj=(0,ke.jsx)(xe.SVG,{viewBox:"0 0 24 24",children:(0,ke.jsx)(xe.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var Bj=o(M(),1),PB=o(g(),1),fhe=()=>(0,PB.jsx)("div",{className:"wp-block-embed is-loading",children:(0,PB.jsx)(Bj.Spinner,{})}),Nj=fhe;var gs=o(P(),1),dn=o(M(),1),Ej=o(T(),1),pn=o(g(),1),hhe=({icon:e,label:t,value:r,onSubmit:a,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s})=>(0,pn.jsxs)(dn.Placeholder,{icon:(0,pn.jsx)(Ej.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,gs.__)("Paste a link to the content you want to display on your site."),children:[(0,pn.jsxs)("form",{onSubmit:a,children:[(0,pn.jsx)(dn.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,gs.__)("Enter URL to embed here\u2026"),onChange:n}),(0,pn.jsx)(dn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,gs._x)("Embed","button label")})]}),(0,pn.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,pn.jsx)(dn.ExternalLink,{href:(0,gs.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,gs.__)("Learn more about embeds")})}),i&&(0,pn.jsxs)(dn.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,pn.jsx)("div",{className:"components-placeholder__instructions",children:(0,gs.__)("Sorry, this content could not be embedded.")}),(0,pn.jsxs)(dn.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,pn.jsx)(dn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,gs._x)("Try again","button label")})," ",(0,pn.jsx)(dn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,gs._x)("Convert to link","button label")})]})]})]}),Ij=hhe;var Sf=o(P(),1),y5=o(M(),1),Lj=o(T(),1),Mj=o(O(),1),Rj=o(Br(),1);var b5=o(fe(),1),Cf=o(O(),1),BB=o(g(),1),ghe={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function Dj({html:e}){let t=(0,Cf.useRef)(),r=(0,Cf.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[ghe[l]||l]=s)}),i},[e]);return(0,Cf.useEffect)(()=>{let{ownerDocument:a}=t.current,{defaultView:n}=a;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==r["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,BB.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,BB.jsx)("iframe",{ref:(0,b5.useMergeRefs)([t,(0,b5.useFocusableIframe)()]),title:r.title,...r})})}var fn=o(g(),1);function Aj({preview:e,previewable:t,url:r,type:a,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,Mj.useState)(!1);!n&&c&&u(!1);let m=()=>{u(!0)},{scripts:p}=e,d=a==="photo"?_z(e):e.html,f=(0,Rj.getAuthority)(r),h=(0,Sf.sprintf)((0,Sf.__)("Embedded content from %s"),f),v=w(a,i,"wp-block-embed__wrapper");return(0,fn.jsx)(fn.Fragment,{children:t?a==="wp-embed"?(0,fn.jsx)(Dj,{html:d}):(0,fn.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,fn.jsx)(y5.SandBox,{html:d,scripts:p,title:h,type:v,onFocus:m}),!c&&(0,fn.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m})]}):(0,fn.jsxs)(y5.Placeholder,{icon:(0,fn.jsx)(Lj.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,fn.jsx)("p",{className:"components-placeholder__error",children:(0,fn.jsx)("a",{href:r,children:r})}),(0,fn.jsx)("p",{className:"components-placeholder__error",children:(0,Sf.sprintf)((0,Sf.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var wp=o(P(),1),kp=o(O(),1),x5=o(V(),1),zj=o(T(),1),NB=o(Q(),1),EB=o(L(),1),Vj=o(Br(),1);var Yn=o(g(),1),vhe=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:a,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:m}=e,p={title:(0,wp._x)("Embed","block title"),icon:_l},{icon:d,title:f}=yz(t)||p,[h,v]=(0,kp.useState)(n),[y,b]=(0,kp.useState)(!1),{invalidateResolution:_}=(0,x5.useDispatch)(NB.store),{preview:x,fetching:k,themeSupportsResponsive:C,cannotEmbed:S,hasResolved:N}=(0,x5.useSelect)(q=>{let{getEmbedPreview:K,isPreviewEmbedFallback:te,isRequestingEmbedPreview:X,getThemeSupports:re,hasFinishedResolution:J}=q(NB.store);if(!n)return{fetching:!1,cannotEmbed:!1};let ne=K(n),oe=te(n),le=ne?.html===!1&&ne?.type===void 0,ce=ne?.data?.status===404,ye=!!ne&&!le&&!ce;return{preview:ye?ne:void 0,fetching:X(n),themeSupportsResponsive:re()["responsive-embeds"],cannotEmbed:!ye||oe,hasResolved:J("getEmbedPreview",[n])}},[n]),B=()=>wz(i,x,f,a);function D(q){let{className:K}=i,{html:te}=x;c({allowResponsive:q,className:uP(te,K,a&&q)})}(0,kp.useEffect)(()=>{if(x?.html||!S||!N)return;let q=n.replace(/\/$/,"");v(q),b(!1),c({url:q})},[x?.html,n,S,N,c]),(0,kp.useEffect)(()=>{if(!(!S||k||!h)&&(0,Vj.getAuthority)(h)==="x.com"){let q=new URL(h);q.host="twitter.com",c({url:q.toString()})}},[h,S,k,c]),(0,kp.useEffect)(()=>{if(x&&!y){let q=B();if(Object.keys(q).some(te=>q[te]!==i[te])&&c(q),s){let te=xu(e,q);te&&s(te)}}},[x,y]);let A=(0,zj.useBlockProps)();if(k)return(0,Yn.jsx)(EB.View,{...A,children:(0,Yn.jsx)(Nj,{})});let R=(0,wp.sprintf)((0,wp.__)("%s URL"),f);if(!x||S||y)return(0,Yn.jsx)(EB.View,{...A,children:(0,Yn.jsx)(Ij,{icon:d,label:R,onFocus:m,onSubmit:q=>{q&&q.preventDefault();let K=ep(i.className);b(!1),c({url:h,className:K})},value:h,cannotEmbed:S,onChange:q=>v(q),fallback:()=>kz(h,s),tryAgain:()=>{_("getEmbedPreview",[h])}})});let{caption:z,type:E,allowResponsive:H,className:G}=B(),F=w(G,e.className);return(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)(uj,{showEditButton:x&&!S,themeSupportsResponsive:C,blockSupportsResponsive:a,allowResponsive:H,toggleResponsive:D,switchBackToURLInput:()=>b(!0)}),(0,Yn.jsxs)("figure",{...A,className:w(A.className,F,{[`is-type-${E}`]:E,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Yn.jsx)(Aj,{preview:x,previewable:r,className:F,url:h,type:E,caption:z,onCaptionChange:q=>c({caption:q}),isSelected:l,icon:d,label:R,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Yn.jsx)(nn,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,wp.__)("Embed caption text"),showToolbarButton:l})]})]})},Hj=vhe;var Cp=o(T(),1),T1=o(g(),1);function Fj({attributes:e}){let{url:t,caption:r,type:a,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,T1.jsxs)("figure",{...Cp.useBlockProps.save({className:i}),children:[(0,T1.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Cp.RichText.isEmpty(r)&&(0,T1.jsx)(Cp.RichText.Content,{className:(0,Cp.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var IB=o(U(),1);var{name:bhe}=cs,yhe={from:[{type:"raw",isMatch:e=>e.nodeName==="P"&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&e.textContent?.match(/https/gi)?.length===1,transform:e=>(0,IB.createBlock)(bhe,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:r})=>{let a=`<a href="${e}">${e}</a>`;return t?.trim()&&(a+=`<br />${t}`),(0,IB.createBlock)("core/paragraph",{content:a,className:ep(r)})}}]},Oj=yhe;var ue=o(P(),1);function mt(e){return(0,ue.sprintf)((0,ue.__)("%s Embed"),e)}var jj=[{name:"twitter",title:mt("X"),icon:mj,keywords:["x","twitter","tweet",(0,ue.__)("social")],description:(0,ue.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:mt("YouTube"),icon:pj,keywords:[(0,ue.__)("music"),(0,ue.__)("video")],description:(0,ue.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:mt("Facebook"),icon:dj,keywords:[(0,ue.__)("social")],description:(0,ue.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:mt("Instagram"),icon:fj,keywords:[(0,ue.__)("image"),(0,ue.__)("social")],description:(0,ue.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:mt("WordPress"),icon:hj,keywords:[(0,ue.__)("post"),(0,ue.__)("blog")],description:(0,ue.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:mt("SoundCloud"),icon:v5,keywords:[(0,ue.__)("music"),(0,ue.__)("audio")],description:(0,ue.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:mt("Spotify"),icon:gj,keywords:[(0,ue.__)("music"),(0,ue.__)("audio")],description:(0,ue.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:mt("Flickr"),icon:vj,keywords:[(0,ue.__)("image")],description:(0,ue.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:mt("Vimeo"),icon:bj,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:mt("Animoto"),icon:kj,description:(0,ue.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:mt("Cloudup"),icon:_l,description:(0,ue.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:mt("CollegeHumor"),icon:wf,description:(0,ue.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:mt("Crowdsignal"),icon:_l,keywords:["polldaddy",(0,ue.__)("survey")],description:(0,ue.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:mt("Dailymotion"),icon:wj,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:mt("Imgur"),icon:TB,description:(0,ue.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:mt("Issuu"),icon:_l,description:(0,ue.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:mt("Kickstarter"),icon:_l,description:(0,ue.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:mt("Mixcloud"),icon:v5,keywords:[(0,ue.__)("music"),(0,ue.__)("audio")],description:(0,ue.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:mt("Pocket Casts"),icon:Tj,keywords:[(0,ue.__)("podcast"),(0,ue.__)("audio")],description:(0,ue.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:mt("Reddit"),icon:yj,description:(0,ue.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:mt("ReverbNation"),icon:v5,description:(0,ue.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:mt("Scribd"),icon:_l,description:(0,ue.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:mt("SmugMug"),icon:TB,description:(0,ue.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:mt("Speaker Deck"),icon:_l,description:(0,ue.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:mt("TikTok"),icon:wf,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:mt("TED"),icon:wf,description:(0,ue.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:mt("Tumblr"),icon:xj,keywords:[(0,ue.__)("social")],description:(0,ue.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:mt("VideoPress"),icon:wf,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:mt("WordPress.tv"),icon:wf,description:(0,ue.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:mt("Amazon Kindle"),icon:_j,keywords:[(0,ue.__)("ebook")],description:(0,ue.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:mt("Pinterest"),icon:Cj,keywords:[(0,ue.__)("social"),(0,ue.__)("bookmark")],description:(0,ue.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:mt("Wolfram"),icon:Sj,description:(0,ue.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:mt("Bluesky"),icon:Pj,description:(0,ue.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];jj.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var Uj=jj;var Sp=o(T(),1),Tp=o(g(),1),{attributes:Gj}=cs,xhe={attributes:Gj,save({attributes:e}){let{url:t,caption:r,type:a,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,Tp.jsxs)("figure",{...Sp.useBlockProps.save({className:i}),children:[(0,Tp.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Sp.RichText.isEmpty(r)&&(0,Tp.jsx)(Sp.RichText.Content,{tagName:"figcaption",value:r})]})}},_he={attributes:Gj,save({attributes:{url:e,caption:t,type:r,providerNameSlug:a}}){if(!e)return null;let n=w("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${a}`]:a});return(0,Tp.jsxs)("figure",{className:n,children:[`
${e}
`,!Sp.RichText.isEmpty(t)&&(0,Tp.jsx)(Sp.RichText.Content,{tagName:"figcaption",value:t})]})}},khe=[xhe,_he],Wj=khe;var{name:$j}=cs,qj={icon:_l,edit:Hj,save:Fj,transforms:Oj,variations:Uj,deprecated:Wj},whe=()=>I({name:$j,metadata:cs,settings:qj});var AB={};$(AB,{init:()=>Mhe,metadata:()=>w5,name:()=>lU,settings:()=>T5});var Bf=o(P(),1);var iU=o(U(),1);var ro=o(T(),1),kl=o(P(),1),zt=o(g(),1),Che={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=ro.RichText.isEmpty(a)?(0,kl.__)("PDF embed"):(0,kl.sprintf)((0,kl.__)("Embed of %s."),a),p=!ro.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,zt.jsxs)("div",{...ro.useBlockProps.save(),children:[c&&(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,zt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,zt.jsx)(ro.RichText.Content,{value:a})}),l&&(0,zt.jsx)("a",{href:t,className:w("wp-block-file__button",(0,ro.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,zt.jsx)(ro.RichText.Content,{value:s})})]})}},She={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=ro.RichText.isEmpty(a)?(0,kl.__)("PDF embed"):(0,kl.sprintf)((0,kl.__)("Embed of %s."),a),p=!ro.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,zt.jsxs)("div",{...ro.useBlockProps.save(),children:[c&&(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,zt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,zt.jsx)(ro.RichText.Content,{value:a})}),l&&(0,zt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,zt.jsx)(ro.RichText.Content,{value:s})})]})}},The={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:r,textLinkHref:a,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=ro.RichText.isEmpty(r)?(0,kl.__)("PDF embed"):(0,kl.sprintf)((0,kl.__)("Embed of %s."),r);return t&&(0,zt.jsxs)("div",{...ro.useBlockProps.save(),children:[s&&(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!ro.RichText.isEmpty(r)&&(0,zt.jsx)("a",{href:a,target:n,rel:n?"noreferrer noopener":void 0,children:(0,zt.jsx)(ro.RichText.Content,{value:r})}),i&&(0,zt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,zt.jsx)(ro.RichText.Content,{value:l})})]})}},Phe=[Che,She,The],Zj=Phe;var MB=o(zr(),1),Pf=o(M(),1),Tf=o(V(),1),ho=o(T(),1),k5=o(O(),1),Jj=o(fe(),1),wl=o(P(),1);var eU=o(Q(),1),RB=o(Nr(),1),tU=o(Br(),1);var Ao=o(P(),1),zo=o(M(),1),Kj=o(T(),1);var fo=o(g(),1);function Qj({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:a,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:m,textLinkHref:p,attachmentPage:d}=e,f=W(),h=[{value:m,label:(0,Ao.__)("URL")}];return d&&(h=[{value:m,label:(0,Ao.__)("Media file")},{value:d,label:(0,Ao.__)("Attachment page")}]),(0,fo.jsx)(fo.Fragment,{children:(0,fo.jsxs)(Kj.InspectorControls,{children:[m.endsWith(".pdf")&&(0,fo.jsxs)(zo.__experimentalToolsPanel,{label:(0,Ao.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,fo.jsx)(zo.__experimentalToolsPanelItem,{label:(0,Ao.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,fo.jsx)(zo.ToggleControl,{label:(0,Ao.__)("Show inline embed"),help:l?(0,Ao.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,fo.jsx)(zo.__experimentalToolsPanelItem,{label:(0,Ao.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,fo.jsx)(zo.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ao.__)("Height in pixels"),min:_5,max:Math.max(LB,c),value:c,onChange:u})})]}),(0,fo.jsxs)(zo.__experimentalToolsPanel,{label:(0,Ao.__)("Settings"),resetAll:()=>{a(m),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,fo.jsx)(zo.__experimentalToolsPanelItem,{label:(0,Ao.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==m,onDeselect:()=>a(m),children:(0,fo.jsx)(zo.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ao.__)("Link to"),value:p,options:h,onChange:a})}),(0,fo.jsx)(zo.__experimentalToolsPanelItem,{label:(0,Ao.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,fo.jsx)(zo.ToggleControl,{label:(0,Ao.__)("Open in new tab"),checked:t,onChange:n})}),(0,fo.jsx)(zo.__experimentalToolsPanelItem,{label:(0,Ao.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,fo.jsx)(zo.ToggleControl,{label:(0,Ao.__)("Show download button"),checked:r,onChange:i})})]})]})})}var Xj=()=>window.navigator.pdfViewerEnabled?!0:!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!(Yj("AcroPDF.PDF")||Yj("PDF.PdfCtrl"))),Yj=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var Dr=o(g(),1),_5=200,LB=2e3;function Bhe({text:e,disabled:t}){let{createNotice:r}=(0,Tf.useDispatch)(RB.store),a=(0,Jj.useCopyToClipboard)(e,()=>{r("info",(0,wl.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Dr.jsx)(Pf.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:a,disabled:t,children:(0,wl.__)("Copy URL")})}function Nhe({attributes:e,isSelected:t,setAttributes:r,clientId:a}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,[f,h]=(0,k5.useState)(e.blob),{media:v}=(0,Tf.useSelect)(E=>({media:n===void 0?void 0:E(eU.store).getEntityRecord("postType","attachment",n)}),[n]),{createErrorNotice:y}=(0,Tf.useDispatch)(RB.store),{toggleSelection:b,__unstableMarkNextChangeAsNotPersistent:_}=(0,Tf.useDispatch)(ho.store);fu({url:f,onChange:x,onError:k}),(0,k5.useEffect)(()=>{ho.RichText.isEmpty(m)&&(_(),r({downloadButtonText:(0,wl._x)("Download","button label")}))},[]);function x(E){if(!E||!E.url){r({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),h();return}if((0,MB.isBlobURL)(E.url)){h(E.url);return}let H=(E.mime||E.mime_type)==="application/pdf"||(0,tU.getFilename)(E.url).toLowerCase().endsWith(".pdf"),G={displayPreview:H?e.displayPreview??!0:void 0,previewHeight:H?e.previewHeight??600:void 0};r({href:E.url,fileName:E.title,textLinkHref:E.url,id:E.id,fileId:`wp-block-file--media-${a}`,blob:void 0,...G}),h()}function k(E){r({href:void 0}),y(E,{type:"snackbar"})}function C(E){r({textLinkHref:E})}function S(E){r({textLinkTarget:E?"_blank":!1})}function N(E){r({showDownloadButton:E})}function B(E){r({displayPreview:E})}function D(E,H,G,F){b(!0);let q=parseInt(d+F.height,10);r({previewHeight:q})}function A(E){let H=Math.max(parseInt(E,10),_5);r({previewHeight:H})}let R=v&&v.link,j=(0,ho.useBlockProps)({className:w(!!f&&(0,Pf.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),z=Xj()&&p;return!l&&!f?(0,Dr.jsx)("div",{...j,children:(0,Dr.jsx)(ho.MediaPlaceholder,{icon:(0,Dr.jsx)(ho.BlockIcon,{icon:c0}),labels:{title:(0,wl.__)("File"),instructions:(0,wl.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:x,onError:k,accept:"*"})}):(0,Dr.jsxs)(Dr.Fragment,{children:[(0,Dr.jsx)(Qj,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:R},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:C,changeOpenInNewWindow:S,changeShowDownloadButton:N,displayPreview:p,changeDisplayPreview:B,previewHeight:d,changePreviewHeight:A}),(0,Dr.jsxs)(ho.BlockControls,{group:"other",children:[(0,Dr.jsx)(ho.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:x,onError:k,onReset:()=>x(void 0)}),(0,Dr.jsx)(Bhe,{text:l,disabled:(0,MB.isBlobURL)(l)})]}),(0,Dr.jsxs)("div",{...j,children:[z&&(0,Dr.jsxs)(Pf.ResizableBox,{size:{height:d,width:"100%"},minHeight:_5,maxHeight:LB,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:D,showHandle:t,children:[(0,Dr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,wl.__)("Embed of the selected PDF file.")}),!t&&(0,Dr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Dr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Dr.jsx)(ho.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,wl.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:E=>r({fileName:t1(E)}),href:s}),u&&(0,Dr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Dr.jsx)(ho.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,wl.__)("Download button text"),className:w("wp-block-file__button",(0,ho.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,wl.__)("Add text\u2026"),onChange:E=>r({downloadButtonText:t1(E)})})})]})]})]})}var rU=Nhe;var w5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},blob:{type:"string",role:"local"},href:{type:"string",role:"content"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",selector:"a:not([download])",role:"content"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href",role:"content"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"rich-text",source:"rich-text",selector:"a[download]",role:"content"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"};var Sc=o(T(),1),Cl=o(g(),1);function oU({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Sc.RichText.isEmpty(a)?"PDF embed":a.toString(),p=!Sc.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,Cl.jsxs)("div",{...Sc.useBlockProps.save(),children:[c&&(0,Cl.jsx)(Cl.Fragment,{children:(0,Cl.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Cl.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Cl.jsx)(Sc.RichText.Content,{value:a})}),l&&(0,Cl.jsx)("a",{href:t,className:w("wp-block-file__button",(0,Sc.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Cl.jsx)(Sc.RichText.Content,{value:s})})]})}var P1=o(zr(),1),Sl=o(U(),1),C5=o(V(),1),S5=o(Q(),1),aU=o(Br(),1),Ihe={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let a=(0,P1.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,Sl.createBlock)("core/video",{blob:(0,P1.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,Sl.createBlock)("core/image",{blob:(0,P1.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,Sl.createBlock)("core/audio",{blob:(0,P1.createBlobURL)(r)})):t.push((0,Sl.createBlock)("core/file",{blob:a,fileName:r.name}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Sl.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Sl.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Sl.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,aU.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,C5.select)(S5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("audio")},transform:e=>(0,Sl.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,C5.select)(S5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("video")},transform:e=>(0,Sl.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,C5.select)(S5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("image")},transform:e=>(0,Sl.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},nU=Ihe;var{fieldsKey:Dhe,formKey:Lhe}=Z(iU.privateApis),{name:lU}=w5,T5={icon:c0,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,Bf._x)("Armstrong_Small_Step","Name of the file")}},transforms:nU,deprecated:Zj,edit:rU,save:oU};window.__experimentalContentOnlyInspectorFields&&(T5[Dhe]=[{id:"file",label:(0,Bf.__)("File"),type:"media",Edit:{control:"media",allowedTypes:[],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.href}),setValue:({value:e})=>({id:e.id,href:e.url})},{id:"fileName",label:(0,Bf.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,Bf.__)("Button Text"),type:"text",Edit:"rich-text"}],T5[Lhe]={fields:["file","fileName","downloadButtonText"]});var Mhe=()=>I({name:lU,metadata:w5,settings:T5});var OB={};$(OB,{init:()=>Fhe,metadata:()=>N5,name:()=>hU,settings:()=>gU});var fU=o(wc(),1);var go=o(P(),1),Tl=o(T(),1),Pl=o(M(),1),sU=o(V(),1);var zB=o(P(),1),P5=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,zB.__)("Your form has been submitted successfully")+"</mark>"}]]],B5=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,zB.__)("There was an error submitting your form.")+"</mark>"}]]];var Ra=o(g(),1),Rhe=[P5,B5,["core/form-input",{type:"text",label:(0,go.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,go.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,go.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Ahe=({attributes:e,setAttributes:t,clientId:r})=>{let a=W(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,Tl.useBlockProps)(),{hasInnerBlocks:m}=(0,sU.useSelect)(d=>{let{getBlock:f}=d(Tl.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),p=(0,Tl.useInnerBlocksProps)(u,{template:Rhe,renderAppender:m?void 0:Tl.InnerBlocks.ButtonBlockAppender});return(0,Ra.jsxs)(Ra.Fragment,{children:[(0,Ra.jsx)(Tl.InspectorControls,{children:(0,Ra.jsxs)(Pl.__experimentalToolsPanel,{dropdownMenuProps:a,label:(0,go.__)("Settings"),resetAll:n,children:[(0,Ra.jsx)(Pl.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,go.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,Ra.jsx)(Pl.SelectControl,{__next40pxDefaultSize:!0,label:(0,go.__)("Submissions method"),options:[{label:(0,go.__)("Send email"),value:"email"},{label:(0,go.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,go.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,go.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,Ra.jsx)(Pl.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,go.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,Ra.jsx)(Pl.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,go.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,go.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,Ra.jsxs)(Tl.InspectorControls,{group:"advanced",children:[(0,Ra.jsx)(Pl.SelectControl,{__next40pxDefaultSize:!0,label:(0,go.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,go.__)("Select the method to use for form submissions.")}),(0,Ra.jsx)(Pl.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,go.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,go.__)("The URL where the form should be submitted."),type:"url"})]}),(0,Ra.jsx)("form",{...p,encType:c==="email"?"text/plain":null})]})},cU=Ahe;var N5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var E5=o(T(),1),VB=o(g(),1);function uU({attributes:e}){let t=E5.useBlockProps.save(),{submissionMethod:r}=e;return(0,VB.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,VB.jsx)(E5.InnerBlocks.Content,{})})}var Vi=o(P(),1);var Vhe=[{name:"comment-form",title:(0,Vi.__)("Experimental Comment form"),description:(0,Vi.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,Vi.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,Vi.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,Vi.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"wp-privacy-form",title:(0,Vi.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,Vi.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[P5,B5,["core/paragraph",{content:(0,Vi.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,Vi.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,Vi.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,Vi.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"}],mU=Vhe;var vs=o(T(),1),HB=o(g(),1),Hhe={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){let{submissionMethod:t}=e,r=(0,vs.__experimentalGetColorClassesAndStyles)(e),a=(0,vs.getTypographyClassesAndStyles)(e),n=(0,vs.__experimentalGetSpacingClassesAndStyles)(e),i=vs.useBlockProps.save({style:{...r.style,...a.style,...n.style},id:e.anchor});return(0,HB.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,HB.jsx)(vs.InnerBlocks.Content,{})})}},pU=[Hhe];var I5=o(L(),1),FB=o(g(),1),dU=(0,FB.jsx)(I5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,FB.jsx)(I5.Path,{d:"M18 16H6c-1.1 0-2 .9-2 2s.9 2 2 2h12c1.1 0 2-.9 2-2s-.9-2-2-2Zm0 2.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h12c.3 0 .5.2.5.5s-.2.5-.5.5ZM13 13H4v1.5h9V13Zm-7-2h12c1.1 0 2-.9 2-2s-.9-2-2-2H6c-1.1 0-2 .9-2 2s.9 2 2 2Zm0-2.5h12c.3 0 .5.2.5.5s-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5ZM13 4H4v1.5h9V4Z"})});var{name:hU}=N5,gU={icon:dU,edit:cU,save:uU,deprecated:pU,variations:mU,example:{}},Fhe=()=>{let e=["core/form"];return(0,fU.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),I({name:hU,metadata:N5,settings:gU})};var UB={};$(UB,{init:()=>Xhe,metadata:()=>L5,name:()=>IU,settings:()=>DU});var xU=o(B1(),1),Bl=o(T(),1),_U=o(ls(),1),Xn=o(g(),1),kU=e=>(0,xU.default)((0,_U.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Whe={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Bl.__experimentalGetBorderClassesAndStyles)(e),u=(0,Bl.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Bl.useBlockProps.save();return t==="hidden"?(0,Xn.jsx)("input",{type:t,name:r,value:s}):(0,Xn.jsx)("div",{...f,children:(0,Xn.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,Xn.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Xn.jsx)(Bl.RichText.Content,{value:a})}),(0,Xn.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||kU(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})})}},$he={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Bl.__experimentalGetBorderClassesAndStyles)(e),u=(0,Bl.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,Xn.jsx)("input",{type:t,name:r,value:s}):(0,Xn.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,Xn.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Xn.jsx)(Bl.RichText.Content,{value:a})}),(0,Xn.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||kU(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})}},qhe=[Whe,$he],wU=qhe;var hn=o(P(),1),Nl=o(T(),1),bs=o(M(),1),CU=o(O(),1);var Hr=o(g(),1);function Zhe({attributes:e,setAttributes:t,className:r}){let{type:a,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,m=(0,Nl.useBlockProps)(),p=W(),d=(0,CU.useRef)(),f=a==="textarea"?"textarea":"input",h=(0,Nl.__experimentalUseBorderProps)(e),v=(0,Nl.__experimentalUseColorProps)(e);d.current&&d.current.focus();let y=a==="checkbox"||a==="radio",b=(0,Hr.jsxs)(Hr.Fragment,{children:[a!=="hidden"&&(0,Hr.jsx)(Nl.InspectorControls,{children:(0,Hr.jsxs)(bs.__experimentalToolsPanel,{label:(0,hn.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:p,children:[a!=="checkbox"&&(0,Hr.jsx)(bs.__experimentalToolsPanelItem,{label:(0,hn.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,Hr.jsx)(bs.CheckboxControl,{label:(0,hn.__)("Inline label"),checked:l,onChange:x=>{t({inlineLabel:x})}})}),(0,Hr.jsx)(bs.__experimentalToolsPanelItem,{label:(0,hn.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,Hr.jsx)(bs.CheckboxControl,{label:(0,hn.__)("Required"),checked:s,onChange:x=>{t({required:x})}})})]})}),(0,Hr.jsx)(Nl.InspectorControls,{group:"advanced",children:(0,Hr.jsx)(bs.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,hn.__)("Name"),value:n,onChange:x=>{t({name:x})},help:(0,hn.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),_=(0,Hr.jsx)(Nl.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:x=>t({label:x}),"aria-label":i?(0,hn.__)("Label"):(0,hn.__)("Empty label"),"data-empty":!i,placeholder:(0,hn.__)("Type the label for this input")});return a==="hidden"?(0,Hr.jsxs)(Hr.Fragment,{children:[b,(0,Hr.jsx)("input",{type:"hidden",className:w(r,"wp-block-form-input__input",v.className,h.className),"aria-label":(0,hn.__)("Value"),value:u,onChange:x=>t({value:x.target.value})})]}):(0,Hr.jsxs)("div",{...m,children:[b,(0,Hr.jsxs)("span",{className:w("wp-block-form-input__label",{"is-label-inline":l||a==="checkbox"}),children:[!y&&_,(0,Hr.jsx)(f,{type:a==="textarea"?void 0:a,className:w(r,"wp-block-form-input__input",v.className,h.className),"aria-label":(0,hn.__)("Optional placeholder text"),placeholder:c?void 0:(0,hn.__)("Optional placeholder\u2026"),value:c,onChange:x=>t({placeholder:x.target.value}),"aria-required":s,style:{...h.style,...v.style}}),y&&_]})]})}var SU=Zhe;var L5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var TU=o(B1(),1),Tc=o(T(),1),PU=o(ls(),1),ys=o(g(),1),Qhe=e=>(0,TU.default)((0,PU.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function BU({attributes:e}){let{type:t,name:r,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Tc.__experimentalGetBorderClassesAndStyles)(e),u=(0,Tc.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Tc.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,ys.jsx)("input",{type:t,name:r,value:s}):(0,ys.jsx)("div",{...f,children:(0,ys.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[!h&&(0,ys.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,ys.jsx)(Tc.RichText.Content,{value:a})}),(0,ys.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||Qhe(a),required:i,"aria-required":i,placeholder:l||void 0,style:m}),h&&(0,ys.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,ys.jsx)(Tc.RichText.Content,{value:a})})]})})}var Aa=o(P(),1),Yhe=[{name:"text",title:(0,Aa.__)("Text Input"),description:(0,Aa.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,Aa.__)("Textarea Input"),description:(0,Aa.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="textarea"},{name:"checkbox",title:(0,Aa.__)("Checkbox Input"),description:(0,Aa.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,Aa.__)("Email Input"),description:(0,Aa.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,Aa.__)("URL Input"),description:(0,Aa.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,Aa.__)("Telephone Input"),description:(0,Aa.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,Aa.__)("Number Input"),description:(0,Aa.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"}],NU=Yhe;var M5=o(L(),1),jB=o(g(),1),EU=(0,jB.jsx)(M5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jB.jsx)(M5.Path,{d:"M5.547 18.892A.99.99 0 0 0 6 19h.72v1H6a1.99 1.99 0 0 1-.908-.22l.455-.888ZM9.12 20H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.587-.22c-.272.14-.58.22-.907.22h-.72v-1H18a.99.99 0 0 0 .453-.108l.454.888ZM5.108 17.547a.99.99 0 0 0 0 .906l-.89.454a1.99 1.99 0 0 1 0-1.815l.89.455Zm14.672-.455a1.99 1.99 0 0 1 0 1.815l-.888-.454a.99.99 0 0 0 0-.906l.888-.455ZM6.72 17H6a.99.99 0 0 0-.453.108l-.455-.89A1.99 1.99 0 0 1 6 16h.72v1ZM18 16c.327 0 .635.08.907.219l-.454.89A.99.99 0 0 0 18 17h-.72v-1H18Zm-8.88 1H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1ZM5.5 14.28H4.25v-1H5.5v1Zm2.5 0H6.5v-1H8v1Zm2.5 0H9v-1h1.5v1Zm2.25 0H11.5v-1h1.25v1ZM18 7a2 2 0 1 1 0 4H6a2 2 0 1 1 0-4h12ZM6 8.5a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H6Zm7-3H4V4h9v1.5Z"})});var{name:IU}=L5,DU={icon:EU,deprecated:wU,edit:SU,save:BU,variations:NU,example:{}},Xhe=()=>I({name:IU,metadata:L5,settings:DU});var WB={};$(WB,{init:()=>rge,metadata:()=>A5,name:()=>zU,settings:()=>VU});var LU=o(P(),1),R5=o(T(),1),MU=o(g(),1),Jhe=[["core/buttons",{},[["core/button",{text:(0,LU.__)("Submit"),tagName:"button",type:"submit"}]]]],ege=()=>{let e=(0,R5.useBlockProps)(),t=(0,R5.useInnerBlocksProps)(e,{template:Jhe,templateLock:"all"});return(0,MU.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},RU=ege;var A5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var z5=o(T(),1),GB=o(g(),1);function AU(){let e=z5.useBlockProps.save();return(0,GB.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,GB.jsx)(z5.InnerBlocks.Content,{})})}var{name:zU}=A5,VU={edit:RU,save:AU,example:{}},rge=()=>I({name:zU,metadata:A5,settings:VU});var $B={};$($B,{init:()=>lge,metadata:()=>H5,name:()=>WU,settings:()=>$U});var V5=o(P(),1),Vu=o(T(),1),HU=o(V(),1);var FU=o(g(),1),oge=[["core/paragraph",{content:(0,V5.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],age=({attributes:e,clientId:t})=>{let{type:r}=e,a=(0,Vu.useBlockProps)({className:w("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:n}=(0,HU.useSelect)(l=>{let{getBlock:s}=l(Vu.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,Vu.useInnerBlocksProps)(a,{template:oge,renderAppender:n?void 0:Vu.InnerBlocks.ButtonBlockAppender});return(0,FU.jsx)("div",{...i,"data-message-success":(0,V5.__)("Submission success notification"),"data-message-error":(0,V5.__)("Submission error notification")})},OU=age;var H5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var F5=o(T(),1);var jU=o(g(),1);function UU({attributes:e}){let{type:t}=e;return(0,jU.jsx)("div",{...F5.useInnerBlocksProps.save(F5.useBlockProps.save({className:w("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var Pp=o(P(),1),ige=[{name:"form-submission-success",title:(0,Pp.__)("Form Submission Success"),description:(0,Pp.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,Pp.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="success"},{name:"form-submission-error",title:(0,Pp.__)("Form Submission Error"),description:(0,Pp.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,Pp.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="error"}],GU=ige;var{name:WU}=H5,$U={icon:qm,edit:OU,save:UU,variations:GU,example:{}},lge=()=>I({name:WU,metadata:H5,settings:$U});var oN={};$(oN,{init:()=>Pge,metadata:()=>j5,name:()=>SG,settings:()=>TG});var yr=o(T(),1),KU=o(U(),1);var xs="none",_s="media",N1="lightbox",ks="attachment",qU="file",ZU="post",E1="large";var ze=o(g(),1),QU="file",YU="post";function Nf(e){return Math.min(3,e?.images?.length)}function sge(e,t){switch(t){case QU:return{href:e?.source_url||e?.url,linkDestination:_s};case YU:return{href:e?.link,linkDestination:ks};case _s:return{href:e?.source_url||e?.url,linkDestination:_s};case ks:return{href:e?.link,linkDestination:ks};case xs:return{href:void 0,linkDestination:xs}}return{}}function Ef(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>cge(l,e.sizeSlug,t)),{images:a,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function cge(e,t,r){return(0,KU.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...sge(e,r)})}var uge={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:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){let{caption:t,columns:r,imageCrop:a}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":a}),i=yr.useBlockProps.save({className:n}),l=yr.useInnerBlocksProps.save(i);return(0,ze.jsxs)("figure",{...l,children:[l.children,!yr.RichText.isEmpty(t)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},mge={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},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){let{images:t,columns:r=Nf(e),imageCrop:a,caption:n,linkTo:i}=e,l=`columns-${r} ${a?"is-cropped":""}`;return(0,ze.jsxs)("figure",{...yr.useBlockProps.save({className:l}),children:[(0,ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case QU:c=s.fullUrl||s.url;break;case YU:c=s.link;break}let u=(0,ze.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id,"data-full-url":s.fullUrl,"data-link":s.link,className:s.id?`wp-image-${s.id}`:null});return(0,ze.jsx)("li",{className:"blocks-gallery-item",children:(0,ze.jsxs)("figure",{children:[c?(0,ze.jsx)("a",{href:c,children:u}):u,!yr.RichText.isEmpty(s.caption)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!yr.RichText.isEmpty(n)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return Ef(e)}},pge={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||e==="attachment"||e==="media"},migrate(e){return Ef(e)},save({attributes:e}){let{images:t,columns:r=Nf(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,ze.jsxs)("figure",{className:`columns-${r} ${a?"is-cropped":""}`,children:[(0,ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,ze.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,ze.jsx)("li",{className:"blocks-gallery-item",children:(0,ze.jsxs)("figure",{children:[s?(0,ze.jsx)("a",{href:s,children:c}):c,!yr.RichText.isEmpty(l.caption)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!yr.RichText.isEmpty(n)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},dge={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some(t=>typeof t=="string")},migrate(e){return Ef(e)},save({attributes:e}){let{images:t,columns:r=Nf(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,ze.jsxs)("figure",{className:`columns-${r} ${a?"is-cropped":""}`,children:[(0,ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,ze.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,ze.jsx)("li",{className:"blocks-gallery-item",children:(0,ze.jsxs)("figure",{children:[s?(0,ze.jsx)("a",{href:s,children:c}):c,!yr.RichText.isEmpty(l.caption)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!yr.RichText.isEmpty(n)&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},fge={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=Nf(e),imageCrop:a,linkTo:n}=e;return(0,ze.jsx)("ul",{className:`columns-${r} ${a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,ze.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-full-url":i.fullUrl,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,ze.jsx)("li",{className:"blocks-gallery-item",children:(0,ze.jsxs)("figure",{children:[l?(0,ze.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return Ef(e)}},hge={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:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some((r,a)=>!r&&t[a]!==null?!0:parseInt(r,10)!==t[a]))},migrate(e){return Ef(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=Nf(e),imageCrop:a,linkTo:n}=e;return(0,ze.jsx)("ul",{className:`columns-${r} ${a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,ze.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,ze.jsx)("li",{className:"blocks-gallery-item",children:(0,ze.jsxs)("figure",{children:[l?(0,ze.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,ze.jsx)(yr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},gge={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=Nf(e),align:a,imageCrop:n,linkTo:i}=e,l=w(`columns-${r}`,{alignnone:a==="none","is-cropped":n});return(0,ze.jsx)("div",{className:l,children:t.map(s=>{let c;switch(i){case"media":c=s.url;break;case"attachment":c=s.link;break}let u=(0,ze.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,ze.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,ze.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return Ef(e)}},XU=[uge,mge,pge,dge,fge,hge,gge];var pt=o(M(),1),vo=o(T(),1),Vo=o(O(),1),Te=o(P(),1),M1=o(V(),1),bG=o(L(),1),yG=o(U(),1),tN=o(zr(),1),xG=o(Nr(),1);var JU=o(T(),1);var eG=o(g(),1),tG=(0,eG.jsx)(JU.BlockIcon,{icon:h0});function qB(e){return e?Math.min(3,e):3}var rG=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(r.fullUrl=a),r};var ws=20,Bp="none",If="media",Df="attachment",ZB="custom",oG=["noreferrer","noopener"],Pc=["image"];var KB=["flex","grid"],I1="full";function QB(e,t,r,a,n){switch(r||t){case qU:case _s:return{href:e?.source_url||e?.url,linkDestination:If,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case ZU:case ks:return{href:e?.link,linkDestination:Df,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case N1:return{href:void 0,lightbox:n?.enabled?void 0:{...a?.lightbox,enabled:!0},linkDestination:Bp};case xs:return{href:void 0,linkDestination:Bp,lightbox:void 0}}return{}}function aG(e){let[t,r=1]=e.split("/").map(Number),a=t/r;return a===1/0||a===0?NaN:a}function vge(e){let t=e;return e!==void 0&&t&&(oG.forEach(r=>{let a=new RegExp("\\b"+r+"\\b","gi");t=t.replace(a,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function YB(e,{rel:t}){let r=e?"_blank":void 0,a;return!r&&!t?a=void 0:a=vge(t),{linkTarget:r,rel:a}}function nG(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function XB(e){return Pc.some(t=>e.type.indexOf(t)===0)}function D1({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var JB=o(P(),1),iG=o(L(),1);var L1=o(g(),1);function lG(e){let{attributes:t,isSelected:r,setAttributes:a,mediaPlaceholder:n,insertBlocksAfter:i,blockProps:l,__unstableLayoutClassNames:s,isContentLocked:c,multiGallerySelection:u}=e,{align:m,columns:p,imageCrop:d}=t;return(0,L1.jsxs)("figure",{...l,className:w(l.className,s,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":d}),children:[l.children,r&&!l.children&&(0,L1.jsx)(iG.View,{className:"blocks-gallery-media-placeholder-wrapper",children:n}),(0,L1.jsx)(nn,{attributes:t,setAttributes:a,isSelected:r,insertBlocksAfter:i,showToolbarButton:!u&&!c,className:"blocks-gallery-caption",label:(0,JB.__)("Gallery caption text"),placeholder:(0,JB.__)("Add gallery caption")})]})}var sG=o(O(),1);function cG(e,t,r){return(0,sG.useMemo)(()=>a(),[e,t]);function a(){if(!e||e.length===0)return;let{imageSizes:n}=r(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=n.reduce((m,p)=>{let d=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...m,[p.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return n.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var O5=o(O(),1);function uG(e,t){let[r,a]=(0,O5.useState)([]);return(0,O5.useMemo)(()=>n(),[e,t]);function n(){let i=!1,l=r.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&a([...l,...s]),s.length>0?s:null}}var pG=o(V(),1),dG=o(Q(),1),mG=[];function fG(e){return(0,pG.useSelect)(t=>{let r=e.map(a=>a.attributes.id).filter(a=>a!==void 0);return r.length===0?mG:t(dG.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??mG},[e])}var Np=o(T(),1);function hG({blockGap:e,clientId:t}){let r="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",a=r,n=r,i;e&&(i=typeof e=="string"?(0,Np.__experimentalGetGapCSSValue)(e):(0,Np.__experimentalGetGapCSSValue)(e?.top)||r,n=typeof e=="string"?(0,Np.__experimentalGetGapCSSValue)(e):(0,Np.__experimentalGetGapCSSValue)(e?.left)||r,a=i===n?i:`${i} ${n}`);let l=`#block-${t} {
--wp--style--unstable-gallery-gap: ${n==="0"?"0px":n};
gap: ${a}
}`;return(0,Np.useStyleOverride)({css:l}),null}var qe=o(g(),1),gG=8,vG=[{icon:i0,label:(0,Te.__)("Link images to attachment pages"),value:ks,noticeText:(0,Te.__)("Attachment Pages")},{icon:bu,label:(0,Te.__)("Link images to media files"),value:_s,noticeText:(0,Te.__)("Media Files")},{icon:$m,label:(0,Te.__)("Enlarge on click"),value:N1,noticeText:(0,Te.__)("Lightbox effect"),infoText:(0,Te.__)("Scale images with a lightbox effect")},{icon:g0,label:(0,Te._x)("None","Media item link option"),value:xs,noticeText:(0,Te.__)("None")}],eN=["image"],bge=Vo.Platform.isNative?(0,Te.__)("Add media"):(0,Te.__)("Drag and drop images, upload, or choose from your library."),yge=Vo.Platform.isNative?{type:"stepper"}:{},xge={name:"core/image"},_ge=[];function _G(e){let{setAttributes:t,attributes:r,className:a,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,onFocus:c}=e,[u,m,p,d]=(0,vo.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.allowEditing?vG:vG.filter(Y=>Y.value!==N1),{columns:h,imageCrop:v,randomOrder:y,linkTarget:b,linkTo:_,sizeSlug:x,aspectRatio:k}=r,{__unstableMarkNextChangeAsNotPersistent:C,replaceInnerBlocks:S,updateBlockAttributes:N,selectBlock:B}=(0,M1.useDispatch)(vo.store),{createSuccessNotice:D,createErrorNotice:A}=(0,M1.useDispatch)(xG.store),{getBlock:R,getSettings:j,innerBlockImages:z,blockWasJustInserted:E,multiGallerySelection:H}=(0,M1.useSelect)(Y=>{let{getBlockName:he,getMultiSelectedBlockClientIds:Fe,getSettings:Oe,getBlock:He,wasBlockJustInserted:rr}=Y(vo.store),cr=Fe();return{getBlock:He,getSettings:Oe,innerBlockImages:He(n)?.innerBlocks??_ge,blockWasJustInserted:rr(n,"inserter_menu"),multiGallerySelection:cr.length&&cr.every(Ar=>he(Ar)==="core/gallery")}},[n]),G=(0,Vo.useMemo)(()=>z?.map(Y=>({clientId:Y.clientId,id:Y.attributes.id,url:Y.attributes.url,attributes:Y.attributes,fromSavedContent:!!Y.originalContent})),[z]),F=fG(z),q=uG(G,F),K=p?.map(({name:Y,ratio:he})=>({label:Y,value:he})),te=m?.map(({name:Y,ratio:he})=>({label:Y,value:he})),X=[{label:(0,Te._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?te||[]:[],...K||[]];(0,Vo.useEffect)(()=>{q?.forEach(Y=>{C(),N(Y.clientId,{...J(Y.attributes),id:Y.id,align:void 0})})},[q]);let re=cG(F,i,j);function J(Y){let he=Y.id?F.find(({id:He})=>He===Y.id):null,Fe;Y.className&&Y.className!==""&&(Fe=Y.className);let Oe;return Y.linkTarget||Y.rel?Oe={linkTarget:Y.linkTarget,rel:Y.rel}:Oe=YB(b,r),{...rG(he,x),...QB(he,_,Y?.linkDestination),...Oe,className:Fe,sizeSlug:x,caption:Y.caption.length>0?Y.caption:he.caption?.raw,alt:Y.alt||he.alt_text,aspectRatio:k==="auto"?void 0:k}}function ne(Y){let he=Vo.Platform.isNative&&Y.id?F.find(({id:Oe})=>Oe===Y.id):null,Fe=he?he?.media_type:Y.type;return eN.some(Oe=>Fe?.indexOf(Oe)===0)||Y.blob}function oe(Y){let he=Object.prototype.toString.call(Y)==="[object FileList]",Fe=he?Array.from(Y).map($e=>$e.url?$e:{blob:(0,tN.createBlobURL)($e)}):Y;Fe.every(ne)||A((0,Te.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Oe=Fe.filter($e=>$e.url||ne($e)).map($e=>$e.url?$e:{blob:$e.blob||(0,tN.createBlobURL)($e)}),He=Oe.reduce(($e,To,ru)=>($e[To.id]=ru,$e),{}),rr=he?z:z.filter($e=>Oe.find(To=>To.id===$e.attributes.id)),Ar=Oe.filter($e=>!rr.find(To=>$e.id===To.attributes.id)).map($e=>(0,yG.createBlock)("core/image",{id:$e.id,blob:$e.blob,url:$e.url,caption:$e.caption,alt:$e.alt}));S(n,rr.concat(Ar).sort(($e,To)=>He[$e.attributes.id]-He[To.attributes.id])),Ar?.length>0&&B(Ar[0].clientId)}function le(Y){A(Y,{type:"snackbar"})}function ce(Y){t({linkTo:Y});let he={},Fe=[];R(n).innerBlocks.forEach(He=>{Fe.push(He.clientId);let rr=He.attributes.id?F.find(({id:cr})=>cr===He.attributes.id):null;he[He.clientId]=QB(rr,Y,!1,He.attributes,u)}),N(Fe,he,{uniqueByBlock:!0});let Oe=[...f].find(He=>He.value===Y);D((0,Te.sprintf)((0,Te.__)("All gallery image links updated to: %s"),Oe.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function ye(Y){t({columns:Y})}function Me(){t({imageCrop:!v})}function ie(){t({randomOrder:!y})}function Ve(Y){let he=Y?"_blank":void 0;t({linkTarget:he});let Fe={},Oe=[];R(n).innerBlocks.forEach(rr=>{Oe.push(rr.clientId),Fe[rr.clientId]=YB(he,rr.attributes)}),N(Oe,Fe,{uniqueByBlock:!0});let He=Y?(0,Te.__)("All gallery images updated to open in new tab"):(0,Te.__)("All gallery images updated to not open in new tab");D(He,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function Re(Y){t({sizeSlug:Y});let he={},Fe=[];R(n).innerBlocks.forEach(He=>{Fe.push(He.clientId);let rr=He.attributes.id?F.find(({id:cr})=>cr===He.attributes.id):null;he[He.clientId]=nG(rr,Y)}),N(Fe,he,{uniqueByBlock:!0});let Oe=re.find(He=>He.value===Y);D((0,Te.sprintf)((0,Te.__)("All gallery image sizes updated to: %s"),Oe?.label??Y),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function ae(Y){t({aspectRatio:Y});let he={},Fe=[];R(n).innerBlocks.forEach(He=>{Fe.push(He.clientId),he[He.clientId]={aspectRatio:Y==="auto"?void 0:Y}}),N(Fe,he,!0);let Oe=X.find(He=>He.value===Y);D((0,Te.sprintf)((0,Te.__)("All gallery images updated to aspect ratio: %s"),Oe?.label||Y),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Vo.useEffect)(()=>{_||(C(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||xs}))},[_]);let pe=!!G.length,Be=pe&&G.some(Y=>!!Y.id),de=G.some(Y=>Vo.Platform.isNative?Y.url?.indexOf("file:")===0:!Y.id&&Y.url?.indexOf("blob:")===0),lt=Vo.Platform.select({web:{addToGallery:!1,disableMediaButtons:de,value:{}},native:{addToGallery:Be,isAppender:pe,disableMediaButtons:pe&&!i||de,value:Be?G:{},autoOpenMediaUpload:!pe&&i&&E,onFocus:c}}),Ie=(0,qe.jsx)(vo.MediaPlaceholder,{handleUpload:!1,icon:tG,labels:{title:(0,Te.__)("Gallery"),instructions:bge},onSelect:oe,allowedTypes:eN,multiple:!0,onError:le,...lt}),st=(0,vo.useBlockProps)({className:w(a,"has-nested-images")}),Lt=Vo.Platform.isNative&&{marginHorizontal:0,marginVertical:0},Qe=(0,vo.useInnerBlocksProps)(st,{defaultBlock:xge,directInsert:!0,orientation:"horizontal",renderAppender:!1,...Lt}),gr=W();if(!pe)return(0,qe.jsxs)(bG.View,{...Qe,children:[Qe.children,Ie]});let je=_&&_!=="none";return(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsxs)(vo.InspectorControls,{children:[Vo.Platform.isWeb&&(0,qe.jsxs)(pt.__experimentalToolsPanel,{label:(0,Te.__)("Settings"),resetAll:()=>{t({columns:void 0,imageCrop:!0,randomOrder:!1}),ae("auto"),x!==E1&&Re(E1),b&&Ve(!1)},dropdownMenuProps:gr,children:[G.length>1&&(0,qe.jsx)(pt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Te.__)("Columns"),hasValue:()=>!!h&&h!==G.length,onDeselect:()=>ye(void 0),children:(0,qe.jsx)(pt.RangeControl,{label:(0,Te.__)("Columns"),value:h||qB(G.length),onChange:ye,min:1,max:Math.min(gG,G.length),required:!0,__next40pxDefaultSize:!0})}),re?.length>0&&(0,qe.jsx)(pt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Te.__)("Resolution"),hasValue:()=>x!==E1,onDeselect:()=>Re(E1),children:(0,qe.jsx)(pt.SelectControl,{label:(0,Te.__)("Resolution"),help:(0,Te.__)("Select the size of the source images."),value:x,options:re,onChange:Re,hideCancelButton:!0,size:"__unstable-large"})}),(0,qe.jsx)(pt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Te.__)("Crop images to fit"),hasValue:()=>!v,onDeselect:()=>t({imageCrop:!0}),children:(0,qe.jsx)(pt.ToggleControl,{label:(0,Te.__)("Crop images to fit"),checked:!!v,onChange:Me})}),(0,qe.jsx)(pt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Te.__)("Randomize order"),hasValue:()=>!!y,onDeselect:()=>t({randomOrder:!1}),children:(0,qe.jsx)(pt.ToggleControl,{label:(0,Te.__)("Randomize order"),checked:!!y,onChange:ie})}),je&&(0,qe.jsx)(pt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Te.__)("Open images in new tab"),hasValue:()=>!!b,onDeselect:()=>Ve(!1),children:(0,qe.jsx)(pt.ToggleControl,{label:(0,Te.__)("Open images in new tab"),checked:b==="_blank",onChange:Ve})}),X.length>1&&(0,qe.jsx)(pt.__experimentalToolsPanelItem,{hasValue:()=>!!k&&k!=="auto",label:(0,Te.__)("Aspect ratio"),onDeselect:()=>ae("auto"),isShownByDefault:!0,children:(0,qe.jsx)(pt.SelectControl,{__next40pxDefaultSize:!0,label:(0,Te.__)("Aspect ratio"),help:(0,Te.__)("Set a consistent aspect ratio for all images in the gallery."),value:k,options:X,onChange:ae})})]}),Vo.Platform.isNative&&(0,qe.jsxs)(pt.PanelBody,{title:(0,Te.__)("Settings"),children:[G.length>1&&(0,qe.jsx)(pt.RangeControl,{label:(0,Te.__)("Columns"),value:h||qB(G.length),onChange:ye,min:1,max:Math.min(gG,G.length),...yge,required:!0,__next40pxDefaultSize:!0}),re?.length>0&&(0,qe.jsx)(pt.SelectControl,{label:(0,Te.__)("Resolution"),help:(0,Te.__)("Select the size of the source images."),value:x,options:re,onChange:Re,hideCancelButton:!0,size:"__unstable-large"}),(0,qe.jsx)(pt.SelectControl,{label:(0,Te.__)("Link"),value:_,onChange:ce,options:f,hideCancelButton:!0,size:"__unstable-large"}),(0,qe.jsx)(pt.ToggleControl,{label:(0,Te.__)("Crop images to fit"),checked:!!v,onChange:Me}),(0,qe.jsx)(pt.ToggleControl,{label:(0,Te.__)("Randomize order"),checked:!!y,onChange:ie}),je&&(0,qe.jsx)(pt.ToggleControl,{label:(0,Te.__)("Open images in new tab"),checked:b==="_blank",onChange:Ve}),X.length>1&&(0,qe.jsx)(pt.SelectControl,{label:(0,Te.__)("Aspect Ratio"),help:(0,Te.__)("Set a consistent aspect ratio for all images in the gallery."),value:k,options:X,onChange:ae,hideCancelButton:!0,size:"__unstable-large"})]})]}),Vo.Platform.isWeb?(0,qe.jsx)(vo.BlockControls,{group:"block",children:(0,qe.jsx)(pt.ToolbarDropdownMenu,{icon:Fn,label:(0,Te.__)("Link"),children:({onClose:Y})=>(0,qe.jsx)(pt.MenuGroup,{children:f.map(he=>{let Fe=_===he.value;return(0,qe.jsx)(pt.MenuItem,{isSelected:Fe,className:w("components-dropdown-menu__menu-item",{"is-active":Fe}),iconPosition:"left",icon:he.icon,onClick:()=>{ce(he.value),Y()},role:"menuitemradio",info:he.infoText,children:he.label},he.value)})})})}):null,Vo.Platform.isWeb&&(0,qe.jsxs)(qe.Fragment,{children:[!H&&(0,qe.jsx)(vo.BlockControls,{group:"other",children:(0,qe.jsx)(vo.MediaReplaceFlow,{allowedTypes:eN,handleUpload:!1,onSelect:oe,name:(0,Te.__)("Add"),multiple:!0,mediaIds:G.filter(Y=>Y.id).map(Y=>Y.id),addToGallery:Be,variant:"toolbar"})}),(0,qe.jsx)(hG,{blockGap:r.style?.spacing?.blockGap,clientId:n})]}),(0,qe.jsx)(lG,{...e,isContentLocked:s,images:G,mediaPlaceholder:!pe||Vo.Platform.isNative?Ie:void 0,blockProps:Qe,insertBlocksAfter:l,multiGallerySelection:H})]})}var j5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption",role:"content"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1},aspectRatio:{type:"string",default:"auto"}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,radius:!0}},html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Bc=o(T(),1),U5=o(g(),1);function kG({attributes:e}){let{caption:t,columns:r,imageCrop:a}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":a}),i=Bc.useBlockProps.save({className:n}),l=Bc.useInnerBlocksProps.save(i);return(0,U5.jsxs)("figure",{...l,children:[l.children,!Bc.RichText.isEmpty(t)&&(0,U5.jsx)(Bc.RichText.Content,{tagName:"figcaption",className:w("blocks-gallery-caption",(0,Bc.__experimentalGetElementClassName)("caption")),value:t})]})}var Cs=o(U(),1),wG=o(zr(),1),rN=o(wc(),1);var wge=e=>e?e.split(",").map(t=>parseInt(t,10)):[];function Cge(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:a,alt:n})=>(0,Cs.createBlock)("core/image",{url:r,id:a?parseInt(a,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,rN.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",Cge);function Sge(e,t){let a=(Array.isArray(t)?t:[t]).find(n=>n.name==="core/gallery"&&n.innerBlocks.length>0&&!n.attributes.images?.length>0&&!e.name.includes("core/"));if(a){let n=a.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=n.map(({id:l})=>l);a.attributes.images=n,a.attributes.ids=i}return e}(0,rN.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",Sge);var Tge={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:r}=e[0];t=e.every(i=>i.align===t)?t:void 0,r=e.every(i=>i.sizeSlug===r)?r:void 0;let n=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,Cs.createBlock)("core/image",i)));return(0,Cs.createBlock)("core/gallery",{align:t,sizeSlug:r},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:a,size:n}}){let i=wge(e).map(c=>parseInt(c,10)),l=xs;return r==="post"?l=ks:r==="file"&&(l=_s),(0,Cs.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:a==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,Cs.createBlock)("core/image",{id:c,...n&&{sizeSlug:n}})))},isMatch({named:e}){return e.ids!==void 0}},{type:"files",priority:1,isMatch(e){return e.length!==1&&e.every(t=>t.type.indexOf("image/")===0)},transform(e){let t=e.map(r=>(0,Cs.createBlock)("core/image",{blob:(0,wG.createBlobURL)(r)}));return(0,Cs.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h}})=>(0,Cs.createBlock)("core/image",{align:e,url:r,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h})):(0,Cs.createBlock)("core/image",{align:e})}]},CG=Tge;var{name:SG}=j5,TG={icon:h0,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:CG,edit:_G,save:kG,deprecated:XU},Pge=()=>I({name:SG,metadata:j5,settings:TG});var sN={};$(sN,{init:()=>zge,metadata:()=>W5,name:()=>Z5,settings:()=>OG});var q5=o(P(),1);var ia=o(T(),1),Jn=o(g(),1),aN=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:a,...n}=e;return{...n,style:t}},Bge=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,Jn.jsx)(e,{...ia.useInnerBlocksProps.save(ia.useBlockProps.save())})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate:e=>{let{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){let{tagName:t}=e;return(0,Jn.jsx)(t,{...ia.useBlockProps.save(),children:(0,Jn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Jn.jsx)(ia.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:aN,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:a,customTextColor:n}=e,i=(0,ia.getColorClassName)("background-color",t),l=(0,ia.getColorClassName)("color",a),s=w(i,l,{"has-text-color":a||n,"has-background":t||r});return(0,Jn.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,Jn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Jn.jsx)(ia.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:aN,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:a,customTextColor:n}=e,i=(0,ia.getColorClassName)("background-color",t),l=(0,ia.getColorClassName)("color",a),s=w(i,{"has-text-color":a||n,"has-background":t||r});return(0,Jn.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,Jn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Jn.jsx)(ia.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:aN,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,a=(0,ia.getColorClassName)("background-color",t),n=w(a,{"has-background":t||r});return(0,Jn.jsx)("div",{className:n,style:{backgroundColor:a?void 0:r},children:(0,Jn.jsx)(ia.InnerBlocks.Content,{})})}}],PG=Bge;var G5=o(V(),1),ti=o(T(),1),LG=o(O(),1),MG=o(P(),1),RG=o(L(),1);var BG=o(V(),1),NG=o(T(),1),nN=o(P(),1),EG=o(U(),1),vn=o(M(),1),R1=o(O(),1),gn=o(g(),1),Nge=(e="group")=>({group:(0,gn.jsx)(vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,gn.jsx)(vn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,gn.jsx)(vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,gn.jsx)(vn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,gn.jsx)(vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,gn.jsx)(vn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,gn.jsx)(vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,gn.jsx)(vn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})})?.[e];function IG({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:a,backgroundColor:n,textColor:i,fontSize:l}=e,[s,c]=(0,R1.useState)(!r&&!n&&!l&&!i&&!a&&t!=="flex"&&t!=="grid");return(0,R1.useEffect)(()=>{(r||n||l||i||a||t==="flex")&&c(!1)},[n,l,i,a,t,r]),[s,c]}function Ege({name:e,onSelect:t}){let r=(0,BG.useSelect)(n=>n(EG.store).getBlockVariations(e,"block"),[e]),a=(0,NG.useBlockProps)({className:"wp-block-group__placeholder"});return(0,R1.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,gn.jsx)("div",{...a,children:(0,gn.jsx)(vn.Placeholder,{instructions:(0,nN.__)("Group blocks together. Select a layout:"),children:(0,gn.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,nN.__)("Block variations"),children:r.map(n=>(0,gn.jsx)("li",{children:(0,gn.jsx)(vn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Nge(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var DG=Ege;var ei=o(g(),1),{HTMLElementControl:Ige}=Z(ti.privateApis);function Dge({tagName:e,onSelectTagName:t,clientId:r}){return(0,ei.jsx)(ti.InspectorControls,{group:"advanced",children:(0,ei.jsx)(Ige,{tagName:e,onChange:t,clientId:r,options:[{label:(0,MG.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})}function Lge({attributes:e,name:t,setAttributes:r,clientId:a}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,G5.useSelect)(k=>{let{getBlock:C,getSettings:S}=k(ti.store),N=C(a);return{hasInnerBlocks:!!(N&&N.innerBlocks.length),themeSupportsLayout:S()?.supportsLayout}},[a]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:m="default"}=u,p=i||m==="flex"||m==="grid",d=(0,LG.useRef)(),f=(0,ti.useBlockProps)({ref:d}),[h,v]=IG({attributes:e,usedLayoutType:m,hasInnerBlocks:n}),y;h?y=!1:n||(y=ti.InnerBlocks.ButtonBlockAppender);let b=(0,ti.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:y}),{selectBlock:_}=(0,G5.useDispatch)(ti.store),x=k=>{r(k.attributes),_(a,-1),v(!1)};return(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(Dge,{tagName:l,onSelectTagName:k=>r({tagName:k}),clientId:a}),h&&(0,ei.jsxs)(RG.View,{children:[b.children,(0,ei.jsx)(DG,{name:t,onSelect:x})]}),p&&!h&&(0,ei.jsx)(l,{...b}),!p&&!h&&(0,ei.jsx)(l,{...f,children:(0,ei.jsx)("div",{...b})})]})}var AG=Lge;var W5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var $5=o(T(),1),zG=o(g(),1);function VG({attributes:{tagName:e}}){return(0,zG.jsx)(e,{...$5.useInnerBlocksProps.save($5.useBlockProps.save())})}var iN=o(U(),1),Rge={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((n,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(n)?l:n},void 0),a=e.map(n=>(0,iN.createBlock)(n.name,n.attributes,n.innerBlocks));return(0,iN.createBlock)("core/group",{align:r,layout:{type:"constrained"}},a)}}]},HG=Rge;var la=o(P(),1);var lN={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,la.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,la.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,la.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,la.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,la.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,la.__)("Six.")}}]},Age=[{name:"group",title:(0,la.__)("Group"),description:(0,la.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:qm},{name:"group-row",title:(0,la._x)("Row","single horizontal line"),description:(0,la.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:fT,example:lN},{name:"group-stack",title:(0,la.__)("Stack"),description:(0,la.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:BT,example:lN},{name:"group-grid",title:(0,la.__)("Grid"),description:(0,la.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:cl,example:lN}],FG=Age;var{name:Z5}=W5,OG={icon:qm,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,q5.__)("La Mancha"),textAlign:"center"}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,q5.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,q5.__)("Read more")}}],viewportWidth:600},transforms:HG,edit:AG,save:VG,deprecated:PG,variations:FG},zge=()=>I({name:Z5,metadata:W5,settings:OG});var dN={};$(dN,{init:()=>e0e,metadata:()=>J5,name:()=>tk,settings:()=>rk});var Fu=o(P(),1),Rf=o(U(),1);var za=o(T(),1);var Ss=o(g(),1),cN={className:!1,anchor:!0},K5={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},Lf=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...a}=e;return{...a,style:t}},jG=["left","right","center"],Mf=e=>{let{align:t,...r}=e;return jG.includes(t)?{...r,textAlign:t}:e},Vge={supports:cN,attributes:{...K5,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>On(Lf(Mf(e))),save({attributes:e}){let{align:t,level:r,content:a,textColor:n,customTextColor:i}=e,l="h"+r,s=(0,za.getColorClassName)("color",n),c=w({[s]:s});return(0,Ss.jsx)(za.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:a})}},Hge={attributes:{...K5,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>On(Lf(Mf(e))),save({attributes:e}){let{align:t,content:r,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,za.getColorClassName)("color",i),c=w({[s]:s,[`has-text-align-${t}`]:t});return(0,Ss.jsx)(za.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:r})},supports:cN},Fge={supports:cN,attributes:{...K5,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>On(Lf(Mf(e))),save({attributes:e}){let{align:t,content:r,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,za.getColorClassName)("color",i),c=w({[s]:s,"has-text-color":i||a,[`has-text-align-${t}`]:t});return(0,Ss.jsx)(za.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:r})}},Oge={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:K5,isEligible:({align:e})=>jG.includes(e),migrate:e=>On(Lf(Mf(e))),save({attributes:e}){let{align:t,content:r,level:a}=e,n="h"+a,i=w({[`has-text-align-${t}`]:t});return(0,Ss.jsx)(n,{...za.useBlockProps.save({className:i}),children:(0,Ss.jsx)(za.RichText.Content,{value:r})})}},jge={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:a}=e,n="h"+a,i=w({[`has-text-align-${t}`]:t});return(0,Ss.jsx)(n,{...za.useBlockProps.save({className:i}),children:(0,Ss.jsx)(za.RichText.Content,{value:r})})},migrate:e=>On(Lf(Mf(e)))},Uge={supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:a}=e,n="h"+a,i=w({[`has-text-align-${t}`]:t});return(0,Ss.jsx)(n,{...za.useBlockProps.save({className:i}),children:(0,Ss.jsx)(za.RichText.Content,{value:r})})},migrate:e=>On(Lf(Mf(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Gge=[Uge,jge,Oge,Fge,Hge,Vge],UG=Gge;var WG=o(P(),1),Y5=o(O(),1),X5=o(V(),1),Ep=o(T(),1);var GG=o(B1(),1),uN={},Wge=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},$ge=e=>(0,GG.default)(Wge(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Q5=(e,t)=>{let r=$ge(t);if(r==="")return null;delete uN[e];let a=r,n=0;for(;Object.values(uN).includes(a);)n+=1,a=r+"-"+n;return a},mN=(e,t)=>{uN[e]=t};var A1=o(g(),1);function qge(e){let{attributes:t,setAttributes:r,mergeBlocks:a,onReplace:n,clientId:i}=e;ku(e);let{style:l,content:s,level:c,placeholder:u,anchor:m}=t,p="h"+c,d=(0,Ep.useBlockProps)({style:l}),{canGenerateAnchors:f}=(0,X5.useSelect)(y=>{let{getGlobalBlockCount:b,getSettings:_}=y(Ep.store);return{canGenerateAnchors:!!_().generateAnchors||b("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,X5.useDispatch)(Ep.store);return(0,Y5.useEffect)(()=>{if(f)return!m&&s&&(h(),r({anchor:Q5(i,s)})),mN(i,m),()=>mN(i,null)},[m,s,i,f]),(0,A1.jsx)(A1.Fragment,{children:(0,A1.jsx)(Ep.RichText,{identifier:"content",tagName:p,value:s,onChange:y=>{let b={content:y};f&&(!m||!y||Q5(i,s)===m)&&(b.anchor=Q5(i,y)),r(b)},onMerge:a,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,WG.__)("Heading"),...Y5.Platform.isNative&&{deleteEnter:!0},...d})})}var $G=qge;var J5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var ek=o(T(),1),pN=o(g(),1);function qG({attributes:e}){let{content:t,level:r}=e,a="h"+r;return(0,pN.jsx)(a,{...ek.useBlockProps.save(),children:(0,pN.jsx)(ek.RichText.Content,{value:t})})}var Hu=o(U(),1);function ZG(e){return Number(e.substr(1))}var Kge={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:a,style:n}=t,i=n?.typography?.textAlign;return(0,Hu.createBlock)("core/heading",{...vc(t,"core/heading",({content:l})=>({content:l})),content:r,anchor:a,...i&&{style:{typography:{textAlign:i}}}})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let r={children:e,attributes:t?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){let t=(0,Hu.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=ZG(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,Hu.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,Hu.createBlock)("core/heading",{level:e,content:t})}})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,Hu.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:a}=t,n=a?.typography?.textAlign;return(0,Hu.createBlock)("core/paragraph",{...vc(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},KG=Kge;var z1=o(P(),1);var Qge=[C9,T9,B9,E9,D9,M9],Yge=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,z1.sprintf)((0,z1.__)("Heading %d"),e),description:(0,z1.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Qge[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],QG=Yge;var{fieldsKey:Xge,formKey:Jge}=Z(Rf.privateApis),{name:tk}=J5,rk={icon:A9,example:{attributes:{content:(0,Fu.__)("Code is Poetry"),level:2,textAlign:"center"}},__experimentalLabel(e,{context:t}){let{content:r,level:a}=e,n=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(n||i))return n||r;if(t==="accessibility")return i?(0,Fu.sprintf)((0,Fu.__)("Level %1$s. %2$s"),a,r):(0,Fu.sprintf)((0,Fu.__)("Level %s. Empty."),a)},transforms:KG,deprecated:UG,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:$G,save:qG,variations:QG};window.__experimentalContentOnlyInspectorFields&&(rk[Xge]=[{id:"content",label:(0,Fu.__)("Content"),type:"text",Edit:"rich-text"}],rk[Jge]={fields:["content"]});var e0e=()=>{let e=I({name:tk,metadata:J5,settings:rk}),t=(0,Rf.getBlockType)(tk)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,Rf.unregisterBlockVariation)(tk,`h${r}`)}),e};var fN={};$(fN,{init:()=>o0e,metadata:()=>ok,name:()=>aW,settings:()=>nW});var oW=o(P(),1);var ok={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string",role:"content"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var ik=o(T(),1),ak=o(P(),1),YG=o(V(),1),XG=o(Q(),1),nk=o(g(),1),r0e=e=>e.preventDefault();function JG({attributes:e,setAttributes:t,context:r}){let a=(0,YG.useSelect)(c=>c(XG.store).getEntityRecord("root","__unstableBase")?.home,[]),{textColor:n,backgroundColor:i,style:l}=r,s=(0,ik.useBlockProps)({className:w("wp-block-navigation-item",{"has-text-color":!!n||!!l?.color?.text,[`has-${n}-color`]:!!n,"has-background":!!i||!!l?.color?.background,[`has-${i}-background-color`]:!!i}),style:{color:l?.color?.text,backgroundColor:l?.color?.background}});return(0,nk.jsx)("div",{...s,children:(0,nk.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:a,onClick:r0e,children:(0,nk.jsx)(ik.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,ak.__)("Home"),onChange:c=>{t({label:c})},"aria-label":(0,ak.__)("Home link text"),placeholder:(0,ak.__)("Add home link"),withoutInteractiveFormatting:!0})})})}var eW=o(T(),1),tW=o(g(),1);function rW(){return(0,tW.jsx)(eW.InnerBlocks.Content,{})}var{name:aW}=ok,nW={icon:V9,edit:JG,save:rW,example:{attributes:{label:(0,oW._x)("Home Link","block example")}}},o0e=()=>I({name:aW,metadata:ok,settings:nW});var vN={};$(vN,{init:()=>l0e,metadata:()=>ck,name:()=>_W,settings:()=>kW});var xW=o(P(),1);var zf=o(P(),1),pW=o(O(),1),ju=o(T(),1),El=o(M(),1);var iW=o(O(),1),lk=o(T(),1),lW=o(M(),1),sW=o(V(),1),cW=o(P(),1),Ip=o(g(),1),a0e=`
html,body,:root {
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
min-height: auto !important;
}
`;function sk({content:e,isSelected:t}){let r=(0,sW.useSelect)(n=>n(lk.store).getSettings().styles,[]),a=(0,iW.useMemo)(()=>[a0e,...(0,lk.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,Ip.jsxs)(Ip.Fragment,{children:[(0,Ip.jsx)(lW.SandBox,{html:e,styles:a,title:(0,cW.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Ip.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var bo=o(P(),1),Dp=o(O(),1),mW=o(V(),1),xr=o(M(),1),Af=o(T(),1);function uW(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let r=t.body.querySelector('style[data-wp-block-html="css"]'),a=r?r.textContent.trim():"";r&&r.remove();let n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:a,js:i}}function hN({html:e="",css:t="",js:r=""}){let a=[];return t.trim()&&a.push(`<style data-wp-block-html="css">
${t}
</style>`),r.trim()&&a.push(`<script data-wp-block-html="js">
${r}
<\/script>`),e.trim()&&a.push(e),a.join(`
`)}var et=o(g(),1),{Tabs:Ou}=Z(xr.privateApis);function gN({isOpen:e,onRequestClose:t,content:r,setAttributes:a}){let{html:n,css:i,js:l}=uW(r),[s,c]=(0,Dp.useState)(n),[u,m]=(0,Dp.useState)(i),[p,d]=(0,Dp.useState)(l),[f,h]=(0,Dp.useState)(!1),[v,y]=(0,Dp.useState)(!1),[b,_]=(0,Dp.useState)(!1),{canUserUseUnfilteredHTML:x}=(0,mW.useSelect)(H=>({canUserUseUnfilteredHTML:H(Af.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),k=!x&&(i.trim()||l.trim());if(!e)return null;let C=H=>{c(H),h(!0)},S=H=>{m(H),h(!0)},N=H=>{d(H),h(!0)},B=()=>{a({content:hN({html:s,css:x?u:"",js:x?p:""})}),h(!1)},D=()=>{h(!1),t()},A=()=>{f?y(!0):t()},R=()=>{y(!1),t()},j=()=>{y(!1)},z=()=>{B(),t()},E=()=>{_(H=>!H)};return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(xr.Modal,{title:(0,bo.__)("Edit HTML"),onRequestClose:A,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!f,shouldCloseOnEsc:!f,isFullScreen:b,__experimentalHideHeader:!0,children:(0,et.jsx)(Ou,{orientation:"horizontal",defaultTabId:"html",children:(0,et.jsxs)(xr.__experimentalGrid,{columns:1,templateRows:"auto 1fr auto",gap:4,style:{height:"100%"},children:[(0,et.jsxs)(xr.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,et.jsx)("div",{children:(0,et.jsxs)(Ou.TabList,{children:[(0,et.jsx)(Ou.Tab,{tabId:"html",children:"HTML"}),x&&(0,et.jsx)(Ou.Tab,{tabId:"css",children:"CSS"}),x&&(0,et.jsx)(Ou.Tab,{tabId:"js",children:(0,bo.__)("JavaScript")})]})}),(0,et.jsx)("div",{children:(0,et.jsx)(xr.Button,{__next40pxDefaultSize:!0,icon:b?TT:$m,label:(0,bo.__)("Enable/disable fullscreen"),onClick:E,variant:"tertiary"})})]}),k&&(0,et.jsx)(xr.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,bo.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,et.jsxs)(xr.__experimentalHStack,{alignment:"stretch",justify:"flex-start",spacing:4,className:"block-library-html__modal-tabs",children:[(0,et.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,et.jsx)(Ou.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,et.jsx)(Af.PlainText,{value:s,onChange:C,placeholder:(0,bo.__)("Write HTML\u2026"),"aria-label":(0,bo.__)("HTML"),className:"block-library-html__modal-editor"})}),x&&(0,et.jsx)(Ou.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,et.jsx)(Af.PlainText,{value:u,onChange:S,placeholder:(0,bo.__)("Write CSS\u2026"),"aria-label":(0,bo.__)("CSS"),className:"block-library-html__modal-editor"})}),x&&(0,et.jsx)(Ou.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,et.jsx)(Af.PlainText,{value:p,onChange:N,placeholder:(0,bo.__)("Write JavaScript\u2026"),"aria-label":(0,bo.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,et.jsx)("div",{className:"block-library-html__preview",children:(0,et.jsx)(sk,{content:hN({html:s,css:u,js:p})})})]}),(0,et.jsxs)(xr.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,et.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:D,children:(0,bo.__)("Cancel")}),(0,et.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:z,children:(0,bo.__)("Update")})]})]})})}),v&&(0,et.jsxs)(xr.Modal,{title:(0,bo.__)("Unsaved changes"),onRequestClose:j,size:"medium",children:[(0,et.jsx)("p",{children:(0,bo.__)("You have unsaved changes. What would you like to do?")}),(0,et.jsxs)(xr.Flex,{direction:"row",justify:"flex-end",gap:2,children:[(0,et.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:R,children:(0,bo.__)("Discard unsaved changes")}),(0,et.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:j,children:(0,bo.__)("Continue editing")}),(0,et.jsx)(xr.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:z,children:(0,bo.__)("Update and close")})]})]})]})}var sa=o(g(),1);function dW({attributes:e,setAttributes:t,isSelected:r}){let[a,n]=(0,pW.useState)(!1),i=(0,ju.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,sa.jsxs)("div",{...i,children:[(0,sa.jsx)(ju.BlockControls,{children:(0,sa.jsx)(El.ToolbarGroup,{children:(0,sa.jsx)(El.ToolbarButton,{onClick:()=>n(!0),children:(0,zf.__)("Edit code")})})}),(0,sa.jsx)(ju.InspectorControls,{children:(0,sa.jsx)(El.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,sa.jsx)(El.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,zf.__)("Edit code")})})}),(0,sa.jsx)(sk,{content:e.content,isSelected:r}),(0,sa.jsx)(gN,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]}):(0,sa.jsxs)("div",{...i,children:[(0,sa.jsx)(El.Placeholder,{icon:(0,sa.jsx)(ju.BlockIcon,{icon:r0}),label:(0,zf.__)("Custom HTML"),instructions:(0,zf.__)("Add custom HTML code and preview how it looks."),children:(0,sa.jsx)(El.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>n(!0),children:(0,zf.__)("Edit HTML")})}),(0,sa.jsx)(gN,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]})}var ck={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw",role:"content"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-html-editor"};var fW=o(O(),1),hW=o(g(),1);function gW({attributes:e}){return(0,hW.jsx)(fW.RawHTML,{children:e.content})}var vW=o(U(),1),bW=o(op(),1),i0e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,vW.createBlock)("core/html",{content:(0,bW.create)({html:e}).text})}]},yW=i0e;var{name:_W}=ck,kW={icon:F9,example:{attributes:{content:"<marquee>"+(0,xW.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"}},edit:dW,save:gW,transforms:yW},l0e=()=>I({name:_W,metadata:ck,settings:kW});var wN={};$(wN,{init:()=>B0e,metadata:()=>pk,name:()=>GW,settings:()=>fk});var Lp=o(P(),1);var UW=o(U(),1);var ht=o(T(),1),Ee=o(g(),1),s0e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,width:l,height:s}=e,u=(0,Ee.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),m={};return l?m={width:l}:(n==="left"||n==="right")&&(m={maxWidth:"50%"}),(0,Ee.jsxs)("figure",{className:n?`align${n}`:null,style:m,children:[i?(0,Ee.jsx)("a",{href:i,children:u}):u,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{tagName:"figcaption",value:a})]})}},c0e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=(0,Ee.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Ee.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,Ee.jsx)("a",{href:i,children:u}):u,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{tagName:"figcaption",value:a})]})}},u0e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=w({[`align${n}`]:n,"is-resized":l||s}),m=(0,Ee.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Ee.jsxs)("figure",{className:u,children:[i?(0,Ee.jsx)("a",{href:i,children:m}):m,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{tagName:"figcaption",value:a})]})}},m0e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,v=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),y=(0,Ee.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),b=(0,Ee.jsxs)(Ee.Fragment,{children:[i?(0,Ee.jsx)("a",{className:s,href:i,target:p,rel:h,children:y}):y,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{tagName:"figcaption",value:a})]});return n==="left"||n==="right"||n==="center"?(0,Ee.jsx)("div",{...ht.useBlockProps.save(),children:(0,Ee.jsx)("figure",{className:v,children:b})}):(0,Ee.jsx)("figure",{...ht.useBlockProps.save({className:v}),children:b})}},p0e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,v=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),y=(0,Ee.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),b=(0,Ee.jsxs)(Ee.Fragment,{children:[i?(0,Ee.jsx)("a",{className:s,href:i,target:p,rel:h,children:y}):y,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{tagName:"figcaption",value:a})]});return(0,Ee.jsx)("figure",{...ht.useBlockProps.save({className:v}),children:b})}},d0e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{height:t,width:r}=e;return{...e,width:typeof r=="number"?`${r}px`:r,height:typeof t=="number"?`${t}px`:t}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:v}=e,y=l||void 0,b=(0,ht.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),x=w(b.className,{[`wp-image-${d}`]:!!d}),k=(0,Ee.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...b.style,aspectRatio:m,objectFit:p},width:c,height:u,title:v}),C=(0,Ee.jsxs)(Ee.Fragment,{children:[i?(0,Ee.jsx)("a",{className:s,href:i,target:f,rel:y,children:k}):k,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{className:(0,ht.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Ee.jsx)("figure",{...ht.useBlockProps.save({className:_}),children:C})}},f0e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){return{...r,width:`${e}px`,height:`${t}px`}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:v}=e,y=l||void 0,b=(0,ht.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),x=w(b.className,{[`wp-image-${d}`]:!!d}),k=(0,Ee.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...b.style,aspectRatio:m,objectFit:p,width:c,height:u},width:c,height:u,title:v}),C=(0,Ee.jsxs)(Ee.Fragment,{children:[i?(0,Ee.jsx)("a",{className:s,href:i,target:f,rel:y,children:k}):k,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{className:(0,ht.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Ee.jsx)("figure",{...ht.useBlockProps.save({className:_}),children:C})}},h0e={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){if(!r.behaviors?.lightbox)return r;let{behaviors:{lightbox:{enabled:a}}}=r,n={...r,lightbox:{enabled:a}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:v}=e,y=l||void 0,b=(0,ht.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),x=w(b.className,{[`wp-image-${d}`]:!!d}),k=(0,Ee.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...b.style,aspectRatio:m,objectFit:p,width:c,height:u},title:v}),C=(0,Ee.jsxs)(Ee.Fragment,{children:[i?(0,Ee.jsx)("a",{className:s,href:i,target:f,rel:y,children:k}):k,!ht.RichText.isEmpty(a)&&(0,Ee.jsx)(ht.RichText.Content,{className:(0,ht.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Ee.jsx)("figure",{...ht.useBlockProps.save({className:_}),children:C})}},wW=[h0e,f0e,d0e,p0e,m0e,u0e,c0e,s0e];var H1=o(zr(),1),V1=o(U(),1),AW=o(M(),1),Ff=o(V(),1),Va=o(T(),1),Uu=o(O(),1),Ts=o(P(),1);var zW=o(Nr(),1),VW=o(fe(),1);var BW=o(zr(),1),De=o(M(),1),Hf=o(fe(),1),Nc=o(V(),1),xt=o(T(),1),oo=o(O(),1),Pe=o(P(),1),yN=o(Br(),1),Vf=o(U(),1);var NW=o(Nr(),1),xN=o(Q(),1);var bn=o(M(),1),uk=o(T(),1),CW=o(P(),1),SW=o(V(),1),ri=o(g(),1);function bN({url:e,alt:t,filename:r,itemGroupProps:a,className:n}){return(0,ri.jsx)(bn.__experimentalItemGroup,{...a,as:"span",children:(0,ri.jsxs)(bn.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,ri.jsx)("img",{src:e,alt:t}),(0,ri.jsx)(bn.FlexItem,{as:"span",children:(0,ri.jsx)(bn.__experimentalTruncate,{numberOfLines:1,className:n,children:r})})]})})}function mk({mediaId:e,mediaUrl:t,alt:r="",filename:a,allowedTypes:n,onSelect:i,onSelectURL:l,onError:s,onReset:c,isUploading:u=!1,emptyLabel:m=(0,CW.__)("Add media")}){let{getSettings:p}=(0,SW.useSelect)(uk.store);return(0,ri.jsxs)("div",{className:"block-library-utils__media-control",children:[(0,ri.jsx)(uk.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:n,onSelect:i,onSelectURL:l,onError:s,name:t?(0,ri.jsx)(bN,{url:t,alt:r,filename:a}):m,renderToggle:f=>(0,ri.jsx)(bn.Button,{...f,__next40pxDefaultSize:!0,children:u?(0,ri.jsx)(bn.Spinner,{}):f.children}),onReset:c}),(0,ri.jsx)(bn.DropZone,{onFilesDrop:f=>{let{mediaUpload:h}=p();h&&h({allowedTypes:n,filesList:f,onFileChange([v]){i(v)},onError:s,multiple:!1})}})]})}var ee=o(g(),1),{DimensionsTool:TW,ResolutionTool:g0e}=Z(xt.privateApis),v0e=[{value:"cover",label:(0,Pe._x)("Cover","Scale option for dimensions control"),help:(0,Pe.__)("Image covers the space evenly.")},{value:"contain",label:(0,Pe._x)("Contain","Scale option for dimensions control"),help:(0,Pe.__)("Image is contained without distortion.")}],b0e={placement:"bottom-start"},PW=({href:e,children:t})=>e?(0,ee.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function y0e({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:a,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,oo.useState)(null),[c,u]=(0,oo.useState)(!1),[m,p]=(0,oo.useState)(!1);return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(De.ToolbarItem,{ref:s,children:d=>(0,ee.jsx)(De.DropdownMenu,{icon:e0,label:(0,Pe.__)("More"),toggleProps:{...d,description:(0,Pe.__)("Displays more controls.")},popoverProps:b0e,children:({onClose:f})=>(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(De.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Pe._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ee.jsx)(De.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Pe.__)("Title text")})]})})}),c&&(0,ee.jsx)(De.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ee.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ee.jsx)(De.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Pe.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,ee.jsx)(ee.Fragment,{children:a}):(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(De.ExternalLink,{href:(0,Pe.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Pe.__)("Describe the purpose of the image.")}),(0,ee.jsx)("br",{}),(0,Pe.__)("Leave empty if decorative.")]})})})}),m&&(0,ee.jsx)(De.Popover,{placement:"bottom-start",anchor:l,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,ee.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ee.jsx)(De.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",label:(0,Pe.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,ee.jsx)(ee.Fragment,{children:i}):(0,ee.jsxs)(ee.Fragment,{children:[(0,Pe.__)("Describe the role of this image on the page."),(0,ee.jsx)(De.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,Pe.__)("(Note: many devices and browsers do not display this text.)")})]})})})})]})}function EW({temporaryURL:e,attributes:t,setAttributes:r,isSingleSelected:a,insertBlocksAfter:n,onReplace:i,onSelectImage:l,onSelectURL:s,onUploadError:c,context:u,clientId:m,blockEditingMode:p,parentLayoutType:d,maxContentWidth:f}){let{url:h="",alt:v,align:y,id:b,href:_,rel:x,linkClass:k,linkDestination:C,title:S,width:N,height:B,aspectRatio:D,scale:A,focalPoint:R,linkTarget:j,sizeSlug:z,lightbox:E,metadata:H}=t,[G,F]=(0,oo.useState)(),[q,K]=(0,oo.useState)(null),[te,X]=(0,oo.useState)({}),[re,J]=(0,oo.useState)(0),ne=(0,Hf.useResizeObserver)(([ge])=>{if(!q){let[ur]=ge.borderBoxSize;X({width:ur.inlineSize,height:ur.blockSize})}J(ge.target.offsetTop)}),oe=(0,oo.useCallback)(()=>{J(G?.offsetTop??0)},[G]),le=(0,Hf.useMergeRefs)([F,ne]),{allowResize:ce=!0}=u,ye=(0,Nc.useSelect)(ge=>b&&a?ge(xN.store).getEntityRecord("postType","attachment",b,{context:"view"}):null,[b,a]),{canInsertCover:Me,imageEditing:ie,imageSizes:Ve,maxWidth:Re}=(0,Nc.useSelect)(ge=>{let{getBlockRootClientId:ur,canInsertBlockType:as,getSettings:en}=ge(xt.store),zg=ur(m),Lm=en();return{imageEditing:Lm.imageEditing,imageSizes:Lm.imageSizes,maxWidth:Lm.maxWidth,canInsertCover:as("core/cover",zg)}},[m]),{getBlock:ae,getSettings:pe}=(0,Nc.useSelect)(xt.store),{replaceBlocks:Be,toggleSelection:de}=(0,Nc.useDispatch)(xt.store),{createErrorNotice:lt,createSuccessNotice:Ie}=(0,Nc.useDispatch)(NW.store),{editEntityRecord:st}=(0,Nc.useDispatch)(xN.store),Lt=(0,Hf.useViewportMatch)("medium"),Qe=["wide","full"].includes(y),[{loadedNaturalWidth:gr,loadedNaturalHeight:je},Y]=(0,oo.useState)({}),[he,Fe]=(0,oo.useState)(!1),[Oe,He]=(0,oo.useState)(),[rr,cr]=(0,oo.useState)(!1),Ar=p==="default",$e=p==="contentOnly",To=ce&&Ar&&!Qe&&Lt,ru=Ve.filter(({slug:ge})=>ye?.media_details?.sizes?.[ge]?.source_url).map(({name:ge,slug:ur})=>({value:ur,label:ge}));(0,oo.useEffect)(()=>{if(!_N(b,h)||!a||!pe().mediaUpload){He();return}Oe||window.fetch(h.includes("?")?h:h+"?").then(ge=>ge.blob()).then(ge=>He(ge)).catch(()=>{})},[b,h,a,Oe,pe]);let{naturalWidth:ka,naturalHeight:Ja}=(0,oo.useMemo)(()=>({naturalWidth:G?.naturalWidth||gr||void 0,naturalHeight:G?.naturalHeight||je||void 0}),[gr,je,G?.complete]);function ou(){cr(!0);let ge=xu({attributes:{url:h}});ge!==void 0&&i(ge)}function wi(ge){cr(!1),Y({loadedNaturalWidth:ge.target?.naturalWidth,loadedNaturalHeight:ge.target?.naturalHeight})}function ol(ge){r(ge)}function mc(ge){ge&&!co?.enabled?r({lightbox:{enabled:!0}}):!ge&&co?.enabled?r({lightbox:{enabled:!1}}):r({lightbox:void 0})}function Md(){co?.enabled&&co?.allowEditing?r({lightbox:{enabled:!1}}):r({lightbox:void 0})}function au(ge){r({title:ge})}function Rd(ge){r({alt:ge})}let Ce=ge=>{G&&G.style.setProperty("object-position",D1(ge))};function yt(ge){let ur=ye?.media_details?.sizes?.[ge]?.source_url;if(!ur)return null;r({url:ur,sizeSlug:ge})}function Tr(){let{mediaUpload:ge}=pe();ge&&ge({filesList:[Oe],onFileChange([ur]){l(ur),!(0,BW.isBlobURL)(ur.url)&&(He(),Ie((0,Pe.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Pc,onError(ur){lt(ur,{type:"snackbar"})}})}(0,oo.useEffect)(()=>{a||Fe(!1)},[a]);let al=b&&ka&&Ja&&ie,os=a&&al&&!he&&!$e;function nl(){Be(m,(0,Vf.switchToBlockType)(ae(m),"core/cover"))}let pc=(0,De.__experimentalUseCustomUnits)({availableUnits:["px"]}),[co]=(0,xt.useSettings)("lightbox"),Ad=!!E&&E?.enabled!==co?.enabled||co?.allowEditing,g8=!!E?.enabled||!E&&!!co?.enabled,Lg=W(),Im=To&&(KB.includes(d)?(0,ee.jsx)(TW,{panelId:m,value:{aspectRatio:D},onChange:({aspectRatio:ge})=>{r({aspectRatio:ge,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,ee.jsx)(TW,{panelId:m,value:{width:N,height:B,scale:A,aspectRatio:D},onChange:({width:ge,height:ur,scale:as,aspectRatio:en})=>{r({width:!ge&&ur?"auto":ge,height:ur,scale:as,aspectRatio:en})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:v0e,unitsOptions:pc})),D2=()=>{r({lightbox:void 0}),yt(I1)},Mg=H?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:Rg=!1,lockHrefControls:L2=!1,lockAltControls:nu=!1,lockAltControlsMessage:Dm,lockTitleControls:iu=!1,lockTitleControlsMessage:M2,hideCaptionControls:Pr=!1}=(0,Nc.useSelect)(ge=>{if(!a)return{};let{url:ur,alt:as,title:en,caption:zg}=H?.bindings||{},Lm=!!u["pattern/overrides"],b8=(0,Vf.getBlockBindingsSource)(ur?.source),Vd=(0,Vf.getBlockBindingsSource)(as?.source),lu=(0,Vf.getBlockBindingsSource)(en?.source);return{lockUrlControls:!!ur&&!b8?.canUserEditValue?.({select:ge,context:u,args:ur?.args}),lockHrefControls:Lm||Mg,hideCaptionControls:!!zg,lockAltControls:!!as&&!Vd?.canUserEditValue?.({select:ge,context:u,args:as?.args}),lockAltControlsMessage:Vd?.label?(0,Pe.sprintf)((0,Pe.__)("Connected to %s"),Vd.label):(0,Pe.__)("Connected to dynamic data"),lockTitleControls:!!en&&!lu?.canUserEditValue?.({select:ge,context:u,args:en?.args}),lockTitleControlsMessage:lu?.label?(0,Pe.sprintf)((0,Pe.__)("Connected to %s"),lu.label):(0,Pe.__)("Connected to dynamic data")}},[Mg,u,a,H?.bindings]),zd=a&&!he&&!L2&&!Rg,Ag=a&&Me&&!$e,Ece=zd||os||Ag,EM=a&&!he&&!Rg&&(0,ee.jsx)(xt.BlockControls,{group:$e?"inline":"other",children:(0,ee.jsx)(xt.MediaReplaceFlow,{mediaId:b,mediaURL:h,allowedTypes:Pc,onSelect:l,onSelectURL:s,onError:c,name:h?(0,Pe.__)("Replace"):(0,Pe.__)("Add image"),onReset:()=>l(void 0),variant:"toolbar"})}),Ice=window?.__experimentalContentOnlyInspectorFields,IM=(0,ee.jsxs)(ee.Fragment,{children:[Ece&&(0,ee.jsxs)(xt.BlockControls,{group:"block",children:[zd&&(0,ee.jsx)(xt.__experimentalImageURLInputUI,{url:_||"",onChangeUrl:ol,linkDestination:C,mediaUrl:ye&&ye.source_url||h,mediaLink:ye&&ye.link,linkTarget:j,linkClass:k,rel:x,showLightboxSetting:Ad,lightboxEnabled:g8,onSetLightbox:mc,resetLightbox:Md}),os&&(0,ee.jsx)(De.ToolbarButton,{onClick:()=>Fe(!0),icon:n0,label:(0,Pe.__)("Crop")}),Ag&&(0,ee.jsx)(De.ToolbarButton,{icon:fS,label:(0,Pe.__)("Add text over image"),onClick:nl})]}),a&&Oe&&(0,ee.jsx)(xt.BlockControls,{children:(0,ee.jsx)(De.ToolbarGroup,{children:(0,ee.jsx)(De.ToolbarButton,{onClick:Tr,icon:fc,label:(0,Pe.__)("Upload to Media Library")})})}),$e&&(0,ee.jsx)(xt.BlockControls,{group:"block",children:(0,ee.jsx)(y0e,{attributes:t,setAttributes:r,lockAltControls:nu,lockAltControlsMessage:Dm,lockTitleControls:iu,lockTitleControlsMessage:M2})}),!Ice&&a&&(0,ee.jsx)(xt.InspectorControls,{group:"content",children:(0,ee.jsxs)(De.__experimentalToolsPanel,{label:(0,Pe.__)("Media"),resetAll:()=>l(void 0),dropdownMenuProps:Lg,children:[!Rg&&(0,ee.jsx)(De.__experimentalToolsPanelItem,{label:(0,Pe.__)("Image"),hasValue:()=>!!h,onDeselect:()=>l(void 0),isShownByDefault:!0,children:(0,ee.jsx)(mk,{mediaId:b,mediaUrl:h,alt:v,filename:ye?.media_details?.sizes?.full?.file||ye?.slug||(0,yN.getFilename)(h),allowedTypes:Pc,onSelect:l,onSelectURL:s,onError:c,onReset:()=>l(void 0),isUploading:!!e,emptyLabel:(0,Pe.__)("Add image")})}),(0,ee.jsx)(De.__experimentalToolsPanelItem,{label:(0,Pe.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>r({alt:void 0}),children:(0,ee.jsx)(De.TextareaControl,{label:(0,Pe.__)("Alternative text"),value:v||"",onChange:Rd,readOnly:nu,help:nu?(0,ee.jsx)(ee.Fragment,{children:Dm}):(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(De.ExternalLink,{href:(0,Pe.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Pe.__)("Describe the purpose of the image.")}),(0,ee.jsx)("br",{}),(0,Pe.__)("Leave empty if decorative.")]})})})]})}),(0,ee.jsxs)(xt.InspectorControls,{group:"dimensions",resetAllFilter:ge=>({...ge,aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}),children:[Im,h&&A&&(0,ee.jsx)(De.__experimentalToolsPanelItem,{label:(0,Pe.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!R,onDeselect:()=>r({focalPoint:void 0}),panelId:m,children:(0,ee.jsx)(De.FocalPointPicker,{label:(0,Pe.__)("Focal point"),url:h,value:R,onDragStart:Ce,onDrag:Ce,onChange:ge=>r({focalPoint:ge})})})]}),!!ru.length&&(0,ee.jsx)(xt.InspectorControls,{children:(0,ee.jsx)(De.__experimentalToolsPanel,{label:(0,Pe.__)("Settings"),resetAll:D2,dropdownMenuProps:Lg,children:(0,ee.jsx)(g0e,{value:z,defaultValue:I1,onChange:yt,options:ru})})}),(0,ee.jsx)(xt.InspectorControls,{group:"advanced",children:(0,ee.jsx)(De.TextControl,{__next40pxDefaultSize:!0,label:(0,Pe.__)("Title attribute"),value:S||"",onChange:au,readOnly:iu,help:iu?(0,ee.jsx)(ee.Fragment,{children:M2}):(0,ee.jsxs)(ee.Fragment,{children:[(0,Pe.__)("Describe the role of this image on the page."),(0,ee.jsx)(De.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,Pe.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),DM=(0,yN.getFilename)(h),R2;v?R2=v:DM?R2=(0,Pe.sprintf)((0,Pe.__)("This image has an empty alt attribute; its file name is %s"),DM):R2=(0,Pe.__)("This image has an empty alt attribute");let v8=(0,xt.__experimentalUseBorderProps)(t),Dce=(0,xt.__experimentalGetShadowClassesAndStyles)(t),Lce=t.className?.includes("is-style-rounded"),{postType:Mce,postId:LM,queryId:Rce}=u,Ace=Number.isFinite(Rce),A2=e&&rr?(0,ee.jsx)(De.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ee.jsx)(De.Spinner,{})}):(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("img",{src:e||h,alt:R2,onError:ou,onLoad:wi,ref:le,className:v8.className,width:ka,height:Ja,style:{aspectRatio:D,...q?{width:te.width+q.width,height:te.height+q.height}:{width:N,height:B},objectFit:A,objectPosition:R&&A?D1(R):void 0,...v8.style,...Dce.style}}),e&&(0,ee.jsx)(De.Spinner,{})]});al&&he?A2=(0,ee.jsx)(PW,{href:_,children:(0,ee.jsx)(xt.__experimentalImageEditor,{id:b,url:h,...te,naturalHeight:Ja,naturalWidth:ka,onSaveImage:ge=>r(ge),onFinishEditing:()=>{Fe(!1)},borderProps:Lce?void 0:v8})}):A2=(0,ee.jsx)(PW,{href:_,children:A2});let MM;if(To&&a&&!he&&!KB.includes(d)){let ge=D&&aG(D),ur=te.width/te.height,as=ka/Ja,en=ge||ur||as||1,zg=ka<Ja?ws:ws*en,Lm=Ja<ka?ws:ws/en,b8=Re*2.5,Vd=f||b8,lu=!1,z2=!1;y==="center"?(lu=!0,z2=!0):(0,Pe.isRTL)()?y==="left"?lu=!0:z2=!0:y==="right"?z2=!0:lu=!0,MM=(0,ee.jsx)(De.ResizableBox,{ref:oe,style:{position:"absolute",inset:`${re}px 0 0 0`},size:te,minWidth:zg,maxWidth:Vd,minHeight:Lm,maxHeight:Vd/en,lockAspectRatio:en,enable:{top:!1,right:lu,bottom:!0,left:z2},onResizeStart:()=>{de(!1)},onResize:(Vce,Hce,y8,V2)=>{K(V2)},onResizeStop:(Vce,Hce,y8,V2)=>{if(de(!0),K(null),X(RM=>({width:RM.width+V2.width,height:RM.height+V2.height})),f&&ka>=f&&Math.abs(y8.offsetWidth-f)<10){r({width:void 0,height:void 0});return}r({width:`${y8.offsetWidth}px`,height:"auto",aspectRatio:en===as?void 0:String(en)})},resizeRatio:y==="center"?2:1})}if(!h&&!e)return(0,ee.jsxs)(ee.Fragment,{children:[EM,IM]});let zce=()=>{st("postType",Mce,LM,{featured_media:b}),Ie((0,Pe.__)("Post featured image updated."),{type:"snackbar"})};return(0,ee.jsxs)(ee.Fragment,{children:[EM,IM,(0,ee.jsx)(xt.BlockSettingsMenuControls,{children:({selectedClientIds:ge})=>ge.length===1&&!Ace&&LM&&b&&m===ge[0]&&(0,ee.jsx)(De.MenuItem,{onClick:zce,children:(0,Pe.__)("Set as featured image")})}),A2,MM,(0,ee.jsx)(nn,{attributes:t,setAttributes:r,isSelected:a,insertBlocksAfter:n,label:(0,Pe.__)("Image caption text"),showToolbarButton:a&&(Ar||$e)&&!Pr})]})}var IW=o(O(),1),DW=o(fe(),1),LW=o(g(),1);function MW(){let[e,{width:t}]=(0,DW.useResizeObserver)(),r=(0,IW.useRef)();return[(0,LW.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:r,children:e}),t]}var Il=o(g(),1),x0e=(e,t)=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([a])=>["alt","id","link","caption"].includes(a)));return r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,r},_N=(e,t)=>t&&!e&&!(0,H1.isBlobURL)(t);function RW(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function _0e({attributes:e,setAttributes:t,isSelected:r,className:a,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:m,id:p,width:d,height:f,sizeSlug:h,aspectRatio:v,scale:y,align:b,metadata:_}=e,[x,k]=(0,Uu.useState)(e.blob),C=(0,Uu.useRef)(),S=c?.type||c?.default?.type,N=!S||S!=="flex"&&S!=="grid",[B,D]=MW(),[A,{width:R}]=(0,VW.useResizeObserver)(),j=R&&R<160,z=(0,Uu.useRef)();(0,Uu.useEffect)(()=>{z.current=m},[m]);let{__unstableMarkNextChangeAsNotPersistent:E,replaceBlock:H}=(0,Ff.useDispatch)(Va.store);(0,Uu.useEffect)(()=>{["wide","full"].includes(b)&&(E(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))},[E,b,t]);let{getSettings:G,getBlockRootClientId:F,getBlockName:q,canInsertBlockType:K}=(0,Ff.useSelect)(Va.store),te=(0,Va.useBlockEditingMode)(),{createErrorNotice:X}=(0,Ff.useDispatch)(zW.store);function re(de){X(de,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function J(de){let lt=C.current?.ownerDocument.defaultView;if(de.every(Ie=>Ie instanceof lt.File)){let Ie=de,st=F(s);Ie.some(Qe=>!XB(Qe))&&X((0,Ts.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Lt=Ie.filter(Qe=>XB(Qe)).map(Qe=>(0,V1.createBlock)("core/image",{blob:(0,H1.createBlobURL)(Qe)}));if(q(st)==="core/gallery")H(s,Lt);else if(K("core/gallery",st)){let Qe=(0,V1.createBlock)("core/gallery",{},Lt);H(s,Qe)}}}function ne(de){if(Array.isArray(de)){J(de);return}if(!de||!de.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),k();return}if((0,H1.isBlobURL)(de.url)){k(de.url);return}let{imageDefaultSize:lt}=G(),Ie=I1;h&&RW(de,h)?Ie=h:RW(de,lt)&&(Ie=lt);let st=x0e(de,Ie);if(typeof st.caption=="string"&&st.caption.includes(`
`)&&(st.caption=st.caption.replace(/\n/g,"<br>")),z.current&&!st.caption){let{caption:je,...Y}=st;st=Y}let Lt;(!de.id||de.id!==p)&&(Lt={sizeSlug:Ie});let Qe=e.linkDestination;if(!Qe)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Bp){case"file":case If:Qe=If;break;case"post":case Df:Qe=Df;break;case ZB:Qe=ZB;break;case Bp:Qe=Bp;break}let gr;switch(Qe){case If:gr=de.url;break;case Df:gr=de.link;break}st.href=gr,t({blob:void 0,...st,...Lt,linkDestination:Qe}),k()}function oe(de){de!==u&&(t({blob:void 0,url:de,id:void 0,sizeSlug:G().imageDefaultSize}),k())}fu({url:x,allowedTypes:Pc,onChange:ne,onError:re});let ce=_N(p,u)?u:void 0,ye=!!u&&(0,Il.jsx)("img",{alt:(0,Ts.__)("Edit image"),title:(0,Ts.__)("Edit image"),className:"edit-image-preview",src:u}),Me=(0,Va.__experimentalUseBorderProps)(e),ie=(0,Va.__experimentalGetShadowClassesAndStyles)(e),Ve=w(a,{"is-transient":!!x,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!Me.className||Me.style&&Object.keys(Me.style).length>0}),Re=(0,Va.useBlockProps)({ref:C,className:Ve}),{lockUrlControls:ae=!1,lockUrlControlsMessage:pe}=(0,Ff.useSelect)(de=>{if(!r)return{};let lt=(0,V1.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!lt?.canUserEditValue?.({select:de,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:lt?.label?(0,Ts.sprintf)((0,Ts.__)("Connected to %s"),lt.label):(0,Ts.__)("Connected to dynamic data")}},[l,r,_?.bindings?.url]);return(0,Il.jsxs)(Il.Fragment,{children:[(0,Il.jsxs)("figure",{...Re,children:[(0,Il.jsx)(EW,{temporaryURL:x,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:ne,onSelectURL:oe,onUploadError:re,context:l,clientId:s,blockEditingMode:te,parentLayoutType:S,maxContentWidth:D}),(0,Il.jsx)(Va.MediaPlaceholder,{icon:(0,Il.jsx)(Va.BlockIcon,{icon:bu}),onSelect:ne,onSelectURL:oe,onError:re,placeholder:de=>(0,Il.jsxs)(AW.Placeholder,{className:w("block-editor-media-placeholder",{[Me.className]:!!Me.className&&!r}),icon:!j&&(ae?wS:bu),withIllustration:!r||j,label:!j&&(0,Ts.__)("Image"),instructions:!ae&&!j&&(0,Ts.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&f)&&v?v:void 0,width:f&&v?"100%":d,height:d&&v?"100%":f,objectFit:y,...Me.style,...ie.style},children:[ae&&!j&&pe,!ae&&!j&&de,A]}),allowedTypes:Pc,handleUpload:de=>de.length===1,value:{id:p,src:ce},mediaPreview:ye,disableMediaButtons:x||u})]}),r&&N&&B]})}var HW=_0e;var pk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","postId","postType","queryId"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},focalPoint:{type:"object"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"};var Dl=o(T(),1);var Ec=o(g(),1);function FW({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,focalPoint:d,id:f,linkTarget:h,sizeSlug:v,title:y,metadata:{bindings:b={}}={}}=e,_=l||void 0,x=(0,Dl.__experimentalGetBorderClassesAndStyles)(e),k=(0,Dl.__experimentalGetShadowClassesAndStyles)(e),C=w({alignnone:n==="none",[`size-${v}`]:v,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),S=w(x.className,{[`wp-image-${f}`]:!!f}),N=(0,Ec.jsx)("img",{src:t,alt:r,className:S||void 0,style:{...x.style,...k.style,aspectRatio:m,objectFit:p,objectPosition:d&&p?D1(d):void 0,width:c,height:u},title:y}),B=!Dl.RichText.isEmpty(a)||b.caption||b?.__default?.source==="core/pattern-overrides",D=(0,Ec.jsxs)(Ec.Fragment,{children:[i?(0,Ec.jsx)("a",{className:s,href:i,target:h,rel:_,children:N}):N,B&&(0,Ec.jsx)(Dl.RichText.Content,{className:(0,Dl.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Ec.jsx)("figure",{...Dl.useBlockProps.save({className:C}),children:D})}var dk=o(zr(),1),F1=o(U(),1);function w0e(e,{shortcode:t}){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=t.content;let a=r.querySelector("img");for(;a&&a.parentNode&&a.parentNode!==r;)a=a.parentNode;return a&&a.parentNode.removeChild(a),r.innerHTML.trim()}function kN(e,t){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=e;let{firstElementChild:a}=r;if(a&&a.nodeName==="A")return a.getAttribute(t)||void 0}var OW={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},C0e=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...OW,a:{attributes:["href","rel","target"],classes:["*"],children:OW},figcaption:{children:e}}}}),S0e={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:C0e,transform:e=>{let t=e.className+" "+e.querySelector("img").className,r=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),a=e.id===""?void 0:e.id,n=r?r[1]:void 0,i=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=i?Number(i[1]):void 0,s=e.querySelector("a"),c=s&&s.href?"custom":void 0,u=s&&s.href?s.href:void 0,m=s&&s.rel?s.rel:void 0,p=s&&s.className?s.className:void 0,d=(0,F1.getBlockAttributes)("core/image",e.outerHTML,{align:n,id:l,linkDestination:c,href:u,rel:m,linkClass:p,anchor:a});return(0,dk.isBlobURL)(d.url)&&(d.blob=d.url,delete d.url),(0,F1.createBlock)("core/image",d)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,F1.createBlock)("core/image",{blob:(0,dk.createBlobURL)(r)}))}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:w0e},href:{shortcode:(e,{shortcode:t})=>kN(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>kN(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>kN(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]},jW=S0e;var{fieldsKey:T0e,formKey:P0e}=Z(UW.privateApis),{name:GW}=pk,fk={icon:bu,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Lp.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if(t==="list-view"&&r)return r;if(t==="accessibility"){let{caption:a,alt:n,url:i}=e;return i?n?n+(a?". "+a:""):a||"":(0,Lp.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:jW,edit:HW,save:FW,deprecated:wW};window.__experimentalContentOnlyInspectorFields&&(fk[T0e]=[{id:"image",label:(0,Lp.__)("Image"),type:"media",Edit:{control:"media",allowedTypes:["image"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption}),setValue:({value:e})=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})},{id:"link",label:(0,Lp.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget})},{id:"caption",label:(0,Lp.__)("Caption"),type:"text",Edit:"rich-text"},{id:"alt",label:(0,Lp.__)("Alt text"),type:"text"}],fk[P0e]={fields:["image","link","caption","alt"]});var B0e=()=>I({name:GW,metadata:pk,settings:fk});var CN={};$(CN,{init:()=>L0e,metadata:()=>hk,name:()=>KW,settings:()=>QW});var hk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayContent:{type:"string",default:"excerpt",enum:["none","excerpt","full"]}},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-latest-comments"};var gk=o(T(),1),ua=o(M(),1),ca=o(P(),1),WW=o(su(),1),$W=o(fe(),1);var Fr=o(g(),1),E0e=1,I0e=100;function qW({attributes:e,setAttributes:t,name:r}){let{commentsToShow:a,displayAvatar:n,displayDate:i,displayContent:l}=e,s=W(),{content:c,status:u,error:m}=(0,WW.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,$W.useDisabled)(),d=(0,gk.useBlockProps)({ref:p});return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(gk.InspectorControls,{children:(0,Fr.jsxs)(ua.__experimentalToolsPanel,{label:(0,ca.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,Fr.jsx)(ua.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,ca.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,Fr.jsx)(ua.ToggleControl,{label:(0,ca.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,Fr.jsx)(ua.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,ca.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,Fr.jsx)(ua.ToggleControl,{label:(0,ca.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,Fr.jsx)(ua.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,ca.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,Fr.jsx)(ua.SelectControl,{__next40pxDefaultSize:!0,label:(0,ca.__)("Display content"),value:l,options:[{label:(0,ca.__)("No content"),value:"none"},{label:(0,ca.__)("Excerpt"),value:"excerpt"},{label:(0,ca.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,Fr.jsx)(ua.__experimentalToolsPanelItem,{hasValue:()=>a!==5,label:(0,ca.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,Fr.jsx)(ua.RangeControl,{__next40pxDefaultSize:!0,label:(0,ca.__)("Number of comments"),value:a,onChange:f=>t({commentsToShow:f}),min:E0e,max:I0e,required:!0})})]})}),u==="loading"&&(0,Fr.jsx)("div",{...d,children:(0,Fr.jsx)(ua.Spinner,{})}),u==="error"&&(0,Fr.jsx)("div",{...d,children:(0,Fr.jsx)("p",{children:(0,ca.sprintf)((0,ca.__)("Error: %s"),m)})}),u==="success"&&(0,Fr.jsx)(on,{wrapperProps:d,html:c})]})}var D0e={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}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},ZW=[D0e];var{name:KW}=hk,QW={icon:a0,example:{},edit:qW,deprecated:ZW},L0e=()=>I({name:KW,metadata:hk,settings:QW});var BN={};$(BN,{init:()=>j0e,metadata:()=>Of,name:()=>o$,settings:()=>a$});var Of={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{anchor:!0,align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var{attributes:R0e}=Of,YW=[{attributes:{...R0e,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var We=o(M(),1),Ae=o(P(),1),jf=o(R_(),1),Ps=o(T(),1),O1=o(V(),1);var TN=o(Q(),1),e$=o(Nr(),1),t$=o(fe(),1),r$=o(O(),1);var XW=10,JW=100,SN=6,vk=55;var be=o(g(),1),A0e={per_page:-1,_fields:"id,name",context:"view"},z0e={per_page:-1,has_published_posts:["post"],context:"view"},V0e=[{value:"none",icon:s7,label:(0,Ae.__)("None")},{value:"left",icon:BS,label:(0,Ae.__)("Left")},{value:"center",icon:TS,label:(0,Ae.__)("Center")},{value:"right",icon:ES,label:(0,Ae.__)("Right")}];function H0e(e,t){let r=e._embedded?.["wp:featuredmedia"]?.["0"];return{url:r?.media_details?.sizes?.[t]?.source_url??r?.source_url,alt:r?.alt_text}}function F0e(e){return e._embedded?.author?.[0]}function O0e({attributes:e,setAttributes:t,postCount:r}){let{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:v,featuredImageAlign:y,featuredImageSizeSlug:b,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{imageSizes:C,defaultImageWidth:S,defaultImageHeight:N,categoriesList:B,authorList:D}=(0,O1.useSelect)(E=>{let{getEntityRecords:H,getUsers:G}=E(TN.store),F=E(Ps.store).getSettings();return{defaultImageWidth:F.imageDimensions?.[b]?.width??0,defaultImageHeight:F.imageDimensions?.[b]?.height??0,imageSizes:F.imageSizes,categoriesList:H("taxonomy","category",A0e),authorList:G(z0e)}},[b]),A=W(),R=C.filter(({slug:E})=>E!=="full").map(({name:E,slug:H})=>({value:H,label:E})),j=B?.reduce((E,H)=>({...E,[H.name]:H}),{})??{},z=E=>{if(E.some(F=>typeof F=="string"&&!j[F]))return;let G=E.map(F=>typeof F=="string"?j[F]:F);if(G.includes(null))return!1;t({categories:G})};return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsxs)(We.__experimentalToolsPanel,{label:(0,Ae.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:vk}),dropdownMenuProps:A,children:[(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Ae.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,be.jsx)(We.ToggleControl,{label:(0,Ae.__)("Display post content"),checked:m,onChange:E=>t({displayPostContent:E})})}),m&&(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>u!=="excerpt",label:(0,Ae.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,be.jsx)(We.RadioControl,{label:(0,Ae.__)("Content length"),selected:u,options:[{label:(0,Ae.__)("Excerpt"),value:"excerpt"},{label:(0,Ae.__)("Full post"),value:"full_post"}],onChange:E=>t({displayPostContentRadio:E})})}),m&&u==="excerpt"&&(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>v!==vk,label:(0,Ae.__)("Max number of words"),onDeselect:()=>t({excerptLength:vk}),isShownByDefault:!0,children:(0,be.jsx)(We.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ae.__)("Max number of words"),value:v,onChange:E=>t({excerptLength:E}),min:XW,max:JW})})]}),(0,be.jsxs)(We.__experimentalToolsPanel,{label:(0,Ae.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:A,children:[(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Ae.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,be.jsx)(We.ToggleControl,{label:(0,Ae.__)("Display author name"),checked:d,onChange:E=>t({displayAuthor:E})})}),(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ae.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,be.jsx)(We.ToggleControl,{label:(0,Ae.__)("Display post date"),checked:p,onChange:E=>t({displayPostDate:E})})})]}),(0,be.jsxs)(We.__experimentalToolsPanel,{label:(0,Ae.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:A,children:[(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Ae.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,be.jsx)(We.ToggleControl,{label:(0,Ae.__)("Display featured image"),checked:c,onChange:E=>t({displayFeaturedImage:E})})}),c&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>b!=="thumbnail"||_!==null||x!==null,label:(0,Ae.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,be.jsx)(Ps.__experimentalImageSizeControl,{onChange:E=>{let H={};E.hasOwnProperty("width")&&(H.featuredImageSizeWidth=E.width),E.hasOwnProperty("height")&&(H.featuredImageSizeHeight=E.height),t(H)},slug:b,width:_,height:x,imageWidth:S,imageHeight:N,imageSizeOptions:R,imageSizeHelp:(0,Ae.__)("Select the size of the source image."),onChangeImage:E=>t({featuredImageSizeSlug:E,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,Ae.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,be.jsx)(We.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__next40pxDefaultSize:!0,label:(0,Ae.__)("Image alignment"),value:y||"none",onChange:E=>t({featuredImageAlign:E!=="none"?E:void 0}),children:V0e.map(({value:E,icon:H,label:G})=>(0,be.jsx)(We.__experimentalToggleGroupControlOptionIcon,{value:E,icon:H,label:G},E))})}),(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,Ae.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,be.jsx)(We.ToggleControl,{label:(0,Ae.__)("Add link to featured image"),checked:k,onChange:E=>t({addLinkToFeaturedImage:E})})})]})]}),(0,be.jsxs)(We.__experimentalToolsPanel,{label:(0,Ae.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:A,children:[(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>n!=="desc"||i!=="date"||a!==5||l?.length>0||!!s,label:(0,Ae.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,be.jsx)(We.QueryControls,{order:n,orderBy:i,numberOfItems:a,onOrderChange:E=>t({order:E}),onOrderByChange:E=>t({orderBy:E}),onNumberOfItemsChange:E=>t({postsToShow:E}),categorySuggestions:j,onCategoryChange:z,selectedCategories:l,onAuthorChange:E=>t({selectedAuthor:E!==""?Number(E):void 0}),authorList:D??[],selectedAuthorId:s})}),f==="grid"&&(0,be.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>h!==3,label:(0,Ae.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,be.jsx)(We.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ae.__)("Columns"),value:h,onChange:E=>t({columns:E}),min:2,max:r?Math.min(SN,r):SN,required:!0})})]})]})}function PN({attributes:e,setAttributes:t}){let r=(0,t$.useInstanceId)(PN),{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:v,featuredImageAlign:y,featuredImageSizeSlug:b,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{latestPosts:C}=(0,O1.useSelect)(E=>{let{getEntityRecords:H}=E(TN.store),G=l&&l.length>0?l.map(q=>q.id):[],F=Object.fromEntries(Object.entries({categories:G,author:s,order:n,orderby:i,per_page:a,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,q])=>typeof q<"u"));return{latestPosts:H("postType","post",F)}},[a,n,i,l,s]),{createWarningNotice:S}=(0,O1.useDispatch)(e$.store),N=E=>{E.preventDefault(),S((0,Ae.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${r}`,type:"snackbar"})},B=!!C?.length,D=(0,be.jsx)(Ps.InspectorControls,{children:(0,be.jsx)(O0e,{attributes:e,setAttributes:t,postCount:C?.length??0})}),A=(0,Ps.useBlockProps)({className:w({"wp-block-latest-posts__list":!0,"is-grid":f==="grid","has-dates":p,"has-author":d,[`columns-${h}`]:f==="grid"})});if(!B)return(0,be.jsxs)("div",{...A,children:[D,(0,be.jsx)(We.Placeholder,{icon:w0,label:(0,Ae.__)("Latest Posts"),children:Array.isArray(C)?(0,Ae.__)("No posts found."):(0,be.jsx)(We.Spinner,{})})]});let R=C.length>a?C.slice(0,a):C,j=[{icon:ul,title:(0,Ae._x)("List view","Latest posts block display setting"),onClick:()=>t({postLayout:"list"}),isActive:f==="list"},{icon:cl,title:(0,Ae._x)("Grid view","Latest posts block display setting"),onClick:()=>t({postLayout:"grid"}),isActive:f==="grid"}],z=(0,jf.getSettings)().formats.date;return(0,be.jsxs)(be.Fragment,{children:[D,(0,be.jsx)(Ps.BlockControls,{children:(0,be.jsx)(We.ToolbarGroup,{controls:j})}),(0,be.jsx)("ul",{...A,children:R.map(E=>{let H=E.title.rendered.trim(),G=E.excerpt.rendered,F=F0e(E),q=document.createElement("div");q.innerHTML=G,G=q.textContent||q.innerText||"";let{url:K,alt:te}=H0e(E,b),X=w({"wp-block-latest-posts__featured-image":!0,[`align${y}`]:!!y}),re=c&&K,J=re&&(0,be.jsx)("img",{src:K,alt:te,style:{maxWidth:_,maxHeight:x}}),oe=v<G.trim().split(" ").length&&E.excerpt.raw===""?(0,be.jsxs)(be.Fragment,{children:[G.trim().split(" ",v).join(" "),(0,r$.createInterpolateElement)((0,Ae.sprintf)((0,Ae.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),H||(0,Ae.__)("(no title)")),{a:(0,be.jsx)("a",{className:"wp-block-latest-posts__read-more",href:E.link,rel:"noopener noreferrer",onClick:N}),span:(0,be.jsx)("span",{className:"screen-reader-text"})})]}):G;return(0,be.jsxs)("li",{children:[re&&(0,be.jsx)("div",{className:X,children:k?(0,be.jsx)("a",{href:E.link,onClick:N,children:J}):J}),(0,be.jsx)("a",{className:"wp-block-latest-posts__post-title",href:E.link,dangerouslySetInnerHTML:H?{__html:H}:void 0,onClick:N,children:H?null:(0,Ae.__)("(no title)")}),d&&F&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Ae.sprintf)((0,Ae.__)("by %s"),F.name)}),p&&E.date_gmt&&(0,be.jsx)("time",{dateTime:(0,jf.format)("c",E.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,jf.dateI18n)(z,E.date_gmt)}),m&&u==="excerpt"&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:oe}),m&&u==="full_post"&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:E.content.raw.trim()}})]},E.id)})})]})}var{name:o$}=Of,a$={icon:B0,example:{},edit:PN,deprecated:YW},j0e=()=>I({name:o$,metadata:Of,settings:a$});var DN={};$(DN,{init:()=>r1e,metadata:()=>_k,name:()=>_$,settings:()=>k$});var Wf=o(P(),1);var Ll=o(T(),1);var Uf=o(U(),1),bk={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function NN(e){let t=e.getAttribute("type"),r={ordered:e.tagName==="OL",anchor:e.id?e.id:void 0,start:e.getAttribute("start")?parseInt(e.getAttribute("start"),10):void 0,reversed:e.hasAttribute("reversed")?!0:void 0,type:t&&bk[t]?bk[t]:void 0},a=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,Uf.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let m={content:u.join("").trim()},p=[NN(l)];return(0,Uf.createBlock)("core/list-item",m,p)});return(0,Uf.createBlock)("core/list",r,a)}function yk(e){let{values:t,start:r,reversed:a,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),a&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,Uf.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function n$(e){let{type:t}=e;return t&&bk[t]?{...e,type:bk[t]}:e}var Ic=o(g(),1),U0e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:a,reversed:n,start:i}=e;return(0,Ic.jsx)(t?"ol":"ul",{...Ll.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,Ic.jsx)(Ll.RichText.Content,{value:r,multiline:"li"})})},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},G0e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:a,reversed:n,start:i}=e;return(0,Ic.jsx)(t?"ol":"ul",{...Ll.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,Ic.jsx)(Ll.RichText.Content,{value:r,multiline:"li"})})},migrate:yk},W0e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible({type:e}){return!!e},save({attributes:e}){let{ordered:t,type:r,reversed:a,start:n}=e;return(0,Ic.jsx)(t?"ol":"ul",{...Ll.useBlockProps.save({type:r,reversed:a,start:n}),children:(0,Ic.jsx)(Ll.InnerBlocks.Content,{})})},migrate:n$},$0e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,type:r,reversed:a,start:n}=e;return(0,Ic.jsx)(t?"ol":"ul",{...Ll.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Ic.jsx)(Ll.InnerBlocks.Content,{})})}},i$=[$0e,W0e,G0e,U0e];var Rl=o(T(),1),xk=o(M(),1),Gu=o(V(),1),Ml=o(P(),1);var h$=o(U(),1),Mp=o(O(),1),g$=o(tf(),1);var Ho=o(P(),1),s$=o(T(),1),Fo=o(M(),1),c$=o(O(),1);var yn=o(g(),1),l$=[{label:(0,Ho.__)("Numbers"),value:"decimal"},{label:(0,Ho.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Ho.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Ho.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Ho.__)("Lowercase Roman numerals"),value:"lower-roman"}],q0e=({setAttributes:e,reversed:t,start:r,type:a})=>{let n=W();return(0,yn.jsx)(s$.InspectorControls,{children:c$.Platform.isNative?(0,yn.jsxs)(Fo.PanelBody,{title:(0,Ho.__)("Settings"),children:[(0,yn.jsx)(Fo.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ho.__)("List style"),options:l$,value:a,onChange:i=>e({type:i})}),(0,yn.jsx)(Fo.TextControl,{__next40pxDefaultSize:!0,label:(0,Ho.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),(0,yn.jsx)(Fo.ToggleControl,{label:(0,Ho.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})]}):(0,yn.jsxs)(Fo.__experimentalToolsPanel,{label:(0,Ho.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,yn.jsx)(Fo.__experimentalToolsPanelItem,{label:(0,Ho.__)("List style"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>e({type:void 0}),children:(0,yn.jsx)(Fo.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ho.__)("List style"),options:l$,value:a||"decimal",onChange:i=>e({type:i})})}),(0,yn.jsx)(Fo.__experimentalToolsPanelItem,{label:(0,Ho.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,yn.jsx)(Fo.TextControl,{__next40pxDefaultSize:!0,label:(0,Ho.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(r)?r.toString(10):"",step:"1"})}),(0,yn.jsx)(Fo.__experimentalToolsPanelItem,{label:(0,Ho.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,yn.jsx)(Fo.ToggleControl,{label:(0,Ho.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},u$=q0e;var m$=o(O(),1),p$=o(g(),1);function Z0e(e,t){let{ordered:r,...a}=e;return(0,p$.jsx)(r?"ol":"ul",{ref:t,...a})}var d$=(0,m$.forwardRef)(Z0e);var xn=o(g(),1),K0e={name:"core/list-item"},Q0e=[["core/list-item"]],f$=8;function Y0e(e,t){let r=(0,Gu.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,Gu.useDispatch)(Rl.store);(0,Mp.useEffect)(()=>{if(!e.values)return;let[i,l]=yk(e);(0,g$.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{a(t,i),n(t,l)})},[e.values])}function X0e(e){let{replaceBlocks:t,selectionChange:r}=(0,Gu.useDispatch)(Rl.store),{getBlockRootClientId:a,getBlockAttributes:n,getBlock:i}=(0,Gu.useSelect)(Rl.store);return(0,Mp.useCallback)(()=>{let l=a(e),s=n(l),c=(0,h$.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function J0e({clientId:e}){let t=X0e(e),r=(0,Gu.useSelect)(a=>{let{getBlockRootClientId:n,getBlockName:i}=a(Rl.store);return i(n(e))==="core/list-item"},[e]);return(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsx)(xk.ToolbarButton,{icon:(0,Ml.isRTL)()?d0:f0,title:(0,Ml.__)("Outdent"),description:(0,Ml.__)("Outdent list item"),disabled:!r,onClick:t})})}function v$({attributes:e,setAttributes:t,clientId:r,style:a}){let{ordered:n,type:i,reversed:l,start:s}=e,c=(0,Rl.useBlockProps)({style:{...Mp.Platform.isNative&&a,listStyleType:n&&i!=="decimal"?i:void 0}}),u=(0,Rl.useInnerBlocksProps)(c,{defaultBlock:K0e,directInsert:!0,template:Q0e,templateLock:!1,templateInsertUpdatesSelection:!0,...Mp.Platform.isNative&&{marginVertical:f$,marginHorizontal:f$,renderAppender:!1},__experimentalCaptureToolbars:!0});Y0e(e,r);let m=(0,xn.jsxs)(Rl.BlockControls,{group:"block",children:[(0,xn.jsx)(xk.ToolbarButton,{icon:(0,Ml.isRTL)()?u0:m0,title:(0,Ml.__)("Unordered"),description:(0,Ml.__)("Convert to unordered list"),isActive:n===!1,onClick:()=>{t({ordered:!1})}}),(0,xn.jsx)(xk.ToolbarButton,{icon:(0,Ml.isRTL)()?p0:Ti,title:(0,Ml.__)("Ordered"),description:(0,Ml.__)("Convert to ordered list"),isActive:n===!0,onClick:()=>{t({ordered:!0})}}),(0,xn.jsx)(J0e,{clientId:r})]});return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(d$,{ordered:n,reversed:l,start:s,...u}),m,n&&(0,xn.jsx)(u$,{setAttributes:t,reversed:l,start:s,type:i})]})}var _k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"An organized collection of items displayed in a specific order.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0},listView:!0},selectors:{border:".wp-block-list:not(.wp-block-list .wp-block-list)"},editorStyle:"wp-block-list-editor",style:"wp-block-list"};var kk=o(T(),1),EN=o(g(),1);function b$({attributes:e}){let{ordered:t,type:r,reversed:a,start:n}=e;return(0,EN.jsx)(t?"ol":"ul",{...kk.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,EN.jsx)(kk.InnerBlocks.Content,{})})}var Dc=o(U(),1),Gf=o(op(),1);function y$({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function IN(e){return e.flatMap(({name:t,attributes:r,innerBlocks:a=[]})=>t==="core/list-item"?[r.content,...IN(a)]:IN(a))}var t1e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Dc.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,Gf.create)({html:e[0].content});t=(0,Gf.split)(r,`
`).map(a=>(0,Dc.createBlock)("core/list-item",{content:(0,Gf.toHTMLString)({value:a})}))}return(0,Dc.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:y$(e).ol,ul:y$(e).ul}),transform:NN},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Dc.createBlock)("core/list",{},[(0,Dc.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Dc.createBlock)("core/list",{ordered:!0},[(0,Dc.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>IN(r).map(a=>(0,Dc.createBlock)(e,{content:a}))}))]},x$=t1e;var{name:_$}=_k,k$={icon:ul,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Wf.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Wf.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Wf.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Wf.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Wf.__)("The Queen of Hearts.")}}]},transforms:x$,edit:v$,save:b$,deprecated:i$},r1e=()=>I({name:_$,metadata:_k,settings:k$});var MN={};$(MN,{init:()=>i1e,metadata:()=>Ck,name:()=>D$,settings:()=>L$});var Wu=o(P(),1),wk=o(T(),1),qu=o(M(),1),$u=o(O(),1),C$=o(V(),1),S$=o(j1(),1);var oi=o(g(),1),{Badge:o1e}=Z(qu.privateApis);function T$({attributes:e,setAttributes:t,isSelected:r}){let{latex:a,mathML:n}=e,[i,l]=(0,$u.useState)(),[s,c]=(0,$u.useState)(null),[u,m]=(0,$u.useState)(),p=(0,$u.useRef)(a),{__unstableMarkNextChangeAsNotPersistent:d}=(0,C$.useDispatch)(wk.store);(0,$u.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{m(()=>h.default),p.current&&(d(),t({mathML:h.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,wk.useBlockProps)({ref:l,position:"relative"});return(0,oi.jsxs)("div",{...f,children:[n?(0,oi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,oi.jsx)(qu.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,oi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,oi.jsxs)(qu.__experimentalVStack,{spacing:1,children:[(0,oi.jsx)(qu.TextareaControl,{__next40pxDefaultSize:!0,label:(0,Wu.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:a,className:"wp-block-math__textarea-control",onChange:h=>{if(!u){t({latex:h});return}let v="";try{v=u(h,{displayMode:!0}),c(null)}catch(y){c(y.message),(0,S$.speak)((0,Wu.sprintf)((0,Wu.__)("Error parsing mathematical expression: %s"),y.message))}t({mathML:v,latex:h})},placeholder:(0,Wu.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)(o1e,{intent:"error",className:"wp-block-math__error",children:(0,Wu.sprintf)((0,Wu.__)("Error: %s"),s)}),(0,oi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var Ck={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/math",title:"Math",category:"text",description:"Display mathematical notation using LaTeX.",keywords:["equation","formula","latex","mathematics"],textdomain:"default",supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var P$=o(T(),1),LN=o(g(),1);function B$({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,LN.jsx)("div",{...P$.useBlockProps.save(),children:(0,LN.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var N$=o(T(),1),E$=o(g(),1),n1e={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,E$.jsx)("math",{...N$.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},I$=[n1e];var{name:D$}=Ck,L$={icon:rS,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">\u2212</mo><mi>b</mi><mo>\xB1</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>\u2212</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:T$,save:B$,deprecated:I$},i1e=()=>I({name:D$,metadata:Ck,settings:L$});var UN={};$(UN,{init:()=>p1e,metadata:()=>Sk,name:()=>J$,settings:()=>Nk});var Q$=o(P(),1);var Y$=o(T(),1),X$=o(U(),1);var Sk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List Item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"An individual item within a list.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",role:"content"}},supports:{anchor:!0,className:!1,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,background:!0,__experimentalDefaultControls:{text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-list > li",border:".wp-block-list:not(.wp-block-list .wp-block-list) > li"}};var Ns=o(T(),1),Bs=o(P(),1),jN=o(M(),1);var G$=o(fe(),1),W$=o(V(),1),$$=o(ms(),1);var M$=o(O(),1),$f=o(V(),1),RN=o(T(),1),R$=o(U(),1);function Lc(){let e=(0,$f.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:a,updateBlockListSettings:n}=(0,$f.useDispatch)(RN.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:m,getBlockListSettings:p}=(0,$f.useSelect)(RN.store);function d(f){let h=i(f),v=i(h);if(v&&l(v)==="core/list-item")return v}return(0,M$.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let h=f[0];if(l(h)!=="core/list-item")return;let v=d(h);if(!v)return;let y=i(h),b=f[f.length-1],x=s(y).slice(c(b)+1);return e.batch(()=>{if(x.length){let k=s(h)[0];if(!k){let C=(0,R$.cloneBlock)(m(y),{},[]);k=C.clientId,a(C,0,h,!1),n(k,p(y))}t(x,y,k)}t(f,y,i(v),c(v)+1),s(y).length||r(y,!1)}),!0},[])}var A$=o(O(),1),Tk=o(V(),1),AN=o(T(),1),U1=o(U(),1);function G1(e){let{replaceBlocks:t,selectionChange:r,multiSelect:a}=(0,Tk.useDispatch)(AN.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,Tk.useSelect)(AN.store);return(0,A$.useCallback)(()=>{let m=c(),p=m?u():[e],d=p.map(b=>(0,U1.cloneBlock)(n(b))),f=i(e),h=(0,U1.cloneBlock)(n(f));h.innerBlocks?.length||(h.innerBlocks=[(0,U1.createBlock)("core/list")]),h.innerBlocks[h.innerBlocks.length-1].innerBlocks.push(...d);let v=l(),y=s();return t([f,...p],[h]),m?a(d[0].clientId,d[d.length-1].clientId):r(d[0].clientId,y.attributeKey,y.clientId===v.clientId?v.offset:y.offset,y.offset),!0},[e])}var Rp=o(U(),1),z$=o(O(),1),V$=o(fe(),1),H$=o(ms(),1),Pk=o(V(),1),zN=o(T(),1);function VN(e){let{replaceBlocks:t,selectionChange:r}=(0,Pk.useDispatch)(zN.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i,getBlockName:l}=(0,Pk.useSelect)(zN.store),s=(0,z$.useRef)(e);s.current=e;let c=Lc();return(0,V$.useRefEffect)(u=>{function m(p){if(p.defaultPrevented||p.keyCode!==H$.ENTER)return;let{content:d,clientId:f}=s.current;if(d.length)return;if(p.preventDefault(),l(n(n(s.current.clientId)))==="core/list-item"){c();return}let v=a(n(f)),y=i(f),b=(0,Rp.cloneBlock)({...v,innerBlocks:v.innerBlocks.slice(0,y)}),_=(0,Rp.createBlock)((0,Rp.getDefaultBlockName)()),x=[...v.innerBlocks[y].innerBlocks[0]?.innerBlocks||[],...v.innerBlocks.slice(y+1)],k=x.length?[(0,Rp.cloneBlock)({...v,innerBlocks:x})]:[];t(v.clientId,[b,_,...k],1),r(_.clientId)}return u.addEventListener("keydown",m),()=>{u.removeEventListener("keydown",m)}},[])}var F$=o(fe(),1),W1=o(ms(),1),O$=o(T(),1),j$=o(V(),1);function HN(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:a}=(0,j$.useSelect)(O$.store),n=G1(e),i=Lc();return(0,F$.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:m,altKey:p,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==W1.SPACE&&u!==W1.TAB||p||d||f)return;let h=t(),v=r();h.offset===0&&v.offset===0&&(m?u===W1.TAB&&i()&&c.preventDefault():a(e)!==0&&n()&&c.preventDefault())}return l.addEventListener("keydown",s),()=>{l.removeEventListener("keydown",s)}},[e,n])}var qf=o(V(),1),FN=o(T(),1),U$=o(U(),1);function ON(e,t){let r=(0,qf.useRegistry)(),{getPreviousBlockClientId:a,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,qf.useSelect)(FN.store),{mergeBlocks:u,moveBlocksToPosition:m,removeBlock:p}=(0,qf.useDispatch)(FN.store),d=Lc();function f(b){let _=i(b);return _.length?f(_[_.length-1]):b}function h(b){let _=l(b),x=l(_);if(x&&s(x)==="core/list-item")return x}function v(b){let _=n(b);if(_)return _;let x=h(b);if(x)return v(x)}function y(b){let _=i(b);return _.length?i(_[0])[0]:v(b)}return b=>{function _(x,k){r.batch(()=>{let[C]=i(k);C&&(a(k)===x&&!i(x).length?m([C],k,x):m(i(C),C,l(x))),u(x,k)})}if(b){let x=y(e);if(!x){t(b);return}h(x)?d(x):_(e,x)}else{if(h(e)){d(e);return}let x=a(e);if(x){let C=f(x);_(C,e);return}let k=i(e);(0,U$.isUnmodifiedBlock)(c(e),"content")&&k.length>0?r.batch(()=>{d(i(k[0])),p(e,!0)}):t(b)}}}var ai=o(g(),1);function s1e({clientId:e}){let t=G1(e),r=Lc(),{canIndent:a,canOutdent:n}=(0,W$.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(Ns.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,ai.jsxs)(ai.Fragment,{children:[(0,ai.jsx)(jN.ToolbarButton,{icon:(0,Bs.isRTL)()?d0:f0,title:(0,Bs.__)("Outdent"),shortcut:$$.displayShortcut.shift("Tab"),description:(0,Bs.__)("Outdent list item"),disabled:!n,onClick:()=>r()}),(0,ai.jsx)(jN.ToolbarButton,{icon:(0,Bs.isRTL)()?i9:s9,title:(0,Bs.__)("Indent"),shortcut:"Tab",description:(0,Bs.__)("Indent list item"),disabled:!a,onClick:()=>t()})]})}function q$({attributes:e,setAttributes:t,clientId:r,mergeBlocks:a}){let{placeholder:n,content:i}=e,l=(0,Ns.useBlockProps)(),s=(0,Ns.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=VN({content:i,clientId:r}),u=HN(r),m=ON(r,a);return(0,ai.jsxs)(ai.Fragment,{children:[(0,ai.jsxs)("li",{...s,children:[(0,ai.jsx)(Ns.RichText,{ref:(0,G$.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:p=>t({content:p}),value:i,"aria-label":(0,Bs.__)("List text"),placeholder:n||(0,Bs.__)("List"),onMerge:m}),s.children]}),(0,ai.jsx)(Ns.BlockControls,{group:"block",children:(0,ai.jsx)(s1e,{clientId:r})})]})}var Zf=o(T(),1),$1=o(g(),1);function Z$({attributes:e}){return(0,$1.jsxs)("li",{...Zf.useBlockProps.save(),children:[(0,$1.jsx)(Zf.RichText.Content,{value:e.content}),(0,$1.jsx)(Zf.InnerBlocks.Content,{})]})}var Bk=o(U(),1),c1e={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,Bk.createBlock)("core/paragraph",e),...t.map(r=>(0,Bk.cloneBlock)(r))]}]},K$=c1e;var{fieldsKey:u1e,formKey:m1e}=Z(X$.privateApis),{name:J$}=Sk,Nk={icon:Z9,edit:q$,save:Z$,merge(e,t){return{...e,content:e.content+t.content}},transforms:K$,[Z(Y$.privateApis).requiresWrapperOnCopy]:!0};window.__experimentalContentOnlyInspectorFields&&(Nk[u1e]=[{id:"content",label:(0,Q$.__)("Content"),type:"text",Edit:"rich-text"}],Nk[m1e]={fields:["content"]});var p1e=()=>I({name:J$,metadata:Sk,settings:Nk});var GN={};$(GN,{init:()=>f1e,metadata:()=>Ik,name:()=>tq,settings:()=>rq});var Ek=o(T(),1),Zu=o(M(),1),Ap=o(P(),1);var ni=o(g(),1);function eq({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:a}=e,n=W();return(0,ni.jsxs)(ni.Fragment,{children:[(0,ni.jsx)(Ek.InspectorControls,{children:(0,ni.jsxs)(Zu.__experimentalToolsPanel,{label:(0,Ap.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,ni.jsx)(Zu.__experimentalToolsPanelItem,{label:(0,Ap.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,ni.jsx)(Zu.ToggleControl,{label:(0,Ap.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,ni.jsx)(Zu.__experimentalToolsPanelItem,{label:(0,Ap.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,ni.jsx)(Zu.ToggleControl,{label:(0,Ap.__)("Redirect to current URL"),checked:a,onChange:()=>t({redirectToCurrent:!a})})})]})}),(0,ni.jsx)("div",{...(0,Ek.useBlockProps)({className:"logged-in"}),children:(0,ni.jsx)("a",{href:"#login-pseudo-link",children:(0,Ap.__)("Log out")})})]})}var Ik={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},example:{viewportWidth:350},supports:{anchor:!0,className:!0,color:{background:!0,text:!1,gradients:!0,link:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:tq}=Ik,rq={icon:Y9,edit:eq},f1e=()=>I({name:tq,metadata:Ik,settings:rq});var QN={};$(QN,{init:()=>z1e,metadata:()=>Vk,name:()=>Tq,settings:()=>Hk});var K1=o(P(),1);var Sq=o(U(),1);var or=o(T(),1),WN=o(fe(),1);var oq=o(P(),1),Es="full",q1=15,aq="media",nq="attachment",iq=[["core/paragraph",{placeholder:(0,oq._x)("Content\u2026","content placeholder")}]];var we=o(g(),1),Dk=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},lq=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},zp=50,Is=()=>{},sq=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...a}=e;return{...a,style:t}},Kf=e=>e.align?e:{...e,align:"wide"},Lk={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},$N={...Lk,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},cq={...$N,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},h1e={...cq,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},qN={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},uq={...qN,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},g1e={...uq,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},v1e={attributes:h1e,supports:g1e,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,v=e.mediaSizeSlug||Es,y=h||void 0,b=w({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=i?(0,we.jsx)("img",{src:i,alt:r,className:b||null}):null;d&&(_=(0,we.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,we.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?lq(i,m):{},S;l!==zp&&(S=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:S};return a==="right"?(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()})]}):(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()}),(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},b1e={attributes:cq,supports:uq,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,v=e.mediaSizeSlug||Es,y=h||void 0,b=w({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=(0,we.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,we.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,we.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?lq(i,m):{},S;l!==zp&&(S=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:S};return a==="right"?(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()})]}):(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()}),(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Kf,isEligible(e,t,{block:r}){let{attributes:a}=r;return e.align===void 0&&!!a.className?.includes("alignwide")}},y1e={attributes:$N,supports:qN,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,v=e.mediaSizeSlug||Es,y=h||void 0,b=w({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=(0,we.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,we.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,we.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?Dk(i,m):{},S;l!==zp&&(S=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:S};return a==="right"?(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()})]}):(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()}),(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Kf},x1e={attributes:$N,supports:qN,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,v=e.mediaSizeSlug||Es,y=h||void 0,b=w({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=(0,we.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,we.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,we.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?Dk(i,m):{},S;l!==zp&&(S=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:S};return(0,we.jsxs)("div",{...or.useBlockProps.save({className:k,style:N}),children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||Is)()}),(0,we.jsx)("div",{...or.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Kf},_1e={attributes:{...Lk,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,WN.compose)(sq,Kf),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d,linkClass:f,href:h,linkTarget:v,rel:y}=e,b=y||void 0,_=(0,we.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null});h&&(_=(0,we.jsx)("a",{className:f,href:h,target:v,rel:b,children:_}));let x={image:()=>_,video:()=>(0,we.jsx)("video",{controls:!0,src:s})},k=(0,or.getColorClassName)("background-color",t),C=w({"has-media-on-the-right":i==="right","has-background":k||r,[k]:k,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),S=p?Dk(s,d):{},N;return c!==zp&&(N=i==="right"?`auto ${c}%`:`${c}% auto`),(0,we.jsxs)("div",{className:C,style:{backgroundColor:k?void 0:r,gridTemplateColumns:N},children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[l]||Is)()}),(0,we.jsx)("div",{className:"wp-block-media-text__content",children:(0,we.jsx)(or.InnerBlocks.Content,{})})]})}},k1e={attributes:{...Lk,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,WN.compose)(sq,Kf),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d}=e,f={image:()=>(0,we.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,we.jsx)("video",{controls:!0,src:s})},h=(0,or.getColorClassName)("background-color",t),v=w({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),y=p?Dk(s,d):{},b;return c!==zp&&(b=i==="right"?`auto ${c}%`:`${c}% auto`),(0,we.jsxs)("div",{className:v,style:{backgroundColor:h?void 0:r,gridTemplateColumns:b},children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",style:y,children:(f[l]||Is)()}),(0,we.jsx)("div",{className:"wp-block-media-text__content",children:(0,we.jsx)(or.InnerBlocks.Content,{})})]})}},w1e={attributes:{...Lk,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Kf,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,we.jsx)("img",{src:s,alt:n}),video:()=>(0,we.jsx)("video",{controls:!0,src:s})},m=(0,or.getColorClassName)("background-color",t),p=w({"has-media-on-the-right":i==="right",[m]:m,"is-stacked-on-mobile":a}),d;return c!==zp&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,we.jsxs)("div",{className:p,style:{backgroundColor:m?void 0:r,gridTemplateColumns:d},children:[(0,we.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||Is)()}),(0,we.jsx)("div",{className:"wp-block-media-text__content",children:(0,we.jsx)(or.InnerBlocks.Content,{})})]})}},mq=[v1e,b1e,y1e,x1e,_1e,k1e,w1e];var Oo=o(P(),1),Rk=o(V(),1),Ak=o(O(),1),yo=o(T(),1),_r=o(M(),1),zk=o(zr(),1);var Z1=o(Q(),1);var Qf=o(M(),1),Ds=o(T(),1),dq=o(P(),1),fq=o(fe(),1),ZN=o(V(),1),KN=o(O(),1),hq=o(zr(),1),gq=o(Nr(),1);function Mk(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var ma=o(g(),1),vq=["image","video"],C1e=()=>{},S1e=(0,KN.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},a)=>{let n=(0,fq.useViewportMatch)("small","<");return(0,ma.jsx)(Qf.ResizableBox,{ref:a,showHandle:e&&(!n||!t),...r})});function T1e({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:a,useFeaturedImage:n}){return(0,ma.jsx)(Ds.BlockControls,{group:"other",children:(0,ma.jsx)(Ds.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:vq,onSelect:r,onToggleFeaturedImage:a,useFeaturedImage:n,onReset:()=>r(void 0)})})}function pq({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:a}){let{createErrorNotice:n}=(0,ZN.useDispatch)(gq.store),i=l=>{n(l,{type:"snackbar"})};return(0,ma.jsx)(Ds.MediaPlaceholder,{icon:(0,ma.jsx)(Ds.BlockIcon,{icon:y0}),labels:{title:(0,dq.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:a,allowedTypes:vq,onError:i,disableMediaButtons:t})}function P1e(e,t){let{className:r,commitWidthChange:a,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:m,mediaType:p,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:v,enableResize:y,toggleUseFeaturedImage:b,useFeaturedImage:_,featuredImageURL:x,featuredImageAlt:k,refMedia:C}=e,S=!u&&(0,hq.isBlobURL)(d),{toggleSelection:N}=(0,ZN.useDispatch)(Ds.store);if(d||x||_){let B=()=>{N(!1)},D=(E,H,G)=>{v(parseInt(G.style.width))},A=(E,H,G)=>{N(!0),a(parseInt(G.style.width))},R={right:y&&m==="left",left:y&&m==="right"},j=p==="image"&&i?Mk(d||x,n):{},z={image:()=>_&&x?(0,ma.jsx)("img",{ref:C,src:x,alt:k,style:j}):d&&(0,ma.jsx)("img",{ref:C,src:d,alt:c,style:j}),video:()=>(0,ma.jsx)("video",{controls:!0,ref:C,src:d})};return(0,ma.jsxs)(S1e,{as:"figure",className:w(r,"editor-media-container__resizer",{"is-transient":S}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:R,onResizeStart:B,onResize:D,onResizeStop:A,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,ma.jsx)(T1e,{onSelectMedia:h,mediaUrl:_&&x?x:d,mediaId:u,toggleUseFeaturedImage:b,useFeaturedImage:_}),(z[p]||C1e)(),S&&(0,ma.jsx)(Qf.Spinner,{}),!_&&(0,ma.jsx)(pq,{...e}),!x&&_&&(0,ma.jsx)(Qf.Placeholder,{className:"wp-block-media-text--placeholder-image",style:j,withIllustration:!0})]})}return(0,ma.jsx)(pq,{...e})}var bq=(0,KN.forwardRef)(P1e);var nt=o(g(),1),{ResolutionTool:B1e}=Z(yo.privateApis),yq=e=>Math.max(q1,Math.min(e,100-q1));function xq(e,t){return e?.media_details?.sizes?.[t]?.source_url}function N1e({attributes:{linkDestination:e,href:t},setAttributes:r}){return a=>{if(!a||!a.url){r({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});return}(0,zk.isBlobURL)(a.url)&&(a.type=(0,zk.getBlobTypeByURL)(a.url));let n,i;a.media_type?a.media_type==="image"?n="image":n="video":n=a.type,n==="image"&&(i=a.sizes?.large?.url||a.media_details?.sizes?.large?.source_url);let l=t;e===aq&&(l=a.url),e===nq&&(l=a.link),r({mediaAlt:a.alt,mediaId:a.id,mediaType:n,mediaUrl:i||a.url,mediaLink:a.link||void 0,href:l,focalPoint:void 0,useFeaturedImage:!1})}}function E1e({image:e,value:t,onChange:r}){let{imageSizes:a}=(0,Rk.useSelect)(i=>{let{getSettings:l}=i(yo.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>xq(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,nt.jsx)(B1e,{value:t,defaultValue:Es,options:n,onChange:r})}function I1e({attributes:e,isSelected:t,setAttributes:r,context:{postId:a,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:m,linkTarget:p,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:v,mediaUrl:y,mediaWidth:b,mediaSizeSlug:_,rel:x,verticalAlignment:k,allowedBlocks:C,useFeaturedImage:S}=e,[N]=(0,Z1.useEntityProp)("postType",n,"featured_media",a),{featuredImageMedia:B}=(0,Rk.useSelect)(ae=>({featuredImageMedia:N&&S?ae(Z1.store).getEntityRecord("postType","attachment",N,{context:"view"}):void 0}),[N,S]),{image:D}=(0,Rk.useSelect)(ae=>({image:f&&t?ae(Z1.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),A=S?B?.source_url:"",R=S?B?.alt_text:"",j=()=>{r({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!S})},z=(0,Ak.useRef)(),E=ae=>{let{style:pe}=z.current,{x:Be,y:de}=ae;pe.objectPosition=`${Be*100}% ${de*100}%`},[H,G]=(0,Ak.useState)(null),F=N1e({attributes:e,setAttributes:r}),q=ae=>{r(ae)},K=ae=>{G(yq(ae))},te=ae=>{r({mediaWidth:yq(ae)}),G(null)},X=w({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${k}`]:k,"is-image-fill-element":s}),re=`${H||b}%`,J=h==="right"?`1fr ${re}`:`${re} 1fr`,ne={gridTemplateColumns:J,msGridColumns:J},oe=ae=>{r({mediaAlt:ae})},le=ae=>{r({verticalAlignment:ae})},ce=ae=>{let pe=xq(D,ae);if(!pe)return null;r({mediaUrl:pe,mediaSizeSlug:ae})},ye=W(),Me=(0,nt.jsxs)(_r.__experimentalToolsPanel,{label:(0,Oo.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),ce(Es)},dropdownMenuProps:ye,children:[(0,nt.jsx)(_r.__experimentalToolsPanelItem,{label:(0,Oo.__)("Media width"),isShownByDefault:!0,hasValue:()=>b!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,nt.jsx)(_r.RangeControl,{__next40pxDefaultSize:!0,label:(0,Oo.__)("Media width"),value:H||b,onChange:te,min:q1,max:100-q1})}),(0,nt.jsx)(_r.__experimentalToolsPanelItem,{label:(0,Oo.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,nt.jsx)(_r.ToggleControl,{label:(0,Oo.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),v==="image"&&(0,nt.jsx)(_r.__experimentalToolsPanelItem,{label:(0,Oo.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,nt.jsx)(_r.ToggleControl,{label:(0,Oo.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(y||A)&&v==="image"&&(0,nt.jsx)(_r.__experimentalToolsPanelItem,{label:(0,Oo.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,nt.jsx)(_r.FocalPointPicker,{label:(0,Oo.__)("Focal point"),url:S&&A?A:y,value:i,onChange:ae=>r({focalPoint:ae}),onDragStart:E,onDrag:E})}),v==="image"&&y&&!S&&(0,nt.jsx)(_r.__experimentalToolsPanelItem,{label:(0,Oo.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,nt.jsx)(_r.TextareaControl,{label:(0,Oo.__)("Alternative text"),value:d,onChange:oe,help:(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(_r.ExternalLink,{href:(0,Oo.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Oo.__)("Describe the purpose of the image.")}),(0,nt.jsx)("br",{}),(0,Oo.__)("Leave empty if decorative.")]})})}),v==="image"&&!S&&(0,nt.jsx)(E1e,{image:D,value:_,onChange:ce})]}),ie=(0,yo.useBlockProps)({className:X,style:ne}),Ve=(0,yo.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:iq,allowedBlocks:C}),Re=(0,yo.useBlockEditingMode)();return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(yo.InspectorControls,{children:Me}),(0,nt.jsxs)(yo.BlockControls,{group:"block",children:[Re==="default"&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(yo.BlockVerticalAlignmentControl,{onChange:le,value:k}),(0,nt.jsx)(_r.ToolbarButton,{icon:XS,title:(0,Oo.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,nt.jsx)(_r.ToolbarButton,{icon:eT,title:(0,Oo.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),v==="image"&&!S&&(0,nt.jsx)(yo.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:q,linkDestination:m,mediaType:v,mediaUrl:D&&D.source_url,mediaLink:D&&D.link,linkTarget:p,linkClass:u,rel:x})]}),(0,nt.jsxs)("div",{...ie,children:[h==="right"&&(0,nt.jsx)("div",{...Ve}),(0,nt.jsx)(bq,{className:"wp-block-media-text__media",onSelectMedia:F,onWidthChange:K,commitWidthChange:te,refMedia:z,enableResize:Re==="default",toggleUseFeaturedImage:j,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:v,mediaUrl:y,mediaWidth:b,useFeaturedImage:S,featuredImageURL:A,featuredImageAlt:R}),h!=="right"&&(0,nt.jsx)("div",{...Ve})]})]})}var _q=I1e;var Vk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",role:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"};var Yf=o(T(),1);var Al=o(g(),1),L1e=50,kq=()=>{};function wq({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,v=e.mediaSizeSlug||Es,y=h||void 0,b=w({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=u?Mk(i,m):{},x=i?(0,Al.jsx)("img",{src:i,alt:r,className:b||null,style:_}):null;d&&(x=(0,Al.jsx)("a",{className:p,href:d,target:f,rel:y,children:x}));let k={image:()=>x,video:()=>(0,Al.jsx)("video",{controls:!0,src:i})},C=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),S;l!==L1e&&(S=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:S};return a==="right"?(0,Al.jsxs)("div",{...Yf.useBlockProps.save({className:C,style:N}),children:[(0,Al.jsx)("div",{...Yf.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Al.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||kq)()})]}):(0,Al.jsxs)("div",{...Yf.useBlockProps.save({className:C,style:N}),children:[(0,Al.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||kq)()}),(0,Al.jsx)("div",{...Yf.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var Vp=o(U(),1),M1e={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:a})=>(0,Vp.createBlock)("core/media-text",{mediaAlt:e,mediaId:r,mediaUrl:t,mediaType:"image",anchor:a})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:r})=>(0,Vp.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:r,backgroundType:a,customGradient:n,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:m,url:p,useFeaturedImage:d},f)=>{let h={};return n?h={style:{color:{gradient:n}}}:i&&(h={style:{color:{background:i}}}),u?.color?.text&&(h.style={color:{...h.style?.color,text:u.color.text}}),(0,Vp.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:a,mediaUrl:p,textColor:m,useFeaturedImage:d,...h},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:r,anchor:a})=>(0,Vp.createBlock)("core/image",{alt:e,id:t,url:r,anchor:a})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:r})=>(0,Vp.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:a,gradient:n,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:m,useFeaturedImage:p},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let h={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||p?50:100,focalPoint:a,gradient:n,id:l,overlayColor:r,textColor:m,url:c,useFeaturedImage:p,...f};return(0,Vp.createBlock)("core/cover",h,d)}}]},Cq=M1e;var{fieldsKey:R1e,formKey:A1e}=Z(Sq.privateApis),{name:Tq}=Vk,Hk={icon:aS,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,K1.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,K1.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:Cq,edit:_q,save:wq,deprecated:mq};window.__experimentalContentOnlyInspectorFields&&(Hk[R1e]=[{id:"media",label:(0,K1.__)("Media"),type:"media",Edit:{control:"media",allowedTypes:["image","video"],multiple:!1},getValue:({item:e})=>({id:e.mediaId,url:e.mediaUrl,mediaType:e.mediaType,link:e.mediaLink}),setValue:({value:e})=>({mediaId:e.id,mediaUrl:e.url,mediaType:e.mediaType,mediaLink:e.link})},{id:"link",label:(0,K1.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget})}],Hk[A1e]={fields:["media","link"]});var z1e=()=>I({name:Tq,metadata:Vk,settings:Hk});var YN={};$(YN,{init:()=>H1e,metadata:()=>Ok,name:()=>Q1,settings:()=>Aq});var Rq=o(U(),1);var Mc=o(P(),1),Pq=o(O(),1),Bq=o(M(),1),Nq=o(U(),1),Fk=o(V(),1),Hp=o(T(),1),Eq=o(ls(),1),Xf=o(g(),1);function Iq({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:a}=e,n=!!a,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,Fk.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(Hp.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,Fk.useDispatch)(Hp.store);function c(){s(t,(0,Nq.createBlock)("core/html",{content:a}))}let u=[],m,p=(0,Xf.jsx)(Bq.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,Mc.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?l?(m=(0,Mc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(p)):m=(0,Mc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):n&&l?(m=(0,Mc.sprintf)((0,Mc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),r),u.push(p)):m=(0,Mc.sprintf)((0,Mc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,Xf.jsxs)("div",{...(0,Hp.useBlockProps)({className:"has-warning"}),children:[(0,Xf.jsx)(Hp.Warning,{actions:u,children:m}),(0,Xf.jsx)(Pq.RawHTML,{children:(0,Eq.safeHTML)(a)})]})}var Ok={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn\u2019t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0}}};var Dq=o(O(),1),Lq=o(g(),1);function Mq({attributes:e}){return(0,Lq.jsx)(Dq.RawHTML,{children:e.originalContent})}var{name:Q1}=Ok,Aq={name:Q1,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,a=r?(0,Rq.getBlockType)(r):void 0;return a?a.settings.title||r:""}},edit:Iq,save:Mq},H1e=()=>I({name:Q1,metadata:Ok,settings:Aq});var XN={};$(XN,{init:()=>W1e,metadata:()=>Uk,name:()=>Wq,settings:()=>Gk});var Uq=o(P(),1),Gq=o(U(),1);var Ku=o(P(),1),Jf=o(M(),1),eh=o(T(),1),jk=o(U(),1);var zl=o(g(),1),F1e=(0,Ku.__)("Read more");function zq({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:a}){let n=W();return(0,zl.jsxs)(zl.Fragment,{children:[(0,zl.jsx)(eh.InspectorControls,{children:(0,zl.jsx)(Jf.__experimentalToolsPanel,{label:(0,Ku.__)("Settings"),resetAll:()=>{a({noTeaser:!1})},dropdownMenuProps:n,children:(0,zl.jsx)(Jf.__experimentalToolsPanelItem,{label:(0,Ku.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>a({noTeaser:!1}),children:(0,zl.jsx)(Jf.ToggleControl,{label:(0,Ku.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>a({noTeaser:!t}),help:i=>i?(0,Ku.__)("The excerpt is hidden."):(0,Ku.__)("The excerpt is visible.")})})})}),(0,zl.jsx)("div",{...(0,eh.useBlockProps)(),children:(0,zl.jsx)(eh.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Ku.__)('"Read more" text'),value:e,placeholder:F1e,onChange:i=>a({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,jk.createBlock)((0,jk.getDefaultBlockName)()))})})]})}var Uk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:"",role:"content"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,visibility:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-more-editor"};var Vq=o(O(),1),Hq=o(g(),1);function Fq({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,Hq.jsx)(Vq.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
`)})}var Oq=o(U(),1),j1e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:r}=e.dataset,a={};return t&&(a.customText=t),r===""&&(a.noTeaser=!0),(0,Oq.createBlock)("core/more",a)}}]},jq=j1e;var{fieldsKey:U1e,formKey:G1e}=Z(Gq.privateApis),{name:Wq}=Uk,Gk={icon:cS,example:{},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if(t==="list-view"&&r)return r;if(t==="accessibility")return e.customText},transforms:jq,edit:zq,save:Fq};window.__experimentalContentOnlyInspectorFields&&(Gk[U1e]=[{id:"customText",label:(0,Uq.__)("Content"),type:"text",Edit:"rich-text"}],Gk[G1e]={fields:["customText"]});var W1e=()=>I({name:Wq,metadata:Uk,settings:Gk});var SE={};$(SE,{init:()=>Fve,metadata:()=>Wk,name:()=>tQ,settings:()=>rQ});var z4=o(P(),1);var XK=o(V(),1),JK=o(Q(),1),eQ=o(Xr(),1);var Wk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},overlay:{type:"string"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{anchor:!0,align:["wide","full"],ariaLabel:!0,contentRole:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"};var hr=o(O(),1),ot=o(T(),1),R4=o(Q(),1),rm=o(V(),1),jo=o(M(),1),Vt=o(P(),1),M4=o(j1(),1);var WK=o(U(),1),$K=o(fe(),1);var th=o(Q(),1),Zq=o(V(),1);var ii={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},$q=["core/navigation-link/page","core/navigation-link"],JN={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},qq=["postType","wp_navigation",JN],Qu="navigation-overlay";function rh(e){let t=(0,th.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:a,isNavigationMenuMissing:n}=(0,Zq.useSelect)(h=>q1e(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:m,isResolving:p,hasResolved:d}=(0,th.useEntityRecords)("postType","wp_navigation",JN),f=e?m?.length>1:m?.length>0;return{navigationMenu:r,isNavigationMenuResolved:a,isNavigationMenuMissing:n,navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function q1e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:a,hasFinishedResolution:n}=e(th.store),i=["postType","wp_navigation",t],l=r(...i),s=a(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var $k=o(Q(),1);function oh(e){let{records:t,isResolving:r,hasResolved:a}=(0,$k.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:n,isResolving:i,hasResolved:l}=(0,$k.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:c}=(0,$k.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:n,isResolvingPages:i,hasResolvedPages:l,hasPages:!!(l&&n?.length),menus:t,isResolvingMenus:r,hasResolvedMenus:a,hasMenus:!!(a&&t?.length),menuItems:s,hasResolvedMenuItems:c}}var nh=o(M(),1),X1=o(P(),1);var eE=o(j1(),1),Yq=o(O(),1);var Kq=o(P(),1),Y1=o(g(),1),Z1e=({isVisible:e=!0})=>(0,Y1.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,Y1.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Y1.jsx)(Sa,{icon:Qm}),(0,Kq.__)("Navigation")]})}),qk=Z1e;var Vl=o(M(),1);var Ha=o(P(),1),Zk=o(Xr(),1),ah=o(O(),1),Qq=o(Q(),1);var Hi=o(g(),1);function K1e(e,t,r){return e?r==="publish"?(0,Zk.decodeEntities)(e):(0,Ha.sprintf)((0,Ha.__)("%1$s (%2$s)"),(0,Zk.decodeEntities)(e),r):(0,Ha.sprintf)((0,Ha.__)("(no title %s)"),t)}function Q1e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:a,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,Ha.__)("Create from '%s'"),[c,u]=(0,ah.useState)(!1);n=n||s;let{menus:m}=oh(),{navigationMenus:p,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:v,isNavigationMenuMissing:y}=rh(e),[b]=(0,Qq.useEntityProp)("postType","wp_navigation","title"),_=(0,ah.useMemo)(()=>p?.map(({id:z,title:E,status:H},G)=>{let F=K1e(E?.rendered,G+1,H);return{value:z,label:F,ariaLabel:(0,Ha.sprintf)(n,F),disabled:c||d||!f}})||[],[p,n,d,f,c]),x=!!p?.length,k=!!m?.length,C=!!v,S=!!h,N=x&&!e,B=!x&&f,D=f&&e===null,A=e&&y,R="";return d?R=(0,Ha.__)("Loading\u2026"):N||B||D||A?R=(0,Ha.__)("Choose or create a Navigation Menu"):R=b,(0,ah.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,D,B,N]),(0,Hi.jsx)(Vl.DropdownMenu,{label:R,icon:x0,toggleProps:{size:"small"},children:({onClose:z})=>(0,Hi.jsxs)(Hi.Fragment,{children:[C&&x&&(0,Hi.jsx)(Vl.MenuGroup,{label:(0,Ha.__)("Menus"),children:(0,Hi.jsx)(Vl.MenuItemsChoice,{value:e,onSelect:E=>{t(E),z()},choices:_})}),S&&k&&(0,Hi.jsx)(Vl.MenuGroup,{label:(0,Ha.__)("Import Classic Menus"),children:m?.map(E=>{let H=(0,Zk.decodeEntities)(E.name);return(0,Hi.jsx)(Vl.MenuItem,{onClick:async()=>{u(!0),await r(E),u(!1),z()},"aria-label":(0,Ha.sprintf)(s,H),disabled:c||d||!f,children:H},E.id)})}),h&&(0,Hi.jsx)(Vl.MenuGroup,{label:(0,Ha.__)("Tools"),children:(0,Hi.jsx)(Vl.MenuItem,{onClick:async()=>{u(!0),await a(),u(!1),z()},disabled:c||d||!f,children:(0,Ha.__)("Create new Menu")})})]})})}var Kk=Q1e;var pa=o(g(),1);function Xq({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:a=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolvingMenus:c,hasResolvedMenus:u}=oh();(0,Yq.useEffect)(()=>{e&&(c&&(0,eE.speak)((0,X1.__)("Loading navigation block setup options\u2026")),u&&(0,eE.speak)((0,X1.__)("Navigation block setup options ready.")))},[u,c,e]);let m=c&&n;return(0,pa.jsx)(pa.Fragment,{children:(0,pa.jsxs)(nh.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,pa.jsx)(qk,{isVisible:!e}),(0,pa.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,pa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,pa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,pa.jsx)(Sa,{icon:Qm})," ",(0,X1.__)("Navigation")]}),(0,pa.jsx)("hr",{}),m&&(0,pa.jsx)(nh.Spinner,{}),(0,pa.jsx)(Kk,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,pa.jsx)("hr",{}),a&&(0,pa.jsx)(nh.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,X1.__)("Start empty")})]})})]})})}var tE=o(M(),1),lh=o(P(),1),rE=o(T(),1);var J1=o(L(),1);var ih=o(g(),1);function Ls({icon:e}){return e==="menu"?(0,ih.jsx)(Sa,{icon:iS}):(0,ih.jsxs)(J1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,ih.jsx)(J1.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,ih.jsx)(J1.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}var li=o(g(),1);function oE({children:e,id:t,isOpen:r,isResponsive:a,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:m,onNavigateToEntityRecord:p}){if(!a)return e;let d=!!m,f=w("wp-block-navigation__responsive-container",!d&&{"has-text-color":!!s.color||!!s?.class,[(0,rE.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,rE.getColorClassName)("background-color",l?.slug)]:!!l?.slug},{"is-menu-open":r,"hidden-by-default":i}),h=d?{}:{color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},v=w("wp-block-navigation__responsive-container-open",{"always-shown":i}),y=`${t}-modal`,b={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,lh.__)("Menu")}},_=()=>{if(m&&p){p({postId:m,postType:"wp_template_part"});return}n(!0)};return(0,li.jsxs)(li.Fragment,{children:[!r&&(0,li.jsxs)(tE.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,lh.__)("Open menu"),className:v,onClick:_,children:[c&&(0,li.jsx)(Ls,{icon:u}),!c&&(0,lh.__)("Menu")]}),(0,li.jsx)("div",{className:f,style:h,id:y,children:(0,li.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,li.jsxs)("div",{...b,children:[(0,li.jsxs)(tE.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,lh.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,li.jsx)(Sa,{icon:Um}),!c&&(0,lh.__)("Close")]}),(0,li.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${y}-content`,children:e})]})})})]})}var Jq=o(Q(),1),sh=o(T(),1),eZ=o(V(),1),tZ=o(O(),1);var aE=o(g(),1);function rZ({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:a}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,eZ.useSelect)(y=>{let{getBlockCount:b,hasSelectedInnerBlock:_,getSelectedBlockClientId:x}=y(sh.store),k=x();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!b(k),hasSelectedDescendant:_(e,!0),isSelected:k===e}},[e]),[c,u,m]=(0,Jq.useEntityBlockEditor)("postType","wp_navigation"),p=l||n&&!i,d=(0,tZ.useMemo)(()=>(0,aE.jsx)(qk,{}),[]),f=!!c?.length,h=!t&&!f&&!l,v=(0,sh.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:m,prioritizedInserterBlocks:$q,defaultBlock:ii,directInsert:!0,orientation:r,templateLock:a,renderAppender:l||n&&!i||s||p?sh.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,aE.jsx)("div",{...v})}var oZ=o(M(),1),aZ=o(Q(),1),nZ=o(P(),1),iZ=o(g(),1);function lZ(){let[e,t]=(0,aZ.useEntityProp)("postType","wp_navigation","title");return(0,iZ.jsx)(oZ.TextControl,{__next40pxDefaultSize:!0,label:(0,nZ.__)("Menu name"),value:e,onChange:t})}var uZ=o(T(),1),nE=o(M(),1),mZ=o(Q(),1),pZ=o(V(),1),Fp=o(O(),1);function sZ(e,t){return!cZ(e,t,(r,a)=>{if(a?.name==="core/page-list"&&r==="innerBlocks")return!0})}var cZ=(e,t,r)=>{if(e===t)return!0;if(typeof e=="object"&&e!==null&&e!==void 0&&typeof t=="object"&&t!==null&&t!==void 0){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t.hasOwnProperty(a)){if(r&&r(a,e))return!0;if(!cZ(e[a],t[a],r))return!1}else return!1;return!0}return!1};var dZ=o(g(),1),Y1e={};function fZ({blocks:e,createNavigationMenu:t,hasSelection:r}){let a=(0,Fp.useRef)();(0,Fp.useEffect)(()=>{a?.current||(a.current=e)},[e]);let n=sZ(a?.current,e),i=(0,Fp.useContext)(nE.Disabled.Context),l=(0,uZ.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:ii,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,pZ.useSelect)(m=>{if(i)return Y1e;let{hasFinishedResolution:p,isSavingEntityRecord:d}=m(mZ.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",qq)}},[i]);return(0,Fp.useEffect)(()=>{i||s||!c||!r||!n||t(null,e)},[e,t,i,s,c,n,r]),(0,dZ.jsx)(s?nE.Disabled:"div",{...l})}var Yk=o(M(),1),Xk=o(Q(),1),hZ=o(V(),1),gZ=o(O(),1),Qk=o(P(),1),Op=o(g(),1);function vZ({onDelete:e}){let[t,r]=(0,gZ.useState)(!1),a=(0,Xk.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,hZ.useDispatch)(Xk.store);return(0,Op.jsxs)(Op.Fragment,{children:[(0,Op.jsx)(Yk.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,Qk.__)("Delete menu")}),t&&(0,Op.jsx)(Yk.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",a,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,Qk.__)("Delete"),size:"medium",children:(0,Qk.__)("Are you sure you want to delete this Navigation Menu?")})]})}var ev=o(O(),1),bZ=o(V(),1),yZ=o(Nr(),1);function X1e({name:e,message:t=""}={}){let r=(0,ev.useRef)(),{createWarningNotice:a,removeNotice:n}=(0,bZ.useDispatch)(yZ.store),i=(0,ev.useCallback)(s=>{r.current||(r.current=e,a(s||t,{id:r.current,type:"snackbar"}))},[r,a,t,e]),l=(0,ev.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,l]}var Jk=X1e;var Ms=o(M(),1),Yu=o(P(),1);var si=o(g(),1);function xZ({setAttributes:e,hasIcon:t,icon:r}){return(0,si.jsxs)(si.Fragment,{children:[(0,si.jsx)(Ms.__experimentalToolsPanelItem,{label:(0,Yu.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,si.jsx)(Ms.ToggleControl,{label:(0,Yu.__)("Show icon button"),help:(0,Yu.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>e({hasIcon:a}),checked:t})}),(0,si.jsx)(Ms.__experimentalToolsPanelItem,{label:(0,Yu.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,si.jsxs)(Ms.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Yu.__)("Icon"),value:r,onChange:a=>e({icon:a}),isBlock:!0,children:[(0,si.jsx)(Ms.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Yu.__)("handle"),label:(0,si.jsx)(Ls,{icon:"handle"})}),(0,si.jsx)(Ms.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Yu.__)("menu"),label:(0,si.jsx)(Ls,{icon:"menu"})})]})})]})}var s4=o(M(),1),VZ=o(P(),1);var Rs=o(O(),1),LZ=o(Q(),1),MZ=o(V(),1),Fl=o(M(),1),Fi=o(P(),1),sE=o(Xr(),1),RZ=o(Nr(),1);function Hl(e,t){return e&&t?e+"//"+t:null}var BZ=o(O(),1),NZ=o(V(),1),EZ=o(Q(),1),IZ=o(P(),1),o4=o(U(),1);var Xu=function(){return Xu=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Xu.apply(this,arguments)};function _Z(e){return e.toLowerCase()}var J1e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],eve=/[^A-Z0-9]+/gi;function e4(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?J1e:r,n=t.stripRegexp,i=n===void 0?eve:n,l=t.transform,s=l===void 0?_Z:l,c=t.delimiter,u=c===void 0?" ":c,m=kZ(kZ(e,a,"$1\0$2"),i,"\0"),p=0,d=m.length;m.charAt(p)==="\0";)p++;for(;m.charAt(d-1)==="\0";)d--;return m.slice(p,d).split("\0").map(s).join(u)}function kZ(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,n){return a.replace(n,r)},e)}function wZ(e){return e.charAt(0).toUpperCase()+e.substr(1)}function tve(e){return wZ(e.toLowerCase())}function CZ(e,t){return t===void 0&&(t={}),e4(e,Xu({delimiter:" ",transform:tve},t))}function SZ(e,t){return t===void 0&&(t={}),e4(e,Xu({delimiter:"."},t))}function t4(e,t){return t===void 0&&(t={}),SZ(e,Xu({delimiter:"-"},t))}function iE(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function lE(e,t,r){if(!e)return;t(iE(e).color);let a=e,n=iE(a).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&a.parentNode&&a.parentNode.nodeType===a.parentNode.ELEMENT_NODE;)a=a.parentNode,n=iE(a).backgroundColor;r(n)}function jp(e,t){let{textColor:r,customTextColor:a,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:m}=e,p={};return t&&s?p.customTextColor=s:t&&l?p.textColor=l:a?p.customTextColor=a:r?p.textColor=r:m?.color?.text&&(p.customTextColor=m.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:m?.color?.background&&(p.customTextColor=m.color.background),p}function r4(e){return{className:w("wp-block-navigation__submenu-container",{"has-text-color":!!(e.textColor||e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!!(e.backgroundColor||e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var TZ=(e,t)=>{let r=e.toLowerCase(),a=t.map(i=>i.title.rendered.toLowerCase());if(!a.includes(r))return e;let n=2;for(;a.includes(`${r} ${n}`);)n++;return`${e} ${n}`},PZ=e=>t4(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function DZ(e){let{saveEntityRecord:t}=(0,NZ.useDispatch)(EZ.store);return(0,BZ.useCallback)(async()=>{let a=e.filter(s=>s.title?.rendered),n=TZ((0,IZ.__)("Overlay"),a),i=PZ(n);return await t("postType","wp_template_part",{slug:i,title:n,content:(0,o4.serialize)([(0,o4.createBlock)("core/paragraph")]),area:Qu},{throwOnError:!0})},[e,t])}var Rc=o(g(),1);function AZ({overlay:e,setAttributes:t,onNavigateToEntityRecord:r}){let{records:a,isResolving:n,hasResolved:i}=(0,LZ.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:l}=(0,MZ.useDispatch)(RZ.store),[s,c]=(0,Rs.useState)(!1),u=(0,Rs.useMemo)(()=>a?a.filter(x=>x.area===Qu):[],[a]),m=DZ(u),p=(0,Rs.useMemo)(()=>{let x=[{label:(0,Fi.__)("None (default)"),value:""}];if(!i||n)return x;let k=u.map(C=>{let S=Hl(C.theme,C.slug);return{label:C.title?.rendered?(0,sE.decodeEntities)(C.title.rendered):C.slug,value:S}});return[...x,...k]},[u,i,n]),d=(0,Rs.useMemo)(()=>!e||!u?null:u.find(x=>Hl(x.theme,x.slug)===e),[e,u]),f=x=>{t({overlay:x||void 0})},h=()=>{!e||!r||r({postId:e,postType:"wp_template_part"})},v=(0,Rs.useCallback)(async()=>{try{c(!0);let x=await m();t({overlay:x.id}),r&&r({postId:x.id,postType:"wp_template_part"})}catch(x){let k=x instanceof Error&&"code"in x&&x.message&&x.code!=="unknown_error"?x.message:(0,Fi.__)("An error occurred while creating the overlay.");l(k,{type:"snackbar"})}finally{c(!1)}},[m,t,r,l]),y=n||s,b=(0,Rs.useMemo)(()=>u.length===0&&i?(0,Fi.__)("No overlays found."):(0,Fi.__)("Select an overlay for navigation."),[u.length,i]),_=(0,Rs.useMemo)(()=>d?(0,Fi.sprintf)((0,Fi.__)("Edit overlay: %s"),d.title?.rendered?(0,sE.decodeEntities)(d.title.rendered):d.slug):(0,Fi.__)("Edit overlay"),[d]);return(0,Rc.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,Rc.jsx)(Fl.Button,{size:"small",icon:$d,onClick:v,disabled:y,accessibleWhenDisabled:!0,isBusy:s,label:(0,Fi.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,Rc.jsxs)(Fl.__experimentalHStack,{alignment:"flex-start",children:[(0,Rc.jsx)(Fl.FlexBlock,{children:(0,Rc.jsx)(Fl.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Fi.__)("Overlay template"),value:e||"",options:p,onChange:f,disabled:n,accessibleWhenDisabled:!0,help:b})}),e&&i&&d&&(0,Rc.jsx)(Fl.FlexItem,{children:(0,Rc.jsx)(Fl.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:h,disabled:!r,accessibleWhenDisabled:!0,label:_,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,Fi.__)("Edit")})})]})]})}var ch=o(M(),1),Up=o(P(),1),uh=o(g(),1);function a4({overlayMenu:e,setAttributes:t}){return(0,uh.jsxs)(ch.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Up.__)("Overlay Visibility"),"aria-label":(0,Up.__)("Configure overlay visibility"),value:e,help:(0,Up.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,uh.jsx)(ch.__experimentalToggleGroupControlOption,{value:"never",label:(0,Up.__)("Off")}),(0,uh.jsx)(ch.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Up.__)("Mobile")}),(0,uh.jsx)(ch.__experimentalToggleGroupControlOption,{value:"always",label:(0,Up.__)("Always")})]})}var i4=o(M(),1),n4=o(P(),1);var zc=o(M(),1),mh=o(P(),1);var Ac=o(g(),1);function zZ({hasIcon:e,icon:t,setAttributes:r}){return(0,Ac.jsxs)(zc.__experimentalVStack,{spacing:4,children:[(0,Ac.jsx)(zc.ToggleControl,{label:(0,mh.__)("Show icon button"),help:(0,mh.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>r({hasIcon:a}),checked:e}),(0,Ac.jsxs)(zc.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,mh.__)("Icon"),value:t,onChange:a=>r({icon:a}),isBlock:!0,children:[(0,Ac.jsx)(zc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,mh.__)("handle"),label:(0,Ac.jsx)(Ls,{icon:"handle"})}),(0,Ac.jsx)(zc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,mh.__)("menu"),label:(0,Ac.jsx)(Ls,{icon:"menu"})})]})]})}var da=o(g(),1);function l4({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:a,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,da.jsxs)(da.Fragment,{children:[(0,da.jsxs)(i4.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,n4.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[a&&(0,da.jsxs)(da.Fragment,{children:[(0,da.jsx)(Ls,{icon:n}),(0,da.jsx)(Sa,{icon:Um})]}),!a&&(0,da.jsxs)(da.Fragment,{children:[(0,da.jsx)("span",{children:(0,n4.__)("Menu")}),(0,da.jsx)("span",{children:(0,n4.__)("Close")})]})]}),t&&(0,da.jsx)(i4.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,da.jsx)(zZ,{hasIcon:a,icon:n,setAttributes:i})})]}):null}var Gp=o(g(),1);function HZ({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:a,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:m}){return(0,Gp.jsx)(s4.PanelBody,{title:(0,VZ.__)("Overlay"),initialOpen:!0,children:(0,Gp.jsxs)(s4.__experimentalVStack,{spacing:4,children:[(0,Gp.jsx)(a4,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,Gp.jsx)(l4,{isResponsive:m,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,Gp.jsx)(AZ,{overlay:t,setAttributes:r,onNavigateToEntityRecord:a})]})})}var p4=o(V(),1),uE=o(Q(),1),dh=o(O(),1),As=o(P(),1);var tv=o(U(),1),jZ=o(wc(),1);var cE=o(O(),1),c4=o(T(),1),FZ=o(V(),1),OZ=o(Q(),1);function ph(e){if(e===void 0)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if(e!=="post-type"&&e!=="taxonomy")throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:e==="taxonomy"?"core/term-data":"core/post-data",args:{field:"link"}}}}function ci({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,c4.useBlockBindingsUtils)(e),{metadata:a,id:n,kind:i,type:l}=t,s=(0,c4.useBlockEditingMode)(),c=!!a?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",m=c&&a?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:d}=(0,FZ.useSelect)(v=>{if(!m||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let y=i==="post-type",b=i==="taxonomy";if(!y&&!b)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:x}=v(OZ.store),k=b?"taxonomy":"postType",C=l==="tag"?"post_tag":l,S=_(k,C,n);return{isBoundEntityAvailable:x("getEntityRecord",[k,C,n])?S!==void 0:!0,entityRecord:S||null}},[i,l,n,m,s]),f=(0,cE.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,cE.useCallback)(v=>{let y=v?.kind??i;if(y)try{let b=ph(y);r(b)}catch(b){console.warn("Failed to create entity binding:",b.message)}},[r,i]);return{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d,clearBinding:f,createBinding:h}}function UZ(e){if(!e)return null;let t=ove(e),r=GZ(t);return(0,jZ.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function GZ(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,tv.parse)(i.content.raw);return p||(0,tv.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=rve(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?GZ(i.children,t+1):{};r={...r,...u};let m=(0,tv.createBlock)(l,s,c);return r[i.id]=m.clientId,m}),mapping:r}}function rve({title:e,xfn:t,classes:r,attr_title:a,object:n,object_id:i,description:l,url:s,type:c,target:u},m,p){n&&n==="post_tag"&&(n="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...a?.length&&{title:a},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:ph(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...m==="core/navigation-submenu"&&{isTopLevelItem:p===0},...m==="core/navigation-link"&&{isTopLevelLink:p===0}}}function ove(e,t="id",r="parent"){let a=Object.create(null),n=[];for(let i of e)a[i[t]]={...i,children:[]},i[r]?(a[i[r]]=a[i[r]]||{},a[i[r]].children=a[i[r]].children||[],a[i[r]].children.push(a[i[t]])):n.push(a[i[t]]);return n}var mE="success",m4="error",d4="pending",ave="idle",u4=null;function nve(e,{throwOnError:t=!1}={}){let r=(0,p4.useRegistry)(),{editEntityRecord:a}=(0,p4.useDispatch)(uE.store),[n,i]=(0,dh.useState)(ave),[l,s]=(0,dh.useState)(null),c=(0,dh.useCallback)(async(m,p,d="publish")=>{let f,h;try{h=await r.resolveSelect(uE.store).getMenuItems({menus:m,per_page:-1,context:"view"})}catch(y){throw new Error((0,As.sprintf)((0,As.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:y})}if(h===null)throw new Error((0,As.sprintf)((0,As.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:v}=UZ(h);try{f=await e(p,v,d),await a("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(y){throw new Error((0,As.sprintf)((0,As.__)('Unable to create Navigation Menu "%s".'),p),{cause:y})}return f},[e,a,r]);return{convert:(0,dh.useCallback)(async(m,p,d)=>{if(u4!==m){if(u4=m,!m||!p){s("Unable to convert menu. Missing menu details."),i(m4);return}return i(d4),s(null),await c(m,p,d).then(f=>(i(mE),u4=null,f)).catch(f=>{if(s(f?.message),i(m4),u4=null,t)throw new Error((0,As.sprintf)((0,As.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:l}}var WZ=nve;var oK=o(U(),1),aK=o(Q(),1),nK=o(V(),1),hh=o(O(),1);var QZ=o(M(),1),YZ=o(Q(),1),XZ=o(V(),1),f4=o(O(),1),rv=o(P(),1);var $Z=o(T(),1),qZ=o(Q(),1),ZZ=o(V(),1);var fh=e=>e==="header"?k9:e==="footer"?a9:e==="sidebar"?kT:e==="overlay"?Zd:e==="menu"?Zd:z0;function KZ(e){return(0,ZZ.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:a}=t($Z.store),i=a(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(qZ.store),c=l(),m=(c?.default_template_part_areas||[]).map(p=>({...p,icon:fh(p.icon)}));for(let p of i){let d=r(p),{theme:f=c?.stylesheet,slug:h}=d.attributes,v=Hl(f,h),y=s("postType","wp_template_part",v);if(y?.area)return m.find(b=>b.area!=="uncategorized"&&b.area===y.area)?.label}},[e])}var ive=["postType","wp_navigation",{status:"draft",per_page:-1}],lve=["postType","wp_navigation",{per_page:-1,status:"publish"}];function JZ(e){let t=(0,f4.useContext)(QZ.Disabled.Context),r=KZ(t?void 0:e),a=(0,XZ.useRegistry)();return(0,f4.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=a.resolveSelect(YZ.store),[i,l]=await Promise.all([n(...ive),n(...lve)]),s=r?(0,rv.sprintf)((0,rv.__)("%s menu"),r):(0,rv.__)("Menu"),c=[...i,...l].reduce((m,p)=>p?.title?.raw?.startsWith(s)?m+1:m,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,a])}var eK="success",h4="error",tK="pending",rK="idle";function iK(e){let[t,r]=(0,hh.useState)(rK),[a,n]=(0,hh.useState)(null),[i,l]=(0,hh.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,nK.useDispatch)(aK.store),u=JZ(e);return{create:(0,hh.useCallback)(async(p=null,d=[],f)=>{if(p&&typeof p!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(h4),new Error("Value of supplied title argument was not a string.");r(tK),n(null),l(null),p||(p=await u().catch(v=>{throw l(v?.message),r(h4),new Error("Failed to create title when saving new Navigation Menu.",{cause:v})}));let h={title:p,content:(0,oK.serialize)(d),status:f};return s("postType","wp_navigation",h).then(v=>(n(v),r(eK),f!=="publish"&&c("postType","wp_navigation",v.id,{status:"publish"}),v)).catch(v=>{throw l(v?.message),r(h4),new Error("Unable to save new Navigation Menu",{cause:v})})},[s,c,u]),status:t,value:a,error:i,isIdle:t===rK,isPending:t===tK,isSuccess:t===eK,isError:t===h4}}var lK=o(V(),1),sK=o(T(),1),sve=[];function cK(e){return(0,lK.useSelect)(t=>{let{getBlock:r,getBlocks:a,hasSelectedInnerBlock:n}=t(sK.store),i=r(e).innerBlocks,l=!!i?.length,s=l?sve:a(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}var uK=o(Br(),1),g4=o(M(),1),mK=o(P(),1),pK=o(g(),1),cve=({className:e="",disabled:t,isMenuItem:r=!1})=>{let a=g4.Button;return r&&(a=g4.MenuItem),(0,pK.jsx)(a,{variant:"link",disabled:t,className:e,href:(0,uK.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,mK.__)("Manage menus")})},dK=cve;var $p=o(T(),1),tm=o(M(),1),E4=o(V(),1),Fc=o(P(),1);var fK=o(T(),1),b4=o(M(),1),hK=o(P(),1),y4=o(O(),1),v4=o(g(),1);function uve({onCreateNew:e,isNotice:t=!1}){let[r,a]=(0,y4.useState)(!1),n=()=>{a(!0),e()},i=(0,y4.createInterpolateElement)((0,hK.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,v4.jsx)(b4.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,v4.jsx)(b4.Notice,{status:"warning",isDismissible:!1,children:i}):(0,v4.jsx)(fK.Warning,{children:i})}var x4=uve;var pE=o(U(),1);var zs=o(M(),1),ov=o(V(),1),Ju=o(P(),1),gh=o(T(),1);var ui=o(g(),1),mve={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},pve=["core/navigation-link","core/navigation-submenu"];function dve({block:e,onClose:t,expandedState:r,expand:a,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,ov.useDispatch)(gh.store),c=e.clientId,u=!pve.includes(e.name);return(0,ui.jsx)(zs.MenuItem,{icon:jm,disabled:u,onClick:()=>{let p=(0,pE.createBlock)(ii.name,ii.attributes);if(e.name==="core/navigation-submenu")i(p,e.innerBlocks.length,c,!1);else{let d=(0,pE.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[p],!1)}n(p),r[e.clientId]||a(e.clientId),t()},children:(0,Ju.__)("Add submenu link")})}function gK(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:a,moveBlocksUp:n,removeBlocks:i}=(0,ov.useDispatch)(gh.store),l=(0,Ju.sprintf)((0,Ju.__)("Remove %s"),(0,gh.BlockTitle)({clientId:r,maximumLength:25})),s=(0,ov.useSelect)(c=>{let{getBlockRootClientId:u}=c(gh.store);return u(r)},[r]);return(0,ui.jsx)(zs.DropdownMenu,{icon:x0,label:(0,Ju.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:mve,noIcons:!0,...e,children:({onClose:c})=>(0,ui.jsxs)(ui.Fragment,{children:[(0,ui.jsxs)(zs.MenuGroup,{children:[(0,ui.jsx)(zs.MenuItem,{icon:L7,onClick:()=>{n([r],s),c()},children:(0,Ju.__)("Move up")}),(0,ui.jsx)(zs.MenuItem,{icon:e0,onClick:()=>{a([r],s),c()},children:(0,Ju.__)("Move down")}),(0,ui.jsx)(dve,{block:t,onClose:c,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,ui.jsx)(zs.MenuGroup,{children:(0,ui.jsx)(zs.MenuItem,{onClick:()=>{i([r],!1),c()},children:l})})]})})}var Fa=o(M(),1),Ut=o(P(),1),NK=o(ls(),1),EK=o(T(),1),IK=o(V(),1),DK=o(Q(),1);var yK=o(O(),1),xK=o(V(),1),_K=o(T(),1);var dE=o(bK(),1),av=o(Br(),1),fve=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",a=(h,v=null)=>{try{let y=v||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,y)}catch{return null}},n=a(e);if(!n)return!0;let i=a(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=r((0,av.getPath)(n.toString())),u=r((0,av.getPath)(i.toString()));if(l!==s||c!==u)return!0;let m=n.searchParams.get("p"),p=i.searchParams.get("p");if(m&&p&&m!==p)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||m&&f||d&&p)},Wp=(e={},t,r={})=>{let{label:a="",kind:n="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:m,kind:p=n,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),v=c?.replace(/http(s?):\/\//gi,"")??"",b=f&&f!==a&&h!==v?(0,dE.escapeHTML)(f):a||(0,dE.escapeHTML)(v),_=d==="post_tag"?"tag":d.replace("-","_"),x=["post","page","tag","category"].indexOf(_)>-1,C=!p&&!x||p==="custom"?"custom":p,S={...c!==void 0?{url:c&&encodeURI((0,av.safeDecodeURI)(c))}:{},...b&&{label:b},...u!==void 0&&{opensInNewTab:u},...C&&{kind:C},..._&&_!=="URL"&&{type:_}};c&&!m&&r.id?fve(r.url,c)&&(S.id=void 0,S.kind="custom",S.type="custom"):m&&Number.isInteger(m)?S.id=m:r.id&&(S.kind=C,S.type=_),t(S);let N="id"in S?S.id:r.id,B="kind"in S?S.kind:r.kind;return{isEntityLink:!!N&&B!=="custom",attributes:S}};function nv({clientId:e,attributes:t,setAttributes:r}){let{updateBlockAttributes:a}=(0,xK.useDispatch)(_K.store),{hasUrlBinding:n,createBinding:i,clearBinding:l}=ci({clientId:e,attributes:t});return(0,yK.useCallback)(s=>{if(!s)return;let c={url:s.url,kind:s.kind,type:s.type,id:s.id};if((!t.label||t.label==="")&&(c.title=s.title),!s.id&&n)l(),a(e,{url:s.url,kind:"custom",type:"custom",id:void 0});else{let{isEntityLink:m,attributes:p}=Wp(c,r,t);m?i(p):l()}},[t,e,n,i,l,r,a])}var T4=o(ls(),1),Vc=o(M(),1),sv=o(P(),1),P4=o(T(),1),wn=o(O(),1),TK=o(Q(),1);var yE=o(fe(),1);var _n=o(M(),1),mi=o(P(),1),lv=o(V(),1),C4=o(Q(),1),kK=o(Nr(),1),hE=o(Xr(),1),gE=o(O(),1);var _4=o(M(),1),k4=o(P(),1);var iv=o(fe(),1),em=o(g(),1);function hve({className:e,onBack:t}){return(0,em.jsx)(_4.Button,{className:e,icon:(0,k4.isRTL)()?I7:N7,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,k4.__)("Back")})}function fE({className:e,title:t,description:r,onBack:a,children:n}){let i=(0,iv.useInstanceId)(fE,"link-ui-dialog-title"),l=(0,iv.useInstanceId)(fE,"link-ui-dialog-description"),s=(0,iv.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,em.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,em.jsxs)(_4.VisuallyHidden,{children:[(0,em.jsx)("h2",{id:i,children:t}),(0,em.jsx)("p",{id:l,children:r})]}),(0,em.jsx)(hve,{className:c,onBack:a}),n]})}var w4=fE;var Oi=o(g(),1);function wK({postType:e,onBack:t,onPageCreated:r,initialTitle:a=""}){let[n,i]=(0,gE.useState)(a),[l,s]=(0,gE.useState)(!1),c=n.trim().length>0,{lastError:u,isSaving:m}=(0,lv.useSelect)(y=>({lastError:y(C4.store).getLastEntitySaveError("postType",e),isSaving:y(C4.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,lv.useDispatch)(C4.store),{createSuccessNotice:d,createErrorNotice:f}=(0,lv.useDispatch)(kK.store);async function h(y){if(y.preventDefault(),!(m||!c))try{let b=await p("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(b){let _={id:b.id,type:e,title:(0,hE.decodeEntities)(b.title.rendered),url:b.link,kind:"post-type"};d((0,mi.sprintf)((0,mi.__)("%s page created successfully."),(0,hE.decodeEntities)(b.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,mi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let v=m||!c;return(0,Oi.jsx)(w4,{className:"link-ui-page-creator",title:(0,mi.__)("Create page"),description:(0,mi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,Oi.jsx)(_n.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,Oi.jsx)("form",{onSubmit:h,children:(0,Oi.jsxs)(_n.__experimentalVStack,{spacing:4,children:[(0,Oi.jsx)(_n.TextControl,{__next40pxDefaultSize:!0,label:(0,mi.__)("Title"),onChange:i,placeholder:(0,mi.__)("No title"),value:n}),(0,Oi.jsx)(_n.CheckboxControl,{label:(0,mi.__)("Publish immediately"),help:(0,mi.__)("If unchecked, the page will be created as a draft."),checked:l,onChange:s}),u&&(0,Oi.jsx)(_n.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,Oi.jsxs)(_n.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,Oi.jsx)(_n.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:m,accessibleWhenDisabled:!0,children:(0,mi.__)("Cancel")}),(0,Oi.jsx)(_n.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:m,"aria-disabled":v,children:(0,mi.__)("Create page")})]})]})})})})}var vE=o(P(),1),CK=o(V(),1),S4=o(T(),1);var bE=o(g(),1),{PrivateQuickInserter:gve}=Z(S4.privateApis);function vve({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:a}=(0,CK.useSelect)(n=>{let{getBlockRootClientId:i}=n(S4.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,bE.jsx)(w4,{className:"link-ui-block-inserter",title:(0,vE.__)("Add block"),description:(0,vE.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,bE.jsx)(gve,{rootClientId:a,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var SK=vve;var kn=o(g(),1);function xE(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return t==="taxonomy"?{type:"term",subtype:e}:t==="post-type"?{type:"post",subtype:e}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function bve(e,t){let{label:r,url:a,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{clientId:c}=e,u=i||"page",[m,p]=(0,wn.useState)(!1),[d,f]=(0,wn.useState)(!1),[h,v]=(0,wn.useState)(null),y=(0,wn.useRef)(),b=(0,wn.useRef)(),_=(0,wn.useRef)(),x=(0,TK.useResourcePermissions)({kind:"postType",name:u}),{isBoundEntityAvailable:k}=ci({clientId:c,attributes:e.link}),C=(0,wn.useMemo)(()=>({url:a,opensInNewTab:n,title:r&&(0,T4.__unstableStripHTML)(r),kind:l,type:i,id:s}),[r,n,a,l,i,s]),S=A=>{e.onChange(A),f(!1),v(!0)},N=(0,yE.useInstanceId)(Hc,"link-ui-link-control__title"),B=(0,yE.useInstanceId)(Hc,"link-ui-link-control__description");(0,wn.useEffect)(()=>{h&&y.current&&(h?.current?h.current.focus():(T4.focus.tabbable.find(y.current)[0]||y.current).focus(),v(!1))},[h]);let D=(0,P4.useBlockEditingMode)();return(0,kn.jsxs)(Vc.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!m&&!d&&(0,kn.jsxs)("div",{ref:y,role:"dialog","aria-labelledby":N,"aria-describedby":B,children:[(0,kn.jsxs)(Vc.VisuallyHidden,{children:[(0,kn.jsx)("h2",{id:N,children:(0,sv.__)("Add link")}),(0,kn.jsx)("p",{id:B,children:(0,sv.__)("Search for and add a link to your Navigation.")})]}),(0,kn.jsx)(P4.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:C,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:xE(i,l),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:k,forceIsEditingLink:C?.url?!1:void 0,renderControlBottom:()=>C?.url?.length?null:(0,kn.jsx)(yve,{addPageButtonRef:b,addBlockButtonRef:_,setAddingBlock:()=>{p(!0)},setAddingPage:()=>{f(!0)},canAddPage:x?.canCreate&&i==="page",canAddBlock:D==="default"})})]}),m&&(0,kn.jsx)(SK,{clientId:e.clientId,onBack:()=>{p(!1),v(_)},onBlockInsert:e?.onBlockInsert}),d&&(0,kn.jsx)(wK,{postType:u,onBack:()=>{f(!1),v(b)},onPageCreated:S,initialTitle:C?.url||""})]})}var Hc=(0,wn.forwardRef)(bve),yve=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:a,canAddPage:n,canAddBlock:i})=>{let l="listbox";return!n&&!i?null:(0,kn.jsxs)(Vc.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,kn.jsx)(Vc.Button,{__next40pxDefaultSize:!0,ref:e,icon:$d,onClick:s=>{s.preventDefault(),a(!0)},"aria-haspopup":l,children:(0,sv.__)("Create page")}),i&&(0,kn.jsx)(Vc.Button,{__next40pxDefaultSize:!0,ref:t,icon:$d,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,sv.__)("Add block")})]})};var Ol=o(P(),1),B4=o(Br(),1),PK=o(T(),1);var{useRemoteUrlData:xve}=Z(PK.privateApis);function _ve(e){return e.charAt(0).toUpperCase()+e.slice(1)}function kve(e){if(!e)return{displayUrl:"",isExternal:!1};let t=(0,B4.safeDecodeURI)(e),r=!1;try{let a=new URL(e),n=window.location.origin;if(a.origin===n){let i=a.pathname+a.search+a.hash;i.endsWith("/")&&i.length>1&&(i=i.slice(0,-1)),t=i}else r=!0}catch{t=(0,B4.safeDecodeURI)(e)}return{displayUrl:t,isExternal:r}}function wve({url:e,type:t,isExternal:r,entityStatus:a,hasBinding:n,isEntityAvailable:i}){let l=[];if(e&&(r?l.push({label:(0,Ol.__)("External link"),intent:"default"}):t&&l.push({label:_ve(t),intent:"default"})),!e)l.push({label:(0,Ol.__)("No link selected"),intent:"error"});else if(n&&!i)l.push({label:(0,Ol.__)("Deleted"),intent:"error"});else if(a){let c={publish:{label:(0,Ol.__)("Published"),intent:"success"},future:{label:(0,Ol.__)("Scheduled"),intent:"warning"},draft:{label:(0,Ol.__)("Draft"),intent:"warning"},pending:{label:(0,Ol.__)("Pending"),intent:"warning"},private:{label:(0,Ol.__)("Private"),intent:"default"},trash:{label:(0,Ol.__)("Trash"),intent:"error"}}[a];c&&l.push(c)}return l}function BK({url:e,title:t,image:r,type:a,entityStatus:n,hasBinding:i,isEntityAvailable:l}){let{richData:s}=xve(t?null:e),{displayUrl:c,isExternal:u}=kve(e),m=wve({url:e,type:a,isExternal:u,entityStatus:n,hasBinding:i,isEntityAvailable:l});return{title:e?t||s?.title||(0,B4.safeDecodeURI)(e):(0,Ol.__)("Add link"),url:c,image:r,badges:m}}var pi=o(g(),1),{LinkPicker:Cve}=Z(EK.privateApis);function LK(e,t){if(t==="post-type")switch(e){case"post":return(0,Ut.__)("post");case"page":return(0,Ut.__)("page");default:return e||(0,Ut.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,Ut.__)("category");case"tag":return(0,Ut.__)("tag");default:return e||(0,Ut.__)("term")}return e||(0,Ut.__)("item")}function cv({attributes:e,setAttributes:t,clientId:r}){let{label:a,url:n,description:i,rel:l,opensInNewTab:s}=e,c=W(),{hasUrlBinding:u,isBoundEntityAvailable:m,entityRecord:p}=ci({clientId:r,attributes:e}),d=u,f=m?MK({type:e.type,kind:e.kind}):N4({type:e.type,kind:e.kind}),h=nv({clientId:r,attributes:e,setAttributes:t}),v=p?.title?.rendered||p?.title||p?.name,y=(0,IK.useSelect)(_=>{if(!p?.featured_media)return null;let{getEntityRecord:x}=_(DK.store),k=x("postType","attachment",p.featured_media);return k?.media_details?.sizes?.thumbnail?.source_url||k?.media_details?.sizes?.medium?.source_url||k?.source_url||null},[p?.featured_media]),b=BK({url:n,title:v,image:y,type:e.type,entityStatus:p?.status,hasBinding:u,isEntityAvailable:m});return(0,pi.jsxs)(Fa.__experimentalToolsPanel,{label:(0,Ut.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:c,children:[(0,pi.jsx)(Fa.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,Ut.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,pi.jsx)(Fa.TextControl,{__next40pxDefaultSize:!0,label:(0,Ut.__)("Text"),value:a?(0,NK.__unstableStripHTML)(a):"",onChange:_=>{t({label:_})},autoComplete:"off"})}),(0,pi.jsx)(Fa.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Ut.__)("Link to"),onDeselect:()=>t({url:""}),isShownByDefault:!0,children:(0,pi.jsx)(Cve,{preview:b,onSelect:h,suggestionsQuery:xE(e.type,e.kind),label:(0,Ut.__)("Link to"),help:d?f:void 0})}),(0,pi.jsx)(Fa.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ut.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,pi.jsx)(Fa.CheckboxControl,{label:(0,Ut.__)("Open in new tab"),checked:s,onChange:_=>t({opensInNewTab:_})})}),(0,pi.jsx)(Fa.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,Ut.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,pi.jsx)(Fa.TextareaControl,{label:(0,Ut.__)("Description"),value:i||"",onChange:_=>{t({description:_})},help:(0,Ut.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,pi.jsx)(Fa.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ut.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!0,children:(0,pi.jsx)(Fa.TextControl,{__next40pxDefaultSize:!0,label:(0,Ut.__)("Rel attribute"),value:l||"",onChange:_=>{t({rel:_})},autoComplete:"off",help:(0,Ut.__)("The relationship of the linked URL as space-separated link types.")})})]})}function MK({type:e,kind:t}){let r=LK(e,t);return(0,Ut.sprintf)((0,Ut.__)("Synced with the selected %s."),r)}function N4({type:e,kind:t}){let r=LK(e,t);return(0,Ut.sprintf)((0,Ut.__)("Synced %s is missing. Please update or remove this link."),r)}var RK=o(V(),1),AK=o(Q(),1),zK=o(T(),1),uv=(e,t,r,a)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,zK.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,RK.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!a)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=p(AK.store),h=d("postType",t,r),y=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:y}},[n,l,a,t,r]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};var _E=o(P(),1),VK=o(Xr(),1),kE=o(g(),1);function mv({label:e,isInvalid:t,isDraft:r,className:a="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,_E.__)("Invalid"):(0,_E.__)("Draft");return(0,kE.jsx)("div",{className:w("wp-block-navigation-link__placeholder-text",a,{"is-invalid":t,"is-draft":r}),children:(0,kE.jsx)("span",{children:`${(0,VK.decodeEntities)(e)} (${n})`.trim()})})}var HK=o(V(),1),FK=o(T(),1);function pv(e){return(0,HK.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:a,getBlockParentsByBlockName:n}=t(FK.store),i=r(),l=n(e,"core/navigation")[0];return i===l||a(l,!0)},[e])}var Cn=o(g(),1),Sve=(0,Fc.__)("Switch to '%s'"),Tve=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Pve}=Z($p.privateApis);function Bve({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:a,removeBlock:n}=(0,E4.useDispatch)($p.store),i=Tve?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=ci({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let m=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),r(null)},p=f=>h=>{f&&a(f,h)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),r(f)};return(0,Cn.jsx)(Hc,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{m()},onChange:f=>{let{isEntityLink:h,attributes:v}=Wp(f,p(t?.clientId),t?.attributes);h?c(v):u(),r(null)}})}var Nve=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:a,onCreateNew:n})=>{let i=(0,E4.useSelect)(c=>!!c($p.store).getBlockCount(e),[e]),{navigationMenu:l}=rh(t);if(t&&a)return(0,Cn.jsx)(x4,{onCreateNew:n,isNotice:!0});if(r)return(0,Cn.jsx)(tm.Spinner,{});let s=l?(0,Fc.sprintf)((0,Fc.__)("Structure for Navigation Menu: %s"),l?.title||(0,Fc.__)("Untitled menu")):(0,Fc.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Cn.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!i&&(0,Cn.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,Fc.__)("This Navigation Menu is empty.")}),(0,Cn.jsx)(Pve,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:gK,additionalBlockContent:Bve})]})},Eve=e=>{let{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:r,currentMenuId:a=null,onCreateNew:n,onSelectClassicMenu:i,onSelectNavigationMenu:l,isManageMenusButtonDisabled:s,blockEditingMode:c}=e;return(0,Cn.jsx)($p.InspectorControls,{group:"list",children:(0,Cn.jsxs)(tm.PanelBody,{title:null,children:[(0,Cn.jsxs)(tm.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,Cn.jsx)(tm.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,Fc.__)("Menu")}),c==="default"&&(0,Cn.jsx)(Kk,{currentMenuId:a,onSelectClassicMenu:i,onSelectNavigationMenu:l,onCreateNew:n,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:r,actionLabel:Sve,isManageMenusButtonDisabled:s})]}),(0,Cn.jsx)(Nve,{...e})]})})},I4=Eve;var OK=o(M(),1),wE=o(g(),1);function D4({id:e,children:t}){return(0,wE.jsx)(OK.VisuallyHidden,{children:(0,wE.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var jK=o(Q(),1),L4=o(P(),1);var UK=o(g(),1);function GK({id:e}){let[t]=(0,jK.useEntityProp)("postType","wp_navigation","title"),r=(0,L4.sprintf)((0,L4.__)('Navigation Menu: "%s"'),t);return(0,UK.jsx)(D4,{id:e,children:r})}var me=o(g(),1);function Ive({clientId:e}){let{insertBlock:t}=(0,rm.useDispatch)(ot.store),{getBlockCount:r}=(0,rm.useSelect)(ot.store),a=(0,hr.useCallback)(()=>{let n=r(e),i=(0,WK.createBlock)(ii.name,{kind:ii.attributes.kind,type:ii.attributes.type});t(i,n,e)},[e,t,r]);return(0,me.jsx)(ot.BlockControls,{children:(0,me.jsx)(jo.ToolbarGroup,{children:(0,me.jsx)(jo.ToolbarButton,{name:"add-page",icon:dc,onClick:a,children:(0,Vt.__)("Add page")})})})}function Dve({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:a,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:m}){let[p,d]=(0,hr.useState)(),[f,h]=(0,hr.useState)(),[v,y]=(0,hr.useState)(),[b,_]=(0,hr.useState)(),x=hr.Platform.OS==="web";(0,hr.useEffect)(()=>{if(!x)return;lE(u.current,h,d);let C=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');C&&(n.color||l.color)&&lE(C,_,y)},[x,n.color,l.color,u]);let k=(0,ot.__experimentalUseMultipleOriginColorsAndGradients)();return k.hasColorsOrGradients?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(ot.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,Vt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Vt.__)("Background"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0},{colorValue:n.color,label:m?(0,Vt.__)("Submenu text"):(0,Vt.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:m?(0,Vt.__)("Submenu background"):(0,Vt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}],panelId:c,...k,gradients:[],disableCustomGradients:!0}),x&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(ot.ContrastChecker,{backgroundColor:p,textColor:f}),(0,me.jsx)(ot.ContrastChecker,{backgroundColor:v,textColor:b})]})]}):null}function Lve({attributes:e,setAttributes:t,clientId:r,isSelected:a,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:p,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{openSubmenusOnClick:v,overlayMenu:y,overlay:b,showSubmenuIcon:_,templateLock:x,layout:{justifyContent:k,orientation:C="horizontal",flexWrap:S="wrap"}={},hasIcon:N,icon:B="handle"}=e,D=e.ref,A=(0,hr.useCallback)(Pr=>{t({ref:Pr})},[t]),R=`navigationMenu/${D}`,j=(0,ot.useHasRecursion)(R),z=(0,ot.useBlockEditingMode)(),{onNavigateToEntityRecord:E}=(0,rm.useSelect)(Pr=>{let{getSettings:zd}=Pr(ot.store);return{onNavigateToEntityRecord:zd()?.onNavigateToEntityRecord}},[]),H=typeof window<"u"&&window.__experimentalNavigationOverlays===!0,{menus:G}=oh(),[F,q]=Jk({name:"block-library/core/navigation/status"}),[K,te]=Jk({name:"block-library/core/navigation/classic-menu-conversion"}),[X,re]=Jk({name:"block-library/core/navigation/permissions/update"}),{create:J,status:ne,error:oe,value:le,isPending:ce,isSuccess:ye,isError:Me}=iK(r),ie=async()=>{await J("")},{hasUncontrolledInnerBlocks:Ve,uncontrolledInnerBlocks:Re,isInnerBlockSelected:ae,innerBlocks:pe}=cK(r),Be=!!pe.find(Pr=>Pr.name==="core/navigation-submenu"),{replaceInnerBlocks:de,selectBlock:lt,__unstableMarkNextChangeAsNotPersistent:Ie}=(0,rm.useDispatch)(ot.store),[st,Lt]=(0,hr.useState)(!1),[Qe,gr]=(0,hr.useState)(!1),{hasResolvedNavigationMenus:je,isNavigationMenuResolved:Y,isNavigationMenuMissing:he,canUserUpdateNavigationMenu:Fe,hasResolvedCanUserUpdateNavigationMenu:Oe,canUserDeleteNavigationMenu:He,hasResolvedCanUserDeleteNavigationMenu:rr,canUserCreateNavigationMenus:cr,isResolvingCanUserCreateNavigationMenus:Ar,hasResolvedCanUserCreateNavigationMenus:$e}=rh(D),To=je&&he,{convert:ru,status:ka,error:Ja}=WZ(J),ou=ka===d4,wi=(0,hr.useCallback)((Pr,zd={focusNavigationBlock:!1})=>{let{focusNavigationBlock:Ag}=zd;A(Pr),Ag&<(r)},[lt,r,A]),ol=!he&&Y,mc=Ve&&!ol,{getNavigationFallbackId:Md}=Z((0,rm.useSelect)(R4.store)),au=D||mc?null:Md();(0,hr.useEffect)(()=>{D||mc||!au||(Ie(),A(au))},[D,A,mc,au,Ie]);let Rd=(0,hr.useRef)(),Ce="nav",yt=!D&&!ce&&!ou&&je&&G?.length===0&&!Ve,Tr=!je||ce||ou||!!(D&&!ol&&!ou),al=e.style?.typography?.textDecoration,os=(0,rm.useSelect)(Pr=>Pr(ot.store).__unstableHasActiveBlockOverlayActive(r),[r]),nl=y!=="never",pc=(0,ot.useBlockProps)({ref:Rd,className:w(n,{"items-justified-right":k==="right","items-justified-space-between":k==="space-between","items-justified-left":k==="left","items-justified-center":k==="center","is-vertical":C==="vertical","no-wrap":S==="nowrap","is-responsive":nl,"has-text-color":!!s.color||!!s?.class,[(0,ot.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,ot.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${al}`]:al,"block-editor-block-content-overlay":os},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),co=async Pr=>ru(Pr.id,Pr.name,"draft"),Ad=Pr=>{wi(Pr)};(0,hr.useEffect)(()=>{q(),ce&&(0,M4.speak)((0,Vt.__)("Creating Navigation Menu.")),ye&&(wi(le?.id,{focusNavigationBlock:!0}),F((0,Vt.__)("Navigation Menu successfully created."))),Me&&F((0,Vt.__)("Failed to create Navigation Menu."))},[ne,oe,le?.id,Me,ye,ce,wi,q,F]),(0,hr.useEffect)(()=>{te(),ka===d4&&(0,M4.speak)((0,Vt.__)("Classic menu importing.")),ka===mE&&(K((0,Vt.__)("Classic menu imported successfully.")),wi(le?.id,{focusNavigationBlock:!0})),ka===m4&&K((0,Vt.__)("Classic menu import failed."))},[ka,Ja,te,K,le?.id,wi]),(0,hr.useEffect)(()=>{!a&&!ae&&re(),(a||ae)&&(D&&!To&&Oe&&!Fe&&X((0,Vt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!D&&$e&&!cr&&X((0,Vt.__)("You do not have permission to create Navigation Menus.")))},[a,ae,Fe,Oe,cr,$e,D,re,X,To]);let g8=cr||Fe,Lg=w("wp-block-navigation__overlay-menu-preview",{open:Qe}),Im=!_&&!v?(0,Vt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'):"",D2=(0,hr.useRef)(!0);(0,hr.useEffect)(()=>{!D2.current&&Im&&(0,M4.speak)(Im),D2.current=!1},[Im]);let Mg=(0,$K.useInstanceId)(xZ,"overlay-menu-preview"),Rg=W(),L2=(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(ot.InspectorControls,{children:(!H||Be)&&(0,me.jsxs)(jo.__experimentalToolsPanel,{label:(0,Vt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,openSubmenusOnClick:!1,overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Rg,children:[!H&&(0,me.jsxs)(me.Fragment,{children:[nl&&(0,me.jsx)(l4,{isResponsive:nl,overlayMenuPreview:Qe,setOverlayMenuPreview:gr,hasIcon:N,icon:B,setAttributes:t,overlayMenuPreviewClasses:Lg,overlayMenuPreviewId:Mg,containerStyle:{gridColumn:"span 2"}}),(0,me.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>y!=="mobile",label:(0,Vt.__)("Overlay Visibility"),onDeselect:()=>t({overlayMenu:"mobile"}),isShownByDefault:!0,children:(0,me.jsx)(a4,{overlayMenu:y,setAttributes:t})})]}),Be&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Vt.__)("Submenus")}),(0,me.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>v,label:(0,Vt.__)("Open on click"),onDeselect:()=>t({openSubmenusOnClick:!1,showSubmenuIcon:!0}),isShownByDefault:!0,children:(0,me.jsx)(jo.ToggleControl,{checked:v,onChange:Pr=>{t({openSubmenusOnClick:Pr,...Pr&&{showSubmenuIcon:!0}})},label:(0,Vt.__)("Open on click")})}),(0,me.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,Vt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:e.openSubmenusOnClick,isShownByDefault:!0,children:(0,me.jsx)(jo.ToggleControl,{checked:_,onChange:Pr=>{t({showSubmenuIcon:Pr})},disabled:e.openSubmenusOnClick,label:(0,Vt.__)("Show arrow")})}),Im&&(0,me.jsx)(jo.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Im})]})]})}),H&&(0,me.jsx)(ot.InspectorControls,{children:(0,me.jsx)(HZ,{overlayMenu:y,overlay:b,setAttributes:t,onNavigateToEntityRecord:E,overlayMenuPreview:Qe,setOverlayMenuPreview:gr,hasIcon:N,icon:B,overlayMenuPreviewClasses:Lg,overlayMenuPreviewId:Mg,isResponsive:nl})}),(0,me.jsx)(ot.InspectorControls,{group:"color",children:(0,me.jsx)(Dve,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:p,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:m,clientId:r,navRef:Rd,hasCustomOverlay:!!b})})]}),nu=`${r}-desc`,Dm=y==="always",iu=!g8||!je;if(mc&&!ce)return(0,me.jsxs)(Ce,{...pc,"aria-describedby":yt?void 0:nu,children:[(0,me.jsx)(D4,{id:nu,children:(0,Vt.__)("Unsaved Navigation Menu.")}),(0,me.jsx)(I4,{clientId:r,createNavigationMenuIsSuccess:ye,createNavigationMenuIsError:Me,currentMenuId:D,isNavigationMenuMissing:he,isManageMenusButtonDisabled:iu,onCreateNew:ie,onSelectClassicMenu:co,onSelectNavigationMenu:Ad,isLoading:Tr,blockEditingMode:z}),z==="default"&&L2,(0,me.jsx)(oE,{id:r,onToggle:Lt,isOpen:st,hasIcon:N,icon:B,isResponsive:nl,isHiddenByDefault:Dm,overlayBackgroundColor:u,overlayTextColor:p,overlay:b,onNavigateToEntityRecord:E,children:(0,me.jsx)(fZ,{createNavigationMenu:J,blocks:Re,hasSelection:a||ae})})]});if(D&&he)return(0,me.jsxs)(Ce,{...pc,children:[(0,me.jsx)(I4,{clientId:r,createNavigationMenuIsSuccess:ye,createNavigationMenuIsError:Me,currentMenuId:D,isNavigationMenuMissing:he,isManageMenusButtonDisabled:iu,onCreateNew:ie,onSelectClassicMenu:co,onSelectNavigationMenu:Ad,isLoading:Tr,blockEditingMode:z}),(0,me.jsx)(x4,{onCreateNew:ie})]});if(ol&&j)return(0,me.jsx)("div",{...pc,children:(0,me.jsx)(ot.Warning,{children:(0,Vt.__)("Block cannot be rendered inside itself.")})});let M2=f||Xq;return yt&&f?(0,me.jsx)(Ce,{...pc,children:(0,me.jsx)(M2,{isSelected:a,currentMenuId:D,clientId:r,canUserCreateNavigationMenus:cr,isResolvingCanUserCreateNavigationMenus:Ar,onSelectNavigationMenu:Ad,onSelectClassicMenu:co,onCreateEmpty:ie})}):(0,me.jsx)(R4.EntityProvider,{kind:"postType",type:"wp_navigation",id:D,children:(0,me.jsxs)(ot.RecursionProvider,{uniqueId:R,children:[(0,me.jsx)(I4,{clientId:r,createNavigationMenuIsSuccess:ye,createNavigationMenuIsError:Me,currentMenuId:D,isNavigationMenuMissing:he,isManageMenusButtonDisabled:iu,onCreateNew:ie,onSelectClassicMenu:co,onSelectNavigationMenu:Ad,isLoading:Tr,blockEditingMode:z}),z==="default"&&L2,z==="contentOnly"&&ol&&(0,me.jsx)(Ive,{clientId:r}),z==="default"&&ol&&(0,me.jsxs)(ot.InspectorControls,{group:"advanced",children:[Oe&&Fe&&(0,me.jsx)(lZ,{}),rr&&He&&(0,me.jsx)(vZ,{onDelete:()=>{de(r,[]),F((0,Vt.__)("Navigation Menu successfully deleted."))}}),(0,me.jsx)(dK,{disabled:iu,className:"wp-block-navigation-manage-menus-button"})]}),(0,me.jsxs)(Ce,{...pc,"aria-describedby":!yt&&!Tr?nu:void 0,children:[Tr&&!Dm&&(0,me.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,me.jsx)(jo.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Tr||Dm)&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(GK,{id:nu}),(0,me.jsx)(oE,{id:r,onToggle:Lt,hasIcon:N,icon:B,isOpen:st,isResponsive:nl,isHiddenByDefault:Dm,overlayBackgroundColor:u,overlayTextColor:p,overlay:b,onNavigateToEntityRecord:E,children:ol&&(0,me.jsx)(rZ,{clientId:r,hasCustomPlaceholder:!!f,templateLock:x,orientation:C})})]})]})]})})}var qK=(0,ot.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(Lve);var ZK=o(T(),1),KK=o(g(),1);function QK({attributes:e}){if(!e.ref)return(0,KK.jsx)(ZK.InnerBlocks.Content,{})}var qp=o(T(),1),vh=o(fe(),1);var Zp=o(g(),1),CE={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},bh=({navigationMenuId:e,...t})=>({...t,ref:e}),A4=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:r,...a}=e;return(t||r)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),a},Mve={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,Zp.jsx)(qp.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:bh},Rve={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,Zp.jsx)(qp.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,vh.compose)(bh,A4)},Ave={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,Zp.jsx)(qp.InnerBlocks.Content,{})},migrate:(0,vh.compose)(bh,A4,Mt),isEligible({style:e}){return e?.typography?.fontFamily}},zve=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},Vve=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let a=CE[t];if(a&&r.startsWith(a)){let n=r.slice(a.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,r]}))}}},Hve=[Mve,Rve,Ave,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,vh.compose)(bh,A4,Mt,zve),save(){return(0,Zp.jsx)(qp.InnerBlocks.Content,{})}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,Zp.jsx)(qp.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in CE){let r=e.style.typography[t];if(r&&r.startsWith(CE[t]))return!0}return!1},migrate:(0,vh.compose)(bh,A4,Mt,Vve)},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,vh.compose)(bh,e=>{let{rgbTextColor:t,rgbBackgroundColor:r,...a}=e;return{...a,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,Zp.jsx)(qp.InnerBlocks.Content,{})}}],YK=Hve;var{name:tQ}=Wk,rQ={icon:Qm,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,z4.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,z4.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,z4.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:qK,save:QK,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,XK.select)(JK.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,eQ.decodeEntities)(t.title)},deprecated:YK},Fve=()=>I({name:tQ,metadata:Wk,settings:rQ});var PE={};$(PE,{init:()=>Qve,metadata:()=>V4,name:()=>pQ,settings:()=>U4});var fv=o(P(),1);var sQ=o(T(),1),cQ=o(wc(),1),uQ=o(U(),1);var V4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{anchor:!0,reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var H4=o(U(),1),dv=o(V(),1),Kp=o(M(),1),F4=o(ms(),1),ji=o(P(),1),Go=o(T(),1),O4=o(Br(),1),Uo=o(O(),1);var j4=o(fe(),1);var Gt=o(g(),1),jve={name:"core/navigation-link"},Uve=["core/navigation-link","core/navigation-submenu"],Gve=e=>{let[t,r]=(0,Uo.useState)(!1);return(0,Uo.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[e]),t};function Wve(e){let t="";switch(e){case"post":t=(0,ji.__)("Select post");break;case"page":t=(0,ji.__)("Select page");break;case"category":t=(0,ji.__)("Select category");break;case"tag":t=(0,ji.__)("Select tag");break;default:t=(0,ji.__)("Add link")}return t}function TE({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:a,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:m,url:p,description:d,kind:f,metadata:h}=e,{maxNestingLevel:v}=l,{replaceBlock:y,__unstableMarkNextChangeAsNotPersistent:b,selectBlock:_}=(0,dv.useDispatch)(Go.store),[x,k]=(0,Uo.useState)(t&&!p),[C,S]=(0,Uo.useState)(null),N=(0,Uo.useRef)(null),B=Gve(N),D=(0,ji.__)("Add label\u2026"),A=(0,Uo.useRef)(),R=(0,Uo.useRef)(),j=(0,Uo.useRef)(u===void 0),z=(0,Uo.useRef)(!1),{isAtMaxNesting:E,isTopLevelLink:H,isParentOfSelectedBlock:G,hasChildren:F,parentBlockClientId:q,isSubmenu:K}=(0,dv.useSelect)(je=>{let{getBlockCount:Y,getBlockName:he,getBlockRootClientId:Fe,hasSelectedInnerBlock:Oe,getBlockParentsByBlockName:He}=je(Go.store),rr=Fe(s),cr=he(rr),Ar=cr==="core/navigation",$e=Ar?rr:He(s,"core/navigation")[0],To=cr==="core/navigation-submenu"?rr:$e;return{isAtMaxNesting:He(s,Uve).length>=v,isTopLevelLink:Ar,isParentOfSelectedBlock:Oe(s,!0),hasChildren:!!Y(s),parentBlockClientId:To,isSubmenu:cr==="core/navigation-submenu"}},[s,v]),te=pv(s),{getBlocks:X}=(0,dv.useSelect)(Go.store),{hasUrlBinding:re,isBoundEntityAvailable:J}=ci({clientId:s,attributes:e}),ne=nv({clientId:s,attributes:e,setAttributes:r}),[oe,le]=uv(f,m,c,te),ce=(0,Uo.useCallback)(()=>{let je=X(s);je.length===0&&(je=[(0,H4.createBlock)("core/navigation-link")],_(je[0].clientId));let Y=(0,H4.createBlock)("core/navigation-submenu",e,je);y(s,Y)},[X,s,_,y,e]);(0,Uo.useEffect)(()=>{j.current&&t&&_(q)},[]),(0,Uo.useEffect)(()=>{F&&(b(),ce())},[F,b,ce]),(0,Uo.useEffect)(()=>{if(!(!j.current||!p||!x)){if(j.current=!1,(0,O4.isURL)((0,O4.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))ye();else if(_(s,null),K){let je=X(q);je.length===1&&je[0].clientId===s&&(z.current=!0)}}},[p,x,j,u]);function ye(){A.current.focus();let{ownerDocument:je}=A.current,{defaultView:Y}=je,he=Y.getSelection(),Fe=je.createRange();Fe.selectNodeContents(A.current),he.removeAllRanges(),he.addRange(Fe)}function Me(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),k(!1)}let{textColor:ie,customTextColor:Ve,backgroundColor:Re,customBackgroundColor:ae}=jp(l,!H);function pe(je){F4.isKeyboardEvent.primary(je,"k")&&(je.preventDefault(),je.stopPropagation(),k(!0))}let Be=(0,j4.useInstanceId)(TE),de=re&&!J,lt=de?(0,ji.sprintf)("navigation-link-edit-%d-desc",Be):void 0,Ie=(0,Go.useBlockProps)({ref:(0,j4.useMergeRefs)([S,N]),className:w("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":B,"has-link":!!p,"has-child":F,"has-text-color":!!ie||!!Ve,[(0,Go.getColorClassName)("color",ie)]:!!ie,"has-background":!!Re||ae,[(0,Go.getColorClassName)("background-color",Re)]:!!Re}),"aria-describedby":lt,"aria-invalid":de,style:{color:!ie&&Ve,backgroundColor:!Re&&ae},onKeyDown:pe}),st=(0,Go.useInnerBlocksProps)({...Ie,className:"remove-outline"},{defaultBlock:jve,directInsert:!0,renderAppender:!1}),Lt=!p&&!(re&&J)||oe||le||re&&!J;Lt&&(Ie.onClick=()=>{k(!0)});let Qe=w("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":Lt}),gr=Wve(m);return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)(Go.BlockControls,{children:(0,Gt.jsxs)(Kp.ToolbarGroup,{children:[(0,Gt.jsx)(Kp.ToolbarButton,{name:"link",icon:Fn,title:(0,ji.__)("Link"),shortcut:F4.displayShortcut.primary("k"),onClick:()=>{k(!0)}}),!E&&(0,Gt.jsx)(Kp.ToolbarButton,{name:"submenu",icon:jm,title:(0,ji.__)("Add submenu"),onClick:ce})]})}),(0,Gt.jsx)(Go.InspectorControls,{children:(0,Gt.jsx)(cv,{attributes:e,setAttributes:r,clientId:s})}),(0,Gt.jsxs)("div",{...Ie,children:[de&&(0,Gt.jsx)(Kp.VisuallyHidden,{id:lt,children:(0,Gt.jsx)(N4,{type:m,kind:f})}),(0,Gt.jsxs)("a",{className:Qe,children:[!p&&!h?.bindings?.url?(0,Gt.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,Gt.jsx)("span",{children:gr})}):(0,Gt.jsxs)(Gt.Fragment,{children:[!oe&&!le&&(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)(Go.RichText,{ref:A,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:je=>r({label:je}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>a((0,H4.createBlock)("core/navigation-link")),"aria-label":(0,ji.__)("Navigation link text"),placeholder:D,withoutInteractiveFormatting:!0}),d&&(0,Gt.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(oe||le)&&(0,Gt.jsx)(mv,{label:u,isInvalid:oe,isDraft:le,className:"wp-block-navigation-link__label"})]}),x&&(0,Gt.jsx)(Hc,{ref:R,clientId:s,link:e,onClose:()=>{if(k(!1),!p&&!re){i([]);return}if(z.current&&(z.current=!1,N.current?.nextElementSibling)){let je=N.current.nextElementSibling.querySelector(".block-editor-button-block-appender");je&&je.focus()}},anchor:C,onRemove:Me,onChange:ne})]}),(0,Gt.jsx)("div",{...st})]})]})}var oQ=o(T(),1),aQ=o(g(),1);function nQ(){return(0,aQ.jsx)(oQ.InnerBlocks.Content,{})}function $ve(e){switch(e){case"post":return B0;case"page":return dc;case"tag":return O0;case"category":return vu;default:return e9}}function iQ(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(n,i)=>n.type===i.type,a=e.variations.map(n=>({...n,...!n.icon&&{icon:$ve(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:a}}return e}var Wo=o(U(),1),qve={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Wo.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Wo.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Wo.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Wo.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Wo.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,Wo.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,Wo.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Wo.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Wo.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Wo.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Wo.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Wo.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Wo.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,Wo.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:a,opensInNewTab:n})=>(0,Wo.createBlock)("core/buttons",{},[(0,Wo.createBlock)("core/button",{text:e,url:t,rel:r,title:a,linkTarget:n?"_blank":void 0})])}]},lQ=qve;var mQ=o(g(),1),{fieldsKey:Zve,formKey:Kve}=Z(uQ.privateApis),{name:pQ}=V4,U4={icon:i0,__experimentalLabel:({label:e})=>e,merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:TE,save:nQ,example:{attributes:{label:(0,fv._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,mQ.jsx)(sQ.InnerBlocks.Content,{})}}],transforms:lQ};window.__experimentalContentOnlyInspectorFields&&(U4[Zve]=[{id:"label",label:(0,fv.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,fv.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],U4[Kve]={fields:["label","link"]});var Qve=()=>((0,cQ.addFilter)("blocks.registerBlockType","core/navigation-link",iQ),I({name:pQ,metadata:V4,settings:U4}));var NE={};$(NE,{init:()=>r2e,metadata:()=>G4,name:()=>wQ,settings:()=>Q4});var gv=o(P(),1),kQ=o(U(),1);var G4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var $4=o(V(),1),hv=o(M(),1),q4=o(ms(),1),yh=o(P(),1),Or=o(T(),1),Z4=o(Br(),1),di=o(O(),1);var hQ=o(j1(),1),gQ=o(U(),1),K4=o(fe(),1);var W4=o(M(),1),BE=o(g(),1),dQ=()=>(0,BE.jsx)(W4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,BE.jsx)(W4.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var kr=o(g(),1),fQ=["core/navigation-link","core/navigation-submenu","core/page-list"],Xve=e=>{let[t,r]=(0,di.useState)(!1);return(0,di.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[]),t};function vQ({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:a,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u,kind:m,type:p,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,openSubmenusOnClick:v}=i,b=(0,Or.useBlockEditingMode)()!=="default"?!0:v,{clearBinding:_,createBinding:x}=ci({clientId:l,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:k,replaceBlock:C}=(0,$4.useDispatch)(Or.store),[S,N]=(0,di.useState)(!1),[B,D]=(0,di.useState)(null),A=(0,di.useRef)(null),R=Xve(A),j=(0,yh.__)("Add text\u2026"),z=(0,di.useRef)(),{parentCount:E,isParentOfSelectedBlock:H,isImmediateParentOfSelectedBlock:G,hasChildren:F,selectedBlockHasChildren:q,onlyDescendantIsEmptyLink:K}=(0,$4.useSelect)(Ie=>{let{hasSelectedInnerBlock:st,getSelectedBlockClientId:Lt,getBlockParentsByBlockName:Qe,getBlock:gr,getBlockCount:je,getBlockOrder:Y}=Ie(Or.store),he,Fe=Lt(),Oe=Y(Fe);if(Oe?.length===1){let He=gr(Oe[0]);he=He?.name==="core/navigation-link"&&!He?.attributes?.label}return{parentCount:Qe(l,"core/navigation-submenu").length,isParentOfSelectedBlock:st(l,!0),isImmediateParentOfSelectedBlock:st(l,!1),hasChildren:!!je(l),selectedBlockHasChildren:!!Oe?.length,onlyDescendantIsEmptyLink:he}},[l]),te=pv(l),X=(0,K4.usePrevious)(F),[re,J]=uv(m,p,d,te);(0,di.useEffect)(()=>{!b&&!c&&N(!0)},[]),(0,di.useEffect)(()=>{t||N(!1)},[t]),(0,di.useEffect)(()=>{S&&c&&(0,Z4.isURL)((0,Z4.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&ne()},[c]);function ne(){z.current.focus();let{ownerDocument:Ie}=z.current,{defaultView:st}=Ie,Lt=st.getSelection(),Qe=Ie.createRange();Qe.selectNodeContents(z.current),Lt.removeAllRanges(),Lt.addRange(Qe)}let{textColor:oe,customTextColor:le,backgroundColor:ce,customBackgroundColor:ye}=jp(i,E>0);function Me(Ie){q4.isKeyboardEvent.primary(Ie,"k")&&(Ie.preventDefault(),Ie.stopPropagation(),N(!0))}let ie=(0,Or.useBlockProps)({ref:(0,K4.useMergeRefs)([D,A]),className:w("wp-block-navigation-item",{"is-editing":t||H,"is-dragging-within":R,"has-link":!!c,"has-child":F,"has-text-color":!!oe||!!le,[(0,Or.getColorClassName)("color",oe)]:!!oe,"has-background":!!ce||ye,[(0,Or.getColorClassName)("background-color",ce)]:!!ce,"open-on-click":b}),style:{color:!oe&&le,backgroundColor:!ce&&ye},onKeyDown:Me}),Ve=jp(i,!0),Re=E>=h?fQ.filter(Ie=>Ie!=="core/navigation-submenu"):fQ,ae=r4(Ve),pe=(0,Or.useInnerBlocksProps)(ae,{allowedBlocks:Re,defaultBlock:ii,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||G&&!q||F?Or.InnerBlocks.ButtonBlockAppender:!1}),Be=b?"button":"a";function de(){let Ie=(0,gQ.createBlock)("core/navigation-link",e);C(l,Ie)}(0,di.useEffect)(()=>{!F&&X&&(k(),de())},[F,X]);let lt=!q||K;return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(Or.BlockControls,{children:(0,kr.jsxs)(hv.ToolbarGroup,{children:[!b&&(0,kr.jsx)(hv.ToolbarButton,{name:"link",icon:Fn,title:(0,yh.__)("Link"),shortcut:q4.displayShortcut.primary("k"),onClick:()=>{N(!0)}}),(0,kr.jsx)(hv.ToolbarButton,{name:"revert",icon:uT,title:(0,yh.__)("Convert to Link"),onClick:de,className:"wp-block-navigation__submenu__revert",disabled:!lt})]})}),(0,kr.jsx)(Or.InspectorControls,{children:(0,kr.jsx)(cv,{attributes:e,setAttributes:r,clientId:l})}),(0,kr.jsxs)("div",{...ie,children:[(0,kr.jsxs)(Be,{className:"wp-block-navigation-item__content",children:[!re&&!J&&(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(Or.RichText,{ref:z,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:Ie=>r({label:Ie}),onMerge:a,onReplace:n,"aria-label":(0,yh.__)("Navigation link text"),placeholder:j,withoutInteractiveFormatting:!0,onClick:()=>{!b&&!c&&N(!0)}}),u&&(0,kr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(re||J)&&(0,kr.jsx)(mv,{label:s,isInvalid:re,isDraft:J,className:"wp-block-navigation-item__label"}),!b&&S&&(0,kr.jsx)(Hc,{clientId:l,link:e,onClose:()=>{N(!1)},anchor:B,onRemove:()=>{r({url:""}),(0,hQ.speak)((0,yh.__)("Link removed."),"assertive")},onChange:Ie=>{let{isEntityLink:st,attributes:Lt}=Wp(Ie,r,e);st?x(Lt):_()}})]}),(f||b)&&(0,kr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,kr.jsx)(dQ,{})}),(0,kr.jsx)("div",{...pe})]})]})}var bQ=o(T(),1),yQ=o(g(),1);function xQ(){return(0,yQ.jsx)(bQ.InnerBlocks.Content,{})}var Qp=o(U(),1),Jve={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,Qp.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Qp.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Qp.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Qp.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Qp.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Qp.createBlock)("core/search")}]},_Q=Jve;var{fieldsKey:e2e,formKey:t2e}=Z(kQ.privateApis),{name:wQ}=G4,Q4={icon:({context:e})=>e==="list-view"?dc:jm,__experimentalLabel(e,{context:t}){let{label:r}=e,a=e?.metadata?.name;return t==="list-view"&&(a||r)&&e?.metadata?.name||r},edit:vQ,example:{attributes:{label:(0,gv._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:xQ,transforms:_Q};window.__experimentalContentOnlyInspectorFields&&(Q4[e2e]=[{id:"label",label:(0,gv.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,gv.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],Q4[t2e]={fields:["label","link"]});var r2e=()=>I({name:wQ,metadata:G4,settings:Q4});var IE={};$(IE,{init:()=>n2e,metadata:()=>Y4,name:()=>DQ,settings:()=>LQ});var CQ=o(P(),1),SQ=o(T(),1),EE=o(g(),1);function TQ(){return(0,EE.jsx)("div",{...(0,SQ.useBlockProps)(),children:(0,EE.jsx)("span",{children:(0,CQ.__)("Page break")})})}var Y4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{anchor:!0,customClassName:!1,className:!1,html:!1,visibility:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-nextpage-editor"};var PQ=o(O(),1),BQ=o(g(),1);function NQ(){return(0,BQ.jsx)(PQ.RawHTML,{children:"<!--nextpage-->"})}var EQ=o(U(),1),a2e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,EQ.createBlock)("core/nextpage",{})}}]},IQ=a2e;var{name:DQ}=Y4,LQ={icon:gS,example:{},transforms:IQ,edit:TQ,save:NQ},n2e=()=>I({name:DQ,metadata:Y4,settings:LQ});var ME={};$(ME,{init:()=>l2e,metadata:()=>X4,name:()=>HQ,settings:()=>FQ});var VQ=o(wc(),1);var DE=o(V(),1),MQ=o(Q(),1);function RQ(){let e=(0,DE.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:a}=(0,DE.select)(MQ.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?a("postType","wp_template_part",i)?.area===Qu:!1}var xh=o(T(),1),Vs=o(M(),1),Oc=o(P(),1);var Oa=o(g(),1);function AQ({attributes:e,setAttributes:t}){let{displayMode:r,text:a}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",l=(0,xh.useBlockProps)({className:"wp-block-navigation-overlay-close"}),s=W();return(0,Oa.jsxs)(Oa.Fragment,{children:[(0,Oa.jsx)(xh.InspectorControls,{children:(0,Oa.jsx)(Vs.__experimentalToolsPanel,{label:(0,Oc.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:s,children:(0,Oa.jsx)(Vs.__experimentalToolsPanelItem,{label:(0,Oc.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,Oa.jsxs)(Vs.__experimentalToggleGroupControl,{label:(0,Oc.__)("Display Mode"),value:r,onChange:c=>t({displayMode:c}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,Oa.jsx)(Vs.__experimentalToggleGroupControlOption,{value:"icon",label:(0,Oc.__)("Icon")}),(0,Oa.jsx)(Vs.__experimentalToggleGroupControlOption,{value:"text",label:(0,Oc.__)("Text")}),(0,Oa.jsx)(Vs.__experimentalToggleGroupControlOption,{value:"both",label:(0,Oc.__)("Both")})]})})})}),(0,Oa.jsxs)("button",{...l,type:"button","aria-label":i?void 0:(0,Oc.__)("Close"),children:[n&&(0,Oa.jsx)(Sa,{icon:Um}),i&&(0,Oa.jsx)(xh.RichText,{identifier:"text",value:a,onChange:c=>t({text:c}),placeholder:(0,Oc.__)("Close"),withoutInteractiveFormatting:!0,tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var X4={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/navigation-overlay-close",title:"Navigation Overlay Close",category:"design",description:"A customizable button to close overlays.",keywords:["close","overlay","navigation","menu"],textdomain:"default",attributes:{displayMode:{type:"string",enum:["icon","text","both"],default:"icon"},text:{type:"string"}},supports:{color:{gradients:!1,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-navigation-overlay-close"};var J4=o(L(),1),LE=o(g(),1),zQ=(0,LE.jsx)(J4.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LE.jsx)(J4.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.5v12ZM15 8l-3 3-3-3-1.1 1.1 3 3-3 3L9 16.2l3-3 3 3 1.1-1.1-3-3 3-3L15 8Z"})});var{name:HQ}=X4,FQ={icon:zQ,edit:AQ},l2e=()=>((0,VQ.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:RQ()),I({name:HQ,metadata:X4,settings:FQ}));var AE={};$(AE,{init:()=>p2e,metadata:()=>e3,name:()=>qQ,settings:()=>ZQ});var e3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern Placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}};var GQ=o(U(),1),om=o(V(),1),r3=o(O(),1),am=o(T(),1),WQ=o(Q(),1),o3=o(P(),1);var OQ=o(V(),1),RE=new WeakMap;function jQ(){let e=(0,OQ.useRegistry)();if(!RE.has(e)){let t=new Map;RE.set(e,c2e.bind(null,t))}return RE.get(e)}function c2e(e,{name:t,blocks:r}){let a=[...r];for(;a.length;){let n=a.shift();for(let i of n.innerBlocks??[])a.unshift(i);n.name==="core/pattern"&&u2e(e,t,n.attributes.slug)}}function u2e(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),UQ(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function UQ(e,t,r=new Set,a=new Set){r.add(t),a.add(t);let n=e.get(t)??new Set;for(let i of n)if(r.has(i)){if(a.has(i))return!0}else if(UQ(e,i,r,a))return!0;return a.delete(t),!1}var t3=o(g(),1),m2e=({attributes:e,clientId:t})=>{let r=(0,om.useRegistry)(),a=(0,om.useSelect)(v=>v(am.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,om.useSelect)(v=>v(WQ.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,om.useDispatch)(am.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,om.useSelect)(am.store),[m,p]=(0,r3.useState)(!1),d=jQ();function f(v){return v.innerBlocks.find(y=>y.name==="core/template-part")&&(v.innerBlocks=v.innerBlocks.map(y=>(y.name==="core/template-part"&&y.attributes.theme===void 0&&(y.attributes.theme=n),y))),v.name==="core/template-part"&&v.attributes.theme===void 0&&(v.attributes.theme=n),v}(0,r3.useEffect)(()=>{if(!m&&a?.blocks){try{d(a)}catch{p(!0);return}window.queueMicrotask(()=>{let v=c(t),y=a.blocks.map(_=>(0,GQ.cloneBlock)(f(_)));y.length===1&&a.categories?.length>0&&(y[0].attributes={...y[0].attributes,metadata:{...y[0].attributes.metadata,categories:a.categories,patternName:a.name,name:y[0].attributes.metadata.name||a.title}});let b=u(v);r.batch(()=>{s(),l(v,"default"),s(),i(t,y),s(),l(v,b)})})}},[t,m,a,s,i,u,l,c]);let h=(0,am.useBlockProps)();return m?(0,t3.jsx)("div",{...h,children:(0,t3.jsx)(am.Warning,{children:(0,o3.sprintf)((0,o3.__)('Pattern "%s" cannot be rendered inside itself.'),a?.name)})}):(0,t3.jsx)("div",{...h})},$Q=m2e;var{name:qQ}=e3,ZQ={edit:$Q},p2e=()=>I({name:qQ,metadata:e3,settings:ZQ});var FE={};$(FE,{init:()=>v2e,metadata:()=>a3,name:()=>aY,settings:()=>nY});var a3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},color:{text:!0,background:!0,link:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var tY=o(U(),1),ga=o(T(),1),ha=o(M(),1),fa=o(P(),1),jl=o(O(),1),rY=o(Q(),1),i3=o(V(),1);var zE=o(U(),1),KQ=o(V(),1),QQ=o(T(),1);function f2e(e=[]){let t="post-type",r={},a=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,zE.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:ph(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):a.push(r[n])}),a}function YQ(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let a=YQ(r.innerBlocks,t);if(a)return a}}return null}function h2e(e=[],t=null){let r=f2e(e);if(t){let n=YQ(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let a=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){a(u);let m=(0,zE.createBlock)("core/navigation-submenu",c,u);s[l]=m}})};return a(r),r}function XQ({clientId:e,pages:t,parentClientId:r,parentPageID:a}){let{replaceBlock:n,selectBlock:i}=(0,KQ.useDispatch)(QQ.store);return()=>{let l=h2e(t,a);n(e,l),i(r)}}var bv=o(M(),1),VE=o(fe(),1),vv=o(P(),1),Yp=o(g(),1),HE=(0,vv.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function n3({onClick:e,onClose:t,disabled:r}){return(0,Yp.jsxs)(bv.Modal,{onRequestClose:t,title:(0,vv.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,VE.useInstanceId)(n3,"wp-block-page-list-modal__description")},children:[(0,Yp.jsx)("p",{id:(0,VE.useInstanceId)(n3,"wp-block-page-list-modal__description"),children:HE}),(0,Yp.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,Yp.jsx)(bv.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,vv.__)("Cancel")}),(0,Yp.jsx)(bv.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,vv.__)("Edit")})]})]})}var _t=o(g(),1),JQ=100,eY=()=>{};function g2e({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:a,pages:n,parentPageID:i}){if(!r)return(0,_t.jsx)("div",{...e,children:(0,_t.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,_t.jsx)(ha.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,_t.jsx)("div",{...e,children:(0,_t.jsx)(ha.Notice,{status:"warning",isDismissible:!1,children:(0,fa.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,_t.jsx)("div",{...e,children:(0,_t.jsx)(ha.Notice,{status:"info",isDismissible:!1,children:(0,fa.__)("Page List: Cannot retrieve Pages.")})});if(a.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,_t.jsx)("div",{...e,children:(0,_t.jsx)(ga.Warning,{children:(0,fa.sprintf)((0,fa.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,_t.jsx)("div",{...e,children:(0,_t.jsx)(ha.Notice,{status:"warning",isDismissible:!1,children:(0,fa.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,_t.jsx)("ul",{...t})}function oY({context:e,clientId:t,attributes:r,setAttributes:a}){let{parentPageID:n}=r,[i,l]=(0,jl.useState)(!1),s=(0,jl.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=W(),{records:m,hasResolved:p}=(0,rY.useEntityRecords)("postType","page",{per_page:JQ,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&m?.length>0&&m?.length<=JQ,f=(0,jl.useMemo)(()=>m===null?new Map:m.sort((A,R)=>A.menu_order===R.menu_order?A.title.rendered.localeCompare(R.title.rendered):A.menu_order-R.menu_order).reduce((A,R)=>{let{parent:j}=R;return A.has(j)?A.get(j).push(R):A.set(j,[R]),A},new Map),[m]),h=(0,ga.useBlockProps)({className:w("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,ga.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,ga.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),v=(0,jl.useMemo)(function D(A=0,R=0){let j=f.get(A);return j?.length?j.reduce((z,E)=>{let H=f.has(E.id),G={value:E.id,label:"\u2014 ".repeat(R)+E.title.rendered,rawName:E.title.rendered};return z.push(G),H&&z.push(...D(E.id,R+1)),z},[]):[]},[f]),y=(0,jl.useMemo)(function D(A=n){let R=f.get(A);return R?.length?R.reduce((j,z)=>{let E=f.has(z.id),H={id:z.id,label:z.title?.rendered?.trim()!==""?z.title?.rendered:(0,fa.__)("(no title)"),title:z.title?.rendered?.trim()!==""?z.title?.rendered:(0,fa.__)("(no title)"),link:z.url,hasChildren:E},G=null,F=D(z.id);return G=(0,tY.createBlock)("core/page-list-item",H,F),j.push(G),j},[]):[]},[f,n]),{isNested:b,hasSelectedChild:_,parentClientId:x,hasDraggedChild:k,isChildOfNavigation:C}=(0,i3.useSelect)(D=>{let{getBlockParentsByBlockName:A,hasSelectedInnerBlock:R,hasDraggedInnerBlock:j}=D(ga.store),z=A(t,"core/navigation-submenu",!0),E=A(t,"core/navigation",!0);return{isNested:z.length>0,isChildOfNavigation:E.length>0,hasSelectedChild:R(t,!0),hasDraggedChild:j(t,!0),parentClientId:E[0]}},[t]),S=XQ({clientId:t,pages:m,parentClientId:x,parentPageID:n}),N=(0,ga.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:C?!1:"all",onInput:eY,onChange:eY,value:y}),{selectBlock:B}=(0,i3.useDispatch)(ga.store);return(0,jl.useEffect)(()=>{(_||k)&&(s(),B(x))},[_,k,x,B,s]),(0,jl.useEffect)(()=>{a({isNested:b})},[b,a]),(0,_t.jsxs)(_t.Fragment,{children:[(v.length>0||d)&&(0,_t.jsx)(ga.InspectorControls,{children:(0,_t.jsxs)(ha.__experimentalToolsPanel,{label:(0,fa.__)("Settings"),resetAll:()=>{a({parentPageID:0})},dropdownMenuProps:u,children:[v.length>0&&(0,_t.jsx)(ha.__experimentalToolsPanelItem,{label:(0,fa.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>a({parentPageID:0}),isShownByDefault:!0,children:(0,_t.jsx)(ha.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,fa.__)("Parent"),value:n,options:v,onChange:D=>a({parentPageID:D??0}),help:(0,fa.__)("Choose a page to show only its subpages.")})}),d&&(0,_t.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,_t.jsx)("p",{children:HE}),(0,_t.jsx)(ha.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!p,onClick:S,children:(0,fa.__)("Edit")})]})]})}),d&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ga.BlockControls,{group:"other",children:(0,_t.jsx)(ha.ToolbarButton,{title:(0,fa.__)("Edit"),onClick:s,children:(0,fa.__)("Edit")})}),i&&(0,_t.jsx)(n3,{onClick:S,onClose:c,disabled:!p})]}),(0,_t.jsx)(g2e,{blockProps:h,innerBlocksProps:N,hasResolvedPages:p,blockList:y,pages:m,parentPageID:n})]})}var{name:aY}=a3,nY={icon:vS,example:{},edit:oY},v2e=()=>I({name:aY,metadata:a3,settings:nY});var $E={};$($E,{init:()=>x2e,metadata:()=>l3,name:()=>sY,settings:()=>cY});var l3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{anchor:!0,reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var c3=o(T(),1),iY=o(V(),1),UE=o(Q(),1),GE=o(O(),1),WE=o(ls(),1);var s3=o(M(),1),OE=o(g(),1),jE=()=>(0,OE.jsx)(s3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,OE.jsx)(s3.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var $o=o(g(),1);function y2e(){return(0,iY.useSelect)(e=>{if(!e(UE.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(UE.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function lY({context:e,attributes:t}){let{id:r,label:a,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=y2e(),u=jp(e,!0),m=r4(u),p=(0,c3.useBlockProps)(m,{className:"wp-block-pages-list__item"}),d=(0,c3.useInnerBlocksProps)(p);return(0,$o.jsxs)("li",{className:w("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&e.openSubmenusOnClick?(0,$o.jsxs)($o.Fragment,{children:[(0,$o.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,$o.jsx)(GE.RawHTML,{children:(0,WE.safeHTML)(a)})}),(0,$o.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,$o.jsx)(jE,{})})]}):(0,$o.jsx)("a",{className:w("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,children:(0,$o.jsx)(GE.RawHTML,{children:(0,WE.safeHTML)(l)})}),i&&(0,$o.jsxs)($o.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,$o.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,$o.jsx)(jE,{})}),(0,$o.jsx)("ul",{...d})]})]},r)}var{name:sY}=l3,cY={__experimentalLabel:({label:e})=>e,icon:dc,example:{},edit:lY},x2e=()=>I({name:sY,metadata:l3,settings:cY});var XE={};$(XE,{init:()=>N2e,metadata:()=>Th,name:()=>g3,settings:()=>h3});var f3=o(P(),1);var PY=o(U(),1);var uY=o(O(),1),ao=o(T(),1),qE=o(P(),1),Hs=o(g(),1),_h={className:!1},ZE={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},u3=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;let t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});let{customTextColor:r,customBackgroundColor:a,customFontSize:n,...i}=e;return{...i,style:t}},kh=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:RUe,...yv}=ZE,_2e=[{supports:{className:!1,typography:{fontSize:!0}},attributes:ZE,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:r,dropCap:a,direction:n}=e,i=w({"has-drop-cap":t===((0,qE.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-${t}`]:t});return(0,Hs.jsx)("p",{...ao.useBlockProps.save({className:i,dir:n}),children:(0,Hs.jsx)(ao.RichText.Content,{value:r})})},migrate:kh},{supports:_h,attributes:{...yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:kh,save({attributes:e}){let{align:t,content:r,dropCap:a,direction:n}=e,i=w({"has-drop-cap":t===((0,qE.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-${t}`]:t});return(0,Hs.jsx)("p",{...ao.useBlockProps.save({className:i,dir:n}),children:(0,Hs.jsx)(ao.RichText.Content,{value:r})})}},{supports:_h,attributes:{...yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return u3(kh(e))},save({attributes:e}){let{align:t,content:r,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,ao.getColorClassName)("color",i),d=(0,ao.getColorClassName)("background-color",n),f=(0,ao.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[`has-text-align-${t}`]:t,[f]:f,[p]:p,[d]:d}),v={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u};return(0,Hs.jsx)(ao.RichText.Content,{tagName:"p",style:v,className:h||void 0,value:r,dir:m})}},{supports:_h,attributes:{...yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return u3(kh(e))},save({attributes:e}){let{align:t,content:r,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,ao.getColorClassName)("color",i),d=(0,ao.getColorClassName)("background-color",n),f=(0,ao.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[f]:f,[p]:p,[d]:d}),v={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,Hs.jsx)(ao.RichText.Content,{tagName:"p",style:v,className:h||void 0,value:r,dir:m})}},{supports:_h,attributes:{...yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return u3(kh(e))},save({attributes:e}){let{width:t,align:r,content:a,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=e,p=(0,ao.getColorClassName)("color",l),d=(0,ao.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=w({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[p]:p,[d]:d}),v={backgroundColor:d?void 0:s,color:p?void 0:c,fontSize:f?void 0:m,textAlign:r};return(0,Hs.jsx)(ao.RichText.Content,{tagName:"p",style:v,className:h||void 0,value:a})}},{supports:_h,attributes:{...yv,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:a,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=w({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,Hs.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:a})},migrate(e){return u3(kh({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&e.backgroundColor[0]==="#"?e.backgroundColor:void 0}))}},{supports:_h,attributes:{...ZE,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Hs.jsx)(uY.RawHTML,{children:e.content})},migrate:e=>e}],mY=_2e;var Sn=o(P(),1),Sh=o(M(),1),Tn=o(T(),1),_Y=o(U(),1);var pY=o(O(),1),dY=o(fe(),1),fY=o(ms(),1),wh=o(V(),1),KE=o(T(),1),Ch=o(U(),1);function hY(e){let{batch:t}=(0,wh.useRegistry)(),{moveBlocksToPosition:r,replaceInnerBlocks:a,duplicateBlocks:n,insertBlock:i}=(0,wh.useDispatch)(KE.store),{getBlockRootClientId:l,getBlockIndex:s,getBlockOrder:c,getBlockName:u,getBlock:m,getNextBlockClientId:p,canInsertBlockType:d}=(0,wh.useSelect)(KE.store),f=(0,pY.useRef)(e);return f.current=e,(0,dY.useRefEffect)(h=>{function v(y){if(y.defaultPrevented||y.keyCode!==fY.ENTER)return;let{content:b,clientId:_}=f.current;if(b.length)return;let x=l(_);if(!(0,Ch.hasBlockSupport)(u(x),"__experimentalOnEnter",!1))return;let k=c(x),C=k.indexOf(_);if(C===k.length-1){let B=x;for(;!d(u(_),l(B));)B=l(B);typeof B=="string"&&(y.preventDefault(),r([_],x,l(B),s(B)+1));return}let S=(0,Ch.getDefaultBlockName)();if(!d(S,l(x)))return;y.preventDefault();let N=m(x);t(()=>{n([x]);let B=s(x);a(x,N.innerBlocks.slice(0,C)),a(p(x),N.innerBlocks.slice(C+1)),i((0,Ch.createBlock)(S),B+1,l(x),!0)})}return h.addEventListener("keydown",v),()=>{h.removeEventListener("keydown",v)}},[])}var gY=o(fe(),1),m3=o(O(),1),vY=o(tf(),1),bY=o(V(),1),yY=o(T(),1);function xY(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:a}=(0,bY.useDispatch)(yY.store),n=(0,gY.useEvent)(()=>{(0,vY.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),a(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,m3.useRef)();(0,m3.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var fi=o(g(),1);function k2e({direction:e,setDirection:t}){return(0,Sn.isRTL)()&&(0,fi.jsx)(Sh.ToolbarButton,{icon:f9,title:(0,Sn._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function QE(e){return e===((0,Sn.isRTL)()?"left":"right")||e==="center"}function w2e({clientId:e,attributes:t,setAttributes:r,name:a}){let[n]=(0,Tn.useSettings)("typography.dropCap");if(!n)return null;let{style:i,dropCap:l}=t,s=i?.typography?.textAlign,c;QE(s)?c=(0,Sn.__)("Not available for aligned text."):l?c=(0,Sn.__)("Showing large initial letter."):c=(0,Sn.__)("Show a large initial letter.");let u=(0,_Y.getBlockSupport)(a,"typography.defaultControls.dropCap",!1);return(0,fi.jsx)(Tn.InspectorControls,{group:"typography",children:(0,fi.jsx)(Sh.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Sn.__)("Drop cap"),isShownByDefault:u,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,fi.jsx)(Sh.ToggleControl,{label:(0,Sn.__)("Drop cap"),checked:!!l,onChange:()=>r({dropCap:!l}),help:c,disabled:QE(s)})})})}function C2e({attributes:e,mergeBlocks:t,onReplace:r,onRemove:a,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:m,placeholder:p,style:d}=e,f=d?.typography?.textAlign;xY(e.align,d,n);let h=(0,Tn.useBlockProps)({ref:hY({clientId:i,content:c}),className:w({"has-drop-cap":QE(f)?!1:m}),style:{direction:u}}),v=(0,Tn.useBlockEditingMode)();return(0,fi.jsxs)(fi.Fragment,{children:[v==="default"&&(0,fi.jsx)(Tn.BlockControls,{group:"block",children:(0,fi.jsx)(k2e,{direction:u,setDirection:y=>n({direction:y})})}),l&&(0,fi.jsx)(w2e,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,fi.jsx)(Tn.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:y=>n({content:y}),onMerge:t,onReplace:r,onRemove:a,"aria-label":Tn.RichText.isEmpty(c)?(0,Sn.__)("Empty block; start writing or type forward slash to choose a block"):(0,Sn.__)("Block: Paragraph"),"data-empty":Tn.RichText.isEmpty(c),placeholder:p||(0,Sn.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var kY=C2e;var Th={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{align:["wide","full"],splitting:!0,anchor:!0,className:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var p3=o(T(),1),wY=o(P(),1),YE=o(g(),1);function CY({attributes:e}){let{content:t,dropCap:r,direction:a,style:n}=e,i=n?.typography?.textAlign,l=w({"has-drop-cap":i===((0,wY.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,YE.jsx)("p",{...p3.useBlockProps.save({className:l,dir:a}),children:(0,YE.jsx)(p3.RichText.Content,{value:t})})}var d3=o(U(),1);var{name:SY}=Th,T2e={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,d3.getBlockAttributes)(SY,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,d3.createBlock)(SY,t)}}]},TY=T2e;var{fieldsKey:P2e,formKey:B2e}=Z(PY.privateApis),{name:g3}=Th,h3={icon:yS,example:{attributes:{content:(0,f3.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if(t==="list-view"&&r)return r;if(t==="accessibility"){if(r)return r;let{content:a}=e;return!a||a.length===0?(0,f3.__)("Empty"):a}},transforms:TY,deprecated:mY,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:kY,save:CY};window.__experimentalContentOnlyInspectorFields&&(h3[P2e]=[{id:"content",label:(0,f3.__)("Content"),type:"text",Edit:"rich-text"}],h3[B2e]={fields:["content"]});var N2e=()=>I({name:g3,metadata:Th,settings:h3});var eI={};$(eI,{init:()=>M2e,metadata:()=>v3,name:()=>IY,settings:()=>DY});var EY=o(P(),1);var v3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId","queryId"],supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},filter:{duotone:!0}},selectors:{filter:{duotone:".wp-block-post-author .wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"};var Ul=o(T(),1),qo=o(M(),1),BY=o(fe(),1),b3=o(Q(),1),xv=o(V(),1),y3=o(O(),1),JE=o(Xr(),1),Lr=o(P(),1);var vt=o(g(),1),I2e={who:"authors",per_page:100,_fields:"id,name",context:"view"};function D2e({value:e,onChange:t}){let[r,a]=(0,y3.useState)(""),{authors:n,isLoading:i}=(0,xv.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(b3.store),m={...I2e};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,y3.useMemo)(()=>{let s=(n??[]).map(m=>({value:m.id,label:(0,JE.decodeEntities)(m.name)})),c=s.findIndex(m=>e?.id===m.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,JE.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Lr.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,vt.jsx)(qo.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,Lr.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,BY.debounce)(a,300),onChange:t,allowReset:!1,isLoading:i})}function L2e({isSelected:e,context:{postType:t,postId:r,queryId:a},attributes:n,setAttributes:i}){let l=Number.isFinite(a),s=W(),c=qg(),{authorDetails:u,canAssignAuthor:m,supportsAuthor:p}=(0,xv.useSelect)(D=>{let{getEditedEntityRecord:A,getUser:R,getPostType:j}=D(b3.store),z=A("postType",t,r),E=z?.author;return{authorDetails:E?R(E,{context:"view"}):null,supportsAuthor:j(t)?.supports?.author??!1,canAssignAuthor:!!z?._links?.["wp:action-assign-author"]}},[t,r]),{editEntityRecord:d}=(0,xv.useDispatch)(b3.store),{textAlign:f,showAvatar:h,showBio:v,byline:y,isLink:b,linkTarget:_,avatarSize:x}=n,k=[],C=u?.name||(0,Lr.__)("Post Author");u?.avatar_urls&&Object.keys(u.avatar_urls).forEach(D=>{k.push({value:D,label:`${D} x ${D}`})});let S=(0,Ul.useBlockProps)({className:w({[`has-text-align-${f}`]:f})}),N=D=>{d("postType",t,r,{author:D})},B=!!r&&!l&&m;return!p&&t!==void 0?(0,vt.jsx)("div",{...S,children:(0,Lr.sprintf)((0,Lr.__)("This post type (%s) does not support the author."),t)}):(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(Ul.InspectorControls,{children:(0,vt.jsxs)(qo.__experimentalToolsPanel,{label:(0,Lr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:s,children:[B&&(0,vt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,vt.jsx)(D2e,{value:u,onChange:N})}),(0,vt.jsx)(qo.__experimentalToolsPanelItem,{label:(0,Lr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!h,onDeselect:()=>i({showAvatar:!0}),children:(0,vt.jsx)(qo.ToggleControl,{label:(0,Lr.__)("Show avatar"),checked:h,onChange:()=>i({showAvatar:!h})})}),h&&(0,vt.jsx)(qo.__experimentalToolsPanelItem,{label:(0,Lr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>x!==48,onDeselect:()=>i({avatarSize:48}),children:(0,vt.jsx)(qo.SelectControl,{__next40pxDefaultSize:!0,label:(0,Lr.__)("Avatar size"),value:x,options:k,onChange:D=>{i({avatarSize:Number(D)})}})}),(0,vt.jsx)(qo.__experimentalToolsPanelItem,{label:(0,Lr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>i({showBio:void 0}),children:(0,vt.jsx)(qo.ToggleControl,{label:(0,Lr.__)("Show bio"),checked:!!v,onChange:()=>i({showBio:!v})})}),(0,vt.jsx)(qo.__experimentalToolsPanelItem,{label:(0,Lr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>i({isLink:!1}),children:(0,vt.jsx)(qo.ToggleControl,{label:(0,Lr.__)("Link author name to author page"),checked:b,onChange:()=>i({isLink:!b})})}),b&&(0,vt.jsx)(qo.__experimentalToolsPanelItem,{label:(0,Lr.__)("Link target"),isShownByDefault:!0,hasValue:()=>_!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,vt.jsx)(qo.ToggleControl,{label:(0,Lr.__)("Open in new tab"),onChange:D=>i({linkTarget:D?"_blank":"_self"}),checked:_==="_blank"})})]})}),(0,vt.jsx)(Ul.BlockControls,{group:"block",children:(0,vt.jsx)(Ul.AlignmentControl,{value:f,onChange:D=>{i({textAlign:D})}})}),(0,vt.jsxs)("div",{...S,children:[h&&(0,vt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,vt.jsx)("img",{width:x,src:u?.avatar_urls?.[x]||c,alt:u?.name||(0,Lr.__)("Default Avatar")})}),(0,vt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!Ul.RichText.isEmpty(y)||e)&&(0,vt.jsx)(Ul.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Lr.__)("Post author byline text"),placeholder:(0,Lr.__)("Write byline\u2026"),value:y,onChange:D=>i({byline:D})}),(0,vt.jsx)("p",{className:"wp-block-post-author__name",children:b?(0,vt.jsx)("a",{href:"#post-author-pseudo-link",onClick:D=>D.preventDefault(),children:C}):C}),v&&(0,vt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:u?.description}})]})]})]})}var NY=L2e;var{name:IY}=v3,DY={icon:Xm,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,EY.__)("Posted by")}},edit:NY},M2e=()=>I({name:IY,metadata:v3,settings:DY});var rI={};$(rI,{init:()=>V2e,metadata:()=>x3,name:()=>zY,settings:()=>VY});var x3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-name"};var im=o(T(),1),LY=o(V(),1),Fs=o(P(),1),MY=o(Q(),1),nm=o(M(),1);var ja=o(g(),1);function A2e({context:{postType:e,postId:t},attributes:{textAlign:r,isLink:a,linkTarget:n},setAttributes:i}){let{authorName:l,supportsAuthor:s}=(0,LY.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:v}=d(MY.store),y=f("postType",e,t)?.author;return{authorName:y?h(y):null,supportsAuthor:v(e)?.supports?.author??!1}},[e,t]),c=(0,im.useBlockProps)({className:w({[`has-text-align-${r}`]:r})}),u=l?.name||(0,Fs.__)("Author Name"),m=a?(0,ja.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=W();return(0,ja.jsxs)(ja.Fragment,{children:[(0,ja.jsx)(im.BlockControls,{group:"block",children:(0,ja.jsx)(im.AlignmentControl,{value:r,onChange:d=>{i({textAlign:d})}})}),(0,ja.jsx)(im.InspectorControls,{children:(0,ja.jsxs)(nm.__experimentalToolsPanel,{label:(0,Fs.__)("Settings"),resetAll:()=>{i({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,ja.jsx)(nm.__experimentalToolsPanelItem,{label:(0,Fs.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>i({isLink:!1}),children:(0,ja.jsx)(nm.ToggleControl,{label:(0,Fs.__)("Link to author archive"),onChange:()=>i({isLink:!a}),checked:a})}),a&&(0,ja.jsx)(nm.__experimentalToolsPanelItem,{label:(0,Fs.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,ja.jsx)(nm.ToggleControl,{label:(0,Fs.__)("Open in new tab"),onChange:d=>i({linkTarget:d?"_blank":"_self"}),checked:n==="_blank"})})]})}),(0,ja.jsx)("div",{...c,children:!s&&e!==void 0?(0,Fs.sprintf)((0,Fs.__)("This post type (%s) does not support the author."),e):m})]})}var RY=A2e;var tI=o(U(),1),z2e={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,tI.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,tI.createBlock)("core/post-author",{textAlign:e})}]},AY=z2e;var{name:zY}=x3,VY={icon:Xm,transforms:AY,edit:RY},V2e=()=>I({name:zY,metadata:x3,settings:VY});var oI={};$(oI,{init:()=>O2e,metadata:()=>_3,name:()=>UY,settings:()=>GY});var _3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-biography"};var Ph=o(T(),1),HY=o(V(),1),FY=o(P(),1),OY=o(Q(),1),lm=o(g(),1);function F2e({context:{postType:e,postId:t},attributes:{textAlign:r},setAttributes:a}){let{authorDetails:n}=(0,HY.useSelect)(s=>{let{getEditedEntityRecord:c,getUser:u}=s(OY.store),m=c("postType",e,t)?.author;return{authorDetails:m?u(m):null}},[e,t]),i=(0,Ph.useBlockProps)({className:w({[`has-text-align-${r}`]:r})}),l=n?.description||(0,FY.__)("Author Biography");return(0,lm.jsxs)(lm.Fragment,{children:[(0,lm.jsx)(Ph.BlockControls,{group:"block",children:(0,lm.jsx)(Ph.AlignmentControl,{value:r,onChange:s=>{a({textAlign:s})}})}),(0,lm.jsx)("div",{...i,dangerouslySetInnerHTML:{__html:l}})]})}var jY=F2e;var{name:UY}=_3,GY={icon:Xm,edit:jY},O2e=()=>I({name:UY,metadata:_3,settings:GY});var aI={};$(aI,{init:()=>G2e,metadata:()=>k3,name:()=>KY,settings:()=>QY});var k3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}};var _v=o(P(),1),Bh=o(M(),1),WY=o(O(),1);var w3=o(T(),1),Xp=o(g(),1),U2e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function $Y({attributes:{commentId:e},setAttributes:t}){let[r,a]=(0,WY.useState)(e),n=(0,w3.useBlockProps)(),i=(0,w3.useInnerBlocksProps)(n,{template:U2e});return e?(0,Xp.jsx)("div",{...i}):(0,Xp.jsx)("div",{...n,children:(0,Xp.jsxs)(Bh.Placeholder,{icon:h7,label:(0,_v._x)("Post Comment","block title"),instructions:(0,_v.__)("To show a comment, input the comment ID."),children:[(0,Xp.jsx)(Bh.TextControl,{__next40pxDefaultSize:!0,value:e,onChange:l=>a(parseInt(l))}),(0,Xp.jsx)(Bh.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,_v.__)("Save")})]})})}var C3=o(T(),1),qY=o(g(),1);function ZY(){let e=C3.useBlockProps.save(),t=C3.useInnerBlocksProps.save(e);return(0,qY.jsx)("div",{...t})}var{name:KY}=k3,QY={icon:a0,edit:$Y,save:ZY},G2e=()=>I({name:KY,metadata:k3,settings:QY});var nI={};$(nI,{init:()=>q2e,metadata:()=>S3,name:()=>rX,settings:()=>oX});var S3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var Nh=o(T(),1),T3=o(O(),1),YY=o(h1(),1),XY=o(Br(),1),sm=o(g(),1);function JY({attributes:e,context:t,setAttributes:r}){let{textAlign:a}=e,{postId:n}=t,[i,l]=(0,T3.useState)(),s=(0,Nh.useBlockProps)({className:w({[`has-text-align-${a}`]:a})});(0,T3.useEffect)(()=>{if(!n)return;let m=n;(0,YY.default)({path:(0,XY.addQueryArgs)("/wp/v2/comments",{post:n}),parse:!1}).then(p=>{m===n&&l(p.headers.get("X-WP-Total"))})},[n]);let c=n&&i!==void 0,u={...s.style,textDecoration:c?s.style?.textDecoration:void 0};return(0,sm.jsxs)(sm.Fragment,{children:[(0,sm.jsx)(Nh.BlockControls,{group:"block",children:(0,sm.jsx)(Nh.AlignmentControl,{value:a,onChange:m=>{r({textAlign:m})}})}),(0,sm.jsx)("div",{...s,style:u,children:c?i:"0"})]})}var eX=o(U(),1),$2e={to:[{type:"block",blocks:["core/post-comments-link"],transform:({textAlign:e})=>(0,eX.createBlock)("core/post-comments-link",{textAlign:e})}]},tX=$2e;var{name:rX}=S3,oX={icon:C0,edit:JY,transforms:tX},q2e=()=>I({name:rX,metadata:S3,settings:oX});var lI={};$(lI,{init:()=>K2e,metadata:()=>P3,name:()=>iX,settings:()=>lX});var P3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{anchor:!0,html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],example:{attributes:{textAlign:"center"}}};var Eh=o(T(),1),aX=o(M(),1),nX=o(fe(),1),B3=o(P(),1);var Os=o(g(),1);function iI({attributes:e,context:t,setAttributes:r}){let{textAlign:a}=e,{postId:n,postType:i}=t,l=(0,nX.useInstanceId)(iI),s=(0,B3.sprintf)("comments-form-edit-%d-desc",l),c=(0,Eh.useBlockProps)({className:w({[`has-text-align-${a}`]:a}),"aria-describedby":s});return(0,Os.jsxs)(Os.Fragment,{children:[(0,Os.jsx)(Eh.BlockControls,{group:"block",children:(0,Os.jsx)(Eh.AlignmentControl,{value:a,onChange:u=>{r({textAlign:u})}})}),(0,Os.jsxs)("div",{...c,children:[(0,Os.jsx)(P_,{postId:n,postType:i}),(0,Os.jsx)(aX.VisuallyHidden,{id:s,children:(0,B3.__)("Comments form disabled in editor.")})]})]})}var{name:iX}=P3,lX={icon:RS,edit:iI},K2e=()=>I({name:iX,metadata:P3,settings:lX});var sI={};$(sI,{init:()=>J2e,metadata:()=>N3,name:()=>hX,settings:()=>gX});var N3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-comments-link"};var Ih=o(T(),1),E3=o(O(),1),sX=o(V(),1),cX=o(h1(),1),uX=o(Br(),1),Jp=o(P(),1),mX=o(Q(),1),js=o(g(),1);function Y2e({context:e,attributes:t,setAttributes:r}){let{textAlign:a}=t,{postType:n,postId:i}=e,[l,s]=(0,E3.useState)(),c=(0,Ih.useBlockProps)({className:w({[`has-text-align-${a}`]:a})});(0,E3.useEffect)(()=>{if(!i)return;let p=i;(0,cX.default)({path:(0,uX.addQueryArgs)("/wp/v2/comments",{post:i}),parse:!1}).then(d=>{p===i&&s(d.headers.get("X-WP-Total"))})},[i]);let u=(0,sX.useSelect)(p=>p(mX.store).getEditedEntityRecord("postType",n,i),[n,i]),m;if(l!==void 0){let p=parseInt(l);p===0?m=(0,Jp.__)("No comments"):m=(0,Jp.sprintf)((0,Jp._n)("%s comment","%s comments",p),p.toLocaleString())}return(0,js.jsxs)(js.Fragment,{children:[(0,js.jsx)(Ih.BlockControls,{group:"block",children:(0,js.jsx)(Ih.AlignmentControl,{value:a,onChange:p=>{r({textAlign:p})}})}),(0,js.jsx)("div",{...c,children:u?.link&&m!==void 0?(0,js.jsx)("a",{href:u?.link+"#comments",onClick:p=>p.preventDefault(),children:m}):(0,js.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:p=>p.preventDefault(),children:(0,Jp.__)("No comments")})})]})}var pX=Y2e;var dX=o(U(),1),X2e={to:[{type:"block",blocks:["core/post-comments-count"],transform:({textAlign:e})=>(0,dX.createBlock)("core/post-comments-count",{textAlign:e})}]},fX=X2e;var{name:hX}=N3,gX={edit:pX,icon:C0,transforms:fX},J2e=()=>I({name:hX,metadata:N3,settings:gX});var cI={};$(cI,{init:()=>sbe,metadata:()=>I3,name:()=>_X,settings:()=>kX});var I3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{tagName:{type:"string",default:"div"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},dimensions:{minHeight:!0},spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var ed=o(P(),1),jr=o(T(),1),vX=o(U(),1),Dh=o(Q(),1),bX=o(V(),1),yX=o(O(),1);var Yt=o(g(),1),{HTMLElementControl:tbe}=Z(jr.privateApis);function rbe({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:a,postId:n,tagName:i="div"}){let[,,l]=(0,Dh.useEntityProp)("postType",a,"content",n),s=(0,jr.useBlockProps)({className:t}),c=(0,yX.useMemo)(()=>l?.raw?(0,vX.parse)(l.raw):[],[l?.raw]),u=(0,jr.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,Yt.jsx)("div",{...u}):l?.protected?(0,Yt.jsx)(i,{...s,children:(0,Yt.jsx)(jr.Warning,{children:(0,ed.__)("This content is password protected.")})}):(0,Yt.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function obe({context:e={},tagName:t="div"}){let{postType:r,postId:a}=e,[n,i,l]=(0,Dh.useEntityBlockEditor)("postType",r,{id:a}),c=!!(0,bX.useSelect)(p=>p(Dh.store).getEntityRecord("postType",r,a),[r,a])?.content?.raw||n?.length,u=[["core/paragraph"]],m=(0,jr.useInnerBlocksProps)((0,jr.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,Yt.jsx)(t,{...m})}function abe(e){let{context:{queryId:t,postType:r,postId:a}={},layoutClassNames:n,tagName:i}=e,l=X2("postType",r,a);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,Yt.jsx)(obe,{...e}):(0,Yt.jsx)(rbe,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:r,postId:a,tagName:i})}function nbe({layoutClassNames:e}){let t=(0,jr.useBlockProps)({className:e});return(0,Yt.jsxs)("div",{...t,children:[(0,Yt.jsx)("p",{children:(0,ed.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,Yt.jsx)("p",{children:(0,ed.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,Yt.jsx)("p",{children:(0,ed.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function ibe(){let e=(0,jr.useBlockProps)();return(0,Yt.jsx)("div",{...e,children:(0,Yt.jsx)(jr.Warning,{children:(0,ed.__)("Block cannot be rendered inside itself.")})})}function lbe({tagName:e,onSelectTagName:t,clientId:r}){return(0,Yt.jsx)(jr.InspectorControls,{group:"advanced",children:(0,Yt.jsx)(tbe,{tagName:e,onChange:t,clientId:r,options:[{label:(0,ed.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function xX({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:a,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,jr.useHasRecursion)(l);return l&&s&&c?(0,Yt.jsx)(ibe,{}):(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsx)(lbe,{tagName:t,onSelectTagName:m=>{r({tagName:m})},clientId:a}),(0,Yt.jsx)(jr.RecursionProvider,{uniqueId:l,children:l&&s?(0,Yt.jsx)(abe,{context:e,parentLayout:i,layoutClassNames:n}):(0,Yt.jsx)(nbe,{layoutClassNames:n})})]})}var{name:_X}=I3,kX={icon:HS,edit:xX},sbe=()=>I({name:_X,metadata:I3,settings:kX});var uI={};$(uI,{init:()=>hbe,metadata:()=>D3,name:()=>NX,settings:()=>EX});var D3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display a custom date.",textdomain:"default",attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var wX=o(Q(),1),Lh=o(O(),1),td=o(R_(),1),va=o(T(),1),hi=o(M(),1),Ua=o(P(),1);var CX=o(ms(),1),kv=o(V(),1),SX=o(U(),1);var Ur=o(g(),1);function TX({attributes:e,context:{postType:t,queryId:r},setAttributes:a,name:n}){let{datetime:i,textAlign:l,format:s,isLink:c}=e,u=(0,va.useBlockProps)({className:w({[`has-text-align-${l}`]:l})}),m=W(),[p,d]=(0,Lh.useState)(null),f=(0,Lh.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,kv.useDispatch)(va.store);(0,Lh.useEffect)(()=>{i===void 0&&(h(),a({datetime:new Date}))},[i]);let v=Number.isFinite(r),y=(0,td.getSettings)(),{postType:b,siteFormat:_=y.formats.date,siteTimeFormat:x=y.formats.time}=(0,kv.useSelect)(N=>{let{getPostType:B,getEntityRecord:D}=N(wX.store),A=D("root","site");return{siteFormat:A?.date_format,siteTimeFormat:A?.time_format,postType:t?B(t):null}},[t]),k=(0,kv.useSelect)(N=>N(SX.store).getActiveBlockVariation(n,e)?.name,[n,e]),C=(0,va.useBlockEditingMode)(),S=(0,Ur.jsx)("time",{dateTime:(0,td.dateI18n)("c",i),ref:d,children:s==="human-diff"?(0,td.humanTimeDiff)(i):(0,td.dateI18n)(s||_,i)});return c&&i&&(S=(0,Ur.jsx)("a",{href:"#post-date-pseudo-link",onClick:N=>N.preventDefault(),children:S})),(0,Ur.jsxs)(Ur.Fragment,{children:[(C==="default"||!v)&&(0,Ur.jsxs)(va.BlockControls,{group:"block",children:[(0,Ur.jsx)(va.AlignmentControl,{value:l,onChange:N=>{a({textAlign:N})}}),k!=="post-date-modified"&&(!v||!k)&&(0,Ur.jsx)(hi.ToolbarGroup,{children:(0,Ur.jsx)(hi.Dropdown,{popoverProps:f,renderContent:({onClose:N})=>(0,Ur.jsx)(va.__experimentalPublishDateTimePicker,{title:k==="post-date"?(0,Ua.__)("Publish Date"):(0,Ua.__)("Date"),currentDate:i,onChange:B=>a({datetime:B}),is12Hour:ube(x),onClose:N,dateOrder:(0,Ua._x)("dmy","date order")}),renderToggle:({isOpen:N,onToggle:B})=>{let D=A=>{!N&&A.keyCode===CX.DOWN&&(A.preventDefault(),B())};return(0,Ur.jsx)(hi.ToolbarButton,{"aria-expanded":N,icon:Ym,title:(0,Ua.__)("Change Date"),onClick:B,onKeyDown:D})}})})]}),(0,Ur.jsx)(va.InspectorControls,{children:(0,Ur.jsxs)(hi.__experimentalToolsPanel,{label:(0,Ua.__)("Settings"),resetAll:()=>{a({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:m,children:[(0,Ur.jsx)(hi.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ua.__)("Date Format"),onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Ur.jsx)(va.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:N=>a({format:N})})}),(0,Ur.jsx)(hi.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:b?.labels.singular_name?(0,Ua.sprintf)((0,Ua.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Ua.__)("Link to post"),onDeselect:()=>a({isLink:!1}),isShownByDefault:!0,children:(0,Ur.jsx)(hi.ToggleControl,{label:b?.labels.singular_name?(0,Ua.sprintf)((0,Ua.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Ua.__)("Link to post"),onChange:()=>a({isLink:!c}),checked:c})})]})}),(0,Ur.jsx)("div",{...u,children:S})]})}function ube(e){return/(?:^|[^\\])[aAgh]/.test(e)}var mbe={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({metadata:{bindings:{datetime:{source:e,args:{key:t,...r}},...a},...n},...i}){return{metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...a},...n},...i}},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},pbe={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({className:e,displayType:t,metadata:r,...a}){if(t==="date"||t==="modified")return t==="modified"&&(e=w(e,"wp-block-post-date__modified-date")),{...a,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}}},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},dbe={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},PX=[mbe,pbe,dbe];var wv=o(P(),1),fbe=[{name:"post-date",title:(0,wv.__)("Post Date"),description:(0,wv.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="date"},{name:"post-date-modified",title:(0,wv.__)("Modified Date"),description:(0,wv.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="modified"}],BX=fbe;var{name:NX}=D3,EX={icon:P0,edit:TX,deprecated:PX,variations:BX},hbe=()=>I({name:NX,metadata:D3,settings:EX});var pI={};$(pI,{init:()=>bbe,metadata:()=>L3,name:()=>AX,settings:()=>zX});var L3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"};var M3=o(Q(),1),DX=o(O(),1),Zo=o(T(),1),jc=o(M(),1),Ga=o(P(),1),LX=o(V(),1);var Wt=o(g(),1),IX="\u2026";function MX({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:r,excerptLength:a},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}){let m=(0,Zo.useBlockEditingMode)()==="default",p=Number.isFinite(c),d=X2("postType",s,l),[f,h,{rendered:v,protected:y}={}]=(0,M3.useEntityProp)("postType",s,"excerpt",l),b=W(),_=(0,LX.useSelect)(z=>s==="page"?!0:!!z(M3.store).getPostType(s)?.supports?.excerpt,[s]),x=d&&!p&&_,k=(0,Zo.useBlockProps)({className:w({[`has-text-align-${e}`]:e})}),C=(0,Ga._x)("words","Word count type. Do not translate!"),S=(0,DX.useMemo)(()=>{if(!v)return"";let z=new window.DOMParser().parseFromString(v,"text/html");return z.body.textContent||z.body.innerText||""},[v]);if(!s||!l)return(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)(Zo.BlockControls,{children:(0,Wt.jsx)(Zo.AlignmentToolbar,{value:e,onChange:z=>n({textAlign:z})})}),(0,Wt.jsx)("div",{...k,children:(0,Wt.jsx)("p",{children:(0,Ga.__)("This block will display the excerpt.")})})]});if(y&&!d)return(0,Wt.jsx)("div",{...k,children:(0,Wt.jsx)(Zo.Warning,{children:(0,Ga.__)("The content is currently protected and does not have the available excerpt.")})});let N=(0,Wt.jsx)(Zo.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Ga.__)("\u201CRead more\u201D link text"),placeholder:(0,Ga.__)('Add "read more" link text'),value:t,onChange:z=>n({moreText:z}),withoutInteractiveFormatting:!0}),B=w("wp-block-post-excerpt__excerpt",{"is-inline":!r}),D=(f||S).trim(),A="";if(C==="words")A=D.split(" ",a).join(" ");else if(C==="characters_excluding_spaces"){let z=D.split("",a).join(""),E=z.length-z.replaceAll(" ","").length;A=D.split("",a+E).join("")}else C==="characters_including_spaces"&&(A=D.split("",a).join(""));let R=A!==D,j=x?(0,Wt.jsx)(Zo.RichText,{className:B,"aria-label":(0,Ga.__)("Excerpt text"),value:i?D:(R?A+IX:D)||(0,Ga.__)("No excerpt found"),onChange:h,tagName:"p"}):(0,Wt.jsx)("p",{className:B,children:R?A+IX:D||(0,Ga.__)("No excerpt found")});return(0,Wt.jsxs)(Wt.Fragment,{children:[m&&(0,Wt.jsx)(Zo.BlockControls,{children:(0,Wt.jsx)(Zo.AlignmentToolbar,{value:e,onChange:z=>n({textAlign:z})})}),(0,Wt.jsx)(Zo.InspectorControls,{children:(0,Wt.jsxs)(jc.__experimentalToolsPanel,{label:(0,Ga.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:b,children:[(0,Wt.jsx)(jc.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Ga.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,Wt.jsx)(jc.ToggleControl,{label:(0,Ga.__)("Show link on new line"),checked:r,onChange:z=>n({showMoreOnNewLine:z})})}),(0,Wt.jsx)(jc.__experimentalToolsPanelItem,{hasValue:()=>a!==55,label:(0,Ga.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,Wt.jsx)(jc.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ga.__)("Max number of words"),value:a,onChange:z=>{n({excerptLength:z})},min:"10",max:"100"})})]})}),(0,Wt.jsxs)("div",{...k,children:[j,!r&&" ",r?(0,Wt.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:N}):N]})]})}var mI=o(U(),1),vbe={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,mI.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,mI.createBlock)("core/post-content")}]},RX=vbe;var{name:AX}=L3,zX={icon:OS,transforms:RX,edit:MX},bbe=()=>I({name:AX,metadata:L3,settings:zX});var hI={};$(hI,{init:()=>Pbe,metadata:()=>R3,name:()=>QX,settings:()=>YX});var R3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"};var $X=o(zr(),1),Cv=o(Q(),1),Sv=o(V(),1),no=o(M(),1),wr=o(T(),1),pm=o(O(),1),ko=o(P(),1);var qX=o(Nr(),1);var ba=o(P(),1),_o=o(M(),1),VX=o(T(),1),xo=o(g(),1),xbe=(0,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsx)(_o.__experimentalToggleGroupControlOption,{value:"cover",label:(0,ba._x)("Cover","Scale option for Image dimension control")}),(0,xo.jsx)(_o.__experimentalToggleGroupControlOption,{value:"contain",label:(0,ba._x)("Contain","Scale option for Image dimension control")}),(0,xo.jsx)(_o.__experimentalToggleGroupControlOption,{value:"fill",label:(0,ba._x)("Fill","Scale option for Image dimension control")})]}),dI="cover",_be={cover:(0,ba.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,ba.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,ba.__)("Image will be stretched and distorted to completely fill the space.")},kbe=({clientId:e,attributes:{aspectRatio:t,width:r,height:a,scale:n},setAttributes:i})=>{let[l,s,c,u]=(0,VX.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=(0,_o.__experimentalUseCustomUnits)({availableUnits:l||["px","%","vw","em","rem"]}),p=(b,_)=>{let x=parseFloat(_);isNaN(x)&&_||i({[b]:x<0?"0":_})},d=(0,ba._x)("Scale","Image scaling options"),f=a||t&&t!=="auto",h=c?.map(({name:b,ratio:_})=>({label:b,value:_})),v=s?.map(({name:b,ratio:_})=>({label:b,value:_})),y=[{label:(0,ba._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?v:[],...h||[]];return(0,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsx)(_o.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,ba.__)("Aspect ratio"),onDeselect:()=>i({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,xo.jsx)(_o.SelectControl,{__next40pxDefaultSize:!0,label:(0,ba.__)("Aspect ratio"),value:t,options:y,onChange:b=>i({aspectRatio:b})})}),(0,xo.jsx)(_o.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,ba.__)("Height"),onDeselect:()=>i({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,xo.jsx)(_o.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,ba.__)("Height"),labelPosition:"top",value:a||"",min:0,onChange:b=>p("height",b),units:m})}),(0,xo.jsx)(_o.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!r,label:(0,ba.__)("Width"),onDeselect:()=>i({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,xo.jsx)(_o.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,ba.__)("Width"),labelPosition:"top",value:r||"",min:0,onChange:b=>p("width",b),units:m})}),f&&(0,xo.jsx)(_o.__experimentalToolsPanelItem,{hasValue:()=>!!n&&n!==dI,label:d,onDeselect:()=>i({scale:dI}),resetAllFilter:()=>({scale:dI}),isShownByDefault:!0,panelId:e,children:(0,xo.jsx)(_o.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:d,value:n,help:_be[n],onChange:b=>i({scale:b}),isBlock:!0,children:xbe})})]})},HX=kbe;var z3=o(M(),1),um=o(T(),1),FX=o(fe(),1),A3=o(P(),1),cm=o(g(),1),wbe=({clientId:e,attributes:t,setAttributes:r,overlayColor:a,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,um.__experimentalUseGradient)(),c=(0,um.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,cm.jsxs)(cm.Fragment,{children:[(0,cm.jsx)(um.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a.color,gradientValue:l,label:(0,A3.__)("Overlay"),onColorChange:n,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,cm.jsx)(z3.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,A3.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,cm.jsx)(z3.RangeControl,{label:(0,A3.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null},OX=(0,FX.compose)([(0,um.withColors)({overlayColor:"background-color"})])(wbe);var mm=o(T(),1),UX=o(fe(),1);function jX(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var GX=o(g(),1),Cbe=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:a,gradientValue:n}=(0,mm.__experimentalUseGradient)(),i=(0,mm.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,mm.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!r?null:(0,GX.jsx)("span",{"aria-hidden":"true",className:w("wp-block-post-featured-image__overlay",jX(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[a]:a},l.className),style:s})},fI=(0,UX.compose)([(0,mm.withColors)({overlayColor:"background-color"})])(Cbe);var Ze=o(g(),1),WX=["image"],{ResolutionTool:Sbe}=Z(wr.privateApis),ZX="full";function Tbe({image:e,value:t,onChange:r}){let{imageSizes:a}=(0,Sv.useSelect)(i=>{let{getSettings:l}=i(wr.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Ze.jsx)(Sbe,{value:t,defaultValue:ZX,options:n,onChange:r})}function KX({clientId:e,attributes:t,setAttributes:r,context:{postId:a,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:m,scale:p,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:v}=t,[y,b]=(0,pm.useState)(),[_,x]=(0,Cv.useEntityProp)("postType",n,"featured_media",a),[k]=(0,Cv.useEntityProp)("postType",n,"content",a),C=(0,pm.useMemo)(()=>{if(_)return _;if(!v)return;let ne=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(k);return ne?.groups?.attrs&&JSON.parse(ne.groups.attrs)?.id},[_,v,k]),{media:S,postType:N,postPermalink:B}=(0,Sv.useSelect)(ne=>{let{getEntityRecord:oe,getPostType:le,getEditedEntityRecord:ce}=ne(Cv.store);return{media:C&&oe("postType","attachment",C,{context:"view"}),postType:n&&le(n),postPermalink:ce("postType",n,a)?.link}},[C,n,a]),D=S?.media_details?.sizes?.[d]?.source_url||S?.source_url,A=(0,wr.useBlockProps)({style:{width:m,height:u,aspectRatio:c},className:w({"is-transient":y})}),R=(0,wr.__experimentalUseBorderProps)(t),j=(0,wr.__experimentalGetShadowClassesAndStyles)(t),z=(0,wr.useBlockEditingMode)(),E=ne=>(0,Ze.jsx)(no.Placeholder,{className:w("block-editor-media-placeholder",R.className),withIllustration:!0,style:{height:!!c&&"100%",width:!!c&&"100%",...R.style,...j.style},children:ne}),H=ne=>{ne?.id&&x(ne.id),ne?.url&&(0,$X.isBlobURL)(ne.url)&&b(ne.url)},G=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),x(0)};(0,pm.useEffect)(()=>{D&&y&&b()},[D,y]);let{createErrorNotice:F}=(0,Sv.useDispatch)(qX.store),q=ne=>{F(ne,{type:"snackbar"}),b()},K=W(),te=z==="default"&&(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsx)(wr.InspectorControls,{group:"color",children:(0,Ze.jsx)(OX,{attributes:t,setAttributes:r,clientId:e})}),(0,Ze.jsx)(wr.InspectorControls,{group:"dimensions",children:(0,Ze.jsx)(HX,{clientId:e,attributes:t,setAttributes:r,media:S})}),(C||l||!a)&&(0,Ze.jsx)(wr.InspectorControls,{children:(0,Ze.jsxs)(no.__experimentalToolsPanel,{label:(0,ko.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:ZX})},dropdownMenuProps:K,children:[(0,Ze.jsx)(no.__experimentalToolsPanelItem,{label:N?.labels.singular_name?(0,ko.sprintf)((0,ko.__)("Link to %s"),N.labels.singular_name):(0,ko.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,Ze.jsx)(no.ToggleControl,{label:N?.labels.singular_name?(0,ko.sprintf)((0,ko.__)("Link to %s"),N.labels.singular_name):(0,ko.__)("Link to post"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,Ze.jsx)(no.__experimentalToolsPanelItem,{label:(0,ko.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ze.jsx)(no.ToggleControl,{label:(0,ko.__)("Open in new tab"),onChange:ne=>r({linkTarget:ne?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,Ze.jsx)(no.__experimentalToolsPanelItem,{label:(0,ko.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,Ze.jsx)(no.TextControl,{__next40pxDefaultSize:!0,label:(0,ko.__)("Link relation"),help:(0,pm.createInterpolateElement)((0,ko.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ze.jsx)(no.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ne=>r({rel:ne})})}),!!S&&(0,Ze.jsx)(Tbe,{image:S,value:d,onChange:ne=>r({sizeSlug:ne})})]})})]}),X;if(!C&&(l||!a))return(0,Ze.jsxs)(Ze.Fragment,{children:[te,(0,Ze.jsxs)("div",{...A,children:[s?(0,Ze.jsx)("a",{href:B,target:h,children:E()}):E(),(0,Ze.jsx)(fI,{attributes:t,setAttributes:r,clientId:e})]})]});let re=(0,ko.__)("Add a featured image"),J={...R.style,...j.style,height:c?"100%":u,width:!!c&&"100%",objectFit:!!(u||c)&&p};return!C&&!y?X=(0,Ze.jsx)(wr.MediaPlaceholder,{onSelect:H,accept:"image/*",allowedTypes:WX,onError:q,placeholder:E,mediaLibraryButton:({open:ne})=>(0,Ze.jsx)(no.Button,{__next40pxDefaultSize:!0,icon:fc,variant:"primary",label:re,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ne()}})}):X=!S&&!y?E():(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsx)("img",{className:R.className,src:y||D,alt:S&&S?.alt_text?(0,ko.sprintf)((0,ko.__)("Featured image: %s"),S.alt_text):(0,ko.__)("Featured image"),style:J}),y&&(0,Ze.jsx)(no.Spinner,{})]}),(0,Ze.jsxs)(Ze.Fragment,{children:[!y&&te,!!S&&!l&&(0,Ze.jsx)(wr.BlockControls,{group:"other",children:(0,Ze.jsx)(wr.MediaReplaceFlow,{mediaId:C,mediaURL:D,allowedTypes:WX,accept:"image/*",onSelect:H,onError:q,onReset:G})}),(0,Ze.jsxs)("figure",{...A,children:[s?(0,Ze.jsx)("a",{href:B,target:h,children:X}):X,(0,Ze.jsx)(fI,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:QX}=R3,YX={icon:US,edit:KX},Pbe=()=>I({name:QX,metadata:R3,settings:YX});var gI={};$(gI,{init:()=>Nbe,metadata:()=>V3,name:()=>aJ,settings:()=>nJ});var oJ=o(P(),1);var V3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string",role:"content"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{anchor:!0,reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"};var Ko=o(M(),1),gi=o(T(),1),ar=o(P(),1),XX=o(V(),1),JX=o(Q(),1);var Xt=o(g(),1);function eJ({context:{postType:e},attributes:{type:t,label:r,showTitle:a,textAlign:n,linkLabel:i,arrow:l,taxonomy:s},setAttributes:c}){let m=(0,gi.useBlockEditingMode)()==="default",p=t==="next",d=p?(0,ar.__)("Next"):(0,ar.__)("Previous"),h={none:"",arrow:p?"\u2192":"\u2190",chevron:p?"\xBB":"\xAB"}[l];a&&(d=p?(0,ar.__)("Next: "):(0,ar.__)("Previous: "));let v=p?(0,ar.__)("Next post"):(0,ar.__)("Previous post"),y=(0,gi.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),b=(0,XX.useSelect)(k=>{let{getTaxonomies:C}=k(JX.store);return C({type:e,per_page:-1})},[e]),_=()=>{let k={label:(0,ar.__)("Unfiltered"),value:""},C=(b??[]).filter(({visibility:S})=>!!S?.publicly_queryable).map(S=>({value:S.slug,label:S.name}));return[k,...C]},x=W();return(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)(gi.InspectorControls,{children:(0,Xt.jsxs)(Ko.__experimentalToolsPanel,{label:(0,ar.__)("Settings"),resetAll:()=>{c({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:x,children:[(0,Xt.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,ar.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>c({showTitle:!1}),children:(0,Xt.jsx)(Ko.ToggleControl,{label:(0,ar.__)("Display the title as a link"),help:(0,ar.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!a,onChange:()=>c({showTitle:!a})})}),a&&(0,Xt.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,ar.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>c({linkLabel:!1}),children:(0,Xt.jsx)(Ko.ToggleControl,{label:(0,ar.__)("Include the label as part of the link"),checked:!!i,onChange:()=>c({linkLabel:!i})})}),(0,Xt.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,ar.__)("Arrow"),isShownByDefault:!0,hasValue:()=>l!=="none",onDeselect:()=>c({arrow:"none"}),children:(0,Xt.jsxs)(Ko.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,ar.__)("Arrow"),value:l,onChange:k=>{c({arrow:k})},help:(0,ar.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Xt.jsx)(Ko.__experimentalToggleGroupControlOption,{value:"none",label:(0,ar._x)("None","Arrow option for Next/Previous link")}),(0,Xt.jsx)(Ko.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,ar._x)("Arrow","Arrow option for Next/Previous link")}),(0,Xt.jsx)(Ko.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,ar._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Xt.jsx)(gi.InspectorControls,{group:"advanced",children:(0,Xt.jsx)(Ko.SelectControl,{__next40pxDefaultSize:!0,label:(0,ar.__)("Filter by taxonomy"),value:s,options:_(),onChange:k=>c({taxonomy:k}),help:(0,ar.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),m&&(0,Xt.jsx)(gi.BlockControls,{children:(0,Xt.jsx)(gi.AlignmentToolbar,{value:n,onChange:k=>{c({textAlign:k})}})}),(0,Xt.jsxs)("div",{...y,children:[!p&&h&&(0,Xt.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`,children:h}),(0,Xt.jsx)(gi.RichText,{tagName:"a",identifier:"label","aria-label":v,placeholder:d,value:r,withoutInteractiveFormatting:!0,onChange:k=>c({label:k})}),a&&(0,Xt.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:k=>k.preventDefault(),children:(0,ar.__)("An example title")}),p&&h&&(0,Xt.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0,children:h})]})]})}var rd=o(P(),1);var tJ=[{name:"post-previous",title:(0,rd.__)("Previous Post"),description:(0,rd.__)("Displays the post link that precedes the current post."),icon:QS,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,rd.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,rd.__)("Next Post"),description:(0,rd.__)("Displays the post link that follows the current post."),icon:pS,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,rd.__)("Next post"),arrow:"arrow"}}}];tJ.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var rJ=tJ;var{name:aJ}=V3,nJ={edit:eJ,variations:rJ,example:{attributes:{label:(0,oJ.__)("Next post"),arrow:"arrow"}}},Nbe=()=>I({name:aJ,metadata:V3,settings:nJ});var vI={};$(vI,{init:()=>Rbe,metadata:()=>H3,name:()=>pJ,settings:()=>dJ});var H3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",ancestor:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var Mh=o(O(),1),iJ=o(V(),1),Tv=o(P(),1),Ui=o(T(),1),F3=o(M(),1),lJ=o(Q(),1);var ya=o(g(),1),Ibe=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function Dbe({classList:e}){let t=(0,Ui.useInnerBlocksProps)({className:w("wp-block-post",e)},{template:Ibe,__unstableDisableLayoutClassNames:!0});return(0,ya.jsx)("li",{...t})}function Lbe({blocks:e,blockContextId:t,classList:r,isHidden:a,setActiveBlockContextId:n}){let i=(0,Ui.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-post",r)}}),l=()=>{n(t)};return(0,ya.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var Mbe=(0,Mh.memo)(Lbe);function sJ({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:a=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:m,inherit:p,taxQuery:d,parents:f,pages:h,format:v,...y}={},templateSlug:b,previewPostType:_},attributes:{layout:x},__unstableLayoutClassNames:k}){let{type:C,columnCount:S=3}=x||{},[N,B]=(0,Mh.useState)(),{posts:D,blocks:A}=(0,iJ.useSelect)(H=>{let{getEntityRecords:G,getTaxonomies:F}=H(lJ.store),{getBlocks:q}=H(Ui.store),K=p&&b?.startsWith("category-")&&G("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:b.replace("category-","")}),te=p&&b?.startsWith("tag-")&&G("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:b.replace("tag-","")}),X={offset:a||0,order:i,orderby:l};if(d&&!p){let ne=F({type:n,per_page:-1,context:"view"}),oe=(ce,ye="")=>Object.entries(ce||{}).reduce((Me,[ie,Ve])=>{let Re=ne?.find(({slug:ae})=>ae===ie);return Re?.rest_base&&Ve?.length&&(Me[Re.rest_base+ye]=Ve),Me},{}),le=oe(d.include);d.exclude&&Object.assign(le,oe(d.exclude,"_exclude")),Object.keys(le).length&&Object.assign(X,le)}r&&(X.per_page=r),s&&(X.author=s),c&&(X.search=c),u?.length&&(X.exclude=u),f?.length&&(X.parent=f),v?.length&&(X.format=v),["exclude","only"].includes(m)&&(X.sticky=m==="only"),["","ignore"].includes(m)&&(delete X.sticky,X.ignore_sticky=m==="ignore");let re=n;return p&&(b?.startsWith("archive-")?(X.postType=b.replace("archive-",""),re=X.postType):K?X.categories=K[0]?.id:te?X.tags=te[0]?.id:b?.startsWith("taxonomy-post_format")&&(X.format=b.replace("taxonomy-post_format-post-format-",""))),{posts:G("postType",_||re,{...X,...y}),blocks:q(t)}},[r,a,i,l,t,s,c,n,u,m,p,b,d,f,v,y,_]),R=(0,Mh.useMemo)(()=>D?.map(H=>({postType:H.type,postId:H.id,classList:H.class_list??""})),[D]),j=(0,Ui.useBlockProps)({className:w(k,{[`columns-${S}`]:C==="grid"&&S})});if(!D)return(0,ya.jsx)("p",{...j,children:(0,ya.jsx)(F3.Spinner,{})});if(!D.length)return(0,ya.jsxs)("p",{...j,children:[" ",(0,Tv.__)("No results found.")]});let z=H=>e({layout:{...x,...H}}),E=[{icon:ul,title:(0,Tv._x)("List view","Post template block display setting"),onClick:()=>z({type:"default"}),isActive:C==="default"||C==="constrained"},{icon:cl,title:(0,Tv._x)("Grid view","Post template block display setting"),onClick:()=>z({type:"grid",columnCount:S}),isActive:C==="grid"}];return(0,ya.jsxs)(ya.Fragment,{children:[(0,ya.jsx)(Ui.BlockControls,{children:(0,ya.jsx)(F3.ToolbarGroup,{controls:E})}),(0,ya.jsx)("ul",{...j,children:R&&R.map(H=>(0,ya.jsxs)(Ui.BlockContextProvider,{value:H,children:[H.postId===(N||R[0]?.postId)?(0,ya.jsx)(Dbe,{classList:H.classList}):null,(0,ya.jsx)(Mbe,{blocks:A,blockContextId:H.postId,classList:H.classList,setActiveBlockContextId:B,isHidden:H.postId===(N||R[0]?.postId)})]},H.postId))})]})}var cJ=o(T(),1),uJ=o(g(),1);function mJ(){return(0,uJ.jsx)(cJ.InnerBlocks.Content,{})}var{name:pJ}=H3,dJ={icon:Zm,edit:sJ,save:mJ},Rbe=()=>I({name:pJ,metadata:H3,settings:dJ});var bI={};$(bI,{init:()=>Hbe,metadata:()=>O3,name:()=>CJ,settings:()=>SJ});var wJ=o(wc(),1);var O3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},usesContext:["postId","postType"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-terms"};var Wa=o(T(),1),j3=o(U(),1),U3=o(M(),1),bJ=o(V(),1),yJ=o(Xr(),1),dm=o(P(),1),xJ=o(Q(),1);var fJ=o(Q(),1),hJ=o(V(),1),zbe=[];function gJ({postId:e,term:t}){let{slug:r}=t;return(0,hJ.useSelect)(a=>{if(!t?.visibility?.publicly_queryable)return{postTerms:zbe,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=a(fJ.store),s=["taxonomy",r,{post:e,per_page:-1,context:"view"}],c=i(...s);return{postTerms:c,isLoading:l("getEntityRecords",s),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,r])}var wo=o(g(),1),vJ=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function _J({attributes:e,clientId:t,context:r,isSelected:a,setAttributes:n,insertBlocksAfter:i}){let{term:l,textAlign:s,separator:c,prefix:u,suffix:m}=e,{postId:p,postType:d}=r,h=(0,Wa.useBlockEditingMode)()==="default",v=(0,bJ.useSelect)(S=>{if(!l)return{};let{getTaxonomy:N}=S(xJ.store),B=N(l);return B?.visibility?.publicly_queryable?B:{}},[l]),{postTerms:y,hasPostTerms:b,isLoading:_}=gJ({postId:p,term:v}),x=p&&d,k=(0,Wa.useBlockDisplayInformation)(t),C=(0,Wa.useBlockProps)({className:w({[`has-text-align-${s}`]:s,[`taxonomy-${l}`]:l})});return(0,wo.jsxs)(wo.Fragment,{children:[h&&(0,wo.jsx)(Wa.BlockControls,{children:(0,wo.jsx)(Wa.AlignmentToolbar,{value:s,onChange:S=>{n({textAlign:S})}})}),(0,wo.jsx)(Wa.InspectorControls,{group:"advanced",children:(0,wo.jsx)(U3.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,dm.__)("Separator"),value:c||"",onChange:S=>{n({separator:S})},help:(0,dm.__)("Enter character(s) used to separate terms.")})}),(0,wo.jsxs)("div",{...C,children:[_&&x&&(0,wo.jsx)(U3.Spinner,{}),!_&&(a||u)&&(0,wo.jsx)(Wa.RichText,{identifier:"prefix",allowedFormats:vJ,className:"wp-block-post-terms__prefix","aria-label":(0,dm.__)("Prefix"),placeholder:(0,dm.__)("Prefix")+" ",value:u,onChange:S=>n({prefix:S}),tagName:"span"}),(!x||!l)&&(0,wo.jsx)("span",{children:k.title}),x&&!_&&b&&y.map(S=>(0,wo.jsx)("a",{href:S.link,onClick:N=>N.preventDefault(),rel:"tag",children:(0,yJ.decodeEntities)(S.name)},S.id)).reduce((S,N)=>(0,wo.jsxs)(wo.Fragment,{children:[S,(0,wo.jsx)("span",{className:"wp-block-post-terms__separator",children:c||" "}),N]})),x&&!_&&!b&&(v?.labels?.no_terms||(0,dm.__)("Term items not found.")),!_&&(a||m)&&(0,wo.jsx)(Wa.RichText,{identifier:"suffix",allowedFormats:vJ,className:"wp-block-post-terms__suffix","aria-label":(0,dm.__)("Suffix"),placeholder:" "+(0,dm.__)("Suffix"),value:m,onChange:S=>n({suffix:S}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,j3.createBlock)((0,j3.getDefaultBlockName)()))})]})]})}var Vbe={category:qd,post_tag:$S};function kJ(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(a=>({...a,icon:Vbe[a.name]??qd}));return{...e,variations:r}}var{name:CJ}=O3,SJ={icon:qd,edit:_J},Hbe=()=>((0,wJ.addFilter)("blocks.registerBlockType","core/template-part",kJ),I({name:CJ,metadata:O3,settings:SJ}));var yI={};$(yI,{init:()=>Ube,metadata:()=>G3,name:()=>LJ,settings:()=>MJ});var G3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-time-to-read",title:"Time to Read",category:"theme",description:"Show minutes required to finish reading the post. Can also show a word count.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var xa=o(P(),1),BJ=o(O(),1),fm=o(T(),1),Rh=o(M(),1),NJ=o(U(),1),W3=o(Q(),1),EJ=o(PJ(),1);var Gi=o(g(),1);function Obe({attributes:e,setAttributes:t,context:r}){let{textAlign:a,displayAsRange:n,displayMode:i,averageReadingSpeed:l}=e,{postId:s,postType:c}=r,u=W(),[m]=(0,W3.useEntityProp)("postType",c,"content",s),[p]=(0,W3.useEntityBlockEditor)("postType",c,{id:s}),d=(0,BJ.useMemo)(()=>{let h;m instanceof Function?h=m({blocks:p}):p?h=(0,NJ.__unstableSerializeAndClean)(p):h=m;let v=(0,xa._x)("words","Word count type. Do not translate!"),y=(0,EJ.count)(h||"",v);if(i==="time"){if(n){let _=Math.max(1,Math.round(y/l*1.2)),x=Math.max(1,Math.round(y/l*.8));x===_&&(_=_+1);let k=(0,xa._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,xa.sprintf)(k,x,_)}let b=Math.max(1,Math.round(y/l));return(0,xa.sprintf)((0,xa._n)("%s minute","%s minutes",b),b)}if(i==="words")return v==="words"?(0,xa.sprintf)((0,xa._n)("%s word","%s words",y),y.toLocaleString()):(0,xa.sprintf)((0,xa._n)("%s character","%s characters",y),y.toLocaleString())},[m,p,n,i,l]),f=(0,fm.useBlockProps)({className:w({[`has-text-align-${a}`]:a})});return(0,Gi.jsxs)(Gi.Fragment,{children:[(0,Gi.jsx)(fm.BlockControls,{group:"block",children:(0,Gi.jsx)(fm.AlignmentControl,{value:a,onChange:h=>{t({textAlign:h})}})}),i==="time"&&(0,Gi.jsx)(fm.InspectorControls,{children:(0,Gi.jsx)(Rh.__experimentalToolsPanel,{label:(0,xa.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:u,children:(0,Gi.jsx)(Rh.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,xa._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!n,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Gi.jsx)(Rh.ToggleControl,{label:(0,xa.__)("Display as range"),checked:!!n,onChange:()=>t({displayAsRange:!n})})})})}),(0,Gi.jsx)("div",{...f,children:d})]})}var IJ=Obe;var Pv=o(P(),1);var jbe=[{name:"time-to-read",title:(0,Pv.__)("Time to Read"),description:(0,Pv.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:$0,isDefault:!0},{name:"word-count",title:(0,Pv.__)("Word Count"),description:(0,Pv.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:rP}],DJ=jbe;var{name:LJ}=G3,MJ={icon:$0,edit:IJ,variations:DJ,example:{}},Ube=()=>I({name:LJ,metadata:G3,settings:MJ});var xI={};$(xI,{init:()=>$be,metadata:()=>$3,name:()=>HJ,settings:()=>FJ});var $3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1,role:"content"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-title"};var $a=o(T(),1),vi=o(M(),1),Pn=o(P(),1),q3=o(U(),1),Bv=o(Q(),1),RJ=o(V(),1),AJ=o(O(),1);var Nt=o(g(),1);function zJ({attributes:{level:e,levelOptions:t,textAlign:r,isLink:a,rel:n,linkTarget:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:m}){let p=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,RJ.useSelect)(N=>d?!1:N(Bv.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",v,y]=(0,Bv.useEntityProp)("postType",s,"title",c),[b]=(0,Bv.useEntityProp)("postType",s,"link",c),_=()=>{m((0,q3.createBlock)((0,q3.getDefaultBlockName)()))},x=(0,$a.useBlockProps)({className:w({[`has-text-align-${r}`]:r})}),k=(0,$a.useBlockEditingMode)(),C=W(),S=(0,Nt.jsx)(p,{...x,children:(0,Pn.__)("Title")});return s&&c&&(S=f?(0,Nt.jsx)($a.PlainText,{tagName:p,placeholder:(0,Pn.__)("(no title)"),value:h,onChange:v,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...x}):(0,Nt.jsx)(p,{...x,dangerouslySetInnerHTML:{__html:y?.rendered||(0,Pn.__)("(no title)")}})),a&&s&&c&&(S=f?(0,Nt.jsx)(p,{...x,children:(0,Nt.jsx)($a.PlainText,{tagName:"a",href:b,target:i,rel:n,placeholder:h.length?null:(0,Pn.__)("(no title)"),value:h,onChange:v,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,Nt.jsx)(p,{...x,children:(0,Nt.jsx)("a",{href:b,target:i,rel:n,onClick:N=>N.preventDefault(),dangerouslySetInnerHTML:{__html:y?.rendered||(0,Pn.__)("(no title)")}})})),(0,Nt.jsxs)(Nt.Fragment,{children:[k==="default"&&(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsxs)($a.BlockControls,{group:"block",children:[(0,Nt.jsx)($a.HeadingLevelDropdown,{value:e,options:t,onChange:N=>l({level:N})}),(0,Nt.jsx)($a.AlignmentControl,{value:r,onChange:N=>{l({textAlign:N})}})]}),(0,Nt.jsx)($a.InspectorControls,{children:(0,Nt.jsxs)(vi.__experimentalToolsPanel,{label:(0,Pn.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:C,children:[(0,Nt.jsx)(vi.__experimentalToolsPanelItem,{label:(0,Pn.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>l({isLink:!1}),children:(0,Nt.jsx)(vi.ToggleControl,{label:(0,Pn.__)("Make title a link"),onChange:()=>l({isLink:!a}),checked:a})}),a&&(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(vi.__experimentalToolsPanelItem,{label:(0,Pn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>i==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,Nt.jsx)(vi.ToggleControl,{label:(0,Pn.__)("Open in new tab"),onChange:N=>l({linkTarget:N?"_blank":"_self"}),checked:i==="_blank"})}),(0,Nt.jsx)(vi.__experimentalToolsPanelItem,{label:(0,Pn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>l({rel:""}),children:(0,Nt.jsx)(vi.TextControl,{__next40pxDefaultSize:!0,label:(0,Pn.__)("Link relation"),help:(0,AJ.createInterpolateElement)((0,Pn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Nt.jsx)(vi.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:n,onChange:N=>l({rel:N})})})]})]})})]}),S]})}var Wbe={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},VJ=[Wbe];var{name:HJ}=$3,FJ={icon:ml,edit:zJ,deprecated:VJ},$be=()=>I({name:HJ,metadata:$3,settings:FJ});var CI={};$(CI,{init:()=>Ybe,metadata:()=>Q3,name:()=>$J,settings:()=>X3});var wI=o(P(),1);var WJ=o(U(),1);var _I=o(P(),1),Z3=o(T(),1),K3=o(U(),1),OJ=o(g(),1);function jJ({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:a,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,Z3.useBlockProps)({style:i});return(0,OJ.jsx)(Z3.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:a,"aria-label":(0,_I.__)("Preformatted text"),placeholder:(0,_I.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,K3.createBlock)((0,K3.getDefaultBlockName)()))})}var Q3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-preformatted"};var Y3=o(T(),1),kI=o(g(),1);function UJ({attributes:e}){let{content:t}=e;return(0,kI.jsx)("pre",{...Y3.useBlockProps.save(),children:(0,kI.jsx)(Y3.RichText.Content,{value:t})})}var Nv=o(U(),1),Zbe={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,Nv.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&!(e.children.length===1&&e.firstChild.nodeName==="CODE"),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Nv.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Nv.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,Nv.createBlock)("core/verse",e)}]},GJ=Zbe;var{fieldsKey:Kbe,formKey:Qbe}=Z(WJ.privateApis),{name:$J}=Q3,X3={icon:ZS,example:{attributes:{content:(0,wI.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
Window, very small in the distance, illuminated.
All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;`)}},transforms:GJ,edit:jJ,save:UJ,merge(e,t){return{content:e.content+`
`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(X3[Kbe]=[{id:"content",label:(0,wI.__)("Content"),type:"text",Edit:"rich-text"}],X3[Qbe]={fields:["content"]});var Ybe=()=>I({name:$J,metadata:Q3,settings:X3});var SI={};$(SI,{init:()=>uye,metadata:()=>ew,name:()=>oee,settings:()=>tw});var Dv=o(P(),1);var ree=o(U(),1);var dt=o(T(),1),ZJ=o(V(),1);var od="is-style-solid-color";var nr=o(g(),1),Ev={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function qJ(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function ad(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var Xbe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,citation:r,value:a}=e,n=!dt.RichText.isEmpty(r);return(0,nr.jsx)("figure",{...dt.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,nr.jsxs)("blockquote",{children:[(0,nr.jsx)(dt.RichText.Content,{value:a,multiline:!0}),n&&(0,nr.jsx)(dt.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return{value:ad(e),...t}}},Jbe={attributes:{...Ev},save({attributes:e}){let{mainColor:t,customMainColor:r,customTextColor:a,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(od),u,m;if(c){let h=(0,dt.getColorClassName)("background-color",t);u=w({"has-background":h||r,[h]:h}),m={backgroundColor:h?void 0:r}}else r&&(m={borderColor:r});let p=(0,dt.getColorClassName)("color",n),d=w({"has-text-color":n||a,[p]:p}),f=p?void 0:{color:a};return(0,nr.jsx)("figure",{...dt.useBlockProps.save({className:u,style:m}),children:(0,nr.jsxs)("blockquote",{className:d,style:f,children:[(0,nr.jsx)(dt.RichText.Content,{value:i,multiline:!0}),!dt.RichText.isEmpty(l)&&(0,nr.jsx)(dt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(od),s;return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:ad(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,style:s,...i}}},eye={attributes:{...Ev,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:a,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(od),m,p;if(u){let v=(0,dt.getColorClassName)("background-color",t);m=w({"has-background":v||r,[v]:v}),p={backgroundColor:v?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:qJ(c)});let d=(0,dt.getColorClassName)("color",a),f=(a||n)&&w("has-text-color",{[d]:d});return(0,nr.jsx)("figure",{className:m,style:p,children:(0,nr.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,nr.jsx)(dt.RichText.Content,{value:i,multiline:!0}),!dt.RichText.isEmpty(l)&&(0,nr.jsx)(dt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:a,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(od),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&a&&r){let u=qJ(r);if(u)return{value:ad(e),...l,className:t,style:{border:{color:u}}}}return{value:ad(e),className:t,backgroundColor:s?a:void 0,borderColor:s?void 0:a,textAlign:s?"left":void 0,style:c,...l}}},tye={attributes:Ev,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:a,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(od),u,m;if(c)u=(0,dt.getColorClassName)("background-color",t),u||(m={backgroundColor:r});else if(r)m={borderColor:r};else if(t){let h=(0,ZJ.select)(dt.store).getSettings().colors??[];m={borderColor:(0,dt.getColorObjectByAttributeValues)(h,t).color}}let p=(0,dt.getColorClassName)("color",a),d=a||n?w("has-text-color",{[p]:p}):void 0;return(0,nr.jsx)("figure",{className:u,style:m,children:(0,nr.jsxs)("blockquote",{className:d,style:p?void 0:{color:n},children:[(0,nr.jsx)(dt.RichText.Content,{value:i,multiline:!0}),!dt.RichText.isEmpty(l)&&(0,nr.jsx)(dt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(od),s={};return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:ad(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,style:s,...i}}},rye={attributes:{...Ev},save({attributes:e}){let{value:t,citation:r}=e;return(0,nr.jsxs)("blockquote",{children:[(0,nr.jsx)(dt.RichText.Content,{value:t,multiline:!0}),!dt.RichText.isEmpty(r)&&(0,nr.jsx)(dt.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:ad(e),...t}}},oye={attributes:{...Ev,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:r,align:a}=e;return(0,nr.jsxs)("blockquote",{className:`align${a}`,children:[(0,nr.jsx)(dt.RichText.Content,{value:t,multiline:!0}),!dt.RichText.isEmpty(r)&&(0,nr.jsx)(dt.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:ad(e),...t}}},KJ=[Xbe,Jbe,eye,tye,rye,oye];var Iv=o(P(),1),Us=o(T(),1),J3=o(U(),1),XJ=o(O(),1);var QJ="figure";var YJ="blockquote";var Gl=o(g(),1),aye=XJ.Platform.OS==="web";function nye({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:a}){let{textAlign:n,citation:i,value:l}=e,s=(0,Us.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),c=!Us.RichText.isEmpty(i)||r;return(0,Gl.jsxs)(Gl.Fragment,{children:[(0,Gl.jsx)(Us.BlockControls,{group:"block",children:(0,Gl.jsx)(Us.AlignmentControl,{value:n,onChange:u=>{t({textAlign:u})}})}),(0,Gl.jsx)(QJ,{...s,children:(0,Gl.jsxs)(YJ,{children:[(0,Gl.jsx)(Us.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>t({value:u}),"aria-label":(0,Iv.__)("Pullquote text"),placeholder:(0,Iv.__)("Add quote"),textAlign:"center"}),c&&(0,Gl.jsx)(Us.RichText,{identifier:"citation",tagName:aye?"cite":void 0,style:{display:"block"},value:i,"aria-label":(0,Iv.__)("Pullquote citation text"),placeholder:(0,Iv.__)("Add citation"),onChange:u=>t({citation:u}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>a((0,J3.createBlock)((0,J3.getDefaultBlockName)()))})]})})]})}var JJ=nye;var ew={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote (deprecated)",category:"text",description:"This block is deprecated. Please use the Quote block instead.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},inserter:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"};var Ah=o(T(),1),zh=o(g(),1);function eee({attributes:e}){let{textAlign:t,citation:r,value:a}=e,n=!Ah.RichText.isEmpty(r);return(0,zh.jsx)("figure",{...Ah.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,zh.jsxs)("blockquote",{children:[(0,zh.jsx)(Ah.RichText.Content,{tagName:"p",value:a}),n&&(0,zh.jsx)(Ah.RichText.Content,{tagName:"cite",value:r})]})})}var nd=o(U(),1),lye={to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let r=[];return e&&r.push((0,nd.createBlock)("core/paragraph",{content:e})),t&&r.push((0,nd.createBlock)("core/paragraph",{content:t})),r.length===0?(0,nd.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,nd.createBlock)("core/heading",{content:t});let r=(0,nd.createBlock)("core/heading",{content:e});return t?[r,(0,nd.createBlock)("core/heading",{content:t})]:r}}]},tee=lye;var{fieldsKey:sye,formKey:cye}=Z(ree.privateApis),{name:oee}=ew,tw={icon:rT,example:{attributes:{value:(0,Dv.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Dv.__)("Matt Mullenweg")}},transforms:tee,edit:JJ,save:eee,deprecated:KJ};window.__experimentalContentOnlyInspectorFields&&(tw[sye]=[{id:"value",label:(0,Dv.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,Dv.__)("Citation"),type:"text",Edit:"rich-text"}],tw[cye]={fields:["value","citation"]});var uye=()=>I({name:oee,metadata:ew,settings:tw});var FI={};$(FI,{init:()=>jye,metadata:()=>rw,name:()=>Rte,settings:()=>Ate});var rw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0,contentRole:!0},editorStyle:"wp-block-query-editor"};var xte=o(V(),1),_te=o(O(),1),kte=o(T(),1);var hw=o(V(),1),hte=o(fe(),1),Hv=o(O(),1),$i=o(T(),1),gte=o(P(),1),vte=o(Q(),1);var fee=o(M(),1),iw=o(P(),1);var Gs=o(V(),1),ld=o(O(),1),Lv=o(Q(),1),ow=o(T(),1),aee=o(Xr(),1),id=o(P(),1),Uc=o(U(),1),Mv=e=>{let t=e?.reduce((r,a)=>{let{mapById:n,mapByName:i,names:l}=r;return n[a.id]=a,i[a.name]=a,l.push(a.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},pye=(e,t)=>{let r=t.split("."),a=e;return r.forEach(n=>{a=a?.[n]}),a},TI=(e,t)=>(e||[]).map(r=>({...r,name:(0,aee.decodeEntities)(pye(r,t))})),nee=()=>{let e=(0,Gs.useSelect)(n=>{let{getPostTypes:i}=n(Lv.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,ld.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,ld.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),a=(0,ld.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:a}},aw=e=>{let t=(0,Gs.useSelect)(r=>{let{getTaxonomies:a,getPostType:n}=r(Lv.store);return n(e)?.taxonomies?.length>0?a({type:e,per_page:-1}):[]},[e]);return(0,ld.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function iee(e){return(0,Gs.useSelect)(t=>{let r=t(Lv.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function lee(e){let t=(0,Gs.useSelect)(r=>!!r(Lv.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,ld.useMemo)(()=>{let r=[{label:(0,id.__)("Newest to oldest"),value:"date/desc"},{label:(0,id.__)("Oldest to newest"),value:"date/asc"},{label:(0,id.__)("A \u2192 Z"),value:"title/asc"},{label:(0,id.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,id.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,id.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function see(e){return(0,Gs.useSelect)(t=>t(Uc.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function bi(e,t){return e?e.includes(t):!0}var cee=(e,t)=>{let{query:{postType:r,inherit:a},namespace:n}=t,i=e.map(c=>(0,Uc.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:a},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function uee(e,t){return(0,Gs.useSelect)(r=>{let a=r(Uc.store).getActiveBlockVariation("core/query",t)?.name;if(!a)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(ow.store),l=n(e);return i(`core/query/${a}`,l).length>0?`core/query/${a}`:"core/query"},[e,t])}function mee(e){let{activeVariationName:t,blockVariations:r}=(0,Gs.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(Uc.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,ld.useMemo)(()=>{let n=l=>!l.attributes?.namespace;if(!t)return r.filter(n);let i=r.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:r.filter(n)},[t,r])}var pee=(e,t)=>(0,Gs.useSelect)(r=>{let{getBlockRootClientId:a,getPatternsByBlockTypes:n}=r(ow.store),i=a(e);return n(t,i)},[t,e]),nw=e=>(0,Gs.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:a}=t(ow.store);return r(e).some(n=>{let i=a(n),l=Object.is((0,Uc.getBlockSupport)(i,"interactivity"),!0),s=(0,Uc.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function dee(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,a=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=n),t=a.includes(r),{isSingular:t,templateType:r}}var Rv=o(g(),1);function hee({enhancedPagination:e,setAttributes:t,clientId:r}){let a=nw(r),n=(0,iw.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return a&&(n=(0,iw.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,Rv.jsx)(Rv.Fragment,{children:(0,Rv.jsx)(fee.ToggleControl,{label:(0,iw.__)("Reload full page"),help:n,checked:!e,disabled:a,onChange:i=>{t({enhancedPagination:!i})}})})}var gt=o(M(),1),ate=o(V(),1),nte=o(Q(),1),ir=o(P(),1),ite=o(fe(),1),cw=o(O(),1);var gee=o(M(),1),Vh=o(P(),1),vee=o(g(),1),dye=[{label:(0,Vh.__)("Newest to oldest"),value:"date/desc"},{label:(0,Vh.__)("Oldest to newest"),value:"date/asc"},{label:(0,Vh.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Vh.__)("Z \u2192 A"),value:"title/desc"}];function fye({order:e,orderBy:t,orderByOptions:r=dye,onChange:a}){return(0,vee.jsx)(gee.SelectControl,{__next40pxDefaultSize:!0,label:(0,Vh.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,l]=n.split("/");a({order:l,orderBy:i})}})}var bee=fye;var yee=o(P(),1),xee=o(M(),1),_ee=o(V(),1),kee=o(Q(),1);var wee=o(g(),1),hye={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function gye({value:e,onChange:t}){let r=(0,_ee.useSelect)(c=>{let{getUsers:u}=c(kee.store);return u(hye)},[]);if(!r)return null;let a=Mv(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let m=a.mapById[u];return m&&c.push({id:u,value:m.name}),c},[]),l=(c,u)=>{let m=u?.id||c[u]?.id;if(m)return m},s=c=>{let u=Array.from(c.reduce((m,p)=>{let d=l(a.mapByName,p);return d&&m.add(d),m},new Set));t({author:u.join(",")})};return(0,wee.jsx)(xee.FormTokenField,{label:(0,yee.__)("Authors"),value:i,suggestions:a.names,onChange:s,__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})}var Cee=gye;var Tee=o(P(),1),Pee=o(M(),1),PI=o(V(),1),BI=o(Q(),1),Gc=o(O(),1),Bee=o(fe(),1);var Nee=o(g(),1),sd=[],See={order:"asc",_fields:"id,title",context:"view"};function vye({parents:e,postType:t,onChange:r}){let[a,n]=(0,Gc.useState)(""),[i,l]=(0,Gc.useState)(sd),[s,c]=(0,Gc.useState)(sd),u=(0,Bee.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,PI.useSelect)(y=>{if(!a)return{searchResults:sd,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=y(BI.store),x=["postType",t,{...See,search:a,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:b(...x),searchHasResolved:_("getEntityRecords",x)}},[a,t,e]),d=(0,PI.useSelect)(y=>{if(!e?.length)return sd;let{getEntityRecords:b}=y(BI.store);return b("postType",t,{...See,include:e,per_page:e.length})},[e,t]);(0,Gc.useEffect)(()=>{if(e?.length||l(sd),!d?.length)return;let y=Mv(TI(d,"title.rendered")),b=e.reduce((_,x)=>{let k=y.mapById[x];return k&&_.push({id:x,value:k.name}),_},[]);l(b)},[e,d]);let f=(0,Gc.useMemo)(()=>m?.length?Mv(TI(m,"title.rendered")):sd,[m]);(0,Gc.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let h=(y,b)=>{let _=b?.id||y?.[b]?.id;if(_)return _},v=y=>{let b=Array.from(y.reduce((_,x)=>{let k=h(f.mapByName,x);return k&&_.add(k),_},new Set));c(sd),r({parents:b})};return(0,Nee.jsx)(Pee.FormTokenField,{__next40pxDefaultSize:!0,label:(0,Tee.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:v,__experimentalShowHowTo:!1})}var Eee=vye;var lw=o(M(),1),NI=o(V(),1),EI=o(Q(),1),Wc=o(O(),1),Lee=o(fe(),1),Mee=o(Xr(),1),sw=o(P(),1);var hm=o(g(),1),Hh=[],Iee={order:"asc",_fields:"id,name",context:"view"},bye=(e,t)=>{let r=t?.id||e?.find(n=>n.name===t)?.id;if(r)return r;let a=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===a)?.id};function Ree({onChange:e,query:t}){let{postType:r,taxQuery:a}=t,n=aw(r);return n?.length?(0,hm.jsx)(lw.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=a?.include?.[i.slug]||[],s=a?.exclude?.[i.slug]||[],c=(u,m)=>{let p={...a?.[m],[i.slug]:u};u.length||delete p[i.slug];let d={...a,[m]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,hm.jsxs)(Wc.Fragment,{children:[(0,hm.jsx)(Dee,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,hm.jsx)(Dee,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,sw.sprintf)((0,sw.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function Dee({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:a,label:n}){let[i,l]=(0,Wc.useState)(""),[s,c]=(0,Wc.useState)(Hh),[u,m]=(0,Wc.useState)(Hh),p=(0,Lee.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,NI.useSelect)(y=>{if(!i)return{searchResults:Hh,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=y(EI.store),x=[...t,...r],k=["taxonomy",e.slug,{...Iee,search:i,orderby:"name",exclude:x,per_page:20}];return{searchResults:b(...k),searchHasResolved:_("getEntityRecords",k)}},[i,e.slug,t,r]),h=(0,NI.useSelect)(y=>{if(!t?.length)return Hh;let{getEntityRecords:b}=y(EI.store);return b("taxonomy",e.slug,{...Iee,include:t,per_page:t.length})},[e.slug,t]);return(0,Wc.useEffect)(()=>{if(t?.length||c(Hh),!h?.length)return;let y=t.reduce((b,_)=>{let x=h.find(k=>k.id===_);return x&&b.push({id:_,value:x.name}),b},[]);c(y)},[t,h]),(0,Wc.useEffect)(()=>{f&&m(d.map(y=>y.name))},[d,f]),(0,hm.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,hm.jsx)(lw.FormTokenField,{label:n,value:s,onInputChange:p,suggestions:u,displayTransform:Mee.decodeEntities,onChange:y=>{let b=new Set;for(let _ of y){let x=bye(d,_);x&&b.add(x)}m(Hh),a(Array.from(b))},__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})})}var Aee=o(M(),1),zee=o(V(),1),Vee=o(Q(),1),Wi=o(P(),1),Hee=o(g(),1),yye=[{value:"aside",label:(0,Wi.__)("Aside")},{value:"audio",label:(0,Wi.__)("Audio")},{value:"chat",label:(0,Wi.__)("Chat")},{value:"gallery",label:(0,Wi.__)("Gallery")},{value:"image",label:(0,Wi.__)("Image")},{value:"link",label:(0,Wi.__)("Link")},{value:"quote",label:(0,Wi.__)("Quote")},{value:"standard",label:(0,Wi.__)("Standard")},{value:"status",label:(0,Wi.__)("Status")},{value:"video",label:(0,Wi.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),a=t.label.toUpperCase();return r<a?-1:r>a?1:0});function xye(e,t){return e.map(r=>t.find(a=>a.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function Fee({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:a}=(0,zee.useSelect)(s=>({supportedFormats:s(Vee.store).getThemeSupports().formats}),[]),n=yye.filter(s=>a.includes(s.value)),i=r.map(s=>n.find(c=>c.value===s)?.label).filter(Boolean),l=n.filter(s=>!r.includes(s.value)).map(s=>s.label);return(0,Hee.jsx)(Aee.FormTokenField,{label:(0,Wi.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:xye(s,n)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0})}var Oee=o(M(),1),cd=o(P(),1),jee=o(g(),1),_ye=[{label:(0,cd.__)("Include"),value:""},{label:(0,cd.__)("Ignore"),value:"ignore"},{label:(0,cd.__)("Exclude"),value:"exclude"},{label:(0,cd.__)("Only"),value:"only"}];function Uee({value:e,onChange:t}){return(0,jee.jsx)(Oee.SelectControl,{__next40pxDefaultSize:!0,label:(0,cd.__)("Sticky posts"),options:_ye,value:e,onChange:t,help:(0,cd.__)("Sticky posts always appear first, regardless of their publish date.")})}var $ee=o(M(),1),qee=o(P(),1),Zee=o(g(),1),Gee=1,Wee=100,kye=({perPage:e,offset:t=0,onChange:r})=>(0,Zee.jsx)($ee.RangeControl,{__next40pxDefaultSize:!0,label:(0,qee.__)("Items per page"),min:Gee,max:Wee,onChange:a=>{isNaN(a)||a<Gee||a>Wee||r({perPage:a,offset:t})},value:parseInt(e,10)}),Kee=kye;var Yee=o(M(),1),Xee=o(P(),1),Jee=o(g(),1),Qee=0,wye=100,Cye=({offset:e=0,onChange:t})=>(0,Jee.jsx)(Yee.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,Xee.__)("Offset"),value:e,min:Qee,onChange:r=>{isNaN(r)||r<Qee||r>wye||t({offset:r})}}),ete=Cye;var tte=o(M(),1),II=o(P(),1),rte=o(g(),1),Sye=({pages:e,onChange:t})=>(0,rte.jsx)(tte.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,II.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,II.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),ote=Sye;var Ye=o(g(),1);function lte(e){let{attributes:t,setQuery:r,isSingular:a}=e,{query:n}=t,{order:i,orderBy:l,author:s,pages:c,postType:u,perPage:m,offset:p,sticky:d,inherit:f,taxQuery:h,parents:v,format:y}=n,b=see(t),_=u==="post",{postTypesTaxonomiesMap:x,postTypesSelectOptions:k,postTypeFormatSupportMap:C}=nee(),S=aw(u),N=iee(u),B=ae=>{let pe={postType:ae},Be=x[ae];if(Be?.length&&h){let lt=Qe=>Object.entries(Qe||{}).reduce((gr,[je,Y])=>(Be.includes(je)&&(gr[je]=Y),gr),{}),Ie={},st=lt(h.include);Object.keys(st).length&&(Ie.include=st);let Lt=lt(h.exclude);Object.keys(Lt).length&&(Ie.exclude=Lt),pe.taxQuery=Object.keys(Ie).length?Ie:void 0}ae!=="post"&&(pe.sticky=""),pe.parents=[],C[ae]||(pe.format=[]),r(pe)},[D,A]=(0,cw.useState)(n.search),R=(0,cw.useMemo)(()=>(0,ite.debounce)(ae=>{r({search:ae})},250),[r]),j=lee(u),z=bi(b,"inherit"),E=!f&&bi(b,"postType"),H=(0,ir.__)("Post type"),G=(0,ir.__)("Select the type of content to display: posts, pages, or custom post types."),F=!f&&bi(b,"order"),q=!f&&_&&bi(b,"sticky"),K=z||E||F||q,te=!!S?.length&&bi(b,"taxQuery"),X=bi(b,"author"),re=bi(b,"search"),J=bi(b,"parents")&&N,ne=C[u],oe=(0,ate.useSelect)(ae=>{if(!ne||!bi(b,"format"))return!1;let pe=ae(nte.store).getThemeSupports();return pe.formats&&pe.formats.length>0&&pe.formats.some(Be=>Be!=="standard")},[b,ne]),le=te||X||re||J||oe,ce=W(),ye=bi(b,"postCount"),Me=bi(b,"offset"),ie=bi(b,"pages"),Ve=ye||Me||ie,Re=a&&f;return(0,Ye.jsxs)(Ye.Fragment,{children:[K&&(0,Ye.jsxs)(gt.__experimentalToolsPanel,{label:(0,ir.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:ce,children:[z&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!f,label:(0,ir.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Ye.jsxs)(gt.__experimentalVStack,{spacing:4,children:[(0,Ye.jsxs)(gt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,ir.__)("Query type"),isBlock:!0,onChange:ae=>{r({inherit:ae==="default"})},help:f?(0,ir.__)("Display a list of posts or custom post types based on the current template."):(0,ir.__)("Display a list of posts or custom post types based on specific criteria."),value:f?"default":"custom",children:[(0,Ye.jsx)(gt.__experimentalToggleGroupControlOption,{value:"default",label:(0,ir.__)("Default")}),(0,Ye.jsx)(gt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,ir.__)("Custom")})]}),Re&&(0,Ye.jsx)(gt.Notice,{status:"warning",isDismissible:!1,children:(0,ir.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),E&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>u!=="post",label:H,onDeselect:()=>B("post"),isShownByDefault:!0,children:k.length>2?(0,Ye.jsx)(gt.SelectControl,{__next40pxDefaultSize:!0,options:k,value:u,label:H,onChange:B,help:G}):(0,Ye.jsx)(gt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,value:u,label:H,onChange:B,help:G,children:k.map(ae=>(0,Ye.jsx)(gt.__experimentalToggleGroupControlOption,{value:ae.value,label:ae.label},ae.value))})}),F&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>i!=="desc"||l!=="date",label:(0,ir.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Ye.jsx)(bee,{order:i,orderBy:l,orderByOptions:j,onChange:r})}),q&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,ir.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Ye.jsx)(Uee,{value:d,onChange:ae=>r({sticky:ae})})})]}),!f&&Ve&&(0,Ye.jsxs)(gt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,ir.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:ce,children:[(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{label:(0,ir.__)("Items per page"),hasValue:()=>m>0,children:(0,Ye.jsx)(Kee,{perPage:m,offset:p,onChange:r})}),(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{label:(0,ir.__)("Offset"),hasValue:()=>p>0,onDeselect:()=>r({offset:0}),children:(0,Ye.jsx)(ete,{offset:p,onChange:r})}),(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{label:(0,ir.__)("Max pages to show"),hasValue:()=>c>0,onDeselect:()=>r({pages:0}),children:(0,Ye.jsx)(ote,{pages:c,onChange:r})})]}),!f&&le&&(0,Ye.jsxs)(gt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,ir.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[]}),A("")},dropdownMenuProps:ce,children:[te&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{label:(0,ir.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(ae=>Object.values(ae||{}).some(pe=>!!pe?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Ye.jsx)(Ree,{onChange:r,query:n})}),X&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,ir.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Ye.jsx)(Cee,{value:s,onChange:r})}),re&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!D,label:(0,ir.__)("Keyword"),onDeselect:()=>{r({search:""}),A("")},children:(0,Ye.jsx)(gt.TextControl,{__next40pxDefaultSize:!0,label:(0,ir.__)("Keyword"),value:D,onChange:ae=>{R(ae),A(ae)}})}),J&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!v?.length,label:(0,ir.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Ye.jsx)(Eee,{parents:v,postType:u,onChange:r})}),oe&&(0,Ye.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!y?.length,label:(0,ir.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Ye.jsx)(Fee,{onChange:r,query:n})})]})]})}var Oh=o(M(),1),Av=o(P(),1),uw=o(O(),1);var Fh=o(g(),1),ste="wp-block-query-enhanced-pagination-modal__description";function cte({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[a,n]=(0,uw.useState)(!1),i=nw(e);(0,uw.useEffect)(()=>{t&&i&&(r({enhancedPagination:!1}),n(!0))},[t,i,r]);let l=()=>{n(!1)},s=(0,Av.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,Av.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return a&&(0,Fh.jsx)(Oh.Modal,{title:(0,Av.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:ste},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:l,children:(0,Fh.jsxs)(Oh.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,Fh.jsx)("span",{id:ste,children:s}),(0,Fh.jsx)(Oh.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:l,children:(0,Av.__)("OK")})]})})}var Gh=o(M(),1),LI=o(P(),1),fte=o(V(),1),dw=o(T(),1);var jh=o(O(),1),pte=o(V(),1),pw=o(M(),1),Uh=o(T(),1),mw=o(P(),1);var mte=o(B1(),1);function ute(e=""){return e=(0,mte.default)(e),e=e.trim().toLowerCase(),e}function Tye(e,t){let r=ute(t),a=ute(e.title),n=0;return r===a?n+=30:a.startsWith(r)?n+=20:r.split(" ").every(s=>a.includes(s))&&(n+=10),n}function zv(e=[],t=""){if(!t)return e;let r=e.map(a=>[a,Tye(a,t)]).filter(([,a])=>a>0);return r.sort(([,a],[,n])=>n-a),r.map(([a])=>a)}var $c=o(g(),1);function dte({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,$c.jsx)(pw.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,mw.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,$c.jsx)(DI,{clientId:e,attributes:t})})}function Vv(e,t){let r=uee(e,t),a=pee(e,r);return(0,jh.useMemo)(()=>a.filter(i=>i.blocks?.[0]?.name==="core/query"),[a])}function DI({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:a=!0}){let[n,i]=(0,jh.useState)(""),{replaceBlock:l,selectBlock:s}=(0,pte.useDispatch)(Uh.store),c=Vv(e,t),u=(0,jh.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),m=(0,jh.useMemo)(()=>zv(c,n),[c,n]),p=(d,f)=>{let{newBlocks:h,queryClientIds:v}=cee(f,t);l(e,h),v[0]&&s(v[0])};return(0,$c.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[a&&(0,$c.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,$c.jsx)(pw.SearchControl,{onChange:i,value:n,label:(0,mw.__)("Search"),placeholder:(0,mw.__)("Search")})}),(0,$c.jsx)(Uh.BlockContextProvider,{value:u,children:(0,$c.jsx)(Uh.__experimentalBlockPatternsList,{blockPatterns:m,onClickPattern:p,showTitlesAsTooltip:r})})]})}var ud=o(g(),1);function Pye({clientId:e,attributes:t,hasInnerBlocks:r}){if(!Vv(e,t).length)return null;let n=r?(0,LI.__)("Change design"):(0,LI.__)("Choose pattern");return(0,ud.jsx)(dw.BlockControls,{group:"other",children:(0,ud.jsx)(Gh.__experimentalDropdownContentWrapper,{children:(0,ud.jsx)(Gh.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,ud.jsx)(Gh.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,ud.jsx)(DI,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function fw(e){return(0,fte.useSelect)(r=>{let{isLockedBlock:a}=Z(r(dw.store));return a(e.clientId)},[e.clientId])?null:(0,ud.jsx)(Pye,{...e})}var yi=o(g(),1),{HTMLElementControl:Bye}=Z($i.privateApis),Nye=3,Eye=[["core/post-template"]];function MI({attributes:e,setAttributes:t,clientId:r,context:a,name:n,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:m}={}}=e,{templateSlug:p}=a,{isSingular:d}=dee(p),{__unstableMarkNextChangeAsNotPersistent:f}=(0,hw.useDispatch)($i.store),h=(0,hte.useInstanceId)(MI),v=(0,$i.useBlockProps)(),y=(0,$i.useInnerBlocksProps)(v,{template:Eye}),{postsPerPage:b}=(0,hw.useSelect)(x=>{let{getSettings:k}=x($i.store),{getEntityRecord:C,getEntityRecordEdits:S,canUser:N}=x(vte.store),B=N("read",{kind:"root",name:"site"})?+C("root","site")?.posts_per_page:+k().postsPerPage;return{postsPerPage:+S("root","site")?.posts_per_page||B||Nye}},[]),_=(0,Hv.useCallback)(x=>t(k=>({query:{...k.query,...x}})),[t]);return(0,Hv.useEffect)(()=>{let x={};(m&&s.perPage!==b||!s.perPage&&b)&&(x.perPage=b),Object.keys(x).length&&(f(),_(x))},[s.perPage,m,b,f,_]),(0,Hv.useEffect)(()=>{Number.isFinite(l)||(f(),t({queryId:h}))},[l,h,f,t]),(0,yi.jsxs)(yi.Fragment,{children:[i&&(0,yi.jsx)(fw,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,yi.jsx)(cte,{attributes:e,setAttributes:t,clientId:r}),(0,yi.jsx)($i.InspectorControls,{children:(0,yi.jsx)(lte,{name:n,attributes:e,setQuery:_,setAttributes:t,clientId:r,isSingular:d})}),(0,yi.jsxs)($i.InspectorControls,{group:"advanced",children:[(0,yi.jsx)(Bye,{tagName:u,onChange:x=>t({tagName:x}),clientId:r,options:[{label:(0,gte.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,yi.jsx)(hee,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,yi.jsx)(u,{...y})]})}var vw=o(V(),1),bw=o(U(),1),RI=o(O(),1),md=o(T(),1),Fv=o(M(),1),gw=o(P(),1),bte=o(fe(),1);var Ws=o(g(),1);function yte({attributes:e,clientId:t,name:r,openPatternSelectionModal:a,isSelected:n}){let[i,l]=(0,RI.useState)(!1),[s,c]=(0,RI.useState)(0),u=(0,bte.useResizeObserver)(([_])=>{c(_.contentRect.width)}),p=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,vw.useSelect)(_=>{let{getActiveBlockVariation:x,getBlockType:k}=_(bw.store);return{blockType:k(r),activeBlockVariation:x(r,e)}},[r,e]),h=!!Vv(t,e).length,v=f?.icon?.src||f?.icon||d?.icon?.src,y=f?.title||d?.title,b=(0,md.useBlockProps)({ref:u});return i?(0,Ws.jsx)(Iye,{clientId:t,attributes:e,icon:v,label:y}):(0,Ws.jsxs)("div",{...b,children:[n&&(0,Ws.jsx)(fw,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Ws.jsxs)(Fv.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&v,label:!p&&y,instructions:!p&&(0,gw.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!h&&!p&&(0,Ws.jsx)(Fv.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,gw.__)("Choose")}),!p&&(0,Ws.jsx)(Fv.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,gw.__)("Start blank")})]})]})}function Iye({clientId:e,attributes:t,icon:r,label:a}){let n=mee(t),{replaceInnerBlocks:i}=(0,vw.useDispatch)(md.store),l=(0,md.useBlockProps)();return(0,Ws.jsx)("div",{...l,children:(0,Ws.jsx)(md.__experimentalBlockVariationPicker,{icon:r,label:a,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,bw.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var pd=o(g(),1),Dye=e=>{let{clientId:t,attributes:r}=e,[a,n]=(0,_te.useState)(!1),l=(0,xte.useSelect)(s=>!!s(kte.store).getBlocks(t).length,[t])?MI:yte;return(0,pd.jsxs)(pd.Fragment,{children:[(0,pd.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),a&&(0,pd.jsx)(dte,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},wte=Dye;var yw=o(T(),1),Cte=o(g(),1);function Ste({attributes:{tagName:e="div"}}){let t=yw.useBlockProps.save(),r=yw.useInnerBlocksProps.save(t);return(0,Cte.jsx)(e,{...r})}var Ov=o(P(),1);var $s=o(M(),1),qc=o(g(),1),Tte=(0,qc.jsx)($s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,qc.jsx)($s.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Pte=(0,qc.jsx)($s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,qc.jsx)($s.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),Bte=(0,qc.jsx)($s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,qc.jsx)($s.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Nte=(0,qc.jsx)($s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,qc.jsx)($s.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var AI=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],Lye=[{name:"title-date",title:(0,Ov.__)("Title & Date"),icon:Tte,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],AI]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Ov.__)("Title & Excerpt"),icon:Pte,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,Ov.__)("Title, Date, & Excerpt"),icon:Bte,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],AI,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Ov.__)("Image, Date, & Title"),icon:Nte,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],AI,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],Ete=Lye;var xw=o(U(),1),_a=o(T(),1);var dd=o(g(),1),{cleanEmptyObject:zI}=Z(_a.privateApis),VI=e=>{let{query:t}=e,{categoryIds:r,tagIds:a,taxQuery:n,...i}=t;return(r?.length||a?.length)&&(i.taxQuery={include:{category:r?.length?r:void 0,post_tag:a?.length?a:void 0}}),Object.keys(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},Ite=(e,t)=>{let{style:r,backgroundColor:a,gradient:n,textColor:i,...l}=e;if(!(a||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=zI({...r,color:void 0,elements:{...r.elements,link:void 0}})),Mye(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?zI({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,xw.createBlock)("core/group",{...u.attributes,backgroundColor:a,gradient:n,textColor:i,style:p},u.innerBlocks);return[l,[d]]}let c=(0,xw.createBlock)("core/group",{backgroundColor:a,gradient:n,textColor:i,style:zI({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},Mye=(e=[])=>e.length===1&&e[0].name==="core/group",HI=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:a=null,...n}=t;return r||a?{...e,layout:{...n,contentSize:a,type:"constrained"}}:e},Dte=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Dte(r.innerBlocks));return t},Lte=(e=[],t)=>(e.forEach((r,a)=>{r.name==="core/post-template"?e.splice(a,1,t):r.innerBlocks.length&&(r.innerBlocks=Lte(r.innerBlocks,t))}),e),Wh=(e,t)=>{let{displayLayout:r=null,...a}=e;if(!r)return[e,t];let n=Dte(t);if(!n)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,xw.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[a,Lte(t,c)]},Rye={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){let r=VI(e),{layout:a,...n}=r,i={...n,displayLayout:r.layout};return Wh(i,t)},save(){return(0,dd.jsx)(_a.InnerBlocks.Content,{})}},Aye={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){let r=VI(e),[a,n]=Ite(r,t),i=HI(a);return Wh(i,n)},save({attributes:{tagName:e="div"}}){let t=_a.useBlockProps.save(),r=_a.useInnerBlocksProps.save(t);return(0,dd.jsx)(e,{...r})}},zye={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){let{style:t,backgroundColor:r,gradient:a,textColor:n}=e;return r||a||n||t?.color||t?.elements?.link},migrate(e,t){let[r,a]=Ite(e,t),n=HI(r);return Wh(n,a)},save({attributes:{tagName:e="div"}}){let t=_a.useBlockProps.save(),r=_a.useInnerBlocksProps.save(t);return(0,dd.jsx)(e,{...r})}},Vye={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){let t=_a.useBlockProps.save(),r=_a.useInnerBlocksProps.save(t);return(0,dd.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=HI(e);return Wh(r,t)}},Hye={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){let t=_a.useBlockProps.save(),r=_a.useInnerBlocksProps.save(t);return(0,dd.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:Wh},Fye={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0,contentRole:!0},save({attributes:{tagName:e="div"}}){let t=_a.useBlockProps.save(),r=_a.useInnerBlocksProps.save(t);return(0,dd.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=VI(e);return Wh(r,t)}},Oye=[Fye,Hye,Vye,zye,Aye,Rye],Mte=Oye;var{name:Rte}=rw,Ate={icon:Km,edit:wte,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:Ste,variations:Ete,deprecated:Mte},jye=()=>I({name:Rte,metadata:rw,settings:Ate});var OI={};$(OI,{init:()=>Wye,metadata:()=>_w,name:()=>Gte,settings:()=>Wte});var Ute=o(P(),1);var _w={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No Results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",ancestor:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var kw=o(T(),1),zte=o(P(),1),Vte=o(g(),1),Gye=[["core/paragraph",{placeholder:(0,zte.__)("Add text or blocks that will display when a query returns no results.")}]];function Hte(){let e=(0,kw.useBlockProps)(),t=(0,kw.useInnerBlocksProps)(e,{template:Gye});return(0,Vte.jsx)("div",{...t})}var Fte=o(T(),1),Ote=o(g(),1);function jte(){return(0,Ote.jsx)(Fte.InnerBlocks.Content,{})}var{name:Gte}=_w,Wte={icon:Km,edit:Hte,save:jte,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Ute.__)("No posts were found.")}}]}},Wye=()=>I({name:Gte,metadata:_w,settings:Wte});var GI={};$(GI,{init:()=>Kye,metadata:()=>ww,name:()=>rre,settings:()=>ore});var ww={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"};var Cw=o(P(),1),Zc=o(T(),1),Sw=o(V(),1),jv=o(M(),1),Qte=o(O(),1);var fd=o(P(),1),$h=o(M(),1),qh=o(g(),1);function $te({value:e,onChange:t}){return(0,qh.jsxs)($h.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,fd.__)("Arrow"),value:e,onChange:t,help:(0,fd.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,qh.jsx)($h.__experimentalToggleGroupControlOption,{value:"none",label:(0,fd._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,qh.jsx)($h.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,fd._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,qh.jsx)($h.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,fd._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var jI=o(P(),1),qte=o(M(),1),Zte=o(g(),1);function Kte({value:e,onChange:t}){return(0,Zte.jsx)(qte.ToggleControl,{label:(0,jI.__)("Show label text"),help:(0,jI.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var qi=o(g(),1),qye=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function Yte({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:a}){let n=(0,Sw.useSelect)(u=>{let{getBlocks:m}=u(Zc.store);return m(a)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[a]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,Sw.useDispatch)(Zc.store),l=W(),s=(0,Zc.useBlockProps)(),c=(0,Zc.useInnerBlocksProps)(s,{template:qye});return(0,Qte.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,qi.jsxs)(qi.Fragment,{children:[n&&(0,qi.jsx)(Zc.InspectorControls,{children:(0,qi.jsxs)(jv.__experimentalToolsPanel,{label:(0,Cw.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,qi.jsx)(jv.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,Cw.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,qi.jsx)($te,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,qi.jsx)(jv.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,Cw.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,qi.jsx)(Kte,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,qi.jsx)("nav",{...c})]})}var Xte=o(T(),1),Jte=o(g(),1);function ere(){return(0,Jte.jsx)(Xte.InnerBlocks.Content,{})}var Tw=o(T(),1),UI=o(g(),1),Zye=[{save(){return(0,UI.jsx)("div",{...Tw.useBlockProps.save(),children:(0,UI.jsx)(Tw.InnerBlocks.Content,{})})}}],tre=Zye;var{name:rre}=ww,ore={icon:D0,edit:Yte,save:ere,deprecated:tre},Kye=()=>I({name:rre,metadata:ww,settings:ore});var $I={};$($I,{init:()=>Xye,metadata:()=>Pw,name:()=>nre,settings:()=>ire});var Pw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var WI=o(P(),1),Bw=o(T(),1),Uv=o(g(),1),Yye={none:"",arrow:"\u2192",chevron:"\xBB"};function are({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:a}}){let n=Yye[r];return(0,Uv.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,Bw.useBlockProps)(),children:[a&&(0,Uv.jsx)(Bw.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,WI.__)("Next page link"),placeholder:(0,WI.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,Uv.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:nre}=Pw,ire={icon:N0,edit:are},Xye=()=>I({name:nre,metadata:Pw,settings:ire});var qI={};$(qI,{init:()=>txe,metadata:()=>Nw,name:()=>sre,settings:()=>cre});var Nw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"};var Wv=o(P(),1),Ew=o(T(),1),Zh=o(M(),1);var xi=o(g(),1),Gv=(e,t="a",r="")=>(0,xi.jsx)(t,{className:`page-numbers ${r}`,children:e},e),exe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(Gv(r));t.push(Gv(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(Gv(e+1+r));return t.push(Gv("...","span","dots")),t.push(Gv(e*2+3)),(0,xi.jsx)(xi.Fragment,{children:t})};function lre({attributes:e,setAttributes:t}){let{midSize:r}=e,a=exe(parseInt(r,10)),n=W();return(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(Ew.InspectorControls,{children:(0,xi.jsx)(Zh.__experimentalToolsPanel,{label:(0,Wv.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,xi.jsx)(Zh.__experimentalToolsPanelItem,{label:(0,Wv.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,xi.jsx)(Zh.RangeControl,{__next40pxDefaultSize:!0,label:(0,Wv.__)("Number of links"),help:(0,Wv.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:r,onChange:i=>{t({midSize:parseInt(i,10)})},min:0,max:5,withInputField:!1})})})}),(0,xi.jsx)("div",{...(0,Ew.useBlockProps)(),children:a})]})}var{name:sre}=Nw,cre={icon:E0,edit:lre,example:{}},txe=()=>I({name:sre,metadata:Nw,settings:cre});var KI={};$(KI,{init:()=>axe,metadata:()=>Iw,name:()=>mre,settings:()=>pre});var Iw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var ZI=o(P(),1),Dw=o(T(),1),$v=o(g(),1),oxe={none:"",arrow:"\u2190",chevron:"\xAB"};function ure({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:a}}){let n=oxe[r];return(0,$v.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,Dw.useBlockProps)(),children:[n&&(0,$v.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),a&&(0,$v.jsx)(Dw.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,ZI.__)("Previous page link"),placeholder:(0,ZI.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:mre}=Iw,pre={icon:I0,edit:ure},axe=()=>I({name:mre,metadata:Iw,settings:pre});var JI={};$(JI,{init:()=>sxe,metadata:()=>Lw,name:()=>xre,settings:()=>_re});var Lw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},example:{attributes:{type:"search"}},usesContext:["query"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-query-title"};var Bn=o(T(),1),Zi=o(M(),1),Ht=o(P(),1);var QI=o(Q(),1),YI=o(V(),1);function dre(){let e=(0,YI.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),m=c(),p=u()||(m==="wp_template"?s():null);return p?l(QI.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a,n=!1,i;if(t)t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r;else{let l=e?.match(/^(author)$|^author-(.+)$/);l&&(n=!0,l[2]&&(i=l[2]))}return(0,YI.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(QI.store),m,p;if(r&&(m=c(r)?.labels?.singular_name),a){let d=s("taxonomy",r,{slug:a,per_page:1});d&&d[0]&&(p=d[0].name)}if(n&&(m="Author",i)){let d=u({slug:i});d&&d[0]&&(p=d[0].name)}return{archiveTypeLabel:m,archiveNameLabel:p}},[i,n,r,a])}var fre=o(Q(),1),XI=o(V(),1);function hre(e){let t=(0,XI.useSelect)(r=>{let{getCurrentPostType:a}=r("core/editor");return a()},[]);return(0,XI.useSelect)(r=>{let{getPostType:a}=r(fre.store),i=a(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var bt=o(g(),1),ixe=["archive","search","post-type"];function gre({attributes:{type:e,level:t,levelOptions:r,textAlign:a,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}){let{archiveTypeLabel:c,archiveNameLabel:u}=dre(),{postTypeLabel:m}=hre(s?.postType),p=W(),d=t===0?"p":`h${t}`,f=(0,Bn.useBlockProps)({className:w("wp-block-query-title__placeholder",{[`has-text-align-${a}`]:a})});if(!ixe.includes(e))return(0,bt.jsx)("div",{...f,children:(0,bt.jsx)(Bn.Warning,{children:(0,Ht.__)("Provided type is not supported.")})});let h;if(e==="archive"){let v;c?n?u?v=(0,Ht.sprintf)((0,Ht._x)("%1$s: %2$s","archive label"),c,u):v=(0,Ht.sprintf)((0,Ht.__)("%s: Name"),c):u?v=u:v=(0,Ht.sprintf)((0,Ht.__)("%s name"),c):v=n?(0,Ht.__)("Archive type: Name"):(0,Ht.__)("Archive title"),h=(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Bn.InspectorControls,{children:(0,bt.jsx)(Zi.__experimentalToolsPanel,{label:(0,Ht.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,bt.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Ht.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,bt.jsx)(Zi.ToggleControl,{label:(0,Ht.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,bt.jsx)(d,{...f,children:v})]})}if(e==="search"&&(h=(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Bn.InspectorControls,{children:(0,bt.jsx)(Zi.__experimentalToolsPanel,{label:(0,Ht.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,bt.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Ht.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,bt.jsx)(Zi.ToggleControl,{label:(0,Ht.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,bt.jsx)(d,{...f,children:i?(0,Ht.__)("Search results for: \u201Csearch term\u201D"):(0,Ht.__)("Search results")})]})),e==="post-type"){let v;m?n?v=(0,Ht.sprintf)((0,Ht.__)('Post Type: "%s"'),m):v=m:v=n?(0,Ht.__)("Post Type: Name"):(0,Ht.__)("Name"),h=(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Bn.InspectorControls,{children:(0,bt.jsx)(Zi.__experimentalToolsPanel,{label:(0,Ht.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,bt.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Ht.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,bt.jsx)(Zi.ToggleControl,{label:(0,Ht.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,bt.jsx)(d,{...f,children:v})]})}return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsxs)(Bn.BlockControls,{group:"block",children:[(0,bt.jsx)(Bn.HeadingLevelDropdown,{value:t,options:r,onChange:v=>l({level:v})}),(0,bt.jsx)(Bn.AlignmentControl,{value:a,onChange:v=>{l({textAlign:v})}})]}),h]})}var hd=o(P(),1);var vre=[{isDefault:!0,name:"archive-title",title:(0,hd.__)("Archive Title"),description:(0,hd.__)("Display the archive title based on the queried object."),icon:ml,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,hd.__)("Search Results Title"),description:(0,hd.__)("Display the search results title based on the queried object."),icon:ml,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,hd.__)("Post Type Label"),description:(0,hd.__)("Display the post type label based on the queried object."),icon:ml,attributes:{type:"post-type"},scope:["inserter"]}];vre.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var bre=vre;var lxe={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},yre=[lxe];var{name:xre}=Lw,_re={icon:ml,edit:gre,variations:bre,deprecated:yre},sxe=()=>I({name:xre,metadata:Lw,settings:_re});var rD={};$(rD,{init:()=>uxe,metadata:()=>Mw,name:()=>Cre,settings:()=>Sre});var Mw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-total",title:"Query Total",category:"theme",ancestor:["core/query"],description:"Display the total number of results in a query.",textdomain:"default",attributes:{displayType:{type:"string",default:"total-results"}},usesContext:["queryId","query"],supports:{anchor:!0,align:["wide","full"],html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var Rw=o(T(),1),Aw=o(M(),1),Kh=o(P(),1);var gm=o(M(),1),gd=o(g(),1),eD=(0,gd.jsx)(gm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gd.jsx)(gm.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),tD=(0,gd.jsx)(gm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gd.jsx)(gm.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),kre=(0,gd.jsx)(gm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gd.jsx)(gm.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.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});var Wl=o(g(),1);function wre({attributes:e,setAttributes:t}){let{displayType:r}=e,a=(0,Rw.useBlockProps)(),n=()=>{switch(r){case"total-results":return eD;case"range-display":return tD}},i=[{role:"menuitemradio",title:(0,Kh.__)("Total results"),isActive:r==="total-results",icon:eD,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,Kh.__)("Range display"),isActive:r==="range-display",icon:tD,onClick:()=>{t({displayType:"range-display"})}}],l=(0,Wl.jsx)(Rw.BlockControls,{children:(0,Wl.jsx)(Aw.ToolbarGroup,{children:(0,Wl.jsx)(Aw.ToolbarDropdownMenu,{icon:n(),label:(0,Kh.__)("Change display type"),controls:i})})});return(0,Wl.jsxs)("div",{...a,children:[l,r==="total-results"?(0,Wl.jsx)(Wl.Fragment,{children:(0,Kh.__)("12 results found")}):r==="range-display"?(0,Wl.jsx)(Wl.Fragment,{children:(0,Kh.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Cre}=Mw,Sre={icon:kre,edit:wre},uxe=()=>I({name:Cre,metadata:Mw,settings:Sre});var aD={};$(aD,{init:()=>_xe,metadata:()=>Fw,name:()=>Lre,settings:()=>Mre});var oD=o(P(),1);var qv=o(U(),1),Gr=o(T(),1),Qo=o(g(),1),vm=e=>{let{value:t,...r}=e;return[{...r},t?(0,qv.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:a})=>(0,qv.createBlock)("core/paragraph",{content:a})):(0,qv.createBlock)("core/paragraph")]},Tre=["left","right","center"],vd=(e,t)=>{let{align:r,...a}=e;return[Tre.includes(r)?{...a,textAlign:r}:e,t]},mxe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],pxe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>Tre.includes(e),save({attributes:e}){let{align:t,citation:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,Qo.jsxs)("blockquote",{...Gr.useBlockProps.save({className:a}),children:[(0,Qo.jsx)(Gr.InnerBlocks.Content,{}),!Gr.RichText.isEmpty(r)&&(0,Qo.jsx)(Gr.RichText.Content,{tagName:"cite",value:r})]})},migrate:vd},dxe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){let{align:t,value:r,citation:a}=e,n=w({[`has-text-align-${t}`]:t});return(0,Qo.jsxs)("blockquote",{...Gr.useBlockProps.save({className:n}),children:[(0,Qo.jsx)(Gr.RichText.Content,{multiline:!0,value:r}),!Gr.RichText.isEmpty(a)&&(0,Qo.jsx)(Gr.RichText.Content,{tagName:"cite",value:a})]})},migrate(e){return vd(...vm(e))}},fxe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate(e){return vd(...vm(e))},save({attributes:e}){let{align:t,value:r,citation:a}=e;return(0,Qo.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Qo.jsx)(Gr.RichText.Content,{multiline:!0,value:r}),!Gr.RichText.isEmpty(a)&&(0,Qo.jsx)(Gr.RichText.Content,{tagName:"cite",value:a})]})}},hxe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(e.style===2){let{style:t,...r}=e;return vd(...mxe(...vm(r)))}return vd(...vm(e))},save({attributes:e}){let{align:t,value:r,citation:a,style:n}=e;return(0,Qo.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,Qo.jsx)(Gr.RichText.Content,{multiline:!0,value:r}),!Gr.RichText.isEmpty(a)&&(0,Qo.jsx)(Gr.RichText.Content,{tagName:"cite",value:a})]})}},gxe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){let{style:t,...r}=e;return vd(...vm(r))}return vd(...vm(e))},save({attributes:e}){let{align:t,value:r,citation:a,style:n}=e;return(0,Qo.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,Qo.jsx)(Gr.RichText.Content,{multiline:!0,value:r}),!Gr.RichText.isEmpty(a)&&(0,Qo.jsx)(Gr.RichText.Content,{tagName:"footer",value:a})]})}},Pre=[pxe,dxe,fxe,hxe,gxe];var Zv=o(P(),1),qs=o(T(),1),Bre=o(M(),1),Vw=o(V(),1),Hw=o(O(),1),Nre=o(tf(),1);var Kc=o(g(),1),zw=Hw.Platform.OS==="web",vxe=[["core/paragraph",{}]],bxe=(e,t)=>{let r=(0,Vw.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,Vw.useDispatch)(qs.store);(0,Hw.useEffect)(()=>{if(!e.value)return;let[i,l]=vm(e);(0,Nre.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{a(t,i),n(t,l)})},[e.value])};function Ere({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:a,className:n,style:i,isSelected:l}){let{textAlign:s,allowedBlocks:c}=e;bxe(e,a);let u=(0,qs.useBlockProps)({className:w(n,{[`has-text-align-${s}`]:s}),...!zw&&{style:i}}),m=(0,qs.useInnerBlocksProps)(u,{template:vxe,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:c});return(0,Kc.jsxs)(Kc.Fragment,{children:[(0,Kc.jsx)(qs.BlockControls,{group:"block",children:(0,Kc.jsx)(qs.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,Kc.jsxs)(Bre.BlockQuotation,{...m,children:[m.children,(0,Kc.jsx)(nn,{attributeKey:"citation",tagName:zw?"cite":"p",style:zw&&{display:"block"},isSelected:l,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:q0,label:(0,Zv.__)("Quote citation"),placeholder:(0,Zv.__)("Add citation"),addLabel:(0,Zv.__)("Add citation"),removeLabel:(0,Zv.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r,...zw?{}:{textAlign:s}})]})]})}var Fw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." \u2014 Julio Cort\xE1zar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0,padding:!0,margin:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"};var bd=o(T(),1),Kv=o(g(),1);function Ire({attributes:e}){let{textAlign:t,citation:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,Kv.jsxs)("blockquote",{...bd.useBlockProps.save({className:a}),children:[(0,Kv.jsx)(bd.InnerBlocks.Content,{}),!bd.RichText.isEmpty(r)&&(0,Kv.jsx)(bd.RichText.Content,{tagName:"cite",value:r})]})}var Qv=o(T(),1),Wr=o(U(),1),xxe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Wr.createBlock)("core/quote",{},[(0,Wr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:a,fontSize:n,style:i})=>(0,Wr.createBlock)("core/quote",{align:t,citation:r,anchor:a,fontSize:n,style:i},[(0,Wr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Wr.createBlock)("core/quote",{},[(0,Wr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Wr.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>e.length===1?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some(({name:t})=>t==="core/quote"),__experimentalConvert:e=>(0,Wr.createBlock)("core/quote",{},e.map(t=>(0,Wr.createBlock)(t.name,t.attributes,t.innerBlocks)))}],to:[{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Wr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(a=>a.name==="core/paragraph"?a:(0,Wr.switchToBlockType)(a,"core/paragraph")||[]).map(({attributes:a})=>a.content||"").filter(Boolean).join("<br>");return(0,Wr.createBlock)("core/verse",{content:r})}},{type:"block",blocks:["core/paragraph"],isMatch:({citation:e},t)=>{let r=t.innerBlocks;return r.length?r.every(a=>a.name==="core/paragraph"?!0:(0,Wr.switchToBlockType)(a,"core/paragraph")!==null):!Qv.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(a=>a.name==="core/paragraph"?a:(0,Wr.switchToBlockType)(a,"core/paragraph")||[]);return Qv.RichText.isEmpty(e)?r:[...r,(0,Wr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Wr.createBlock)("core/group",{anchor:t},Qv.RichText.isEmpty(e)?r:[...r,(0,Wr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>Qv.RichText.isEmpty(e)?t:[...t,(0,Wr.createBlock)("core/paragraph",{content:e})]},Dre=xxe;var{name:Lre}=Fw,Mre={icon:sT,example:{attributes:{citation:(0,oD.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,oD.__)("In quoting others, we cite ourselves.")}}]},transforms:Dre,edit:Ere,save:Ire,deprecated:Pre},_xe=()=>I({name:Lre,metadata:Fw,settings:Mre});var nD={};$(nD,{init:()=>Mxe,metadata:()=>Ow,name:()=>Wre,settings:()=>$re});var jre=o(Q(),1),Ure=o(V(),1),Gre=o(Xr(),1);var Ow={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object",default:{}}},providesContext:{"pattern/overrides":"content"},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}}};var Xv=o(V(),1),Jv=o(O(),1),Qh=o(Q(),1),Zs=o(M(),1),Yv=o(P(),1),Cr=o(T(),1),Vre=o(Are(),1),Hre=o(U(),1);var lr=o(g(),1),{useLayoutClasses:wxe}=Z(Cr.privateApis),{isOverridableBlock:Cxe}=Z(Vre.privateApis),Sxe=["full","wide","left","right"],Txe=(e,t)=>{let r=(0,Jv.useRef)();return(0,Jv.useMemo)(()=>{if(!e?.length)return{};let a=r.current;if(a===void 0){let i=t?.type==="constrained",l=e.some(s=>Sxe.includes(s.attributes.align));a=i&&l?"full":null,r.current=a}return{alignment:a,layout:a?t:void 0}},[e,t])};function Pxe(){let e=(0,Cr.useBlockProps)();return(0,lr.jsx)("div",{...e,children:(0,lr.jsx)(Cr.Warning,{children:(0,Yv.__)("Block cannot be rendered inside itself.")})})}var zre=()=>{};function Fre(e){let{ref:t}=e.attributes;return(0,Cr.useHasRecursion)(t)?(0,lr.jsx)(Pxe,{}):(0,lr.jsx)(Cr.RecursionProvider,{uniqueId:t,children:(0,lr.jsx)(Exe,{...e})})}function Bxe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:a,resetContent:n}){let i=(0,Xv.useSelect)(l=>!!l(Qh.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,lr.jsxs)(lr.Fragment,{children:[i&&!!a&&(0,lr.jsx)(Cr.BlockControls,{group:"other",children:(0,lr.jsx)(Zs.ToolbarGroup,{children:(0,lr.jsx)(Zs.ToolbarButton,{onClick:a,children:(0,Yv.__)("Edit original")})})}),t&&(0,lr.jsx)(Cr.BlockControls,{group:"other",children:(0,lr.jsx)(Zs.ToolbarGroup,{children:(0,lr.jsx)(Zs.ToolbarButton,{onClick:n,disabled:!r,children:(0,Yv.__)("Reset")})})})]})}var Nxe={};function Exe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:a,setAttributes:n}){let{record:i,hasResolved:l}=(0,Qh.useEntityRecord)("postType","wp_block",t),[s]=(0,Qh.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,Xv.useDispatch)(Cr.store),{onNavigateToEntityRecord:m,hasPatternOverridesSource:p,supportedBlockTypesRaw:d}=(0,Xv.useSelect)(S=>{let{getSettings:N}=S(Cr.store);return{onNavigateToEntityRecord:N().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,Hre.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:N().__experimentalBlockBindingsSupportedAttributes||Nxe}},[]),f=(0,Jv.useMemo)(()=>{let S=Object.keys(d),N=B=>B.some(D=>S.includes(D.name)&&Cxe(D)?!0:N(D.innerBlocks));return p&&N(s)},[p,s,d]),{alignment:h,layout:v}=Txe(s,a),y=wxe({layout:v},e),b=(0,Cr.useBlockProps)({className:w("block-library-block__reusable-block-container",v&&y,{[`align${h}`]:h})}),_=(0,Cr.useInnerBlocksProps)(b,{layout:v,value:s,onInput:zre,onChange:zre,renderAppender:s?.length?void 0:Cr.InnerBlocks.ButtonBlockAppender}),x=()=>{m({postId:t,postType:"wp_block"})},k=()=>{r&&(u(),n({content:void 0}))},C=null;return c&&(C=(0,lr.jsx)(Cr.Warning,{children:(0,Yv.__)("Block has been deleted or is unavailable.")})),l||(C=(0,lr.jsx)(Zs.Placeholder,{children:(0,lr.jsx)(Zs.Spinner,{})})),(0,lr.jsxs)(lr.Fragment,{children:[l&&!c&&(0,lr.jsx)(Bxe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:m?x:void 0,resetContent:k}),C===null?(0,lr.jsx)("div",{..._}):(0,lr.jsx)("div",{...b,children:C})]})}var Ixe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Dxe={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({content:e}){return!!e&&Object.keys(e).every(t=>e[t].values&&Ixe(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let a={...t};for(let n in t)a[n]=t[n].values;return{...r,content:a}}return e}},Lxe={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({overrides:e}){return!!e},migrate(e){let{overrides:t,...r}=e,a={};return Object.keys(t).forEach(n=>{a[n]=t[n]}),{...r,content:a}}},Ore=[Dxe,Lxe];var{name:Wre}=Ow,$re={deprecated:Ore,edit:Fre,icon:IT,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Ure.select)(jre.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,Gre.decodeEntities)(t.title)}},Mxe=()=>I({name:Wre,metadata:Ow,settings:$re});var iD={};$(iD,{init:()=>Axe,metadata:()=>jw,name:()=>Kre,settings:()=>Qre});var Zre=o(P(),1);var jw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string",role:"content"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{anchor:!0,html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var Xh=o(T(),1),Jh=o(M(),1),Uw=o(U(),1),Yh=o(P(),1);var Ks=o(g(),1);function qre({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:a}){let n=(0,Xh.useBlockProps)(),i=W();return(0,Ks.jsxs)(Ks.Fragment,{children:[(0,Ks.jsx)(Xh.InspectorControls,{children:(0,Ks.jsx)(Jh.__experimentalToolsPanel,{label:(0,Yh.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Ks.jsx)(Jh.__experimentalToolsPanelItem,{label:(0,Yh.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ks.jsx)(Jh.ToggleControl,{label:(0,Yh.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Ks.jsx)(Xh.RichText,{identifier:"content",tagName:"a","aria-label":(0,Yh.__)("\u201CRead more\u201D link text"),placeholder:(0,Yh.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:()=>a((0,Uw.createBlock)((0,Uw.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:Kre}=jw,Qre={icon:Fn,edit:qre,example:{attributes:{content:(0,Zre.__)("Read more")}}},Axe=()=>I({name:Kre,metadata:jw,settings:Qre});var lD={};$(lD,{init:()=>Fxe,metadata:()=>Gw,name:()=>toe,settings:()=>roe});var Gw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:"",role:"content"},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},openInNewTab:{type:"boolean",default:!1},rel:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var yd=o(T(),1),ft=o(M(),1),Ww=o(O(),1);var St=o(P(),1),Yre=o(Br(),1),Xre=o(su(),1),Jre=o(fe(),1);var tt=o(g(),1),Vxe=1,Hxe=20;function eoe({attributes:e,setAttributes:t,name:r}){let[a,n]=(0,Ww.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:m,feedURL:p,itemsToShow:d,openInNewTab:f,rel:h}=e,v=W();function y(D){return()=>{let A=e[D];t({[D]:!A})}}function b(D){D.preventDefault(),p&&(t({feedURL:(0,Yre.prependHTTP)(p)}),n(!1))}let{content:_,status:x,error:k}=(0,Xre.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),C=(0,Jre.useDisabled)(),S=(0,yd.useBlockProps)({ref:a?null:C}),N=(0,St.__)("RSS URL");if(a)return(0,tt.jsx)("div",{...S,children:(0,tt.jsx)(ft.Placeholder,{icon:L0,label:N,instructions:(0,St.__)("Display entries from any RSS or Atom feed."),children:(0,tt.jsxs)("form",{onSubmit:b,className:"wp-block-rss__placeholder-form",children:[(0,tt.jsx)(ft.__experimentalInputControl,{__next40pxDefaultSize:!0,label:N,type:"url",hideLabelFromVision:!0,placeholder:(0,St.__)("Enter URL here\u2026"),value:p,onChange:D=>t({feedURL:D}),className:"wp-block-rss__placeholder-input"}),(0,tt.jsx)(ft.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,St.__)("Apply")})]})})});let B=[{icon:Ym,title:(0,St.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:ul,title:(0,St._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:cl,title:(0,St._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(yd.BlockControls,{children:(0,tt.jsx)(ft.ToolbarGroup,{controls:B})}),(0,tt.jsx)(yd.InspectorControls,{children:(0,tt.jsxs)(ft.__experimentalToolsPanel,{label:(0,St.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:v,children:[(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,tt.jsx)(ft.RangeControl,{__next40pxDefaultSize:!0,label:(0,St.__)("Number of items"),value:d,onChange:D=>t({itemsToShow:D}),min:Vxe,max:Hxe,required:!0})}),(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ft.ToggleControl,{label:(0,St.__)("Display author"),checked:s,onChange:y("displayAuthor")})}),(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ft.ToggleControl,{label:(0,St.__)("Display date"),checked:c,onChange:y("displayDate")})}),(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ft.ToggleControl,{label:(0,St.__)("Display excerpt"),checked:u,onChange:y("displayExcerpt")})}),u&&(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Max number of words in excerpt"),hasValue:()=>m!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,tt.jsx)(ft.RangeControl,{__next40pxDefaultSize:!0,label:(0,St.__)("Max number of words in excerpt"),value:m,onChange:D=>t({excerptLength:D}),min:10,max:100,required:!0})}),i==="grid"&&(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,tt.jsx)(ft.RangeControl,{__next40pxDefaultSize:!0,label:(0,St.__)("Columns"),value:l,onChange:D=>t({columns:D}),min:2,max:6,required:!0})}),(0,tt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,St.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ft.ToggleControl,{label:(0,St.__)("Open links in new tab"),checked:f,onChange:D=>t({openInNewTab:D})})})]})}),(0,tt.jsx)(yd.InspectorControls,{group:"advanced",children:(0,tt.jsx)(ft.TextControl,{__next40pxDefaultSize:!0,label:(0,St.__)("Link relation"),help:(0,Ww.createInterpolateElement)((0,St.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,tt.jsx)(ft.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:D=>t({rel:D})})}),x==="loading"&&(0,tt.jsx)("div",{...S,children:(0,tt.jsx)(ft.Spinner,{})}),x==="error"&&(0,tt.jsx)("div",{...S,children:(0,tt.jsx)("p",{children:(0,St.sprintf)((0,St.__)("Error: %s"),k)})}),x==="success"&&(0,tt.jsx)(on,{wrapperProps:S,html:_})]})}var{name:toe}=Gw,roe={icon:L0,example:{attributes:{feedURL:"https://wordpress.org"}},edit:eoe},Fxe=()=>I({name:toe,metadata:Gw,settings:roe});var dD={};$(dD,{init:()=>Wxe,metadata:()=>$w,name:()=>uoe,settings:()=>Zw});var eg=o(P(),1);var coe=o(U(),1);var $w={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",role:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",role:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{anchor:!0,align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},spacing:{margin:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"};var $r=o(T(),1),qw=o(V(),1),xd=o(O(),1),er=o(M(),1),noe=o(fe(),1);var Jt=o(P(),1),ioe=o(ls(),1);var sD=50,cD=350,uD=220;function mD(e){return e==="%"}var Tt=o(g(),1),ooe="4px",aoe=[25,50,75,100];function loe({className:e,attributes:t,setAttributes:r,toggleSelection:a,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:m,align:p,buttonText:d,buttonPosition:f,buttonUseIcon:h,isSearchFieldHidden:v,style:y}=t,b=(0,qw.useSelect)(ie=>{let{getBlockParentsByBlockName:Ve,wasBlockJustInserted:Re}=ie($r.store);return!!Ve(i,"core/navigation")?.length&&Re(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,qw.useDispatch)($r.store);(0,xd.useEffect)(()=>{b&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,b,r]);let x=y?.border?.radius,k=(0,$r.__experimentalUseBorderProps)(t);typeof x=="number"&&(k={...k,style:{...k.style,borderRadius:`${x}px`}});let C=(0,$r.__experimentalUseColorProps)(t),[S,N]=(0,$r.useSettings)("typography.fluid","layout"),B=(0,$r.getTypographyClassesAndStyles)(t,{typography:{fluid:S},layout:{wideSize:N?.wideSize}}),A=`wp-block-search__width-${(0,noe.useInstanceId)(er.__experimentalUnitControl)}`,R=f==="button-inside",j=f==="button-outside",z=f==="no-button",E=f==="button-only",H=(0,xd.useRef)(),G=(0,xd.useRef)(),F=(0,er.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":sD,px:cD}});(0,xd.useEffect)(()=>{E&&!n&&r({isSearchFieldHidden:!0})},[E,n,r]),(0,xd.useEffect)(()=>{!E||!n||r({isSearchFieldHidden:!1})},[E,n,r,u]);let q=()=>w(e,R?"wp-block-search__button-inside":void 0,j?"wp-block-search__button-outside":void 0,z?"wp-block-search__no-button":void 0,E?"wp-block-search__button-only":void 0,!h&&!z?"wp-block-search__text-button":void 0,h&&!z?"wp-block-search__icon-button":void 0,E&&v?"wp-block-search__searchfield-hidden":void 0),K=[{label:(0,Jt.__)("Button outside"),value:"button-outside"},{label:(0,Jt.__)("Button inside"),value:"button-inside"},{label:(0,Jt.__)("No button"),value:"no-button"},{label:(0,Jt.__)("Button only"),value:"button-only"}],te=()=>E?{}:{right:p!=="right",left:p==="right"},X=()=>{let ie=w("wp-block-search__input",R?void 0:k.className,B.className),Ve={...R?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style,...B.style,textDecoration:void 0};return(0,Tt.jsx)("input",{type:"search",className:ie,style:Ve,"aria-label":(0,Jt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Jt.__)("Optional placeholder\u2026"),value:c,onChange:Re=>r({placeholder:Re.target.value}),ref:H})},re=()=>{let ie=w("wp-block-search__button",C.className,B.className,R?void 0:k.className,h?"has-icon":void 0,(0,$r.__experimentalGetElementClassName)("button")),Ve={...C.style,...B.style,...R?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style},Re=()=>{E&&r({isSearchFieldHidden:!v})};return(0,Tt.jsxs)(Tt.Fragment,{children:[h&&(0,Tt.jsx)("button",{type:"button",className:ie,style:Ve,"aria-label":d?(0,ioe.__unstableStripHTML)(d):(0,Jt.__)("Search"),onClick:Re,ref:G,children:(0,Tt.jsx)(Sa,{icon:M0})}),!h&&(0,Tt.jsx)($r.RichText,{identifier:"buttonText",className:ie,style:Ve,"aria-label":(0,Jt.__)("Button text"),placeholder:(0,Jt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:ae=>r({buttonText:ae}),onClick:Re})]})},J=W(),ne=(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsx)($r.InspectorControls,{children:(0,Tt.jsxs)(er.__experimentalToolsPanel,{label:(0,Jt.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:J,children:[(0,Tt.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Jt.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,Tt.jsx)(er.ToggleControl,{checked:s,label:(0,Jt.__)("Show label"),onChange:ie=>r({showLabel:ie})})}),(0,Tt.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Jt.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,Tt.jsx)(er.SelectControl,{value:f,__next40pxDefaultSize:!0,label:(0,Jt.__)("Button position"),onChange:ie=>{r({buttonPosition:ie,isSearchFieldHidden:ie==="button-only"})},options:K})}),f!=="no-button"&&(0,Tt.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,Jt.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,Tt.jsx)(er.ToggleControl,{checked:h,label:(0,Jt.__)("Use button with icon"),onChange:ie=>r({buttonUseIcon:ie})})}),(0,Tt.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Jt.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,Tt.jsxs)(er.__experimentalVStack,{children:[(0,Tt.jsx)(er.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Jt.__)("Width"),id:A,min:mD(m)?0:uD,max:mD(m)?100:void 0,step:1,onChange:ie=>{let Ve=ie===""?void 0:parseInt(ie,10);r({width:Ve})},onUnitChange:ie=>{r({width:ie==="%"?sD:cD,widthUnit:ie})},__unstableInputWidth:"80px",value:`${u}${m}`,units:F}),(0,Tt.jsx)(er.__experimentalToggleGroupControl,{label:(0,Jt.__)("Percentage Width"),value:aoe.includes(u)&&m==="%"?u:void 0,hideLabelFromVision:!0,onChange:ie=>{r({width:ie,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,children:aoe.map(ie=>(0,Tt.jsx)(er.__experimentalToggleGroupControlOption,{value:ie,label:(0,Jt.sprintf)((0,Jt.__)("%d%%"),ie)},ie))})]})})]})})}),oe=ie=>ie!==void 0&&parseInt(ie,10)!==0,le=ie=>oe(ie)?`calc(${ie} + ${ooe})`:void 0,ce=()=>{let ie=R?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius};if(R){if(typeof x=="object"){let{borderTopLeftRadius:Re,borderTopRightRadius:ae,borderBottomLeftRadius:pe,borderBottomRightRadius:Be}=k.style;return{...ie,borderTopLeftRadius:le(Re),borderTopRightRadius:le(ae),borderBottomLeftRadius:le(pe),borderBottomRightRadius:le(Be)}}let Ve=Number.isInteger(x)?`${x}px`:x;ie.borderRadius=`calc(${Ve} + ${ooe})`}return ie},ye=(0,$r.useBlockProps)({className:q(),style:{...B.style,textDecoration:void 0}}),Me=w("wp-block-search__label",B.className);return(0,Tt.jsxs)("div",{...ye,children:[ne,s&&(0,Tt.jsx)($r.RichText,{identifier:"label",className:Me,"aria-label":(0,Jt.__)("Label text"),placeholder:(0,Jt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ie=>r({label:ie}),style:B.style}),(0,Tt.jsxs)(er.ResizableBox,{size:{width:u===void 0?"auto":`${u}${m}`,height:"auto"},className:w("wp-block-search__inside-wrapper",R?k.className:void 0),style:ce(),minWidth:uD,enable:te(),onResizeStart:(ie,Ve,Re)=>{r({width:parseInt(Re.offsetWidth,10),widthUnit:"px"}),a(!1)},onResizeStop:(ie,Ve,Re,ae)=>{r({width:parseInt(u+ae.width,10)}),a(!0)},showHandle:n,children:[(R||j||E)&&(0,Tt.jsxs)(Tt.Fragment,{children:[X(),re()]}),z&&X()]})]})}var pD=o(P(),1),jxe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,pD.__)("Search"),label:(0,pD.__)("Search")}}],soe=jxe;var{fieldsKey:Uxe,formKey:Gxe}=Z(coe.privateApis),{name:uoe}=$w,Zw={icon:M0,example:{attributes:{buttonText:(0,eg.__)("Search"),label:(0,eg.__)("Search")},viewportWidth:400},variations:soe,edit:loe};window.__experimentalContentOnlyInspectorFields&&(Zw[Uxe]=[{id:"label",label:(0,eg.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,eg.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,eg.__)("Placeholder"),type:"text",Edit:"rich-text"}],Zw[Gxe]={fields:["label","buttonText","placeholder"]});var Wxe=()=>I({name:uoe,metadata:$w,settings:Zw});var fD={};$(fD,{init:()=>Qxe,metadata:()=>Qw,name:()=>yoe,settings:()=>xoe});var bm=o(T(),1),Kw=o(M(),1),t2=o(P(),1);var e2=o(O(),1),moe=o(fe(),1);function poe(e,t,r){let[a,n]=(0,e2.useState)(!1),i=(0,moe.usePrevious)(t);(0,e2.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,e2.useEffect)(()=>{e==="css"&&(a&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[a,t,i])}var Qc=o(g(),1),$xe=({tagName:e,setAttributes:t})=>(0,Qc.jsx)(Kw.SelectControl,{label:(0,t2.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,t2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,t2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,t2.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0});function doe({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:a,style:n,tagName:i}=e,l=(0,bm.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;poe(a,s,t);let u=(0,bm.getColorClassName)("color",r),m=w({"has-text-color":r||s,[u]:u,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className);return(0,Qc.jsxs)(Qc.Fragment,{children:[(0,Qc.jsx)(bm.InspectorControls,{group:"advanced",children:(0,Qc.jsx)($xe,{tagName:i,setAttributes:t})}),(0,Qc.jsx)(i==="hr"?Kw.HorizontalRule:i,{...(0,bm.useBlockProps)({className:m,style:c?{color:s,backgroundColor:s}:void 0})})]})}var Qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"},tagName:{type:"string",enum:["hr","div"],default:"hr"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"};var tg=o(T(),1),foe=o(g(),1);function hoe({attributes:e}){let{backgroundColor:t,style:r,opacity:a,tagName:n}=e,i=r?.color?.background,l=(0,tg.__experimentalGetColorClassesAndStyles)(e),s=(0,tg.getColorClassName)("color",t),c=w({"has-text-color":t||i,[s]:s,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,foe.jsx)(n,{...tg.useBlockProps.save({className:c,style:u})})}var rg=o(U(),1),Zxe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>[(0,rg.createBlock)("core/separator"),(0,rg.createBlock)((0,rg.getDefaultBlockName)())]},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,rg.createBlock)("core/spacer",{anchor:e||void 0})}]},goe=Zxe;var r2=o(T(),1),voe=o(g(),1),Kxe={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,a=(0,r2.getColorClassName)("background-color",t),n=(0,r2.getColorClassName)("color",t),i=w({"has-text-color has-background":t||r,[a]:a,[n]:n}),l={backgroundColor:a?void 0:r,color:n?void 0:r};return(0,voe.jsx)("hr",{...r2.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:r,...a}=e;return{...a,backgroundColor:t||void 0,opacity:"css",style:r?{color:{background:r}}:void 0,tagName:"hr"}}},boe=[Kxe];var{name:yoe}=Qw,xoe={icon:bT,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:goe,edit:doe,save:hoe,deprecated:boe},Qxe=()=>I({name:yoe,metadata:Qw,settings:xoe});var gD={};$(gD,{init:()=>Jxe,metadata:()=>tC,name:()=>Noe,settings:()=>Eoe});var Yw=o(P(),1),Jw=o(T(),1),_oe=o(fe(),1),koe=o(M(),1);var Xw=o(g(),1);function hD({attributes:e,setAttributes:t}){let a=`blocks-shortcode-input-${(0,_oe.useInstanceId)(hD)}`;return(0,Xw.jsx)("div",{...(0,Jw.useBlockProps)(),children:(0,Xw.jsx)(koe.Placeholder,{icon:A0,label:(0,Yw.__)("Shortcode"),children:(0,Xw.jsx)(Jw.PlainText,{className:"blocks-shortcode__textarea",id:a,value:e.text,"aria-label":(0,Yw.__)("Shortcode text"),placeholder:(0,Yw.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var woe=o(O(),1),Coe=o(g(),1);function Soe({attributes:e}){return(0,Coe.jsx)(woe.RawHTML,{children:e.text})}var eC=o(Poe(),1),Yxe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,eC.removep)((0,eC.autop)(t))}},priority:20}]},Boe=Yxe;var tC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw",role:"content"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"};var{name:Noe}=tC,Eoe={icon:A0,transforms:Boe,edit:hD,save:Soe},Jxe=()=>I({name:Noe,metadata:tC,settings:Eoe});var bD={};$(bD,{init:()=>o_e,metadata:()=>rC,name:()=>Aoe,settings:()=>zoe});var rC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{anchor:!0,html:!1,align:!0,alignWide:!1,color:{text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0},filter:{duotone:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],selectors:{filter:{duotone:".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"};var vD=o(zr(),1),Qs=o(O(),1),qr=o(P(),1),kt=o(M(),1),Ioe=o(fe(),1),Zr=o(T(),1),ym=o(V(),1),og=o(Q(),1);var Doe=o(Nr(),1);var Le=o(g(),1),oC=["image"],t_e=({alt:e,attributes:{align:t,width:r,height:a,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:f,setIcon:h,canUserEdit:v})=>{let y=(0,Ioe.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&y,[{naturalWidth:x,naturalHeight:k},C]=(0,Qs.useState)({}),[S,N]=(0,Qs.useState)(!1),{toggleSelection:B}=(0,ym.useDispatch)(Zr.store),D=W(),R=(0,Zr.useBlockEditingMode)()==="contentOnly",{imageEditing:j,maxWidth:z,title:E}=(0,ym.useSelect)(pe=>{let Be=pe(Zr.store).getSettings();return{title:pe(og.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:Be.imageEditing,maxWidth:Be.maxWidth}},[]);(0,Qs.useEffect)(()=>{l&&d!==f&&c({shouldSyncIcon:!1})},[]),(0,Qs.useEffect)(()=>{s||N(!1)},[s]);function H(){B(!1)}function G(){B(!0)}let F=(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("img",{className:"custom-logo",src:m,alt:e,onLoad:pe=>{C({naturalWidth:pe.target.naturalWidth,naturalHeight:pe.target.naturalHeight})}}),(0,vD.isBlobURL)(m)&&(0,Le.jsx)(kt.Spinner,{})]}),q=F;if(n&&(q=(0,Le.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:E,onClick:pe=>pe.preventDefault(),children:F})),!_||!x||!k)return(0,Le.jsx)("div",{style:{width:r,height:a},children:q});let K=120,te=r||K,X=x/k,re=te/X,J=x<k?ws:Math.ceil(ws*X),ne=k<x?ws:Math.ceil(ws/X),oe=z*2.5,le=!1,ce=!1;t==="center"?(le=!0,ce=!0):(0,qr.isRTL)()?t==="left"?le=!0:ce=!0:t==="right"?ce=!0:le=!0;let ye=d&&x&&k&&j,Me=!R,ie;ye&&S?ie=(0,Le.jsx)(Zr.__experimentalImageEditor,{id:d,url:m,width:te,height:re,naturalHeight:k,naturalWidth:x,onSaveImage:pe=>{u(pe.id)},onFinishEditing:()=>{N(!1)}}):ie=(0,Le.jsx)(kt.ResizableBox,{size:{width:te,height:re},showHandle:s&&Me,minWidth:J,maxWidth:oe,minHeight:ne,maxHeight:oe/X,lockAspectRatio:!0,enable:{top:!1,right:le,bottom:!0,left:ce},onResizeStart:H,onResizeStop:(pe,Be,de,lt)=>{G(),c({width:parseInt(te+lt.width,10),height:parseInt(re+lt.height,10)})},children:q});let Re=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",ae=(0,Qs.createInterpolateElement)((0,qr.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,Le.jsx)("a",{href:Re,target:"_blank",rel:"noopener noreferrer"})});return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Zr.InspectorControls,{children:(0,Le.jsxs)(kt.__experimentalToolsPanel,{label:(0,qr.__)("Settings"),dropdownMenuProps:D,children:[(0,Le.jsx)(kt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,qr.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,Le.jsx)(kt.RangeControl,{__next40pxDefaultSize:!0,label:(0,qr.__)("Image width"),onChange:pe=>c({width:pe}),min:J,max:oe,initialPosition:Math.min(K,oe),value:r||"",disabled:!_})}),(0,Le.jsx)(kt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,qr.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,Le.jsx)(kt.ToggleControl,{label:(0,qr.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,Le.jsx)(kt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,qr.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,Le.jsx)(kt.ToggleControl,{label:(0,qr.__)("Open in new tab"),onChange:pe=>c({linkTarget:pe?"_blank":"_self"}),checked:i==="_blank"})}),v&&(0,Le.jsx)(kt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,qr.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,Le.jsx)(kt.ToggleControl,{label:(0,qr.__)("Use as Site Icon"),onChange:pe=>{c({shouldSyncIcon:pe}),h(pe?d:void 0)},checked:!!l,help:ae})})]})}),ye&&!S&&Me&&(0,Le.jsx)(Zr.BlockControls,{group:"block",children:(0,Le.jsx)(kt.ToolbarButton,{onClick:()=>N(!0),icon:n0,label:(0,qr.__)("Crop")})}),ie]})};function Loe({attributes:e,className:t,setAttributes:r,isSelected:a}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p}=(0,ym.useSelect)(K=>{let{canUser:te,getEntityRecord:X,getEditedEntityRecord:re}=K(og.store),J=te("update",{kind:"root",name:"site"}),ne=J?re("root","site"):void 0,oe=X("root","__unstableBase"),le=J?ne?.site_logo:oe?.site_logo,ce=ne?.site_icon,ye=le&&K(og.store).getEntityRecord("postType","attachment",le,{context:"view"}),Me=!!le&&!K(og.store).hasFinishedResolution("getEntityRecord",["postType","attachment",le,{context:"view"}]);return{siteLogoId:le,canUserEdit:J,url:oe?.home,mediaItemData:ye,isRequestingMediaItem:Me,siteIconId:ce}},[]),{getSettings:d}=(0,ym.useSelect)(Zr.store),[f,h]=(0,Qs.useState)(),v=W(),{editEntityRecord:y}=(0,ym.useDispatch)(og.store),b=(K,te=!1)=>{(i||te)&&_(K),y("root","site",void 0,{site_logo:K})},_=K=>y("root","site",void 0,{site_icon:K??null}),{alt_text:x,source_url:k}=m??{},C=K=>{if(i===void 0){let te=!u;r({shouldSyncIcon:te}),S(K,te);return}S(K)},S=(K,te=!1)=>{if(K){if(!K.id&&K.url){h(K.url),b(void 0);return}b(K.id,te)}},N=()=>{b(null),r({width:void 0})},{createErrorNotice:B}=(0,ym.useDispatch)(Doe.store),D=K=>{B(K,{type:"snackbar"}),h()},A=K=>{d().mediaUpload({allowedTypes:oC,filesList:K,onFileChange([te]){if((0,vD.isBlobURL)(te?.url)){h(te.url);return}C(te)},onError:D,multiple:!1})},R={mediaURL:k,name:k?(0,qr.__)("Replace"):(0,qr.__)("Choose logo"),onSelect:S,onError:D,onReset:N},j=s&&(0,Le.jsx)(Zr.BlockControls,{group:"other",children:(0,Le.jsx)(Zr.MediaReplaceFlow,{...R,allowedTypes:oC,variant:"toolbar"})}),z,E=l===void 0||p;E&&(z=(0,Le.jsx)(kt.Spinner,{})),(0,Qs.useEffect)(()=>{k&&f&&h()},[k,f]),(k||f)&&(z=(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(t_e,{alt:x,attributes:e,className:t,isSelected:a,setAttributes:r,logoUrl:f||k,setLogo:b,logoId:m?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,Le.jsx)(kt.DropZone,{onFilesDrop:A})]}));let H=K=>{let te=w("block-editor-media-placeholder",t);return(0,Le.jsx)(kt.Placeholder,{className:te,preview:z,withIllustration:!0,style:{width:n},children:K})},G=w(t,{"is-default-size":!n,"is-transient":f}),F=(0,Zr.useBlockProps)({className:G}),q=(s||k)&&(0,Le.jsx)(Zr.InspectorControls,{children:(0,Le.jsx)(kt.__experimentalToolsPanel,{label:(0,qr.__)("Media"),dropdownMenuProps:v,children:s?(0,Le.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,qr.__)("Logo"),isShownByDefault:!0,children:(0,Le.jsx)(mk,{mediaId:l,mediaUrl:k,alt:m?.alt_text,filename:m?.media_details?.sizes?.full?.file||m?.slug,allowedTypes:oC,onSelect:S,onError:D,onReset:N,isUploading:!!f,emptyLabel:(0,qr.__)("Choose logo")})}):(0,Le.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,Le.jsx)(bN,{url:m?.source_url,alt:m?.alt_text,filename:m?.media_details?.sizes?.full?.file||m?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,Le.jsxs)("div",{...F,children:[j,q,(!!k||!!f)&&z,(E||!f&&!k&&!s)&&(0,Le.jsx)(kt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:E&&(0,Le.jsx)("span",{className:"components-placeholder__preview",children:(0,Le.jsx)(kt.Spinner,{})})}),!E&&!f&&!k&&s&&(0,Le.jsx)(Zr.MediaPlaceholder,{onSelect:C,allowedTypes:oC,onError:D,placeholder:H,mediaLibraryButton:({open:K})=>(0,Le.jsx)(kt.Button,{__next40pxDefaultSize:!0,icon:fc,variant:"primary",label:(0,qr.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{K()}})})]})}var Moe=o(U(),1),r_e={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Moe.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Roe=r_e;var{name:Aoe}=rC,zoe={icon:CT,example:{},edit:Loe,transforms:Roe},o_e=()=>I({name:Aoe,metadata:rC,settings:zoe});var _D={};$(_D,{init:()=>i_e,metadata:()=>aC,name:()=>Ooe,settings:()=>joe});var aC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"},level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},example:{viewportWidth:350,attributes:{textAlign:"center"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},contentRole:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var iC=o(V(),1),yD=o(Q(),1),Xs=o(T(),1),nC=o(P(),1),lC=o(U(),1),Ys=o(g(),1);function Voe({attributes:e,setAttributes:t,insertBlocksAfter:r}){let{textAlign:a,level:n,levelOptions:i}=e,{canUserEdit:l,tagline:s}=(0,iC.useSelect)(f=>{let{canUser:h,getEntityRecord:v,getEditedEntityRecord:y}=f(yD.store),b=h("update",{kind:"root",name:"site"}),_=b?y("root","site"):{},x=v("root","__unstableBase");return{canUserEdit:b,tagline:b?_?.description:x?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,iC.useDispatch)(yD.store);function m(f){u("root","site",void 0,{description:f})}let p=(0,Xs.useBlockProps)({className:w({[`has-text-align-${a}`]:a,"wp-block-site-tagline__placeholder":!l&&!s})}),d=l?(0,Ys.jsx)(Xs.RichText,{allowedFormats:[],onChange:m,"aria-label":(0,nC.__)("Site tagline text"),placeholder:(0,nC.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,lC.createBlock)((0,lC.getDefaultBlockName)())),...p}):(0,Ys.jsx)(c,{...p,children:s||(0,nC.__)("Site Tagline placeholder")});return(0,Ys.jsxs)(Ys.Fragment,{children:[(0,Ys.jsxs)(Xs.BlockControls,{group:"block",children:[(0,Ys.jsx)(Xs.HeadingLevelDropdown,{value:n,options:i,onChange:f=>t({level:f})}),(0,Ys.jsx)(Xs.AlignmentControl,{onChange:f=>t({textAlign:f}),value:a})]}),d]})}var sC=o(M(),1),xD=o(g(),1),Hoe=(0,xD.jsx)(sC.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,xD.jsx)(sC.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var n_e={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},Foe=[n_e];var{name:Ooe}=aC,joe={icon:Hoe,edit:Voe,deprecated:Foe},i_e=()=>I({name:Ooe,metadata:aC,settings:joe});var CD={};$(CD,{init:()=>u_e,metadata:()=>cC,name:()=>qoe,settings:()=>Zoe});var cC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it\u2019s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},textAlign:{type:"string"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:500},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var uC=o(V(),1),kD=o(Q(),1),Js=o(P(),1),Nn=o(T(),1),xm=o(M(),1),mC=o(U(),1),wD=o(Xr(),1);var io=o(g(),1);function Uoe({attributes:e,setAttributes:t,insertBlocksAfter:r}){let{level:a,levelOptions:n,textAlign:i,isLink:l,linkTarget:s}=e,{canUserEdit:c,title:u}=(0,uC.useSelect)(b=>{let{canUser:_,getEntityRecord:x,getEditedEntityRecord:k}=b(kD.store),C=_("update",{kind:"root",name:"site"}),S=C?k("root","site"):{},N=x("root","__unstableBase");return{canUserEdit:C,title:C?S?.title:N?.name}},[]),{editEntityRecord:m}=(0,uC.useDispatch)(kD.store),p=W(),d=(0,Nn.useBlockEditingMode)();function f(b){m("root","site",void 0,{title:b.trim()})}let h=a===0?"p":`h${a}`,v=(0,Nn.useBlockProps)({className:w({[`has-text-align-${i}`]:i,"wp-block-site-title__placeholder":!c&&!u})}),y=c?(0,io.jsx)(h,{...v,children:(0,io.jsx)(Nn.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,Js.__)("Site title text"),placeholder:(0,Js.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,mC.createBlock)((0,mC.getDefaultBlockName)()))})}):(0,io.jsx)(h,{...v,children:l?(0,io.jsx)("a",{href:"#site-title-pseudo-link",onClick:b=>b.preventDefault(),children:(0,wD.decodeEntities)(u)||(0,Js.__)("Site Title placeholder")}):(0,io.jsx)("span",{children:(0,wD.decodeEntities)(u)||(0,Js.__)("Site Title placeholder")})});return(0,io.jsxs)(io.Fragment,{children:[d==="default"&&(0,io.jsxs)(Nn.BlockControls,{group:"block",children:[(0,io.jsx)(Nn.HeadingLevelDropdown,{value:a,options:n,onChange:b=>t({level:b})}),(0,io.jsx)(Nn.AlignmentControl,{value:i,onChange:b=>{t({textAlign:b})}})]}),(0,io.jsx)(Nn.InspectorControls,{children:(0,io.jsxs)(xm.__experimentalToolsPanel,{label:(0,Js.__)("Settings"),resetAll:()=>{t({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,io.jsx)(xm.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Js.__)("Make title link to home"),onDeselect:()=>t({isLink:!0}),isShownByDefault:!0,children:(0,io.jsx)(xm.ToggleControl,{label:(0,Js.__)("Make title link to home"),onChange:()=>t({isLink:!l}),checked:l})}),l&&(0,io.jsx)(xm.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,Js.__)("Open in new tab"),onDeselect:()=>t({linkTarget:"_self"}),isShownByDefault:!0,children:(0,io.jsx)(xm.ToggleControl,{label:(0,Js.__)("Open in new tab"),onChange:b=>t({linkTarget:b?"_blank":"_self"}),checked:s==="_blank"})})]})}),y]})}var s_e={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},Goe=[s_e];var Woe=o(U(),1),c_e={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Woe.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},$oe=c_e;var{name:qoe}=cC,Zoe={icon:eS,example:{viewportWidth:350,attributes:{textAlign:"center"}},edit:Uoe,transforms:$oe,deprecated:Goe},u_e=()=>I({name:qoe,metadata:cC,settings:Zoe});var _L={};$(_L,{init:()=>g_e,metadata:()=>l6,name:()=>Kae,settings:()=>s6});var xL=o(P(),1);var Zae=o(U(),1);var ag=o(ms(),1),i6=o(V(),1),qa=o(T(),1),_d=o(O(),1),Kr=o(M(),1),Uae=o(fe(),1),En=o(P(),1);var Gae=o(U(),1);var yL=o(P(),1);var pC=o(L(),1),SD=o(g(),1),Koe=()=>(0,SD.jsx)(pC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SD.jsx)(pC.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"})});var dC=o(L(),1),TD=o(g(),1),Qoe=()=>(0,TD.jsx)(dC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TD.jsx)(dC.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var fC=o(L(),1),PD=o(g(),1),Yoe=()=>(0,PD.jsx)(fC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PD.jsx)(fC.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"})});var hC=o(L(),1),BD=o(g(),1),Xoe=()=>(0,BD.jsx)(hC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BD.jsx)(hC.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var gC=o(L(),1),ND=o(g(),1),o2=()=>(0,ND.jsx)(gC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ND.jsx)(gC.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})});var vC=o(L(),1),ED=o(g(),1),Joe=()=>(0,ED.jsx)(vC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ED.jsx)(vC.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"})});var bC=o(L(),1),ID=o(g(),1),eae=()=>(0,ID.jsx)(bC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ID.jsx)(bC.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"})});var yC=o(L(),1),DD=o(g(),1),tae=()=>(0,DD.jsx)(yC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DD.jsx)(yC.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})});var xC=o(L(),1),LD=o(g(),1),rae=()=>(0,LD.jsx)(xC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LD.jsx)(xC.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"})});var _C=o(L(),1),MD=o(g(),1),oae=()=>(0,MD.jsx)(_C.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MD.jsx)(_C.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"})});var kC=o(L(),1),RD=o(g(),1),aae=()=>(0,RD.jsx)(kC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RD.jsx)(kC.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"})});var wC=o(L(),1),AD=o(g(),1),nae=()=>(0,AD.jsx)(wC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AD.jsx)(wC.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"})});var CC=o(L(),1),zD=o(g(),1),iae=()=>(0,zD.jsx)(CC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zD.jsx)(CC.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"})});var SC=o(L(),1),VD=o(g(),1),lae=()=>(0,VD.jsx)(SC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VD.jsx)(SC.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"})});var TC=o(L(),1),HD=o(g(),1),sae=()=>(0,HD.jsx)(TC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HD.jsx)(TC.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"})});var PC=o(L(),1),FD=o(g(),1),cae=()=>(0,FD.jsx)(PC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FD.jsx)(PC.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"})});var BC=o(L(),1),OD=o(g(),1),uae=()=>(0,OD.jsx)(BC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OD.jsx)(BC.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"})});var NC=o(L(),1),jD=o(g(),1),mae=()=>(0,jD.jsx)(NC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jD.jsx)(NC.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"})});var EC=o(L(),1),UD=o(g(),1),pae=()=>(0,UD.jsx)(EC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UD.jsx)(EC.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"})});var IC=o(L(),1),GD=o(g(),1),dae=()=>(0,GD.jsx)(IC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GD.jsx)(IC.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})});var DC=o(L(),1),WD=o(g(),1),fae=()=>(0,WD.jsx)(DC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WD.jsx)(DC.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"})});var LC=o(L(),1),$D=o(g(),1),hae=()=>(0,$D.jsx)(LC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$D.jsx)(LC.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"})});var MC=o(L(),1),qD=o(g(),1),gae=()=>(0,qD.jsx)(MC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qD.jsx)(MC.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"})});var RC=o(L(),1),ZD=o(g(),1),vae=()=>(0,ZD.jsx)(RC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZD.jsx)(RC.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})});var AC=o(L(),1),KD=o(g(),1),bae=()=>(0,KD.jsx)(AC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KD.jsx)(AC.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"})});var zC=o(L(),1),QD=o(g(),1),yae=()=>(0,QD.jsx)(zC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QD.jsx)(zC.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"})});var VC=o(L(),1),YD=o(g(),1),xae=()=>(0,YD.jsx)(VC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YD.jsx)(VC.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})});var HC=o(L(),1),XD=o(g(),1),_ae=()=>(0,XD.jsx)(HC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XD.jsx)(HC.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})});var FC=o(L(),1),JD=o(g(),1),kae=()=>(0,JD.jsx)(FC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JD.jsx)(FC.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})});var OC=o(L(),1),eL=o(g(),1),wae=()=>(0,eL.jsx)(OC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eL.jsx)(OC.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"})});var jC=o(L(),1),tL=o(g(),1),Cae=()=>(0,tL.jsx)(jC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tL.jsx)(jC.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})});var UC=o(L(),1),rL=o(g(),1),Sae=()=>(0,rL.jsx)(UC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rL.jsx)(UC.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"})});var GC=o(L(),1),oL=o(g(),1),Tae=()=>(0,oL.jsx)(GC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oL.jsx)(GC.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"})});var WC=o(L(),1),aL=o(g(),1),Pae=()=>(0,aL.jsx)(WC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aL.jsx)(WC.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})});var $C=o(L(),1),nL=o(g(),1),Bae=()=>(0,nL.jsx)($C.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nL.jsx)($C.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"})});var qC=o(L(),1),iL=o(g(),1),Nae=()=>(0,iL.jsx)(qC.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,iL.jsx)(qC.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"})});var ZC=o(L(),1),lL=o(g(),1),Eae=()=>(0,lL.jsx)(ZC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lL.jsx)(ZC.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})});var KC=o(L(),1),sL=o(g(),1),Iae=()=>(0,sL.jsx)(KC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sL.jsx)(KC.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})});var QC=o(L(),1),cL=o(g(),1),Dae=()=>(0,cL.jsx)(QC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cL.jsx)(QC.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"})});var YC=o(L(),1),uL=o(g(),1),Lae=()=>(0,uL.jsx)(YC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uL.jsx)(YC.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"})});var XC=o(L(),1),mL=o(g(),1),Mae=()=>(0,mL.jsx)(XC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mL.jsx)(XC.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"})});var JC=o(L(),1),pL=o(g(),1),Rae=()=>(0,pL.jsx)(JC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pL.jsx)(JC.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"})});var e6=o(L(),1),dL=o(g(),1),Aae=()=>(0,dL.jsx)(e6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dL.jsx)(e6.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"})});var t6=o(L(),1),fL=o(g(),1),zae=()=>(0,fL.jsx)(t6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fL.jsx)(t6.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})});var r6=o(L(),1),hL=o(g(),1),Vae=()=>(0,hL.jsx)(r6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,hL.jsx)(r6.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"})});var o6=o(L(),1),gL=o(g(),1),Hae=()=>(0,gL.jsx)(o6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gL.jsx)(o6.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})});var a6=o(L(),1),vL=o(g(),1),Fae=()=>(0,vL.jsx)(a6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vL.jsx)(a6.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"})});var n6=o(L(),1),bL=o(g(),1),Oae=()=>(0,bL.jsx)(n6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bL.jsx)(n6.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"})});function jae(e){return e?.name?{icon:e?.icon??o2,label:e?.title??(0,yL.__)("Social Icon")}:{icon:o2,label:(0,yL.__)("Social Icon")}}var Ft=o(g(),1),m_e=({url:e,setAttributes:t,setPopover:r,popoverAnchor:a,clientId:n})=>{let{removeBlock:i}=(0,i6.useDispatch)(qa.store);return(0,Ft.jsx)(qa.URLPopover,{anchor:a,"aria-label":(0,En.__)("Edit social link"),onClose:()=>{r(!1),a?.focus()},children:(0,Ft.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),a?.focus()},children:(0,Ft.jsx)("div",{className:"block-editor-url-input",children:(0,Ft.jsx)(qa.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,En.__)("Enter social link"),label:(0,En.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![ag.BACKSPACE,ag.DELETE].includes(l.keyCode)||i(n)},suffix:(0,Ft.jsx)(Kr.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Ft.jsx)(Kr.Button,{icon:U9,label:(0,En.__)("Apply"),type:"submit",size:"small"})})})})})})},p_e=({attributes:e,context:t,isSelected:r,setAttributes:a,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,m=W(),{showLabels:p,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:v}=t,[y,b]=(0,_d.useState)(!1),_=w("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${h}-background-color`]:h}),[x,k]=(0,_d.useState)(null),C=(0,qa.useBlockEditingMode)()==="contentOnly",{activeVariation:S}=(0,i6.useSelect)(j=>{let{getActiveBlockVariation:z}=j(Gae.store);return{activeVariation:z(i,e)}},[i,e]),{icon:N,label:B}=jae(S),D=c.trim()===""?B:c,A=(0,_d.useRef)(),R=(0,qa.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,Uae.useMergeRefs)([k,A]),onClick:()=>b(!0),onKeyDown:j=>{j.keyCode===ag.ENTER&&(j.preventDefault(),b(!0))}});return(0,Ft.jsxs)(Ft.Fragment,{children:[C&&p&&(0,Ft.jsx)(qa.BlockControls,{group:"other",children:(0,Ft.jsx)(Kr.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:j,onToggle:z})=>(0,Ft.jsx)(Kr.ToolbarButton,{onClick:z,"aria-haspopup":"true","aria-expanded":j,children:(0,En.__)("Text")}),renderContent:()=>(0,Ft.jsx)(Kr.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,En.__)("Text"),help:(0,En.__)("Provide a text label or use the default."),value:c,onChange:j=>a({label:j}),placeholder:B})})}),(0,Ft.jsx)(qa.InspectorControls,{children:(0,Ft.jsx)(Kr.__experimentalToolsPanel,{label:(0,En.__)("Settings"),resetAll:()=>{a({label:void 0})},dropdownMenuProps:m,children:(0,Ft.jsx)(Kr.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,En.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{a({label:void 0})},children:(0,Ft.jsx)(Kr.TextControl,{__next40pxDefaultSize:!0,label:(0,En.__)("Text"),help:(0,En.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:j=>a({label:j}),placeholder:B})})})}),(0,Ft.jsx)(qa.InspectorControls,{group:"advanced",children:(0,Ft.jsx)(Kr.TextControl,{__next40pxDefaultSize:!0,label:(0,En.__)("Link relation"),help:(0,_d.createInterpolateElement)((0,En.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ft.jsx)(Kr.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:j=>a({rel:j})})}),(0,Ft.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:v},children:[(0,Ft.jsxs)("button",{"aria-haspopup":"dialog",...R,role:"button",children:[(0,Ft.jsx)(Kr.Icon,{icon:N}),(0,Ft.jsx)("span",{className:w("wp-block-social-link-label",{"screen-reader-text":!p}),children:D})]}),r&&y&&(0,Ft.jsx)(m_e,{url:l,setAttributes:a,setPopover:b,popoverAnchor:x,clientId:n})]})]})},Wae=p_e;var l6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social profile or site.",textdomain:"default",attributes:{url:{type:"string",role:"content"},service:{type:"string"},label:{type:"string",role:"content"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{anchor:!0,reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"};var Ne=o(P(),1);var $ae=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Ne._x)("WordPress","social link block variation name"),icon:Vae},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Ne._x)("500px","social link block variation name"),icon:lae},{name:"amazon",attributes:{service:"amazon"},title:(0,Ne._x)("Amazon","social link block variation name"),icon:Koe},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Ne._x)("Bandcamp","social link block variation name"),icon:Qoe},{name:"behance",attributes:{service:"behance"},title:(0,Ne._x)("Behance","social link block variation name"),icon:Yoe},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Ne._x)("Bluesky","social link block variation name"),icon:Xoe},{name:"chain",attributes:{service:"chain"},title:(0,Ne._x)("Link","social link block variation name"),icon:o2},{name:"codepen",attributes:{service:"codepen"},title:(0,Ne._x)("CodePen","social link block variation name"),icon:Joe},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Ne._x)("DeviantArt","social link block variation name"),icon:eae},{name:"discord",attributes:{service:"discord"},title:(0,Ne._x)("Discord","social link block variation name"),icon:tae},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Ne._x)("Dribbble","social link block variation name"),icon:rae},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Ne._x)("Dropbox","social link block variation name"),icon:oae},{name:"etsy",attributes:{service:"etsy"},title:(0,Ne._x)("Etsy","social link block variation name"),icon:aae},{name:"facebook",attributes:{service:"facebook"},title:(0,Ne._x)("Facebook","social link block variation name"),icon:nae},{name:"feed",attributes:{service:"feed"},title:(0,Ne._x)("RSS Feed","social link block variation name"),icon:iae},{name:"flickr",attributes:{service:"flickr"},title:(0,Ne._x)("Flickr","social link block variation name"),icon:sae},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Ne._x)("Foursquare","social link block variation name"),icon:cae},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Ne._x)("Goodreads","social link block variation name"),icon:uae},{name:"google",attributes:{service:"google"},title:(0,Ne._x)("Google","social link block variation name"),icon:mae},{name:"github",attributes:{service:"github"},title:(0,Ne._x)("GitHub","social link block variation name"),icon:pae},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Ne._x)("Gravatar","social link block variation name"),icon:dae},{name:"instagram",attributes:{service:"instagram"},title:(0,Ne._x)("Instagram","social link block variation name"),icon:fae},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Ne._x)("Last.fm","social link block variation name"),icon:hae},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Ne._x)("LinkedIn","social link block variation name"),icon:gae},{name:"mail",attributes:{service:"mail"},title:(0,Ne._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:vae},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Ne._x)("Mastodon","social link block variation name"),icon:bae},{name:"meetup",attributes:{service:"meetup"},title:(0,Ne._x)("Meetup","social link block variation name"),icon:yae},{name:"medium",attributes:{service:"medium"},title:(0,Ne._x)("Medium","social link block variation name"),icon:xae},{name:"patreon",attributes:{service:"patreon"},title:(0,Ne._x)("Patreon","social link block variation name"),icon:_ae},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Ne._x)("Pinterest","social link block variation name"),icon:kae},{name:"pocket",attributes:{service:"pocket"},title:(0,Ne._x)("Pocket","social link block variation name"),icon:wae},{name:"reddit",attributes:{service:"reddit"},title:(0,Ne._x)("Reddit","social link block variation name"),icon:Cae},{name:"skype",attributes:{service:"skype"},title:(0,Ne._x)("Skype","social link block variation name"),icon:Sae,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Ne._x)("Snapchat","social link block variation name"),icon:Tae},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Ne._x)("SoundCloud","social link block variation name"),icon:Pae},{name:"spotify",attributes:{service:"spotify"},title:(0,Ne._x)("Spotify","social link block variation name"),icon:Bae},{name:"telegram",attributes:{service:"telegram"},title:(0,Ne._x)("Telegram","social link block variation name"),icon:Nae},{name:"threads",attributes:{service:"threads"},title:(0,Ne._x)("Threads","social link block variation name"),icon:Eae},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Ne._x)("TikTok","social link block variation name"),icon:Iae},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Ne._x)("Tumblr","social link block variation name"),icon:Dae},{name:"twitch",attributes:{service:"twitch"},title:(0,Ne._x)("Twitch","social link block variation name"),icon:Lae},{name:"twitter",attributes:{service:"twitter"},title:(0,Ne._x)("Twitter","social link block variation name"),icon:Mae},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Ne._x)("Vimeo","social link block variation name"),icon:Rae},{name:"vk",attributes:{service:"vk"},title:(0,Ne._x)("VK","social link block variation name"),icon:Aae},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Ne._x)("WhatsApp","social link block variation name"),icon:zae},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Ne._x)("X","social link block variation name"),icon:Hae},{name:"yelp",attributes:{service:"yelp"},title:(0,Ne._x)("Yelp","social link block variation name"),icon:Fae},{name:"youtube",attributes:{service:"youtube"},title:(0,Ne._x)("YouTube","social link block variation name"),icon:Oae}];$ae.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var qae=$ae;var{fieldsKey:f_e,formKey:h_e}=Z(Zae.privateApis),{name:Kae}=l6,s6={icon:R0,edit:Wae,variations:qae};window.__experimentalContentOnlyInspectorFields&&(s6[f_e]=[{id:"link",label:(0,xL.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})},{id:"label",label:(0,xL.__)("Label"),type:"text"}],s6[h_e]={fields:["link","label"]});var g_e=()=>I({name:Kae,metadata:l6,settings:s6});var wL={};$(wL,{init:()=>w_e,metadata:()=>u6,name:()=>rne,settings:()=>one});var c6=o(T(),1),kL=o(g(),1),v_e=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",a=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(a,"").trim()},i=t?.match(a)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),n},b_e=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:v_e,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:a,size:n}}=e,i=w(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${a}`]:a}),l={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,kL.jsx)("ul",{...c6.useBlockProps.save({className:i,style:l}),children:(0,kL.jsx)(c6.InnerBlocks.Content,{})})}}],Qae=b_e;var Yae=o(O(),1),lo=o(T(),1),$l=o(M(),1),Za=o(P(),1),Xae=o(V(),1);var Yo=o(g(),1),y_e=[{label:(0,Za.__)("Default"),value:""},{label:(0,Za.__)("Small"),value:"has-small-icon-size"},{label:(0,Za.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Za.__)("Large"),value:"has-large-icon-size"},{label:(0,Za.__)("Huge"),value:"has-huge-icon-size"}];function x_e(e){let{clientId:t,attributes:r,iconBackgroundColor:a,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:p,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:v}=(0,Xae.useSelect)(B=>{let{getBlockCount:D,hasSelectedInnerBlock:A}=B(lo.store);return{hasSocialIcons:D(t)>0,hasSelectedChild:A(t)}},[t]),y=i||v,b=r.className?.includes("is-style-logos-only"),_=W();(0,Yae.useEffect)(()=>{if(b){let B;return l(D=>(B={iconBackgroundColor:D.iconBackgroundColor,iconBackgroundColorValue:D.iconBackgroundColorValue,customIconBackgroundColor:D.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...B})}},[b,l]);let x=w(f,{"has-visible-labels":d,"has-icon-color":n.color||m,"has-icon-background-color":a.color||u}),k=(0,lo.useBlockProps)({className:x}),C=(0,lo.useInnerBlocksProps)(k,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||y?lo.InnerBlocks.ButtonBlockAppender:void 0}),S=[{value:n.color||m,onChange:B=>{c(B),l({iconColorValue:B})},label:(0,Za.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];b||S.push({value:a.color||u,onChange:B=>{s(B),l({iconBackgroundColorValue:B})},label:(0,Za.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let N=(0,lo.__experimentalUseMultipleOriginColorsAndGradients)();return(0,Yo.jsxs)(Yo.Fragment,{children:[(0,Yo.jsx)(lo.InspectorControls,{children:(0,Yo.jsxs)($l.__experimentalToolsPanel,{label:(0,Za.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:_,children:[(0,Yo.jsx)($l.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Za.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,Yo.jsx)($l.SelectControl,{__next40pxDefaultSize:!0,label:(0,Za.__)("Icon size"),onChange:B=>{l({size:B===""?void 0:B})},value:f??"",options:y_e})}),(0,Yo.jsx)($l.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Za.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,Yo.jsx)($l.ToggleControl,{label:(0,Za.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,Yo.jsx)($l.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Za.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>l({openInNewTab:!1}),children:(0,Yo.jsx)($l.ToggleControl,{label:(0,Za.__)("Open links in new tab"),checked:p,onChange:()=>l({openInNewTab:!p})})})]})}),N.hasColorsOrGradients&&(0,Yo.jsxs)(lo.InspectorControls,{group:"color",children:[S.map(({onChange:B,label:D,value:A,resetAllFilter:R})=>(0,Yo.jsx)(lo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:A,label:D,onColorChange:B,isShownByDefault:!0,resetAllFilter:R,enableAlpha:!0,clearable:!0}],panelId:t,...N},`social-links-color-${D}`)),!b&&(0,Yo.jsx)(lo.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})]}),(0,Yo.jsx)("ul",{...C})]})}var __e={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},Jae=(0,lo.withColors)(__e)(x_e);var u6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,html:!1,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},contentRole:!0,listView:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"};var m6=o(T(),1),ene=o(g(),1);function tne(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:a,size:n}}=e,i=w(n,{"has-visible-labels":a,"has-icon-color":r,"has-icon-background-color":t}),l=m6.useBlockProps.save({className:i}),s=m6.useInnerBlocksProps.save(l);return(0,ene.jsx)("ul",{...s})}var{name:rne}=u6,one={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:R0,edit:Jae,save:tne,deprecated:Qae},w_e=()=>I({name:rne,metadata:u6,settings:one});var CL={};$(CL,{init:()=>E_e,metadata:()=>d6,name:()=>yne,settings:()=>xne});var ane=o(T(),1),nne=o(g(),1),C_e=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){let{height:t,width:r}=e;return{...e,width:r!==void 0?`${r}px`:void 0,height:t!==void 0?`${t}px`:void 0}},save({attributes:e}){return(0,nne.jsx)("div",{...ane.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],ine=C_e;var Xo=o(T(),1),pne=o(M(),1),ig=o(O(),1),dne=o(L(),1),p6=o(V(),1);var ng=o(P(),1),ec=o(T(),1),Ki=o(M(),1),sne=o(fe(),1),cne=o(L(),1);var a2=0;var In=o(g(),1),{useSpacingSizes:S_e}=Z(ec.privateApis);function lne({label:e,onChange:t,isResizing:r,value:a=""}){let n=(0,sne.useInstanceId)(Ki.__experimentalUnitControl,"block-spacer-height-input"),i=S_e(),[l]=(0,ec.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,Ki.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,m]=(0,Ki.__experimentalParseQuantityAndUnitFromRawValue)(a),p=(0,ec.isValueSpacingPreset)(a)?a:[u,r?"px":m].join("");return(0,In.jsx)(In.Fragment,{children:i?.length<2?(0,In.jsx)(Ki.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:a2,onChange:t,value:p,units:c,label:e,__next40pxDefaultSize:!0}):(0,In.jsx)(cne.View,{className:"tools-panel-item-spacing",children:(0,In.jsx)(ec.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function une({setAttributes:e,orientation:t,height:r,width:a,isResizing:n}){let i=W();return(0,In.jsx)(ec.InspectorControls,{children:(0,In.jsxs)(Ki.__experimentalToolsPanel,{label:(0,ng.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,In.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ng.__)("Width"),isShownByDefault:!0,hasValue:()=>a!==void 0,onDeselect:()=>e({width:void 0}),children:(0,In.jsx)(lne,{label:(0,ng.__)("Width"),value:a,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,In.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ng.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,In.jsx)(lne,{label:(0,ng.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:n})})]})})}var Qi=o(g(),1),{useSpacingSizes:T_e}=Z(Xo.privateApis),mne=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:a,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=m=>e==="horizontal"?m.clientWidth:m.clientHeight,u=m=>`${c(m)}px`;return(0,Qi.jsx)(pne.ResizableBox,{className:w("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(m,p,d)=>{let f=u(d);t(f),r(f)},onResize:(m,p,d)=>{r(u(d)),i||l(!0)},onResizeStop:(m,p,d)=>{let f=c(d);a(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},P_e=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:a,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,p6.useSelect)(re=>re(Xo.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:m,default:{type:p}={}}=i||{},d=m==="flex"||!m&&p==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:v,style:y={}}=e,{layout:b={}}=y,{selfStretch:_,flexSize:x}=b,k=T_e(),[C,S]=(0,ig.useState)(!1),[N,B]=(0,ig.useState)(null),[D,A]=(0,ig.useState)(null),R=()=>a(!1),j=()=>a(!0),{__unstableMarkNextChangeAsNotPersistent:z}=(0,p6.useDispatch)(Xo.store),E=re=>{j(),d&&r({style:{...y,layout:{...b,flexSize:re,selfStretch:"fixed"}}}),r({height:re}),B(null)},H=re=>{j(),d&&r({style:{...y,layout:{...b,flexSize:re,selfStretch:"fixed"}}}),r({width:re}),A(null)},G=()=>{if(!d)return N||(0,Xo.getSpacingPresetCssVar)(h)||void 0},F=()=>{if(!d)return D||(0,Xo.getSpacingPresetCssVar)(v)||void 0},q=f==="horizontal"?D||x:N||x,K={height:f==="horizontal"?24:G(),width:f==="horizontal"?F():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?q:void 0,flexGrow:d&&C?0:void 0},te=re=>re==="horizontal"?(0,Qi.jsx)(mne,{minWidth:a2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:re,onResizeStart:R,onResize:A,onResizeStop:H,isSelected:t,isResizing:C,setIsResizing:S}):(0,Qi.jsx)(Qi.Fragment,{children:(0,Qi.jsx)(mne,{minHeight:a2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:re,onResizeStart:R,onResize:B,onResizeStop:E,isSelected:t,isResizing:C,setIsResizing:S})});(0,ig.useEffect)(()=>{let re=J=>{z(),r(J)};if(d&&_!=="fill"&&_!=="fit"&&x===void 0)if(f==="horizontal"){let J=(0,Xo.getCustomValueFromPreset)(v,k)||(0,Xo.getCustomValueFromPreset)(h,k)||"100px";re({width:"0px",style:{...y,layout:{...b,flexSize:J,selfStretch:"fixed"}}})}else{let J=(0,Xo.getCustomValueFromPreset)(h,k)||(0,Xo.getCustomValueFromPreset)(v,k)||"100px";re({height:"0px",style:{...y,layout:{...b,flexSize:J,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?re(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||x)&&re({...f==="horizontal"?{width:x}:{height:x},style:{...y,layout:{...b,flexSize:void 0,selfStretch:void 0}}})},[y,x,h,f,d,b,_,r,k,v,z]);let X=(0,Xo.useBlockEditingMode)();return(0,Qi.jsxs)(Qi.Fragment,{children:[(0,Qi.jsx)(dne.View,{...(0,Xo.useBlockProps)({style:K,className:w(l,{"custom-sizes-disabled":s})}),children:X==="default"&&te(f)}),!d&&(0,Qi.jsx)(une,{setAttributes:r,height:N||h,width:D||v,orientation:f,isResizing:C})]})},fne=P_e;var d6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"};var hne=o(U(),1),N_e={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,hne.createBlock)("core/separator",{anchor:e||void 0})}]},gne=N_e;var n2=o(T(),1),vne=o(g(),1);function bne({attributes:e}){let{height:t,width:r,style:a}=e,{layout:{selfStretch:n}={}}=a||{},i=n==="fill"||n==="fit"?void 0:t;return(0,vne.jsx)("div",{...n2.useBlockProps.save({style:{height:(0,n2.getSpacingPresetCssVar)(i),width:(0,n2.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:yne}=d6,xne={icon:pT,transforms:gne,edit:fne,save:bne,deprecated:ine},E_e=()=>I({name:yne,metadata:d6,settings:xne});var BL={};$(BL,{init:()=>M_e,metadata:()=>_6,name:()=>zne,settings:()=>Vne});var Dne=o(P(),1),Zl=o(T(),1),y6=o(V(),1),Ka=o(O(),1);var b6=o(T(),1),lg=o(M(),1),i2=o(P(),1),Cne=o(V(),1),Sne=o(Xr(),1);var _ne=o(U(),1),h6=o(T(),1),g6=o(M(),1),SL=o(P(),1),kne=o(V(),1),f6=o(g(),1);function v6({attributes:e,tabsClientId:t}){let{insertBlock:r}=(0,kne.useDispatch)(h6.store),{className:a,fontFamily:n,fontSize:i}=e,l=()=>{let s=(0,_ne.createBlock)("core/tab",{className:a,fontFamily:n,fontSize:i});r(s,void 0,t)};return(0,f6.jsx)(h6.BlockControls,{group:"block",children:(0,f6.jsx)(g6.ToolbarGroup,{children:(0,f6.jsx)(g6.ToolbarButton,{className:"components-toolbar__control",label:(0,SL.__)("Add Tab"),onClick:l,showTooltip:!0,text:(0,SL.__)("Add Tab")})})})}var wne=o(Br(),1);function kd(e,t){let r=new window.DOMParser().parseFromString(e,"text/html");return r.body?.textContent?(0,wne.cleanForSlug)(r.body.textContent):`tab-panel-${t}`}var tc=o(g(),1);function Tne({attributes:e,setAttributes:t,tabsClientId:r,blockIndex:a,isDefaultTab:n}){let{label:i}=e,{updateBlockAttributes:l}=(0,Cne.useDispatch)(b6.store);return(0,tc.jsxs)(tc.Fragment,{children:[(0,tc.jsx)(v6,{tabsClientId:r,attributes:e}),(0,tc.jsx)(b6.InspectorControls,{children:(0,tc.jsxs)(lg.PanelBody,{title:(0,i2.__)("Tab Settings"),children:[(0,tc.jsx)(lg.TextControl,{label:(0,i2.__)("Tab Label"),value:(0,Sne.decodeEntities)(i),onChange:s=>{t({label:s,anchor:kd(s,a)})},__next40pxDefaultSize:!0}),(0,tc.jsx)(lg.ToggleControl,{label:(0,i2.__)("Default Tab"),checked:n,onChange:s=>{l(r,{activeTabIndex:s?a:0})},help:(0,i2.__)("If toggled, this tab will be selected when the page loads.")})]})})]})}var sg=o(P(),1),Pne=o(T(),1),TL=o(Xr(),1),Bne=o(O(),1);var _m=o(g(),1);function I_e({label:e,index:t}){return e?(0,_m.jsx)("span",{children:(0,_m.jsx)(Bne.RawHTML,{children:(0,TL.decodeEntities)(e)})}):(0,_m.jsx)("span",{children:(0,sg.sprintf)((0,sg.__)("Tab %d"),t+1)})}function Nne({siblingTabs:e,currentClientId:t,currentBlockIndex:r,currentLabel:a,tabItemColorProps:n,onSelectTab:i,onLabelChange:l,labelRef:s,focusRef:c,labelElementRef:u}){return(0,_m.jsx)("div",{role:"tablist",className:"tabs__list",children:e.map((m,p)=>{let d=m.clientId===t,f=p===r,h=m.attributes||{},v=h.label||"",b=h.anchor||kd(v,p),_=`${b}--tab`;return(0,_m.jsx)("button",{"aria-controls":b,"aria-selected":f,id:_,role:"tab",className:w("tabs__tab-label",n.className),style:{...n.style},tabIndex:f?0:-1,onClick:x=>{x.preventDefault(),i(m.clientId)},onKeyDown:x=>{if(x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),i(m.clientId),d)){let{requestAnimationFrame:k}=window;c.current=k(()=>{u.current?.focus()})}},children:d?(0,_m.jsx)(Pne.RichText,{ref:s,tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,sg.sprintf)((0,sg.__)("Tab %d\u2026"),r+1),value:(0,TL.decodeEntities)(a),onChange:l}):(0,_m.jsx)(I_e,{label:v,index:p})},m.clientId)})})}var ql=o(g(),1),D_e=[["core/paragraph",{placeholder:(0,Dne.__)("Type / to add a block to tab")}]],{requestAnimationFrame:Ene,cancelAnimationFrame:Ine}=window;function Lne({attributes:e,clientId:t,isSelected:r,setAttributes:a,__unstableLayoutClassNames:n}){let{selectBlock:i}=(0,y6.useDispatch)(Zl.store),l=(0,Ka.useRef)(null),s=(0,Ka.useRef)(),[c,u]=(0,Ka.useState)(!0),m=(0,Ka.useRef)(null),{anchor:p,label:d}=e,f=(0,Ka.useCallback)(E=>{if(m.current=E,E&&c){let H=Ene(()=>{E&&E.focus()});s.current=H,u(!1)}},[c]);(0,Ka.useEffect)(()=>{if(!d&&!c&&m.current){let E=Ene(()=>{m.current&&m.current.focus()});return s.current=E,()=>Ine(s.current)}},[d,c]),(0,Ka.useEffect)(()=>()=>{s.current&&Ine(s.current)},[]);let{blockIndex:h,hasInnerBlocksSelected:v,tabsHasSelectedBlock:y,tabsClientId:b,tabsAttributes:_,forceDisplay:x,isTabsClientSelected:k,isDefaultTab:C,siblingTabs:S}=(0,y6.useSelect)(E=>{let{getBlockRootClientId:H,getBlockIndex:G,isBlockSelected:F,hasSelectedInnerBlock:q,getBlockAttributes:K,getBlocks:te}=E(Zl.store),X=H(t),re=q(X,!0),J=K(X),{activeTabIndex:ne}=J,oe=F(X),le=G(t),ce=ne===le,ye=q(t,!0),Me=te(X);return{blockIndex:le,hasInnerBlocksSelected:ye,tabsClientId:X,forceDisplay:ce&&oe,tabsHasSelectedBlock:re,isTabsClientSelected:oe,isDefaultTab:ce,tabsAttributes:J,siblingTabs:Me}},[t]),N=(0,Ka.useMemo)(()=>!!(r||v||x||C&&!k&&!r&&!y),[r,v,x,C,k,y]),B=(0,Ka.useMemo)(()=>p||kd(d,h),[p,d,h]),D=(0,Ka.useMemo)(()=>`${B}--tab`,[B]),A=(0,Zl.__experimentalUseColorProps)(_),R=(0,Zl.getTypographyClassesAndStyles)(e),j=(0,Zl.useBlockProps)({hidden:!N}),z=(0,Zl.useInnerBlocksProps)({"aria-labelledby":D,id:B,role:"tabpanel",ref:l,tabIndex:N?0:-1,className:w(R.className,"tabs__tab-editor-content",n),style:{...R.style}},{template:D_e});return(0,ql.jsx)(ql.Fragment,{children:(0,ql.jsxs)("div",{...j,children:[(0,ql.jsx)(Tne,{attributes:e,setAttributes:a,tabsClientId:b,blockIndex:h,isDefaultTab:C}),N&&(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsx)(Nne,{siblingTabs:S,currentClientId:t,currentBlockIndex:h,currentLabel:d,tabItemColorProps:A,onSelectTab:i,onLabelChange:E=>a({label:E,anchor:kd(E,h)}),labelRef:f,focusRef:s,labelElementRef:m}),(0,ql.jsx)("section",{...z})]})]})})}var x6=o(T(),1),Mne=o(g(),1);function Rne({attributes:e}){let{anchor:t}=e,r=t,a=x6.useBlockProps.save(),n=x6.useInnerBlocksProps.save(a);return(0,Mne.jsx)("section",{...n,id:r})}var _6={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab",title:"Tab",description:"Content for a tab in a tabbed interface.",version:"1.0.0",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tabs"],supports:{anchor:!0,html:!1,reusable:!1,layout:{allowSwitching:!0,allowInheriting:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0,allowSizingOnChildren:!0},spacing:{blockGap:!0,padding:!0,margin:!1},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0},__experimentalSkipSerialization:!0}},providesContext:{"core/tab-label":"label"},editorScript:"file:./index.js",style:"file:./style-index.css"};var k6=o(M(),1),PL=o(g(),1),Ane=(0,PL.jsx)(k6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,PL.jsx)(k6.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5498 10.3501V6.3501H9.8498V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H5.5498ZM20 12.6001H4V14.1001L20 14.1001V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"})});var{name:zne}=_6,Vne={icon:Ane,edit:Lne,save:Rne},M_e=()=>I({name:zne,metadata:_6,settings:Vne});var VL={};$(VL,{init:()=>Y_e,metadata:()=>w6,name:()=>Yne,settings:()=>Xne});var rc=o(P(),1);var $t=o(T(),1),rt=o(g(),1),Hne={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},NL={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},R_e={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:NL}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:NL}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:NL}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,caption:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,$t.__experimentalGetColorClassesAndStyles)(e),c=(0,$t.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!$t.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,rt.jsx)(h,{children:f.map(({cells:v},y)=>(0,rt.jsx)("tr",{children:v.map(({content:b,tag:_,scope:x,align:k,colspan:C,rowspan:S},N)=>{let B=w({[`has-text-align-${k}`]:k});return(0,rt.jsx)($t.RichText.Content,{className:B||void 0,"data-align":k,tagName:_,value:b,scope:_==="th"?x:void 0,colSpan:C,rowSpan:S},N)})},y))})};return(0,rt.jsxs)("figure",{...$t.useBlockProps.save(),children:[(0,rt.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,rt.jsx)(p,{type:"head",rows:r}),(0,rt.jsx)(p,{type:"body",rows:a}),(0,rt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,rt.jsx)($t.RichText.Content,{tagName:"figcaption",value:i,className:(0,$t.__experimentalGetElementClassName)("caption")})]})}},EL={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},A_e={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EL}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EL}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EL}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,caption:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,$t.__experimentalGetColorClassesAndStyles)(e),c=(0,$t.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!$t.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,rt.jsx)(h,{children:f.map(({cells:v},y)=>(0,rt.jsx)("tr",{children:v.map(({content:b,tag:_,scope:x,align:k},C)=>{let S=w({[`has-text-align-${k}`]:k});return(0,rt.jsx)($t.RichText.Content,{className:S||void 0,"data-align":k,tagName:_,value:b,scope:_==="th"?x:void 0},C)})},y))})};return(0,rt.jsxs)("figure",{...$t.useBlockProps.save(),children:[(0,rt.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,rt.jsx)(p,{type:"head",rows:r}),(0,rt.jsx)(p,{type:"body",rows:a}),(0,rt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,rt.jsx)($t.RichText.Content,{tagName:"figcaption",value:i})]})}},IL={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},z_e={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:IL}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:IL}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:IL}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:a,foot:n,backgroundColor:i,caption:l}=e;if(!r.length&&!a.length&&!n.length)return null;let c=(0,$t.getColorClassName)("background-color",i),u=w(c,{"has-fixed-layout":t,"has-background":!!c}),m=!$t.RichText.isEmpty(l),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,rt.jsx)(h,{children:f.map(({cells:v},y)=>(0,rt.jsx)("tr",{children:v.map(({content:b,tag:_,scope:x,align:k},C)=>{let S=w({[`has-text-align-${k}`]:k});return(0,rt.jsx)($t.RichText.Content,{className:S||void 0,"data-align":k,tagName:_,value:b,scope:_==="th"?x:void 0},C)})},y))})};return(0,rt.jsxs)("figure",{...$t.useBlockProps.save(),children:[(0,rt.jsxs)("table",{className:u===""?void 0:u,children:[(0,rt.jsx)(p,{type:"head",rows:r}),(0,rt.jsx)(p,{type:"body",rows:a}),(0,rt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,rt.jsx)($t.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Hne&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Hne[e.backgroundColor]}}})},DL={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},V_e={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:DL}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:DL}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:DL}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,backgroundColor:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,$t.getColorClassName)("background-color",i),c=w(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:m,rows:p})=>{if(!p.length)return null;let d=`t${m}`;return(0,rt.jsx)(d,{children:p.map(({cells:f},h)=>(0,rt.jsx)("tr",{children:f.map(({content:v,tag:y,scope:b},_)=>(0,rt.jsx)($t.RichText.Content,{tagName:y,value:v,scope:y==="th"?b:void 0},_))},h))})};return(0,rt.jsxs)("table",{className:c,children:[(0,rt.jsx)(u,{type:"head",rows:r}),(0,rt.jsx)(u,{type:"body",rows:a}),(0,rt.jsx)(u,{type:"foot",rows:n})]})}},Fne=[R_e,A_e,z_e,V_e];var Dn=o(O(),1),so=o(T(),1),wt=o(P(),1),Mr=o(M(),1);var H_e=["align"];function One({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function F_e(e){if(!km(e.head))return e.head[0];if(!km(e.body))return e.body[0];if(!km(e.foot))return e.foot[0]}function jne(e,t,r){let{sectionName:a,rowIndex:n,columnIndex:i}=t;return e[a]?.[n]?.cells?.[i]?.[r]}function LL(e,t,r){if(!t)return e;let a=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(a).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((m,p)=>O_e({sectionName:l,columnIndex:p,rowIndex:u},t)?r(m):m)})]))}function O_e(e,t){if(!e||!t)return!1;switch(t.type){case"column":return t.type==="column"&&e.columnIndex===t.columnIndex;case"cell":return t.type==="cell"&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function ML(e,{sectionName:t,rowIndex:r,columnCount:a}){let n=F_e(e),i=a===void 0?n?.cells?.length:a;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((l,s)=>{let c=n?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([m])=>H_e.includes(m))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function Une(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((a,n)=>n!==r)}}function Gne(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(r).map(([a,n])=>km(n)?[a,n]:[a,n.map(i=>$ne(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:a==="head"?"th":"td"},...i.cells.slice(t)]})]))}function Wne(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(r).map(([a,n])=>km(n)?[a,n]:[a,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function RL(e,t){if(!km(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return ML(e,{sectionName:t,rowIndex:0,columnCount:r})}function km(e){return!e||!e.length||e.every($ne)}function $ne(e){return!(e.cells&&e.cells.length)}var it=o(g(),1),j_e=[{icon:i7,title:(0,wt.__)("Align column left"),align:"left"},{icon:a7,title:(0,wt.__)("Align column center"),align:"center"},{icon:u7,title:(0,wt.__)("Align column right"),align:"right"}],U_e={head:(0,wt.__)("Header cell text"),body:(0,wt.__)("Body cell text"),foot:(0,wt.__)("Footer cell text")},G_e={head:(0,wt.__)("Header label"),foot:(0,wt.__)("Footer label")};function W_e({name:e,...t}){let r=`t${e}`;return(0,it.jsx)(r,{...t})}function $_e({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:a}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,Dn.useState)(2),[u,m]=(0,Dn.useState)(2),[p,d]=(0,Dn.useState)(),f=(0,so.__experimentalUseColorProps)(e),h=(0,so.__experimentalUseBorderProps)(e),v=(0,so.useBlockEditingMode)(),y=(0,Dn.useRef)(),[b,_]=(0,Dn.useState)(!1),x=W();function k(oe){m(oe)}function C(oe){c(oe)}function S(oe){oe.preventDefault(),t(One({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function N(){t({hasFixedLayout:!n})}let B=(0,Dn.useCallback)(function(oe){p&&t(le=>LL(le,p,ce=>({...ce,content:oe})))},[p,t]);function D(oe){if(!p)return;let le={type:"column",columnIndex:p.columnIndex},ce=LL(e,le,ye=>({...ye,align:oe}));t(ce)}function A(){if(p)return jne(e,p,"align")}function R(){t(RL(e,"head"))}function j(){t(RL(e,"foot"))}function z(oe){if(!p)return;let{sectionName:le,rowIndex:ce}=p,ye=ce+oe;t(ML(e,{sectionName:le,rowIndex:ye})),d({sectionName:le,rowIndex:ye,columnIndex:0,type:"cell"})}function E(){z(0)}function H(){z(1)}function G(){if(!p)return;let{sectionName:oe,rowIndex:le}=p;d(),t(Une(e,{sectionName:oe,rowIndex:le}))}function F(oe=0){if(!p)return;let{columnIndex:le}=p,ce=le+oe;t(Gne(e,{columnIndex:ce})),d({rowIndex:0,columnIndex:ce,type:"cell"})}function q(){F(0)}function K(){F(1)}function te(){if(!p)return;let{sectionName:oe,columnIndex:le}=p;d(),t(Wne(e,{sectionName:oe,columnIndex:le}))}(0,Dn.useEffect)(()=>{a||d()},[a]),(0,Dn.useEffect)(()=>{b&&(y?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[b]);let X=["head","body","foot"].filter(oe=>!km(e[oe])),re=[{icon:FT,title:(0,wt.__)("Insert row before"),isDisabled:!p,onClick:E},{icon:VT,title:(0,wt.__)("Insert row after"),isDisabled:!p,onClick:H},{icon:jT,title:(0,wt.__)("Delete row"),isDisabled:!p,onClick:G},{icon:MT,title:(0,wt.__)("Insert column before"),isDisabled:!p,onClick:q},{icon:Zd,title:(0,wt.__)("Insert column after"),isDisabled:!p,onClick:K},{icon:AT,title:(0,wt.__)("Delete column"),isDisabled:!p,onClick:te}],J=X.map(oe=>(0,it.jsx)(W_e,{name:oe,children:e[oe].map(({cells:le},ce)=>(0,it.jsx)("tr",{children:le.map((ye,Me)=>{let ie=p?.sectionName===oe&&p?.rowIndex===ce&&p?.columnIndex===Me;return(0,it.jsx)(q_e,{name:oe,rowIndex:ce,columnIndex:Me,onChange:ie?B:void 0,setSelectedCell:d,...ye},Me)})},ce))},oe)),ne=!X.length;return(0,it.jsxs)("figure",{...(0,so.useBlockProps)({ref:y}),children:[!ne&&v==="default"&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(so.BlockControls,{group:"block",children:(0,it.jsx)(so.AlignmentControl,{label:(0,wt.__)("Change column alignment"),alignmentControls:j_e,value:A(),onChange:oe=>D(oe)})}),(0,it.jsx)(so.BlockControls,{group:"other",children:(0,it.jsx)(Mr.ToolbarDropdownMenu,{icon:GT,label:(0,wt.__)("Edit table"),controls:re})})]}),(0,it.jsx)(so.InspectorControls,{children:(0,it.jsxs)(Mr.__experimentalToolsPanel,{label:(0,wt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:x,children:[(0,it.jsx)(Mr.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,wt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,it.jsx)(Mr.ToggleControl,{label:(0,wt.__)("Fixed width table cells"),checked:!!n,onChange:N})}),!ne&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Mr.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,wt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,it.jsx)(Mr.ToggleControl,{label:(0,wt.__)("Header section"),checked:!!(i&&i.length),onChange:R})}),(0,it.jsx)(Mr.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,wt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,it.jsx)(Mr.ToggleControl,{label:(0,wt.__)("Footer section"),checked:!!(l&&l.length),onChange:j})})]})]})}),!ne&&(0,it.jsx)("table",{className:w(f.className,h.className,{"has-fixed-layout":n,"has-individual-borders":(0,Mr.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:J}),ne?(0,it.jsx)(Mr.Placeholder,{label:(0,wt.__)("Table"),icon:(0,it.jsx)(so.BlockIcon,{icon:Xg,showColors:!0}),instructions:(0,wt.__)("Insert a table for sharing data."),children:(0,it.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:S,children:[(0,it.jsx)(Mr.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,wt.__)("Column count"),value:u,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(Mr.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,wt.__)("Row count"),value:s,onChange:C,min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(Mr.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,wt.__)("Create Table")})]})}):(0,it.jsx)(nn,{attributes:e,setAttributes:t,isSelected:a,insertBlocksAfter:r,label:(0,wt.__)("Table caption text"),showToolbarButton:a&&v==="default"})]})}var q_e=(0,Dn.memo)(function({tag:e,name:t,scope:r,colspan:a,rowspan:n,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:m}){return(0,it.jsx)(e,{scope:e==="th"?r:void 0,colSpan:a,rowSpan:n,className:w({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,it.jsx)(so.RichText,{value:c,onChange:u,onFocus:()=>{m({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":U_e[t],placeholder:G_e[t]})})}),qne=$_e;var w6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!0},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-table > table",spacing:".wp-block-table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"};var Yi=o(T(),1),Kl=o(g(),1);function Zne({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,caption:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,Yi.__experimentalGetColorClassesAndStyles)(e),c=(0,Yi.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!Yi.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,Kl.jsx)(h,{children:f.map(({cells:v},y)=>(0,Kl.jsx)("tr",{children:v.map(({content:b,tag:_,scope:x,align:k,colspan:C,rowspan:S},N)=>{let B=w({[`has-text-align-${k}`]:k});return(0,Kl.jsx)(Yi.RichText.Content,{className:B||void 0,"data-align":k,tagName:_,value:b,scope:_==="th"?x:void 0,colSpan:C,rowSpan:S},N)})},y))})};return(0,Kl.jsxs)("figure",{...Yi.useBlockProps.save(),children:[(0,Kl.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Kl.jsx)(p,{type:"head",rows:r}),(0,Kl.jsx)(p,{type:"body",rows:a}),(0,Kl.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Kl.jsx)(Yi.RichText.Content,{tagName:"figcaption",value:i,className:(0,Yi.__experimentalGetElementClassName)("caption")})]})}var Kne=o(U(),1);function AL(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var zL=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),K_e=e=>({table:{children:{thead:{allowEmpty:!0,children:zL(e)},tfoot:{allowEmpty:!0,children:zL(e)},tbody:{allowEmpty:!0,children:zL(e)}}}}),Q_e={from:[{type:"raw",selector:"table",schema:K_e,transform:e=>{let t=Array.from(e.children).reduce((r,a)=>{if(!a.children.length)return r;let n=a.nodeName.toLowerCase().slice(1),i=Array.from(a.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,m)=>{let p=AL(m.getAttribute("rowspan")),d=AL(m.getAttribute("colspan")),{textAlign:f}=m.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:m.nodeName.toLowerCase(),content:m.innerHTML,rowspan:p,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[n]=i,r},{});return(0,Kne.createBlock)("core/table",t)}}]},Qne=Q_e;var{name:Yne}=w6,Xne={icon:Xg,example:{attributes:{head:[{cells:[{content:(0,rc.__)("Version"),tag:"th"},{content:(0,rc.__)("Jazz Musician"),tag:"th"},{content:(0,rc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,rc.__)("Jaco Pastorius"),tag:"td"},{content:(0,rc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,rc.__)("Betty Carter"),tag:"td"},{content:(0,rc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,rc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,rc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Qne,edit:qne,save:Zne,deprecated:Fne},Y_e=()=>I({name:Yne,metadata:w6,settings:Xne});var FL={};$(FL,{init:()=>t5e,metadata:()=>C6,name:()=>die,settings:()=>fie});var Yc=o(P(),1);var C6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"design",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{anchor:!0,ariaLabel:!0,html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-table-of-contents"};var Ql=o(T(),1),lie=o(U(),1),Co=o(M(),1),c2=o(V(),1),sie=o(O(),1),Et=o(P(),1),cie=o(fe(),1),uie=o(Nr(),1);var oc=o(g(),1),Jne="wp-block-table-of-contents__entry";function cg({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:a=!0}){return(0,oc.jsx)(oc.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,oc.jsx)("a",{className:Jne,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,oc.jsx)("span",{className:Jne,children:l}),u=a?"ol":"ul";return(0,oc.jsxs)("li",{children:[c,n.children?(0,oc.jsx)(u,{children:(0,oc.jsx)(cg,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:a})}):null]},i)})})}function l2(e){let t=[];return e.forEach((r,a)=>{if(r.content!==""&&r.level===e[0].level)if(e[a+1]?.level>r.level){let n=e.length;for(let i=a+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:l2(e.slice(a+1,n))})}else t.push({heading:r,children:null})}),t}var rie=o(tie(),1),oie=o(V(),1),aie=o(ls(),1),nie=o(O(),1),s2=o(Br(),1),S6=o(T(),1);function J_e(e,t){let{getBlockAttributes:r,getBlockName:a,getBlocksByName:n,getClientIdsOfDescendants:i}=e(S6.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[m=""]=n("core/post-content"),p=i(m),d=1;if(s&&c){let y=p.indexOf(t);for(let[b,_]of p.entries()){if(b>=y)break;a(_)==="core/nextpage"&&d++}}let f=[],h=1,v=null;typeof l=="string"&&(v=s?(0,s2.addQueryArgs)(l,{page:h}):l);for(let y of p){let b=a(y);if(b==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(v=(0,s2.addQueryArgs)((0,s2.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&b==="core/heading"){let _=r(y);if(u&&_.level>u)continue;let x=typeof v=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,aie.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:x?`${v}#${_.anchor}`:null})}}return f}function e5e(e,t,r){let{getBlockAttributes:a}=e(S6.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(S6.store),l=a(r);if(l===null)return;let s=J_e(e,r);(0,rie.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:s})})}function iie(e){let t=(0,oie.useRegistry)();(0,nie.useEffect)(()=>t.subscribe(()=>e5e(t.select,t.dispatch,e)),[t,e])}var qt=o(g(),1);function HL({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:a=!0},clientId:n,setAttributes:i}){iie(n);let l=(0,Ql.useBlockProps)(),s=(0,cie.useInstanceId)(HL,"table-of-contents"),{createWarningNotice:c}=(0,c2.useDispatch)(uie.store),u=b=>{b.preventDefault(),c((0,Et.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},m=(0,c2.useSelect)(b=>{let{getBlockRootClientId:_,canInsertBlockType:x}=b(Ql.store),k=_(n);return x("core/list",k)},[n]),{replaceBlocks:p}=(0,c2.useDispatch)(Ql.store),d=W(),f=l2(e),h=(0,qt.jsxs)(Ql.BlockControls,{children:[(0,qt.jsxs)(Co.ToolbarGroup,{children:[(0,qt.jsx)(Co.ToolbarButton,{icon:(0,Et.isRTL)()?u0:m0,title:(0,Et.__)("Unordered"),description:(0,Et.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:a===!1}),(0,qt.jsx)(Co.ToolbarButton,{icon:(0,Et.isRTL)()?p0:Ti,title:(0,Et.__)("Ordered"),description:(0,Et.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:a===!0})]}),m&&(0,qt.jsx)(Co.ToolbarGroup,{children:(0,qt.jsx)(Co.ToolbarButton,{onClick:()=>p(n,(0,lie.createBlock)("core/list",{ordered:a,values:(0,sie.renderToString)((0,qt.jsx)(cg,{nestedHeadingList:f,ordered:a}))})),children:(0,Et.__)("Convert to static list")})})]}),v=(0,qt.jsx)(Ql.InspectorControls,{children:(0,qt.jsxs)(Co.__experimentalToolsPanel,{label:(0,Et.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,qt.jsx)(Co.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Et.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,qt.jsx)(Co.ToggleControl,{label:(0,Et.__)("Only include current page"),checked:t,onChange:b=>i({onlyIncludeCurrentPage:b}),help:t?(0,Et.__)("Only including headings from the current page (if the post is paginated)."):(0,Et.__)("Include headings from all pages (if the post is paginated).")})}),(0,qt.jsx)(Co.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Et.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,qt.jsx)(Co.SelectControl,{__next40pxDefaultSize:!0,label:(0,Et.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Et.__)("All levels")},{value:"1",label:(0,Et.__)("Heading 1")},{value:"2",label:(0,Et.__)("Heading 2")},{value:"3",label:(0,Et.__)("Heading 3")},{value:"4",label:(0,Et.__)("Heading 4")},{value:"5",label:(0,Et.__)("Heading 5")},{value:"6",label:(0,Et.__)("Heading 6")}],onChange:b=>i({maxLevel:b?parseInt(b):void 0}),help:r?(0,Et.__)("Only include headings up to and including this level."):(0,Et.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("div",{...l,children:(0,qt.jsx)(Co.Placeholder,{icon:(0,qt.jsx)(Ql.BlockIcon,{icon:F0}),label:(0,Et.__)("Table of Contents"),instructions:(0,Et.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),v]}):(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("nav",{...l,children:(0,qt.jsx)(a?"ol":"ul",{children:(0,qt.jsx)(cg,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:a})})}),h,v]})}var mie=o(T(),1);var T6=o(g(),1);function pie({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,T6.jsx)("nav",{...mie.useBlockProps.save(),children:(0,T6.jsx)(r,{children:(0,T6.jsx)(cg,{nestedHeadingList:l2(e),ordered:t})})})}var{name:die}=C6,fie={icon:F0,edit:HL,save:pie,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Yc.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Yc.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Yc.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Yc.__)("Subheading")}}],attributes:{headings:[{content:(0,Yc.__)("Heading"),level:2},{content:(0,Yc.__)("Subheading"),level:3},{content:(0,Yc.__)("Heading"),level:2},{content:(0,Yc.__)("Subheading"),level:3}]}}},t5e=()=>I({name:die,metadata:C6,settings:fie});var jL={};$(jL,{init:()=>u5e,metadata:()=>N6,name:()=>xie,settings:()=>_ie});var mg=o(T(),1);var wd=o(T(),1);function r5e({attributes:e}){let{style:t,orientation:r}=e||{},{spacing:a}=t||{},{blockGap:n}=a||{},i="var( --wp--style--tabs-gap-default, var( --wp--style--block-gap, 0.5em ) )",l=i,s=i;if(n&&(l=typeof n=="string"?(0,wd.__experimentalGetGapCSSValue)(n):(0,wd.__experimentalGetGapCSSValue)(n?.left)||i,s=typeof n=="string"?(0,wd.__experimentalGetGapCSSValue)(n):(0,wd.__experimentalGetGapCSSValue)(n?.top)||i),r==="vertical"){let u=l;l=s,s=u}return{"--wp--style--unstable-tabs-list-gap":l==="0"?"0px":l,"--wp--style--unstable-tabs-gap":s}}function o5e({attributes:e}){let{customTabInactiveColor:t,customTabHoverColor:r,customTabActiveColor:a,customTabTextColor:n,customTabActiveTextColor:i,customTabHoverTextColor:l}=e||{};function s(u){return u?typeof u=="object"&&u.slug?`var(--wp--preset--color--${u.slug})`:u:null}return{"--custom-tab-inactive-color":s(t),"--custom-tab-active-color":s(a),"--custom-tab-hover-color":s(r),"--custom-tab-text-color":s(n),"--custom-tab-active-text-color":s(i),"--custom-tab-hover-text-color":s(l)}}function a5e({attributes:e}){let{radius:t}=e?.style?.border||{};if(!t)return{};let r=t;if(typeof t=="object"){let{topLeft:n="0",topRight:i="0",bottomRight:l="0",bottomLeft:s="0"}=t;r=`${n} ${i} ${l} ${s}`}return{"--tab-border-radius":r}}function hie({attributes:e,clientId:t}){let r=r5e({attributes:e}),a=o5e({attributes:e}),n=a5e({attributes:e}),i={...r,...a,...n},l=Object.entries(i).filter(([,s])=>!!s).map(([s,c])=>` ${s}: ${c};`).join(`
`);return(0,wd.useStyleOverride)({css:t?`#block-${t} {
${l}
}`:""}),null}var Xi=o(P(),1),ug=o(M(),1),Cd=o(O(),1),Yl=o(T(),1);var So=o(g(),1);function n5e({attributes:e}){let{className:t,fontSize:r,tabActiveColor:a,customTabActiveColor:n,tabActiveTextColor:i,customTabActiveTextColor:l,tabInactiveColor:s,customTabInactiveColor:c,tabTextColor:u,customTabTextColor:m,tabHoverColor:p,customTabHoverColor:d,tabHoverTextColor:f,customTabHoverTextColor:h}=e,v=(0,Cd.useMemo)(()=>t?.includes("is-style-links")?"#fff":a?.color?a.color:n,[a,n,t]),y=(0,Cd.useMemo)(()=>i?.color?i.color:l,[i,l]),b=(0,Cd.useMemo)(()=>t?.includes("is-style-links")?"#fff":s?.color?s.color:c,[s,c,t]),_=(0,Cd.useMemo)(()=>u?.color?u.color:m,[u,m]),x=(0,Cd.useMemo)(()=>p?.color?p.color:d,[p,d]),k=(0,Cd.useMemo)(()=>f?.color?f.color:h,[f,h]);return(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(Yl.ContrastChecker,{backgroundColor:v,fontSize:r,textColor:y}),(0,So.jsx)(Yl.ContrastChecker,{backgroundColor:b,fontSize:r,textColor:_}),(0,So.jsx)(Yl.ContrastChecker,{backgroundColor:x,fontSize:r,textColor:k})]})}function gie({attributes:e,setAttributes:t,clientId:r,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:h}){let{customTabInactiveColor:v,customTabActiveColor:y,customTabHoverColor:b,customTabTextColor:_,customTabActiveTextColor:x,customTabHoverTextColor:k,orientation:C,metadata:S={name:""}}=e,N=(0,Yl.__experimentalUseMultipleOriginColorsAndGradients)();return(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(v6,{tabsClientId:r,attributes:e}),(0,So.jsx)(Yl.InspectorControls,{children:(0,So.jsxs)(ug.PanelBody,{title:(0,Xi.__)("Tabs Settings"),children:[(0,So.jsx)(ug.ToggleControl,{label:(0,Xi.__)("Vertical Tabs"),checked:C==="vertical",onChange:()=>t({orientation:C==="vertical"?"horizontal":"vertical"})}),(0,So.jsx)(ug.TextControl,{label:(0,Xi.__)("Tabs Title"),help:(0,Xi.__)("The tabs title is used by screen readers to describe the purpose and content of the tabs."),value:S.name,placeholder:(0,Xi.__)("Tab Contents"),onChange:B=>{t({metadata:{...S,name:B}})},__next40pxDefaultSize:!0})]})}),(0,So.jsxs)(Yl.InspectorControls,{group:"color",children:[(0,So.jsx)(Yl.__experimentalColorGradientSettingsDropdown,{settings:[{label:(0,Xi.__)("Tab Active Background"),colorValue:s?.color??y,onColorChange:B=>{c(B),t({customTabActiveColor:B})}},{label:(0,Xi.__)("Tab Active Text"),colorValue:p?.color??x,onColorChange:B=>{d(B),t({customTabActiveTextColor:B})}},{label:(0,Xi.__)("Tab Inactive Background"),colorValue:a?.color??v,onColorChange:B=>{n(B),t({customTabInactiveColor:B})}},{label:(0,Xi.__)("Tab Inactive Text"),colorValue:u?.color??_,onColorChange:B=>{m(B),t({customTabTextColor:B})}},{label:(0,Xi.__)("Tab Hover Background"),colorValue:i?.color??b,onColorChange:B=>{l(B),t({customTabHoverColor:B})}},{label:(0,Xi.__)("Tab Hover Text"),colorValue:f?.color??k,onColorChange:B=>{h(B),t({customTabHoverTextColor:B})}}],panelId:r,disableCustomColors:!1,__experimentalIsRenderedInSidebar:!0,__next40pxDefaultSize:!0,...N}),(0,So.jsx)(n5e,{attributes:e})]})]})}var wm=o(g(),1),i5e=[["core/tab",{}]],l5e={name:"core/tab",attributesToCopy:["className","fontFamily","fontSize"]};function s5e({clientId:e,attributes:t,setAttributes:r,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:h}){let{style:v,orientation:y}=t,b=(0,mg.useBlockProps)({className:w(y==="vertical"?"is-vertical":"is-horizontal"),style:{...v}}),_=(0,mg.useInnerBlocksProps)(b,{defaultBlock:l5e,directInsert:!0,__experimentalCaptureToolbars:!0,clientId:e,orientation:y,template:i5e,renderAppender:!1});return(0,wm.jsx)(wm.Fragment,{children:(0,wm.jsxs)("div",{..._,children:[_.children,(0,wm.jsx)(hie,{attributes:t,clientId:e}),(0,wm.jsx)(gie,{clientId:e,attributes:t,setAttributes:r,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:h})]})})}var vie=(0,mg.withColors)("tabInactiveColor","tabHoverColor","tabActiveColor","tabTextColor","tabActiveTextColor","tabHoverTextColor")(s5e);var P6=o(T(),1),u2=o(g(),1);function bie({attributes:e}){let t=P6.useBlockProps.save(),r=P6.useInnerBlocksProps.save({}),a=e?.metadata?.name||"Tab Contents";return(0,u2.jsxs)("div",{...t,children:[(0,u2.jsx)("h3",{className:"tabs__title",children:a}),(0,u2.jsx)("ul",{className:"tabs__list"}),r.children]})}var B6=o(M(),1),OL=o(g(),1),yie=(0,OL.jsx)(B6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,OL.jsx)(B6.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.2998 4.8501C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998ZM14.2002 10.3501V7.1001H18.5002V10.3501H20.0002V6.8501C20.0002 6.15974 19.4406 5.6001 18.7502 5.6001H13.9502C13.2598 5.6001 12.7002 6.15974 12.7002 6.8501V10.3501H14.2002ZM20 12.6001H4V14.1001H20V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"})});var N6={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",version:"1.0.0",category:"design",textdomain:"default",allowedBlocks:["core/tab"],attributes:{tabsId:{type:"string",default:""},orientation:{type:"string",default:"horizontal",enum:["horizontal","vertical"]},activeTabIndex:{type:"number",default:0},tabInactiveColor:{type:"string"},customTabInactiveColor:{type:"string"},tabHoverColor:{type:"string"},customTabHoverColor:{type:"string"},tabActiveColor:{type:"string"},customTabActiveColor:{type:"string"},tabTextColor:{type:"string"},customTabTextColor:{type:"string"},tabActiveTextColor:{type:"string"},customTabActiveTextColor:{type:"string"},tabHoverTextColor:{type:"string"},customTabHoverTextColor:{type:"string"}},styles:[{name:"tab",label:"Tabs",isDefault:!0},{name:"links",label:"Links"},{name:"button",label:"Button"}],supports:{align:!0,color:{text:!1,background:!1},html:!1,interactivity:!0,spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!1},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},example:{attributes:{className:"is-example"},innerBlocks:[{name:"core/tab",attributes:{label:"Tab 1"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Pariatur commodo sint mollit. Veniam Lorem labore voluptate fugiat. Ad nulla est labore cillum cillum qui nostrud do incididunt eiusmod. Aliqua aliqua sunt consequat consequat in duis deserunt."}},{name:"core/paragraph",attributes:{content:"Adipisicing ullamco nisi in eu laborum adipisicing aliquip aliqua. Fugiat labore officia consequat nisi veniam velit commodo cillum enim duis quis ad."}}]},{name:"core/tab",attributes:{label:"Tab 2"}},{name:"core/tab",attributes:{label:"Tab 3"}}]},providesContext:{"core/tabs-id":"tabsId"},editorScript:"file:./index.js",editorStyle:"file:./index.css",style:"file:./style-index.css",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:xie}=N6,_ie={icon:yie,edit:vie,save:bie},u5e=()=>I({name:xie,metadata:N6,settings:_ie});var GL={};$(GL,{init:()=>g5e,metadata:()=>E6,name:()=>Eie,settings:()=>Iie});var UL=o(U(),1),m5e={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,UL.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,UL.createBlock)("core/categories")}]},kie=m5e;var E6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of popular keywords, each sized by how often it appears.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{anchor:!0,html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var It=o(M(),1),Sie=o(V(),1),Qa=o(P(),1),pg=o(T(),1),Tie=o(Q(),1),Pie=o(su(),1),Bie=o(fe(),1);var sr=o(g(),1),d5e=1,f5e=100,wie=.1,Cie=100;function h5e({attributes:e,setAttributes:t,name:r}){let{taxonomy:a,showTagCounts:n,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,pg.useSettings)("spacing.units"),u=W(),m=(0,It.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,Sie.useSelect)(k=>k(Tie.store).getTaxonomies({per_page:-1}),[]),d=()=>{let k={label:(0,Qa.__)("- Select -"),value:"",disabled:!0},C=(p??[]).filter(S=>!!S.show_cloud).map(S=>({value:S.slug,label:S.name}));return[k,...C]},f=(k,C)=>{let[S,N]=(0,It.__experimentalParseQuantityAndUnitFromRawValue)(C);if(!Number.isFinite(S))return;let B={[k]:C};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([D,A])=>{let[R,j]=(0,It.__experimentalParseQuantityAndUnitFromRawValue)(A);D!==k&&j!==N&&(B[D]=`${R}${N}`)}),t(B)},h=(0,sr.jsx)(pg.InspectorControls,{children:(0,sr.jsxs)(It.__experimentalToolsPanel,{label:(0,Qa.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,sr.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>a!=="post_tag",label:(0,Qa.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,sr.jsx)(It.SelectControl,{__next40pxDefaultSize:!0,label:(0,Qa.__)("Taxonomy"),options:d(),value:a,onChange:k=>t({taxonomy:k})})}),(0,sr.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,Qa.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,sr.jsxs)(It.Flex,{gap:4,children:[(0,sr.jsx)(It.FlexItem,{isBlock:!0,children:(0,sr.jsx)(It.__experimentalUnitControl,{label:(0,Qa.__)("Smallest size"),value:l,onChange:k=>{f("smallestFontSize",k)},units:m,min:wie,max:Cie,size:"__unstable-large"})}),(0,sr.jsx)(It.FlexItem,{isBlock:!0,children:(0,sr.jsx)(It.__experimentalUnitControl,{label:(0,Qa.__)("Largest size"),value:s,onChange:k=>{f("largestFontSize",k)},units:m,min:wie,max:Cie,size:"__unstable-large"})})]})}),(0,sr.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Qa.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,sr.jsx)(It.RangeControl,{__next40pxDefaultSize:!0,label:(0,Qa.__)("Number of tags"),value:i,onChange:k=>t({numberOfTags:k}),min:d5e,max:f5e,required:!0})}),(0,sr.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,Qa.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,sr.jsx)(It.ToggleControl,{label:(0,Qa.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:v,status:y,error:b}=(0,Pie.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,Bie.useDisabled)(),x=(0,pg.useBlockProps)({ref:_});return(0,sr.jsxs)(sr.Fragment,{children:[h,y==="loading"&&(0,sr.jsx)("div",{...x,children:(0,sr.jsx)(It.Spinner,{})}),y==="error"&&(0,sr.jsx)("div",{...x,children:(0,sr.jsx)("p",{children:(0,Qa.sprintf)((0,Qa.__)("Error: %s"),b)})}),y==="success"&&(0,sr.jsx)(on,{wrapperProps:x,html:v})]})}var Nie=h5e;var{name:Eie}=E6,Iie={icon:O0,example:{},edit:Nie,transforms:kie},g5e=()=>I({name:Eie,metadata:E6,settings:Iie});var KL={};$(KL,{init:()=>C5e,metadata:()=>I6,name:()=>vle,settings:()=>ble});var fle=o(Q(),1),hle=o(V(),1);var ZL=o(wc(),1),gle=o(Xr(),1);var I6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"};var ile=o(U(),1),yg=o(V(),1),Qr=o(T(),1),ic=o(M(),1),Rn=o(P(),1),h2=o(Q(),1),lle=o(O(),1),sle=o(Nr(),1);var Sm=o(P(),1),Td=o(M(),1),zie=o(O(),1),Vie=o(V(),1),Hie=o(Q(),1);var dg=o(V(),1),D6=o(Q(),1),Die=o(T(),1),Lie=o(O(),1),Mie=o(U(),1),WL=o(P(),1);function fg(e,t){let{templateParts:r,isResolving:a}=(0,dg.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(D6.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,Lie.useMemo)(()=>r?r.filter(i=>Hl(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:a}}function hg(e,t){return(0,dg.useSelect)(r=>{let a=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(Die.store),l=n(t);return i(a,l)},[e,t])}function L6(e,t){let{saveEntityRecord:r}=(0,dg.useDispatch)(D6.store);return async(a=[],n=(0,WL.__)("Untitled Template Part"))=>{let i=t4(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,Mie.serialize)(a),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function M6(e){return(0,dg.useSelect)(t=>{let r=t(D6.store).getCurrentTheme()?.default_template_part_areas||[],a=r.find(i=>i.area===e),n=r.find(i=>i.area==="uncategorized");return{icon:a?.icon||n?.icon,label:a?.label||(0,WL.__)("Template Part"),tagName:a?.area_tag??"div"}},[e])}var Rie=o(O(),1),Cm=o(P(),1),Xl=o(M(),1),Xc=o(g(),1);function Aie({areaLabel:e,onClose:t,onSubmit:r}){let[a,n]=(0,Rie.useState)(""),i=l=>{l.preventDefault(),r(a)};return(0,Xc.jsx)(Xl.Modal,{title:(0,Cm.sprintf)((0,Cm.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Xc.jsx)("form",{onSubmit:i,children:(0,Xc.jsxs)(Xl.__experimentalVStack,{spacing:"5",children:[(0,Xc.jsx)(Xl.TextControl,{label:(0,Cm.__)("Name"),value:a,onChange:n,placeholder:(0,Cm.__)("Custom Template Part"),__next40pxDefaultSize:!0}),(0,Xc.jsxs)(Xl.__experimentalHStack,{justify:"right",children:[(0,Xc.jsx)(Xl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,Cm.__)("Cancel")}),(0,Xc.jsx)(Xl.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!a.length,__next40pxDefaultSize:!0,children:(0,Cm.__)("Create")})]})]})})})}var Sd=o(g(),1);function Fie({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:a,setAttributes:n}){let{templateParts:i,isResolving:l}=fg(e,r),s=hg(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,Vie.useSelect)(h=>{let{getCurrentTheme:v,canUser:y}=h(Hie.store);return{isBlockBasedTheme:v()?.is_block_theme,canCreateTemplatePart:y("create",{kind:"postType",name:"wp_template_part"})}},[]),[m,p]=(0,zie.useState)(!1),d=M6(e),f=L6(e,n);return(0,Sd.jsxs)(Td.Placeholder,{icon:fh(d.icon),label:d.label,instructions:c?(0,Sm.sprintf)((0,Sm.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,Sm.sprintf)((0,Sm.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,Sd.jsx)(Td.Spinner,{}),!l&&!!(i.length||s.length)&&(0,Sd.jsx)(Td.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,Sm.__)("Choose")}),!l&&c&&u&&(0,Sd.jsx)(Td.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,Sm.__)("Start blank")}),m&&(0,Sd.jsx)(Aie,{areaLabel:d.label,onClose:()=>p(!1),onSubmit:h=>{f([],h)}})]})}var m2=o(O(),1),Tm=o(P(),1),Uie=o(Nr(),1),Gie=o(V(),1),Wie=o(T(),1),R6=o(M(),1);var Oie=o(U(),1);function jie(e){return{name:Hl(e.theme,e.slug),title:e.title.rendered,blocks:(0,Oie.parse)(e.content.raw),templatePart:e}}var ac=o(g(),1);function $ie({setAttributes:e,onClose:t,templatePartId:r=null,area:a,clientId:n}){let[i,l]=(0,m2.useState)(""),{templateParts:s}=fg(a,r),c=(0,m2.useMemo)(()=>{let v=s.map(y=>jie(y));return zv(v,i)},[s,i]),u=hg(a,n),m=(0,m2.useMemo)(()=>zv(u,i),[u,i]),{createSuccessNotice:p}=(0,Gie.useDispatch)(Uie.store),d=v=>{e({slug:v.slug,theme:v.theme,area:void 0}),p((0,Tm.sprintf)((0,Tm.__)('Template Part "%s" inserted.'),v.title?.rendered||v.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!m.length;return(0,ac.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,ac.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,ac.jsx)(R6.SearchControl,{onChange:l,value:i,label:(0,Tm.__)("Search"),placeholder:(0,Tm.__)("Search")})}),f&&(0,ac.jsxs)("div",{children:[(0,ac.jsx)("h2",{children:(0,Tm.__)("Existing template parts")}),(0,ac.jsx)(Wie.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:v=>{d(v.templatePart)}})]}),!f&&!h&&(0,ac.jsx)(R6.__experimentalHStack,{alignment:"center",children:(0,ac.jsx)("p",{children:(0,Tm.__)("No results found.")})})]})}var d2=o(Q(),1),A6=o(M(),1),vg=o(P(),1),Xie=o(V(),1),Jie=o(T(),1);var nc=o(P(),1),p2=o(O(),1),gg=o(V(),1),_i=o(M(),1),qL=o(Q(),1),Qie=o(Nr(),1);var Ln=o(U(),1);function qie(e){if(e.id_base!=="block"){let a;return e._embedded.about[0].is_multi?a={idBase:e.id_base,instance:e.instance}:a={id:e.id},Zie((0,Ln.createBlock)("core/legacy-widget",a))}let t=(0,Ln.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,Ln.createBlock)((0,Ln.getGroupingBlockName)(),void 0,$L(r.innerBlocks)):r.innerBlocks.length>0?(0,Ln.cloneBlock)(r,void 0,$L(r.innerBlocks)):r}function Zie(e){let t=(0,Ln.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let a=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!a&&!n});if(t.length)return(0,Ln.switchToBlockType)(e,t[0].name)}function $L(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Zie(t):(0,Ln.createBlock)(t.name,t.attributes,$L(t.innerBlocks))).filter(t=>!!t)}var Jc=o(g(),1),Kie={per_page:-1,_fields:"id,name,description,status,widgets"};function Yie({area:e,setAttributes:t}){let[r,a]=(0,p2.useState)(""),[n,i]=(0,p2.useState)(!1),l=(0,gg.useRegistry)(),{sidebars:s,hasResolved:c}=(0,gg.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:v}=f(qL.store);return{sidebars:h(Kie),hasResolved:v("getSidebars",[Kie])}},[]),{createErrorNotice:u}=(0,gg.useDispatch)(Qie.store),m=L6(e,t),p=(0,p2.useMemo)(()=>{let f=(s??[]).filter(h=>h.id!=="wp_inactive_widgets"&&h.widgets.length>0).map(h=>({value:h.id,label:h.name}));return f.length?[{value:"",label:(0,nc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Jc.jsx)(_i.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function d(f){if(f.preventDefault(),n||!r)return;i(!0);let h=p.find(({value:x})=>x===r),{getWidgets:v}=l.resolveSelect(qL.store),y=await v({sidebar:h.value,_embed:"about"}),b=new Set,_=y.flatMap(x=>{let k=qie(x);return k||(b.add(x.id_base),[])});await m(_,(0,nc.sprintf)((0,nc.__)("Widget area: %s"),h.label)),b.size&&u((0,nc.sprintf)((0,nc.__)("Unable to import the following widgets: %s."),Array.from(b).join(", ")),{type:"snackbar"}),i(!1)}return(0,Jc.jsx)(_i.__experimentalSpacer,{marginBottom:"4",children:(0,Jc.jsxs)(_i.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Jc.jsx)(_i.FlexBlock,{children:(0,Jc.jsx)(_i.SelectControl,{label:(0,nc.__)("Import widget area"),value:r,options:p,onChange:f=>a(f),disabled:!p.length,__next40pxDefaultSize:!0})}),(0,Jc.jsx)(_i.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Jc.jsx)(_i.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,nc._x)("Import","button label")})})]})})}var Jl=o(g(),1),{HTMLElementControl:b5e}=Z(Jie.privateApis);function ele({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:a,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,d2.useEntityProp)("postType","wp_template_part","area",a),[u,m]=(0,d2.useEntityProp)("postType","wp_template_part","title",a),d=(0,Xie.useSelect)(f=>f(d2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,Jl.jsxs)(Jl.Fragment,{children:[r&&(0,Jl.jsxs)(Jl.Fragment,{children:[(0,Jl.jsx)(A6.TextControl,{__next40pxDefaultSize:!0,label:(0,vg.__)("Title"),value:u,onChange:f=>{m(f)},onFocus:f=>f.target.select()}),(0,Jl.jsx)(A6.SelectControl,{__next40pxDefaultSize:!0,label:(0,vg.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,Jl.jsx)(b5e,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,vg.sprintf)((0,vg.__)("Default based on area (%s)"),`<${n}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}]}),!i&&(0,Jl.jsx)(Yie,{area:s,setAttributes:t})]})}var bg=o(Q(),1),Mn=o(T(),1),f2=o(V(),1),tle=o(O(),1),rle=o(U(),1),z6=o(g(),1);function y5e(e){if((0,Mn.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return Mn.InnerBlocks.ButtonBlockAppender}function ole(e){let t=(0,f2.useSelect)(a=>{let{getSettings:n}=a(Mn.store);return n()?.supportsLayout},[]),[r]=(0,Mn.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function x5e({postId:e,layout:t,tagName:r,blockProps:a}){(0,Mn.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,f2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(bg.store),m=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:m.blocks,content:m.content}},[e]),l=(0,tle.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,rle.parse)(n))},[e,i,n]),s=(0,Mn.useInnerBlocksProps)(a,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:ole(t)});return(0,z6.jsx)(r,{...s})}function _5e({postId:e,hasInnerBlocks:t,layout:r,tagName:a,blockProps:n}){let i=(0,f2.useSelect)(d=>d(Mn.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,bg.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,Mn.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:y5e(t),layout:ole(r)}),p=(0,Mn.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,z6.jsx)(a,{...u,...p})}function ale({postId:e,hasInnerBlocks:t,layout:r,tagName:a,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,f2.useSelect)(c=>({canViewTemplatePart:!!c(bg.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(bg.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,z6.jsx)(l?_5e:x5e,{postId:e,hasInnerBlocks:t,layout:r,tagName:a,blockProps:n}):null}var Dt=o(g(),1),nle=["header","footer"];function cle(){return typeof window<"u"&&window.__experimentalNavigationOverlays===!0?[...nle,"navigation-overlay"]:nle}function k5e({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:a,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=fg(t,r),l=!!i.length,s=cle();return e&&l&&s.includes(t)?(0,Dt.jsx)(ic.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":a,"aria-haspopup":"dialog",children:(0,Rn.__)("Replace")}):null}function w5e({area:e,clientId:t,isEntityAvailable:r,onSelect:a}){let n=hg(e,t),i=cle();return r&&!!n.length&&i.includes(e)?(0,Dt.jsx)(ic.PanelBody,{title:(0,Rn.__)("Design"),children:(0,Dt.jsx)(Qr.__experimentalBlockPatternsList,{label:(0,Rn.__)("Templates"),blockPatterns:n,onClickPattern:a,showTitlesAsTooltip:!0})}):null}function ule({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:a}=(0,yg.useDispatch)(sle.store),{editEntityRecord:n}=(0,yg.useDispatch)(h2.store),i=(0,yg.useSelect)(R=>R(h2.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,m=Hl(s,l),p=(0,Qr.useHasRecursion)(m),[d,f]=(0,lle.useState)(!1),{isResolved:h,hasInnerBlocks:v,isMissing:y,area:b,onNavigateToEntityRecord:_,title:x,canUserEdit:k}=(0,yg.useSelect)(R=>{let{getEditedEntityRecord:j,hasFinishedResolution:z}=R(h2.store),{getBlockCount:E,getSettings:H}=R(Qr.store),G=["postType","wp_template_part",m],F=m?j(...G):null,q=F?.area||e.area,K=m?z("getEditedEntityRecord",G):!1,te=K?R(h2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:m}):!1;return{hasInnerBlocks:E(r)>0,isResolved:K,isMissing:K&&(!F||Object.keys(F).length===0),area:q,onNavigateToEntityRecord:H().onNavigateToEntityRecord,title:F?.title,canUserEdit:!!te}},[m,e.area,r]),C=M6(b),S=(0,Qr.useBlockProps)(),N=!l,B=!N&&!y&&h,D=c||C.tagName,A=async R=>{await n("postType","wp_template_part",m,{blocks:R.blocks,content:(0,ile.serialize)(R.blocks)}),a((0,Rn.sprintf)((0,Rn.__)('Template Part "%s" updated.'),x||l),{type:"snackbar"})};return!v&&(l&&!s||l&&y)?(0,Dt.jsx)(D,{...S,children:(0,Dt.jsx)(Qr.Warning,{children:(0,Rn.sprintf)((0,Rn.__)("Template part has been deleted or is unavailable: %s"),l)})}):B&&p?(0,Dt.jsx)(D,{...S,children:(0,Dt.jsx)(Qr.Warning,{children:(0,Rn.__)("Block cannot be rendered inside itself.")})}):(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsxs)(Qr.RecursionProvider,{uniqueId:m,children:[B&&_&&k&&(0,Dt.jsx)(Qr.BlockControls,{group:"other",children:(0,Dt.jsx)(ic.ToolbarButton,{onClick:()=>{_({postId:m,postType:"wp_template_part"})},children:window?.__experimentalContentOnlyPatternInsertion?(0,Rn.__)("Edit section"):(0,Rn.__)("Edit")})}),k&&(0,Dt.jsx)(Qr.InspectorControls,{group:"advanced",children:(0,Dt.jsx)(ele,{tagName:c,setAttributes:t,isEntityAvailable:B,templatePartId:m,defaultWrapper:C.tagName,hasInnerBlocks:v,clientId:r})}),N&&(0,Dt.jsx)(D,{...S,children:(0,Dt.jsx)(Fie,{area:e.area,templatePartId:m,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Dt.jsx)(Qr.BlockSettingsMenuControls,{children:({selectedClientIds:R})=>R.length===1&&r===R[0]?(0,Dt.jsx)(k5e,{isEntityAvailable:B,area:b,clientId:r,templatePartId:m,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f}):null}),(0,Dt.jsx)(Qr.InspectorControls,{children:(0,Dt.jsx)(w5e,{area:b,clientId:r,isEntityAvailable:B,onSelect:R=>A(R)})}),B&&(0,Dt.jsx)(ale,{tagName:D,blockProps:S,postId:m,hasInnerBlocks:v,layout:u}),!N&&!h&&(0,Dt.jsx)(D,{...S,children:(0,Dt.jsx)(ic.Spinner,{})})]}),d&&(0,Dt.jsx)(ic.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Rn.sprintf)((0,Rn.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Dt.jsx)($ie,{templatePartId:m,clientId:r,area:b,setAttributes:t,onClose:()=>f(!1)})})]})}var mle=o(Q(),1),ple=o(V(),1);function dle(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(n,i)=>{let{area:l,theme:s,slug:c}=n;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:m}=(0,ple.select)(mle.store),p=m("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},a=e.variations.map(n=>({...n,...!n.isActive&&{isActive:r},...typeof n.icon=="string"&&{icon:fh(n.icon)}}));return{...e,variations:a}}return e}var{name:vle}=I6,ble={icon:z0,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:a}=(0,hle.select)(fle.store),n=a("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,gle.decodeEntities)(n.title)||CZ(n.slug||"")},edit:ule},C5e=()=>{(0,ZL.addFilter)("blocks.registerBlockType","core/template-part",dle);let e=["core/post-template","core/post-content"];return(0,ZL.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),I({name:vle,metadata:I6,settings:ble})};var JL={};$(JL,{init:()=>P5e,metadata:()=>V6,name:()=>Tle,settings:()=>Ple});var V6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-count",title:"Term Count",category:"theme",description:"Displays the post count of a taxonomy term.",textdomain:"default",usesContext:["termId","taxonomy"],attributes:{bracketType:{type:"string",enum:["none","round","square","curly","angle"],default:"round"}},supports:{anchor:!0,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-count"};var Pd=o(P(),1),H6=o(T(),1),Cle=o(M(),1);var Ji=o(M(),1),es=o(g(),1),QL=(0,es.jsx)(Ji.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,es.jsx)(Ji.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),yle=(0,es.jsx)(Ji.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,es.jsx)(Ji.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),xle=(0,es.jsx)(Ji.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,es.jsx)(Ji.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),_le=(0,es.jsx)(Ji.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,es.jsx)(Ji.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),kle=(0,es.jsx)(Ji.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,es.jsx)(Ji.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});var g2=o(Q(),1),YL=o(V(),1);function wle(e,t){let[r]=(0,g2.useEntityProp)("taxonomy",t,"count",e),a=T5e(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":a}}function T5e(){let t=(0,YL.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(g2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r),(0,YL.useSelect)(n=>{if(!r||!a)return"";let{getEntityRecords:i}=n(g2.store),l=i("taxonomy",r,{slug:a,per_page:1});return l&&l[0]&&l[0].count||""},[r,a])}var Pm=o(g(),1),XL={none:{label:(0,Pd.__)("No brackets"),icon:QL},round:{label:(0,Pd.__)("Round brackets"),icon:yle,before:"(",after:")"},square:{label:(0,Pd.__)("Square brackets"),icon:xle,before:"[",after:"]"},curly:{label:(0,Pd.__)("Curly brackets"),icon:_le,before:"{",after:"}"},angle:{label:(0,Pd.__)("Angle brackets"),icon:kle,before:"<",after:">"}};function Sle({attributes:e,setAttributes:t,context:{termId:r,taxonomy:a}}){let{bracketType:n}=e,l=wle(r,a)?.termCount||0,s=(0,H6.useBlockProps)(),c=Object.entries(XL).map(([m,{label:p,icon:d}])=>({role:"menuitemradio",title:p,isActive:n===m,icon:d,onClick:()=>{t({bracketType:m})}})),u=(m,p)=>{let{before:d="",after:f=""}=XL[p]||{};return`${d}${m}${f}`};return(0,Pm.jsxs)(Pm.Fragment,{children:[(0,Pm.jsx)(H6.BlockControls,{group:"block",children:(0,Pm.jsx)(Cle.ToolbarDropdownMenu,{icon:XL[n]?.icon??QL,label:(0,Pd.__)("Change bracket type"),controls:c})}),(0,Pm.jsx)("div",{...s,children:u(l,n)})]})}var{name:Tle}=V6,Ple={icon:$T,example:{},edit:Sle},P5e=()=>I({name:Tle,metadata:V6,settings:Ple});var tM={};$(tM,{init:()=>E5e,metadata:()=>F6,name:()=>Ile,settings:()=>Dle});var F6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var Nle=o(P(),1),xg=o(T(),1);var v2=o(Q(),1),eM=o(V(),1);function Ble(e,t){let[r,a,n]=(0,v2.useEntityProp)("taxonomy",t,"description",e),i=N5e(),l=!!(e&&t);return{hasContext:l,setDescription:a,termDescription:l?n?.rendered||r||"":i}}function N5e(){let t=(0,eM.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(v2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r),(0,eM.useSelect)(n=>{if(!r||!a)return"";let{getEntityRecords:i}=n(v2.store),l=i("taxonomy",r,{slug:a,per_page:1});return l&&l[0]&&l[0].description||""},[r,a])}var ts=o(g(),1);function Ele({attributes:e,setAttributes:t,mergedStyle:r,context:{termId:a,taxonomy:n}}){let{textAlign:i}=e,{termDescription:l}=Ble(a,n),s=(0,xg.useBlockProps)({className:w({[`has-text-align-${i}`]:i}),style:r});return(0,ts.jsxs)(ts.Fragment,{children:[(0,ts.jsx)(xg.BlockControls,{group:"block",children:(0,ts.jsx)(xg.AlignmentControl,{value:i,onChange:c=>{t({textAlign:c})}})}),(0,ts.jsx)("div",{...s,children:l?(0,ts.jsx)("div",{dangerouslySetInnerHTML:{__html:l}}):(0,ts.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,ts.jsx)("span",{children:(0,Nle.__)("Term Description")})})})]})}var{name:Ile}=F6,Dle={icon:ZT,edit:Ele,example:{}},E5e=()=>I({name:Ile,metadata:F6,settings:Dle});var rM={};$(rM,{init:()=>L5e,metadata:()=>O6,name:()=>Ale,settings:()=>zle});var O6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-name",title:"Term Name",category:"theme",description:"Displays the name of a taxonomy term.",keywords:["term title"],textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"},level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var b2=o(P(),1),lc=o(T(),1),_g=o(M(),1),Mle=o(Xr(),1);var j6=o(Q(),1),U6=o(V(),1);function Lle(e,t){let r=(0,U6.useSelect)(i=>!e||!t?null:i(j6.store).getEntityRecord("taxonomy",t,e),[e,t]),a=D5e(),n=!!(e&&t);return{hasContext:n,term:n?r:a}}function D5e(){let t=(0,U6.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(j6.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a;return t&&(t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r),(0,U6.useSelect)(n=>{if(!r||!a)return null;let{getEntityRecords:i}=n(j6.store),l=i("taxonomy",r,{slug:a,per_page:1});return l&&l[0]?l[0]:null},[r,a])}var An=o(g(),1);function Rle({attributes:e,setAttributes:t,context:{termId:r,taxonomy:a}}){let{textAlign:n,level:i=0,isLink:l,levelOptions:s}=e,{term:c}=Lle(r,a),u=c?.name?(0,Mle.decodeEntities)(c.name):(0,b2.__)("Term Name"),m=(0,lc.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),p=W(),d=i===0?"p":`h${i}`,f=u;return l&&(f=(0,An.jsx)("a",{href:"#term-name-pseudo-link",onClick:h=>h.preventDefault(),children:u})),(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(lc.BlockControls,{group:"block",children:[(0,An.jsx)(lc.HeadingLevelDropdown,{value:i,options:s,onChange:h=>{t({level:h})}}),(0,An.jsx)(lc.AlignmentControl,{value:n,onChange:h=>{t({textAlign:h})}})]}),(0,An.jsx)(lc.InspectorControls,{children:(0,An.jsx)(_g.__experimentalToolsPanel,{label:(0,b2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,An.jsx)(_g.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,b2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,An.jsx)(_g.ToggleControl,{label:(0,b2.__)("Make term name a link"),onChange:()=>t({isLink:!l}),checked:l})})})}),(0,An.jsx)(d,{...m,children:f})]})}var{name:Ale}=O6,zle={icon:KT,example:{},edit:Rle},L5e=()=>I({name:Ale,metadata:O6,settings:zle});var sM={};$(sM,{init:()=>O5e,metadata:()=>G6,name:()=>Cse,settings:()=>Sse});var G6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/terms-query",title:"Terms Query",category:"theme",description:"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.",keywords:["terms","taxonomy","categories","tags","list"],textdomain:"default",attributes:{termQuery:{type:"object",default:{perPage:10,taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1}},tagName:{type:"string",default:"div"}},usesContext:["templateSlug"],providesContext:{termQuery:"termQuery"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0}};var gse=o(V(),1),vse=o(T(),1);var dse=o(O(),1),q6=o(T(),1);var rs=o(P(),1),sc=o(M(),1),mse=o(T(),1);var Vle=o(Q(),1),Hle=o(V(),1),Fle=o(O(),1);function W6(){let e=(0,Hle.useSelect)(t=>t(Vle.store).getTaxonomies({per_page:-1}),[]);return(0,Fle.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var Ole=o(M(),1);var jle=o(g(),1);function Ule({value:e,onChange:t,...r}){let n=W6().map(i=>({label:i.name,value:i.slug}));return(0,jle.jsx)(Ole.SelectControl,{__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...r})}var y2=o(P(),1),Gle=o(M(),1),Wle=o(g(),1);function $le({orderBy:e,order:t,onChange:r,...a}){return(0,Wle.jsx)(Gle.SelectControl,{__next40pxDefaultSize:!0,options:[{label:(0,y2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,y2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,y2.__)("Count, high to low"),value:"count/desc"},{label:(0,y2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");r(i,l)},...a})}var qle=o(M(),1),Zle=o(g(),1);function Kle({value:e,onChange:t,...r}){return(0,Zle.jsx)(qle.ToggleControl,{checked:!e,onChange:a=>t(!a),...r})}var Qle=o(M(),1),Yle=o(g(),1);function Xle({value:e,onChange:t,...r}){return(0,Yle.jsx)(Qle.ToggleControl,{checked:e,onChange:t,...r})}var _2=o(M(),1),x2=o(P(),1),k2=o(g(),1);function Jle({value:e,onChange:t,label:r}){return(0,k2.jsxs)(_2.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:r,isBlock:!0,onChange:a=>{t({inherit:a==="default"})},help:e?(0,x2.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,x2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,k2.jsx)(_2.__experimentalToggleGroupControlOption,{value:"default",label:(0,x2.__)("Default")}),(0,k2.jsx)(_2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,x2.__)("Custom")})]})}var ese=o(P(),1),tse=o(M(),1),rse=o(g(),1);function ose({value:e,onChange:t,...r}){return(0,rse.jsx)(tse.RangeControl,{__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,ese.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var ase=o(P(),1),$6=o(T(),1);var oM=o(g(),1),{HTMLElementControl:R5e}=Z($6.privateApis);function nse({TagName:e,setAttributes:t,clientId:r}){return(0,oM.jsx)($6.InspectorControls,{group:"advanced",children:(0,oM.jsx)(R5e,{tagName:e,onChange:a=>t({tagName:a}),clientId:r,options:[{label:(0,ase.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var lse=o(M(),1),aM=o(V(),1),nM=o(Q(),1),eu=o(O(),1),sse=o(fe(),1),iM=o(Xr(),1),cse=o(g(),1),Bd=[],ise={order:"asc",_fields:"id,name",context:"view"};function use({value:e,taxonomy:t,onChange:r,...a}){let[n,i]=(0,eu.useState)(""),[l,s]=(0,eu.useState)(Bd),[c,u]=(0,eu.useState)(Bd),m=(0,sse.useDebounce)(i,250),{searchResults:p,searchHasResolved:d}=(0,aM.useSelect)(b=>{if(!n)return{searchResults:Bd,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:x}=b(nM.store),k=["taxonomy",t,{...ise,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...k),searchHasResolved:x("getEntityRecords",k)}},[n,t,e]),f=(0,aM.useSelect)(b=>{if(!e?.length)return Bd;let{getEntityRecords:_}=b(nM.store);return _("taxonomy",t,{...ise,include:e,per_page:e.length})},[e,t]);(0,eu.useEffect)(()=>{if(e?.length||s(Bd),!f?.length)return;let b=e.reduce((_,x)=>{let k=f.find(C=>C.id===x);return k&&_.push({id:x,value:(0,iM.decodeEntities)(k.name)}),_},[]);s(b)},[e,f]);let h=(0,eu.useMemo)(()=>{if(!p?.length)return{names:Bd,mapByName:{}};let b=[],_={};return p.forEach(x=>{let k=(0,iM.decodeEntities)(x.name);b.push(k),_[k]=x}),{names:b,mapByName:_}},[p]);(0,eu.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let v=(b,_)=>_?.id||b?.[_]?.id;return(0,cse.jsx)(lse.FormTokenField,{__next40pxDefaultSize:!0,value:l,onInputChange:m,suggestions:c,onChange:b=>{let _=Array.from(b.reduce((x,k)=>{let C=v(h.mapByName,k);return C&&x.add(C),x},new Set));u(Bd),r(_)},__experimentalShowHowTo:!1,...a})}var Sr=o(g(),1);function pse({attributes:e,setQuery:t,setAttributes:r,clientId:a,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:m,inherit:p,showNested:d,perPage:f,include:h}=i,v=W(),b=W6().find(z=>z.slug===s)?.hierarchical,_=!!p,x=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),k=b,C=!!h?.length,S=(0,rs.__)("Query type"),N=(0,rs.__)("Taxonomy"),B=(0,rs.__)("Order by"),D=(0,rs.__)("Show empty terms"),A=(0,rs.__)("Show nested terms"),R=(0,rs.__)("Max terms"),j=(0,rs.__)("Selected terms");return(0,Sr.jsxs)(Sr.Fragment,{children:[(0,Sr.jsx)(mse.InspectorControls,{children:(0,Sr.jsxs)(sc.__experimentalToolsPanel,{label:(0,rs.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:v,children:[x&&(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:S,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Sr.jsx)(Jle,{label:S,value:p,onChange:t})}),!_&&(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:N,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Sr.jsx)(Ule,{label:N,value:s,onChange:z=>t({taxonomy:z,include:[]})})}),(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:B,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Sr.jsx)($le,{label:B,orderBy:c,order:u,onChange:(z,E)=>{t({orderBy:z,order:E})},disabled:C,help:C?(0,rs.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:j,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Sr.jsx)(use,{label:j,taxonomy:s,value:h,onChange:z=>t({include:z})})}),(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>m!==!0,label:D,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Sr.jsx)(Kle,{label:D,value:m,onChange:z=>t({hideEmpty:z})})}),k&&(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:A,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Sr.jsx)(Xle,{label:A,value:d,onChange:z=>t({showNested:z}),disabled:C,help:C?(0,rs.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Sr.jsx)(sc.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:R,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Sr.jsx)(ose,{label:R,value:f,onChange:z=>t({perPage:z})})})]})}),(0,Sr.jsx)(nse,{TagName:l,setAttributes:r,clientId:a})]})}var Nd=o(g(),1),A5e=[["core/term-template"]];function fse({attributes:e,setAttributes:t,clientId:r,context:a}){let{tagName:n}=e,i=(0,q6.useBlockProps)(),l=(0,q6.useInnerBlocksProps)(i,{template:A5e}),s=(0,dse.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,Nd.jsxs)(Nd.Fragment,{children:[(0,Nd.jsx)(pse,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:a?.templateSlug}),(0,Nd.jsx)(n,{...l})]})}var Z6=o(V(),1),K6=o(U(),1),kg=o(T(),1),lM=o(g(),1);function hse({attributes:e,clientId:t,name:r}){let{blockType:a,activeBlockVariation:n,scopeVariations:i}=(0,Z6.useSelect)(m=>{let{getActiveBlockVariation:p,getBlockType:d,getBlockVariations:f}=m(K6.store);return{blockType:d(r),activeBlockVariation:p(r,e),scopeVariations:f(r,"block")}},[r,e]),l=n?.icon?.src||n?.icon||a?.icon?.src,s=n?.title||a?.title,{replaceInnerBlocks:c}=(0,Z6.useDispatch)(kg.store),u=(0,kg.useBlockProps)();return(0,lM.jsx)("div",{...u,children:(0,lM.jsx)(kg.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:m=>{m.innerBlocks&&c(t,(0,K6.createBlocksFromInnerBlocksTemplate)(m.innerBlocks),!1)}})})}var bse=o(g(),1),z5e=e=>{let r=(0,gse.useSelect)(a=>!!a(vse.store).getBlocks(e.clientId).length,[e.clientId])?fse:hse;return(0,bse.jsx)(r,{...e})},yse=z5e;var Q6=o(T(),1),xse=o(g(),1);function _se({attributes:{tagName:e="div"}}){let t=Q6.useBlockProps.save(),r=Q6.useInnerBlocksProps.save(t);return(0,xse.jsx)(e,{...r})}var w2=o(P(),1),wg=o(M(),1),C2=o(g(),1),V5e=(0,C2.jsx)(wg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,C2.jsx)(wg.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),H5e=(0,C2.jsx)(wg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,C2.jsx)(wg.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),kse=["core/term-name",{isLink:!0}],F5e=[{name:"name",title:(0,w2.__)("Name"),description:(0,w2.__)("Display the terms' names."),attributes:{},icon:V5e,scope:["block"],innerBlocks:[["core/term-template",{},[kse]]]},{name:"name-count",title:(0,w2.__)("Name & Count"),description:(0,w2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:H5e,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[kse,["core/term-count"]]]]]]}],wse=F5e;var{name:Cse}=G6,Sse={icon:Km,edit:yse,save:_se,example:{},variations:wse},O5e=()=>I({name:Cse,metadata:G6,settings:Sse});var cM={};$(cM,{init:()=>q5e,metadata:()=>Y6,name:()=>Lse,settings:()=>Mse});var Y6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-template",title:"Term Template",category:"theme",ancestor:["core/terms-query"],description:"Contains the block elements used to render a taxonomy term, like the name, description, and more.",textdomain:"default",usesContext:["termQuery"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var Tse=o(M(),1);var Cg=o(O(),1),Pse=o(V(),1),S2=o(P(),1),el=o(T(),1),Bse=o(Q(),1),Jo=o(g(),1),U5e=[["core/term-name"]];function G5e({classList:e}){let t=(0,el.useInnerBlocksProps)({className:w("wp-block-term",e)},{template:U5e,__unstableDisableLayoutClassNames:!0});return(0,Jo.jsx)("li",{...t})}function W5e({blocks:e,blockContextId:t,classList:r,isHidden:a,setActiveBlockContextId:n}){let i=(0,el.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-term",r)}}),l=()=>{n(t)};return(0,Jo.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var $5e=(0,Cg.memo)(W5e);function Nse({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:a,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:m}){let{type:p,columnCount:d=3}=t||{},[f,h]=(0,Cg.useState)(),v={hide_empty:l,order:n,orderby:i,per_page:c||-1};!s&&!u?.length&&(v.parent=0),u?.length&&(v.include=u,v.orderby="include",v.order="asc");let{records:y}=(0,Bse.useEntityRecords)("taxonomy",a,v),b=(0,Pse.useSelect)(C=>C(el.store).getBlocks(e),[e]),_=(0,el.useBlockProps)({className:m}),x=(0,Cg.useMemo)(()=>y?.map(C=>({taxonomy:a,termId:C.id,classList:`term-${C.id}`,termData:C})),[y,a]);if(!y)return(0,Jo.jsx)("ul",{..._,children:(0,Jo.jsx)("li",{className:"wp-block-term term-loading",children:(0,Jo.jsx)("div",{className:"term-loading-placeholder"})})});if(!y.length)return(0,Jo.jsxs)("p",{..._,children:[" ",(0,S2.__)("No terms found.")]});let k=C=>r(S=>({layout:{...S.layout,...C}}));return(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(el.BlockControls,{children:(0,Jo.jsx)(Tse.ToolbarGroup,{controls:[{icon:ul,title:(0,S2._x)("List view","Term template block display setting"),onClick:()=>k({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:cl,title:(0,S2._x)("Grid view","Term template block display setting"),onClick:()=>k({type:"grid",columnCount:d}),isActive:p==="grid"}]})}),(0,Jo.jsx)("ul",{..._,children:x?.map(C=>(0,Jo.jsxs)(el.BlockContextProvider,{value:C,children:[C.termId===(f||x[0]?.termId)?(0,Jo.jsx)(G5e,{classList:C.classList}):null,(0,Jo.jsx)($5e,{blocks:b,blockContextId:C.termId,classList:C.classList,setActiveBlockContextId:h,isHidden:C.termId===(f||x[0]?.termId)})]},C.termId))})]})}var Ese=o(T(),1),Ise=o(g(),1);function Dse(){return(0,Ise.jsx)(Ese.InnerBlocks.Content,{})}var{name:Lse}=Y6,Mse={icon:Zm,edit:Nse,save:Dse,example:{}},q5e=()=>I({name:Lse,metadata:Y6,settings:Mse});var uM={};$(uM,{init:()=>Q5e,metadata:()=>J6,name:()=>Hse,settings:()=>Fse});var Sg=o(P(),1),X6=o(M(),1),cc=o(T(),1),Rse=o(tf(),1),ki=o(g(),1);function Ase({attributes:e,setAttributes:t}){let{width:r,content:a,columns:n}=e;return(0,Rse.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,ki.jsxs)(ki.Fragment,{children:[(0,ki.jsx)(cc.BlockControls,{children:(0,ki.jsx)(cc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,ki.jsx)(cc.InspectorControls,{children:(0,ki.jsx)(X6.PanelBody,{children:(0,ki.jsx)(X6.RangeControl,{__next40pxDefaultSize:!0,label:(0,Sg.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,ki.jsx)("div",{...(0,cc.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,ki.jsx)("div",{className:"wp-block-column",children:(0,ki.jsx)(cc.RichText,{tagName:"p",value:a?.[l]?.children,onChange:s=>{t({content:[...a.slice(0,l),{children:s},...a.slice(l+1)]})},"aria-label":(0,Sg.sprintf)((0,Sg.__)("Column %d text"),l+1),placeholder:(0,Sg.__)("New Column")})},`column-${l}`))})]})}var J6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"};var t8=o(T(),1),e8=o(g(),1);function zse({attributes:e}){let{width:t,content:r,columns:a}=e;return(0,e8.jsx)("div",{...t8.useBlockProps.save({className:`align${t} columns-${a}`}),children:Array.from({length:a}).map((n,i)=>(0,e8.jsx)("div",{className:"wp-block-column",children:(0,e8.jsx)(t8.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var r8=o(U(),1),K5e={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:a})=>(0,r8.createBlock)("core/columns",{align:a==="wide"||a==="full"?a:void 0,className:e,columns:t},r.map(({children:n})=>(0,r8.createBlock)("core/column",{},[(0,r8.createBlock)("core/paragraph",{content:n})])))}]},Vse=K5e;var{name:Hse}=J6,Fse={transforms:Vse,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:Ase,save:zse},Q5e=()=>I({name:Hse,metadata:J6,settings:Fse});var hM={};$(hM,{init:()=>oke,metadata:()=>n8,name:()=>$se,settings:()=>l8});var fM=o(P(),1);var Wse=o(U(),1);var T2=o(T(),1);var o8=o(g(),1),Y5e={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,o8.jsx)(T2.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})}},X5e={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,o8.jsx)("pre",{...T2.useBlockProps.save({className:a}),children:(0,o8.jsx)(T2.RichText.Content,{value:r})})},migrate:Mt,isEligible({style:e}){return e?.typography?.fontFamily}},Ose=[X5e,Y5e];var mM=o(P(),1),Nm=o(T(),1),a8=o(U(),1),Bm=o(g(),1);function jse({attributes:e,setAttributes:t,mergeBlocks:r,onRemove:a,insertBlocksAfter:n,style:i}){let{textAlign:l,content:s}=e,c=(0,Nm.useBlockProps)({className:w({[`has-text-align-${l}`]:l}),style:i});return(0,Bm.jsxs)(Bm.Fragment,{children:[(0,Bm.jsx)(Nm.BlockControls,{children:(0,Bm.jsx)(Nm.AlignmentToolbar,{value:l,onChange:u=>{t({textAlign:u})}})}),(0,Bm.jsx)(Nm.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{t({content:u})},"aria-label":(0,mM.__)("Verse text"),placeholder:(0,mM.__)("Write verse\u2026"),onRemove:a,onMerge:r,textAlign:l,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,a8.createBlock)((0,a8.getDefaultBlockName)()))})]})}var n8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"};var i8=o(T(),1),pM=o(g(),1);function Use({attributes:e}){let{textAlign:t,content:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,pM.jsx)("pre",{...i8.useBlockProps.save({className:a}),children:(0,pM.jsx)(i8.RichText.Content,{value:r})})}var dM=o(U(),1),eke={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,dM.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,dM.createBlock)("core/paragraph",e)}]},Gse=eke;var{fieldsKey:tke,formKey:rke}=Z(Wse.privateApis),{name:$se}=n8,l8={icon:q0,example:{attributes:{content:(0,fM.__)(`WHAT was he doing, the great god Pan,
Down in the reeds by the river?
Spreading ruin and scattering ban,
Splashing and paddling with hoofs of a goat,
And breaking the golden lilies afloat
With the dragon-fly on the river.`)}},transforms:Gse,deprecated:Ose,merge(e,t){return{content:e.content+`
`+t.content}},edit:jse,save:Use};window.__experimentalContentOnlyInspectorFields&&(l8[tke]=[{id:"content",label:(0,fM.__)("Content"),type:"text",Edit:"rich-text"}],l8[rke]={fields:["content"]});var oke=()=>I({name:$se,metadata:n8,settings:l8});var bM={};$(bM,{init:()=>yke,metadata:()=>Tg,name:()=>sce,settings:()=>u8});var c8=o(P(),1);var lce=o(U(),1);var P2=o(T(),1);var Tg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",role:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",role:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{role:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var qse=o(g(),1);function Pg({tracks:e=[]}){return e.map(t=>{let{id:r,...a}=t;return(0,qse.jsx)("track",{...a},r??a.src)})}var Bg=o(g(),1),{attributes:nke}=Tg,ike={attributes:nke,save({attributes:e}){let{autoplay:t,caption:r,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,Bg.jsxs)("figure",{...P2.useBlockProps.save(),children:[c&&(0,Bg.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,Bg.jsx)(Pg,{tracks:m})}),!P2.RichText.isEmpty(r)&&(0,Bg.jsx)(P2.RichText.Content,{tagName:"figcaption",value:r})]})}},lke=[ike],Zse=lke;var tce=o(zr(),1),Em=o(M(),1),Xa=o(T(),1),Eg=o(O(),1),B2=o(P(),1),rce=o(V(),1);var oce=o(Nr(),1);var Rr=o(P(),1),Ya=o(M(),1),Ed=o(O(),1),ea=o(g(),1),ske=[{value:"auto",label:(0,Rr.__)("Auto")},{value:"metadata",label:(0,Rr.__)("Metadata")},{value:"none",label:(0,Rr._x)("None","Preload value")}],cke=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:a,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,Rr.__)("Autoplay may cause usability issues for some users."),u=Ed.Platform.select({web:(0,Ed.useCallback)(d=>d?c:null,[]),native:c}),m=(0,Ed.useMemo)(()=>{let d=f=>h=>{e({[f]:h,...f==="autoplay"&&{muted:h,playsInline:h}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,Ed.useCallback)(d=>{e({preload:d})},[]);return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(Ya.__experimentalToolsPanelItem,{label:(0,Rr.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,ea.jsx)(Ya.ToggleControl,{label:(0,Rr.__)("Autoplay"),onChange:m.autoplay,checked:!!r,help:u})}),(0,ea.jsx)(Ya.__experimentalToolsPanelItem,{label:(0,Rr.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,ea.jsx)(Ya.ToggleControl,{label:(0,Rr.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,ea.jsx)(Ya.__experimentalToolsPanelItem,{label:(0,Rr.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,ea.jsx)(Ya.ToggleControl,{label:(0,Rr.__)("Muted"),onChange:m.muted,checked:!!i,disabled:r,help:r?(0,Rr.__)("Muted because of Autoplay."):null})}),(0,ea.jsx)(Ya.__experimentalToolsPanelItem,{label:(0,Rr.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{e({controls:!0})},children:(0,ea.jsx)(Ya.ToggleControl,{label:(0,Rr.__)("Playback controls"),onChange:m.controls,checked:!!a})}),(0,ea.jsx)(Ya.__experimentalToolsPanelItem,{label:(0,Rr.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,ea.jsx)(Ya.ToggleControl,{label:(0,Rr.__)("Play inline"),onChange:m.playsInline,checked:!!l,disabled:r,help:r?(0,Rr.__)("Play inline enabled because of Autoplay."):(0,Rr.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,ea.jsx)(Ya.__experimentalToolsPanelItem,{label:(0,Rr.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,ea.jsx)(Ya.SelectControl,{__next40pxDefaultSize:!0,label:(0,Rr.__)("Preload"),value:s,onChange:p,options:ske,hideCancelButton:!0})})]})},Kse=cke;var Pt=o(P(),1),Xe=o(M(),1),Ng=o(T(),1);var Yse=o(V(),1),Id=o(O(),1),Xse=o(Br(),1);var Ke=o(g(),1),{Badge:uke}=Z(Xe.privateApis),Qse=["text/vtt"],mke="subtitles",pke=[{label:(0,Pt.__)("Subtitles"),value:"subtitles"},{label:(0,Pt.__)("Captions"),value:"captions"},{label:(0,Pt.__)("Descriptions"),value:"descriptions"},{label:(0,Pt.__)("Chapters"),value:"chapters"},{label:(0,Pt.__)("Metadata"),value:"metadata"}],Jse={src:"",label:"",srcLang:"en",kind:mke,default:!1};function dke({tracks:e,onEditPress:t}){let r=e.map((a,n)=>(0,Ke.jsxs)(Xe.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Ke.jsx)("span",{children:a.label}),(0,Ke.jsxs)(Xe.__experimentalHStack,{justify:"flex-end",children:[a.default&&(0,Ke.jsx)(uke,{children:(0,Pt.__)("Default")}),(0,Ke.jsx)(Xe.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Pt.sprintf)((0,Pt._x)("Edit %s","text tracks"),a.label),children:(0,Pt.__)("Edit")})]})]},a.id??a.src));return(0,Ke.jsx)(Xe.MenuGroup,{label:(0,Pt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function fke({track:e,onChange:t,onClose:r,onRemove:a,allowSettingDefault:n}){let[i,l]=(0,Id.useState)({...Jse,...e}),{src:s,label:c,srcLang:u,kind:m,default:p}=i,d=s.startsWith("blob:")?"":(0,Xse.getFilename)(s)||"";return(0,Ke.jsxs)(Xe.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Ke.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Pt.__)("Edit track")}),(0,Ke.jsxs)("span",{children:[(0,Pt.__)("File"),": ",(0,Ke.jsx)("b",{children:d})]}),(0,Ke.jsxs)(Xe.__experimentalGrid,{columns:2,gap:4,children:[(0,Ke.jsx)(Xe.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(h=>({...h,label:f})),label:(0,Pt.__)("Label"),value:c,help:(0,Pt.__)("Title of track")}),(0,Ke.jsx)(Xe.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Pt.__)("Source language"),value:u,help:(0,Pt.__)("Language tag (en, fr, etc.)")})]}),(0,Ke.jsxs)(Xe.__experimentalVStack,{spacing:"4",children:[(0,Ke.jsx)(Xe.SelectControl,{__next40pxDefaultSize:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:pke,value:m,label:(0,Pt.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Ke.jsx)(Xe.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Pt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>l(h=>({...h,default:f}))}),(0,Ke.jsxs)(Xe.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Ke.jsx)(Xe.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:a,children:(0,Pt.__)("Remove track")}),(0,Ke.jsx)(Xe.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Pt.__)("Apply")})]})]})]})}function ece({tracks:e=[],onChange:t}){let r=(0,Yse.useSelect)(c=>c(Ng.store).getSettings().mediaUpload,[]),[a,n]=(0,Id.useState)(null),i=(0,Id.useRef)(),l=(c=[],u=!1)=>{let m=new Map(e.map(d=>[d.id,d])),p=c.map(({id:d,title:f,url:h})=>m.has(d)?m.get(d):{...Jse,id:d,label:f||"",src:h});p.length!==0&&t([...u?e:[],...p])};function s(c){let u=c.target.files;r({allowedTypes:Qse,filesList:u,onFileChange:m=>{if(!Array.isArray(m))return;let p=m.filter(d=>!!d?.id);p.length&&l(p,!0)}})}return(0,Id.useEffect)(()=>{i.current?.focus()},[a]),r?(0,Ke.jsx)(Xe.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Ke.jsx)(Xe.ToolbarGroup,{children:(0,Ke.jsx)(Xe.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Pt.__)("Text tracks")})}),renderContent:()=>a!==null?(0,Ke.jsx)(fke,{track:e[a],onChange:c=>{let u=[...e];u[a]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==a)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[a].default}):(0,Ke.jsxs)(Ke.Fragment,{children:[e.length===0&&(0,Ke.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Ke.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Pt.__)("Text tracks")}),(0,Ke.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Pt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Ke.jsxs)(Xe.NavigableMenu,{children:[(0,Ke.jsx)(dke,{tracks:e,onEditPress:n}),(0,Ke.jsx)(Xe.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Pt.__)("Add tracks"),children:(0,Ke.jsxs)(Ng.MediaUploadCheck,{children:[(0,Ke.jsx)(Ng.MediaUpload,{onSelect:l,allowedTypes:Qse,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Ke.jsx)(Xe.MenuItem,{icon:y0,onClick:c,children:(0,Pt.__)("Open Media Library")})}),(0,Ke.jsx)(Xe.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Ke.jsx)(Xe.MenuItem,{icon:fc,onClick:c,children:(0,Pt._x)("Upload","verb")})})]})})]})]})}):null}var tr=o(g(),1),gM=["video"];function hke({isSelected:e,attributes:t,className:r,setAttributes:a,insertBlocksAfter:n,onReplace:i}){let l=(0,Eg.useRef)(),{id:s,controls:c,poster:u,src:m,tracks:p}=t,[d,f]=(0,Eg.useState)(t.blob),h=W(),y=(0,Xa.useBlockEditingMode)()==="default";fu({url:d,allowedTypes:gM,onChange:b,onError:k}),(0,Eg.useEffect)(()=>{l.current&&l.current.load()},[u]);function b(B){if(!B||!B.url){a({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),f();return}if((0,tce.isBlobURL)(B.url)){f(B.url);return}a({blob:void 0,src:B.url,id:B.id,poster:B.image?.src!==B.icon?B.image?.src:void 0,caption:B.caption}),f()}function _(B){if(B!==m){let D=xu({attributes:{url:B}});if(D!==void 0&&i){i(D);return}a({blob:void 0,src:B,id:void 0,poster:void 0}),f()}}let{createErrorNotice:x}=(0,rce.useDispatch)(oce.store);function k(B){x(B,{type:"snackbar"})}let C=B=>(0,tr.jsx)(Em.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:Kd,label:(0,B2.__)("Video"),instructions:(0,B2.__)("Drag and drop a video, upload, or choose from your library."),children:B}),S=w(r,{"is-transient":!!d}),N=(0,Xa.useBlockProps)({className:S});return!m&&!d?(0,tr.jsx)("div",{...N,children:(0,tr.jsx)(Xa.MediaPlaceholder,{icon:(0,tr.jsx)(Xa.BlockIcon,{icon:Kd}),onSelect:b,onSelectURL:_,accept:"video/*",allowedTypes:gM,value:t,onError:k,placeholder:C})}):(0,tr.jsxs)(tr.Fragment,{children:[e&&(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(Xa.BlockControls,{children:(0,tr.jsx)(ece,{tracks:p,onChange:B=>{a({tracks:B})}})}),(0,tr.jsx)(Xa.BlockControls,{group:"other",children:(0,tr.jsx)(Xa.MediaReplaceFlow,{mediaId:s,mediaURL:m,allowedTypes:gM,accept:"video/*",onSelect:b,onSelectURL:_,onError:k,onReset:()=>b(void 0),variant:"toolbar"})})]}),(0,tr.jsx)(Xa.InspectorControls,{children:(0,tr.jsxs)(Em.__experimentalToolsPanel,{label:(0,B2.__)("Settings"),resetAll:()=>{a({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:h,children:[(0,tr.jsx)(Kse,{setAttributes:a,attributes:t}),(0,tr.jsx)(r5,{poster:u,onChange:B=>a({poster:B?.url})})]})}),(0,tr.jsxs)("figure",{...N,children:[(0,tr.jsx)(Em.Disabled,{isDisabled:!e,children:(0,tr.jsx)("video",{controls:c,poster:u,src:m||d,ref:l,children:(0,tr.jsx)(Pg,{tracks:p})})}),!!d&&(0,tr.jsx)(Em.Spinner,{}),(0,tr.jsx)(nn,{attributes:t,setAttributes:a,isSelected:e,insertBlocksAfter:n,label:(0,B2.__)("Video caption text"),showToolbarButton:e&&y})]})]})}var ace=hke;var Dd=o(T(),1);var Ig=o(g(),1);function nce({attributes:e}){let{autoplay:t,caption:r,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,Ig.jsxs)("figure",{...Dd.useBlockProps.save(),children:[c&&(0,Ig.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,Ig.jsx)(Pg,{tracks:m})}),!Dd.RichText.isEmpty(r)&&(0,Ig.jsx)(Dd.RichText.Content,{className:(0,Dd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var s8=o(zr(),1),vM=o(U(),1),gke={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,vM.createBlock)("core/video",{blob:(0,s8.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:a,ogv:n,flv:i}})=>e||t||r||a||n||i},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>e.nodeName==="P"&&e.children.length===1&&e.firstChild.nodeName==="VIDEO",transform:e=>{let t=e.firstChild,r={autoplay:t.hasAttribute("autoplay")?!0:void 0,controls:t.hasAttribute("controls")?void 0:!1,loop:t.hasAttribute("loop")?!0:void 0,muted:t.hasAttribute("muted")?!0:void 0,preload:t.getAttribute("preload")||void 0,playsInline:t.hasAttribute("playsinline")?!0:void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,s8.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,vM.createBlock)("core/video",r)}}]},ice=gke;var{fieldsKey:vke,formKey:bke}=Z(lce.privateApis),{name:sce}=Tg,u8={icon:Kd,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,c8.__)("Wood thrush singing in Central Park, NYC.")}},transforms:ice,deprecated:Zse,edit:ace,save:nce};window.__experimentalContentOnlyInspectorFields&&(u8[vke]=[{id:"video",label:(0,c8.__)("Video"),type:"media",Edit:{control:"media",allowedTypes:["video"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.src,caption:e.caption,poster:e.poster}),setValue:({value:e})=>({id:e.id,src:e.url,caption:e.caption,poster:e.poster})},{id:"caption",label:(0,c8.__)("Caption"),type:"text",Edit:"rich-text"}],u8[bke]={fields:["video","caption"]});var yke=()=>I({name:sce,metadata:Tg,settings:u8});var SM={};$(SM,{init:()=>Tke,metadata:()=>m8,name:()=>f8,settings:()=>bce});var vce=o(op(),1);var Ld=o(T(),1),cce=o(Q(),1),N2=o(P(),1),yM=o(M(),1);var tl=o(g(),1);function uce({context:{postType:e,postId:t}}){let[r,a]=(0,cce.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,Ld.useBlockProps)();return n?i.length?(0,tl.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,tl.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,tl.jsx)(Ld.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{a({...r,footnotes:JSON.stringify(i.map(m=>m.id===s?{content:u,id:s}:m))})}})," ",(0,tl.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,tl.jsx)("div",{...l,children:(0,tl.jsx)(yM.Placeholder,{icon:(0,tl.jsx)(Ld.BlockIcon,{icon:Ti}),label:(0,N2.__)("Footnotes"),instructions:(0,N2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,tl.jsx)("div",{...l,children:(0,tl.jsx)(yM.Placeholder,{icon:(0,tl.jsx)(Ld.BlockIcon,{icon:Ti}),label:(0,N2.__)("Footnotes"),instructions:(0,N2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var m8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{anchor:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"};var p8,_ke=new Uint8Array(16);function xM(){if(!p8&&(p8=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p8))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p8(_ke)}var ta=[];for(let e=0;e<256;++e)ta.push((e+256).toString(16).slice(1));function mce(e,t=0){return ta[e[t+0]]+ta[e[t+1]]+ta[e[t+2]]+ta[e[t+3]]+"-"+ta[e[t+4]]+ta[e[t+5]]+"-"+ta[e[t+6]]+ta[e[t+7]]+"-"+ta[e[t+8]]+ta[e[t+9]]+"-"+ta[e[t+10]]+ta[e[t+11]]+ta[e[t+12]]+ta[e[t+13]]+ta[e[t+14]]+ta[e[t+15]]}var kke=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_M={randomUUID:kke};function wke(e,t,r){if(_M.randomUUID&&!t&&!e)return _M.randomUUID();e=e||{};let a=e.random||(e.rng||xM)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){r=r||0;for(let n=0;n<16;++n)t[r+n]=a[n];return t}return mce(a)}var kM=wke;var wM=o(P(),1);var dce=o(op(),1),tu=o(T(),1),Dg=o(V(),1),fce=o(Q(),1),d8=o(U(),1);var hce=o(g(),1),CM="core/footnote",{usesContextKey:Cke}=Z(tu.privateApis),pce="core/post-content",Ske="core/block",gce={title:(0,wM.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[Cke]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:a,context:{postType:n,postId:i}}){let l=(0,Dg.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:m,getBlockParentsByBlockName:p}=l.select(tu.store),d=(0,Dg.useSelect)(y=>{if(!y(d8.store).getBlockType("core/footnotes"))return!1;let b=y(tu.store).getSettings().allowedBlockTypes;if(b===!1||Array.isArray(b)&&!b.includes("core/footnotes")||typeof y(fce.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:x,getSelectedBlockClientId:k,getBlockName:C}=y(tu.store),S=k();if(!S||C(S)===f8)return!1;let N=x(S,Ske);return!N||N.length===0},[n,i]),{selectionChange:f,insertBlock:h}=(0,Dg.useDispatch)(tu.store);if(!d)return null;function v(){l.batch(()=>{let y;if(a)y=t.replacements[t.start]?.attributes?.["data-fn"];else{y=kM();let C=(0,dce.insertObject)(t,{type:CM,attributes:{"data-fn":y},innerHTML:`<a href="#${y}" id="${y}-link">*</a>`},t.end,t.end);C.start=C.end-1,r(C)}let b=s(),_=p(b,pce),x=_.length?c(_[0]):c(),k=null;{let C=[...x];for(;C.length;){let S=C.shift();if(S.name==="core/footnotes"){k=S;break}C.push(...S.innerBlocks)}}if(!k){let C=u(b);for(;C&&m(C)!==pce;)C=u(C);k=(0,d8.createBlock)("core/footnotes"),h(k,void 0,C)}f(k.clientId,y,0,0)})}return(0,hce.jsx)(tu.RichTextToolbarButton,{icon:Ti,title:(0,wM.__)("Footnote"),onClick:v,isActive:a})}};var{name:f8}=m8,bce={icon:Ti,edit:uce},Tke=()=>{(0,vce.registerFormatType)(CM,gce),I({name:f8,metadata:m8,settings:bce})};function TM(e){return e&&"__experimental"in e&&e.__experimental!==!1}var _ce=o(O(),1),E2=o(V(),1),uc=o(xce(),1),PM=o(P(),1),kce=o(U(),1),BM=o(T(),1);function Pke(){let{registerShortcut:e}=(0,E2.useDispatch)(uc.store),{replaceBlocks:t}=(0,E2.useDispatch)(BM.store),{getBlockName:r,getSelectedBlockClientId:a,getBlockAttributes:n}=(0,E2.useSelect)(BM.store),i=(l,s)=>{l.preventDefault();let c=a();if(c===null)return;let u=r(c),m=u==="core/paragraph",p=u==="core/heading";if(!m&&!p)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(m&&s===0||p&&f.level===s)return;let h={content:f.content},v=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"&&(h.level=s),v&&(h.style={typography:{textAlign:v}}),t(c,(0,kce.createBlock)(d,h))};return(0,_ce.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,PM.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach(l=>{e({name:`core/block-editor/transform-paragraph-to-heading-${l}`,category:"block-library",description:(0,PM.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,uc.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,uc.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,uc.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,uc.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,uc.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,uc.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,uc.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var wce=Pke;var NM={};vz(NM,{BlockKeyboardShortcuts:wce,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Qu});var h8=o(g(),1),Bce=()=>{let e=[XE,wN,dN,oN,DN,UN,aD,Y8,X8,J8,t7,oP,dP,bP,_P,wP,TP,LP,RP,VP,GP,CB,SB,DB,AB,sN,vN,MN,CN,BN,QN,YN,XN,IE,FE,$E,AE,CI,SI,nD,lD,dD,fD,gD,_L,wL,CL,VL,GL,uM,hM,bM,SM,SE,PE,NE,bD,CD,_D,FI,KL,nP,xI,pI,hI,cI,eI,rI,aI,nI,sI,uI,bI,gI,vI,yI,GI,$I,qI,KI,OI,rD,iD,jP,WP,$P,ZP,KP,QP,XP,iB,rB,aB,nB,eB,lI,FL,fN,GN,JL,tM,rM,sM,cM,JI,oI,fP];return window?.__experimentalEnableBlockExperiments&&(e.push(BL),e.push(jL)),window?.__experimentalEnableFormBlocks&&(e.push(OB),e.push(UB),e.push(WB),e.push($B)),window?.__experimentalNavigationOverlays&&e.push(ME),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&e.push(BP),e.filter(Boolean)},Nce=()=>Bce().filter(({metadata:e})=>!TM(e)),Bke=(e=Nce())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=Z((0,Sce.select)(rl.store)).getBootstrappedBlockType(t);(0,rl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},edit:function({attributes:n}){let i=(0,Cce.useDisabled)(),l=(0,Tce.useBlockProps)({ref:i}),{content:s,status:c,error:u}=(0,Pce.useServerSideRender)({block:t,attributes:n});return c==="loading"?(0,h8.jsx)("div",{...l,children:(0,I2.__)("Loading\u2026")}):c==="error"?(0,h8.jsx)("div",{...l,children:(0,I2.sprintf)((0,I2.__)("Error loading block: %s"),u)}):(0,h8.jsx)(on,{wrapperProps:l,html:s})},save:()=>null})}),(0,rl.setDefaultBlockName)(g3),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===u1)&&(0,rl.setFreeformContentHandlerName)(u1),(0,rl.setUnregisteredTypeHandlerName)(Q1),(0,rl.setGroupingBlockName)(Z5)},Nke=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];Bce().filter(({metadata:r})=>TM(r)).filter(({metadata:{__experimental:r}})=>r===!0||t.includes(r)).forEach(({init:r})=>r())};return $ce(Eke);})();
/*! Bundled license information:
fast-average-color/dist/index.esm.js:
(*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
*/
//# sourceMappingURL=index.min.js.map