HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: /wordpress/core/beta/wp-includes/js/dist/block-library.min.js
/*! This file is auto-generated */
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var gve=Object.create;var Y2=Object.defineProperty;var vve=Object.getOwnPropertyDescriptor;var bve=Object.getOwnPropertyNames;var yve=Object.getPrototypeOf,_ve=Object.prototype.hasOwnProperty;var xve=(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 Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),K=(e,t)=>{for(var r in t)Y2(e,r,{get:t[r],enumerable:!0})},cF=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of bve(t))!_ve.call(e,n)&&n!==r&&Y2(e,n,{get:()=>t[n],enumerable:!(o=vve(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?gve(yve(e)):{},cF(t||!e||!e.__esModule?Y2(r,"default",{value:e,enumerable:!0}):r,e)),kve=e=>cF(Y2({},"__esModule",{value:!0}),e);var $=Le((jNe,uF)=>{uF.exports=window.wp.blocks});var ge=Le((UNe,pF)=>{pF.exports=window.wp.compose});var F=Le((GNe,mF)=>{mF.exports=window.wp.data});var B=Le((WNe,dF)=>{dF.exports=window.wp.blockEditor});var ap=Le(($Ne,fF)=>{fF.exports=window.wp.serverSideRender});var I=Le((qNe,hF)=>{hF.exports=window.wp.i18n});var l9=Le(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Doctype=cr.CDATA=cr.Tag=cr.Style=cr.Script=cr.Comment=cr.Directive=cr.Text=cr.Root=cr.isTag=cr.ElementType=void 0;var di;(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"})(di=cr.ElementType||(cr.ElementType={}));function Cve(e){return e.type===di.Tag||e.type===di.Script||e.type===di.Style}cr.isTag=Cve;cr.Root=di.Root;cr.Text=di.Text;cr.Directive=di.Directive;cr.Comment=di.Comment;cr.Script=di.Script;cr.Style=di.Style;cr.Tag=di.Tag;cr.CDATA=di.CDATA;cr.Doctype=di.Doctype});var p9=Le(qe=>{"use strict";var np=qe&&qe.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[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 o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),S1=qe&&qe.__assign||function(){return S1=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},S1.apply(this,arguments)};Object.defineProperty(qe,"__esModule",{value:!0});qe.cloneNode=qe.hasChildren=qe.isDocument=qe.isDirective=qe.isComment=qe.isText=qe.isCDATA=qe.isTag=qe.Element=qe.Document=qe.CDATA=qe.NodeWithChildren=qe.ProcessingInstruction=qe.Comment=qe.Text=qe.DataNode=qe.Node=void 0;var Mn=l9(),c9=(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),u9(this,t)},e})();qe.Node=c9;var Q2=(function(e){np(t,e);function t(r){var o=e.call(this)||this;return o.data=r,o}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(c9);qe.DataNode=Q2;var vF=(function(e){np(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Mn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Q2);qe.Text=vF;var bF=(function(e){np(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Mn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Q2);qe.Comment=bF;var yF=(function(e){np(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=Mn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Q2);qe.ProcessingInstruction=yF;var X2=(function(e){np(t,e);function t(r){var o=e.call(this)||this;return o.children=r,o}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})(c9);qe.NodeWithChildren=X2;var _F=(function(e){np(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Mn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(X2);qe.CDATA=_F;var xF=(function(e){np(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Mn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(X2);qe.Document=xF;var kF=(function(e){np(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?Mn.ElementType.Script:r==="style"?Mn.ElementType.Style:Mn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=o,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(o){var n,i;return{name:o,value:r.attribs[o],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(X2);qe.Element=kF;function wF(e){return(0,Mn.isTag)(e)}qe.isTag=wF;function CF(e){return e.type===Mn.ElementType.CDATA}qe.isCDATA=CF;function SF(e){return e.type===Mn.ElementType.Text}qe.isText=SF;function TF(e){return e.type===Mn.ElementType.Comment}qe.isComment=TF;function PF(e){return e.type===Mn.ElementType.Directive}qe.isDirective=PF;function BF(e){return e.type===Mn.ElementType.Root}qe.isDocument=BF;function Sve(e){return Object.prototype.hasOwnProperty.call(e,"children")}qe.hasChildren=Sve;function u9(e,t){t===void 0&&(t=!1);var r;if(SF(e))r=new vF(e.data);else if(TF(e))r=new bF(e.data);else if(wF(e)){var o=t?s9(e.children):[],n=new kF(e.name,S1({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=S1({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=S1({},e["x-attribsPrefix"])),r=n}else if(CF(e)){var o=t?s9(e.children):[],i=new _F(o);o.forEach(function(u){return u.parent=i}),r=i}else if(BF(e)){var o=t?s9(e.children):[],l=new xF(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(PF(e)){var s=new yF(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}qe.cloneNode=u9;function s9(e){for(var t=e.map(function(o){return u9(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var d9=Le(Gs=>{"use strict";var Tve=Gs&&Gs.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=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,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),Pve=Gs&&Gs.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Tve(t,e,r)};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.DomHandler=void 0;var m9=l9(),ip=p9();Pve(p9(),Gs);var EF={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},NF=(function(){function e(t,r,o){this.dom=[],this.root=new ip.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=EF),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??EF,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new ip.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 o=this.options.xmlMode?m9.ElementType.Tag:void 0,n=new ip.Element(t,r,void 0,o);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===m9.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new ip.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===m9.ElementType.Comment){this.lastNode.data+=t;return}var r=new ip.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new ip.Text(""),r=new ip.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 o=new ip.ProcessingInstruction(t,r);this.addNode(o)},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],o=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),o&&(t.prev=o,o.next=t),t.parent=r,this.lastNode=null},e})();Gs.DomHandler=NF;Gs.default=NF});var IF=Le(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Zo.CARRIAGE_RETURN_PLACEHOLDER=Zo.CARRIAGE_RETURN_REGEX=Zo.CARRIAGE_RETURN=Zo.CASE_SENSITIVE_TAG_NAMES_MAP=Zo.CASE_SENSITIVE_TAG_NAMES=void 0;Zo.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"];Zo.CASE_SENSITIVE_TAG_NAMES_MAP=Zo.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Zo.CARRIAGE_RETURN="\r";Zo.CARRIAGE_RETURN_REGEX=new RegExp(Zo.CARRIAGE_RETURN,"g");Zo.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Zo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Zo.CARRIAGE_RETURN_PLACEHOLDER,"g")});var f9=Le(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.formatAttributes=DF;ih.escapeSpecialCharacters=Nve;ih.revertEscapedCharacters=LF;ih.formatDOM=RF;var J2=d9(),T1=IF();function Bve(e){return T1.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function DF(e){for(var t={},r=0,o=e.length;r<o;r++){var n=e[r];t[n.name]=n.value}return t}function Eve(e){e=e.toLowerCase();var t=Bve(e);return t||e}function Nve(e){return e.replace(T1.CARRIAGE_RETURN_REGEX,T1.CARRIAGE_RETURN_PLACEHOLDER)}function LF(e){return e.replace(T1.CARRIAGE_RETURN_PLACEHOLDER_REGEX,T1.CARRIAGE_RETURN)}function RF(e,t,r){t===void 0&&(t=null);for(var o=[],n,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=Eve(s.nodeName);n=new J2.Element(c,DF(s.attributes)),n.children=RF(c==="template"?s.content.childNodes:s.childNodes,n);break}case 3:n=new J2.Text(LF(s.nodeValue));break;case 8:n=new J2.Comment(s.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=n),n.parent=t,n.prev=u,n.next=null,o.push(n)}return r&&(n=new J2.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),n.next=o[0]||null,n.parent=t,o.unshift(n),o[1]&&(o[1].prev=o[0])),o}});var jF=Le(v9=>{"use strict";Object.defineProperty(v9,"__esModule",{value:!0});v9.default=Lve;var Ive=f9(),MF="html",AF="head",e_="body",Dve=/<([a-zA-Z]+[0-9]?)/,zF=/<head[^]*>/i,VF=/<body[^]*>/i,r_=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},h9=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},OF=typeof window=="object"&&window.DOMParser;typeof OF=="function"&&(FF=new OF,HF="text/html",h9=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),FF.parseFromString(e,HF)},r_=h9);var FF,HF;typeof document=="object"&&document.implementation&&(P1=document.implementation.createHTMLDocument(),r_=function(e,t){if(t){var r=P1.documentElement.querySelector(t);return r&&(r.innerHTML=e),P1}return P1.documentElement.innerHTML=e,P1});var P1,t_=typeof document=="object"&&document.createElement("template"),g9;t_&&t_.content&&(g9=function(e){return t_.innerHTML=e,t_.content.childNodes});function Lve(e){var t,r;e=(0,Ive.escapeSpecialCharacters)(e);var o=e.match(Dve),n=o&&o[1]?o[1].toLowerCase():"";switch(n){case MF:{var i=h9(e);if(!zF.test(e)){var l=i.querySelector(AF);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!VF.test(e)){var l=i.querySelector(e_);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(MF)}case AF:case e_:{var s=r_(e).querySelectorAll(n);return VF.test(e)&&zF.test(e)?s[0].parentNode.childNodes:s}default:{if(g9)return g9(e);var l=r_(e,e_).querySelector(e_);return l.childNodes}}}});var UF=Le(B1=>{"use strict";var Rve=B1&&B1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(B1,"__esModule",{value:!0});B1.default=Vve;var Mve=Rve(jF()),Ave=f9(),zve=/<(![a-zA-Z\s]+)>/;function Vve(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(zve),r=t?t[1]:void 0;return(0,Ave.formatDOM)((0,Mve.default)(e),null,r)}});var GF=Le(o_=>{var Ove=0;o_.SAME=Ove;var Fve=1;o_.CAMELCASE=Fve;o_.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 $F=Le(Gl=>{"use strict";function Hve(e){return Ko.hasOwnProperty(e)?Ko[e]:null}function tn(e,t,r,o,n,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ko={},jve=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];jve.forEach(e=>{Ko[e]=new tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Ko[e]=new tn(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Ko[e]=new tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Ko[e]=new tn(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=>{Ko[e]=new tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Ko[e]=new tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Ko[e]=new tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Ko[e]=new tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Ko[e]=new tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var b9=/[\-\:]([a-z])/g,y9=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(b9,y9);Ko[t]=new tn(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(b9,y9);Ko[t]=new tn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(b9,y9);Ko[t]=new tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Ko[e]=new tn(e,1,!1,e.toLowerCase(),null,!1,!1)});var Uve="xlinkHref";Ko[Uve]=new tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Ko[e]=new tn(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:Gve,SAME:Wve,possibleStandardNames:WF}=GF(),$ve=":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",qve=$ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Zve=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+qve+"]*$")),Kve=Object.keys(WF).reduce((e,t)=>{let r=WF[t];return r===Wve?e[t]=t:r===Gve?e[t.toLowerCase()]=t:e[t]=r,e},{});Gl.BOOLEAN=3;Gl.BOOLEANISH_STRING=2;Gl.NUMERIC=5;Gl.OVERLOADED_BOOLEAN=4;Gl.POSITIVE_NUMERIC=6;Gl.RESERVED=0;Gl.STRING=1;Gl.getPropertyInfo=Hve;Gl.isCustomAttribute=Zve;Gl.possibleStandardNames=Kve});var ut=Le((aIe,qF)=>{qF.exports=window.React});var JF=Le((nIe,XF)=>{"use strict";var ZF=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Yve=/\n/g,Qve=/^\s*/,Xve=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Jve=/^:\s*/,ebe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tbe=/^[;\s]*/,rbe=/^\s+|\s+$/g,obe=`
`,KF="/",YF="*",Om="",abe="comment",nbe="declaration";function ibe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(h){var g=h.match(Yve);g&&(r+=g.length);var v=h.lastIndexOf(obe);o=~v?h.length-v:o+h.length}function i(){var h={line:r,column:o};return function(g){return g.position=new l(h),u(),g}}function l(h){this.start=h,this.end={line:r,column:o},this.source=t.source}l.prototype.content=e;function s(h){var g=new Error(t.source+":"+r+":"+o+": "+h);if(g.reason=h,g.filename=t.source,g.line=r,g.column=o,g.source=e,!t.silent)throw g}function c(h){var g=h.exec(e);if(g){var v=g[0];return n(v),e=e.slice(v.length),g}}function u(){c(Qve)}function p(h){var g;for(h=h||[];g=m();)g!==!1&&h.push(g);return h}function m(){var h=i();if(!(KF!=e.charAt(0)||YF!=e.charAt(1))){for(var g=2;Om!=e.charAt(g)&&(YF!=e.charAt(g)||KF!=e.charAt(g+1));)++g;if(g+=2,Om===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return o+=2,n(v),e=e.slice(g),o+=2,h({type:abe,comment:v})}}function d(){var h=i(),g=c(Xve);if(g){if(m(),!c(Jve))return s("property missing ':'");var v=c(ebe),b=h({type:nbe,property:QF(g[0].replace(ZF,Om)),value:v?QF(v[0].replace(ZF,Om)):Om});return c(tbe),b}}function f(){var h=[];p(h);for(var g;g=d();)g!==!1&&(h.push(g),p(h));return h}return u(),f()}function QF(e){return e?e.replace(rbe,Om):Om}XF.exports=ibe});var eH=Le(E1=>{"use strict";var lbe=E1&&E1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E1,"__esModule",{value:!0});E1.default=cbe;var sbe=lbe(JF());function cbe(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,sbe.default)(e),n=typeof t=="function";return o.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 rH=Le(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.camelCase=void 0;var ube=/^--[a-zA-Z0-9_-]+$/,pbe=/-([a-z])/g,mbe=/^[^-]+$/,dbe=/^-(webkit|moz|ms|o|khtml)-/,fbe=/^-(ms)-/,hbe=function(e){return!e||mbe.test(e)||ube.test(e)},gbe=function(e,t){return t.toUpperCase()},tH=function(e,t){return"".concat(t,"-")},vbe=function(e,t){return t===void 0&&(t={}),hbe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(fbe,tH):e=e.replace(dbe,tH),e.replace(pbe,gbe))};a_.camelCase=vbe});var aH=Le((x9,oH)=>{"use strict";var bbe=x9&&x9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ybe=bbe(eH()),_be=rH();function _9(e,t){var r={};return!e||typeof e!="string"||(0,ybe.default)(e,function(o,n){o&&n&&(r[(0,_be.camelCase)(o,t)]=n)}),r}_9.default=_9;oH.exports=_9});var k9=Le(rn=>{"use strict";var xbe=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rn,"__esModule",{value:!0});rn.returnFirstArg=rn.canTextBeChildOfNode=rn.ELEMENTS_WITH_NO_TEXT_CHILDREN=rn.PRESERVE_CUSTOM_ATTRIBUTES=void 0;rn.isCustomComponent=Sbe;rn.setStyleProp=Pbe;var kbe=ut(),wbe=xbe(aH()),Cbe=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Sbe(e,t){return e.includes("-")?!Cbe.has(e):!!(t&&typeof t.is=="string")}var Tbe={reactCompat:!0};function Pbe(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,wbe.default)(e,Tbe)}catch{t.style={}}}}rn.PRESERVE_CUSTOM_ATTRIBUTES=Number(kbe.version.split(".")[0])>=16;rn.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Bbe=function(e){return!rn.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};rn.canTextBeChildOfNode=Bbe;var Ebe=function(e){return e};rn.returnFirstArg=Ebe});var C9=Le(w9=>{"use strict";Object.defineProperty(w9,"__esModule",{value:!0});w9.default=Lbe;var N1=$F(),nH=k9(),Nbe=["checked","value"],Ibe=["input","select","textarea"],Dbe={reset:!0,submit:!0};function Lbe(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&Dbe[e.type]);for(var n in e){var i=e[n];if((0,N1.isCustomAttribute)(n)){r[n]=i;continue}var l=n.toLowerCase(),s=iH(l);if(s){var c=(0,N1.getPropertyInfo)(s);switch(Nbe.includes(s)&&Ibe.includes(t)&&!o&&(s=iH("default"+l)),r[s]=i,c&&c.type){case N1.BOOLEAN:r[s]=!0;break;case N1.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}nH.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,nH.setStyleProp)(e.style,r),r}function iH(e){return N1.possibleStandardNames[e]}});var sH=Le(D1=>{"use strict";var Rbe=D1&&D1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(D1,"__esModule",{value:!0});D1.default=lH;var S9=ut(),Mbe=Rbe(C9()),I1=k9(),Abe={cloneElement:S9.cloneElement,createElement:S9.createElement,isValidElement:S9.isValidElement};function lH(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",n=t.transform||I1.returnFirstArg,i=t.library||Abe,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,p=0;p<u;p++){var m=e[p];if(o){var d=t.replace(m,p);if(c(d)){u>1&&(d=l(d,{key:d.key||p})),r.push(n(d,m,p));continue}}if(m.type==="text"){var f=!m.data.trim().length;if(f&&m.parent&&!(0,I1.canTextBeChildOfNode)(m.parent)||t.trim&&f)continue;r.push(n(m.data,m,p));continue}var h=m,g={};zbe(h)?((0,I1.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,Mbe.default)(h.attribs,h.name));var v=void 0;switch(m.type){case"script":case"style":m.children[0]&&(g.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":m.name==="textarea"&&m.children[0]?g.defaultValue=m.children[0].data:m.children&&m.children.length&&(v=lH(m.children,t));break;default:continue}u>1&&(g.key=p),r.push(n(s(m.name,g,v),m,p))}return r.length===1?r[0]:r}function zbe(e){return I1.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,I1.isCustomComponent)(e.name,e.attribs)}});var P9=Le(yo=>{"use strict";var T9=yo&&yo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yo,"__esModule",{value:!0});yo.htmlToDOM=yo.domToReact=yo.attributesToProps=yo.Text=yo.ProcessingInstruction=yo.Element=yo.Comment=void 0;yo.default=Fbe;var cH=T9(UF());yo.htmlToDOM=cH.default;var Vbe=T9(C9());yo.attributesToProps=Vbe.default;var uH=T9(sH());yo.domToReact=uH.default;var n_=d9();Object.defineProperty(yo,"Comment",{enumerable:!0,get:function(){return n_.Comment}});Object.defineProperty(yo,"Element",{enumerable:!0,get:function(){return n_.Element}});Object.defineProperty(yo,"ProcessingInstruction",{enumerable:!0,get:function(){return n_.ProcessingInstruction}});Object.defineProperty(yo,"Text",{enumerable:!0,get:function(){return n_.Text}});var Obe={lowerCaseAttributeNames:!1};function Fbe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,uH.default)((0,cH.default)(e,t?.htmlparser2||Obe),t):[]}});var Ca=Le((dIe,mH)=>{mH.exports=window.wp.dom});var y=Le((fIe,dH)=>{dH.exports=window.ReactJSXRuntime});var H=Le((bIe,gH)=>{gH.exports=window.wp.element});var A=Le((_Ie,vH)=>{vH.exports=window.wp.primitives});var O=Le((yze,bH)=>{bH.exports=window.wp.components});var Mr=Le((_ze,yH)=>{yH.exports=window.wp.blob});var oe=Le((xze,_H)=>{_H.exports=window.wp.coreData});var ur=Le((yVe,tj)=>{tj.exports=window.wp.url});var Xo=Le((kVe,ij)=>{ij.exports=window.wp.htmlEntities});var Sr=Le((RVe,_j)=>{_j.exports=window.wp.notices});var dI=Le((VVe,xj)=>{xj.exports=window.wp.privateApis});var Ks=Le((POe,Xj)=>{Xj.exports=window.wp.keycodes});var DU=Le((GFe,IU)=>{IU.exports=window.ReactDOM});var OU=Le(VU=>{"use strict";var xh=ut();function j2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U2e=typeof Object.is=="function"?Object.is:j2e,G2e=xh.useState,W2e=xh.useEffect,$2e=xh.useLayoutEffect,q2e=xh.useDebugValue;function Z2e(e,t){var r=t(),o=G2e({inst:{value:r,getSnapshot:t}}),n=o[0].inst,i=o[1];return $2e(function(){n.value=r,n.getSnapshot=t,UI(n)&&i({inst:n})},[e,r,t]),W2e(function(){return UI(n)&&i({inst:n}),e(function(){UI(n)&&i({inst:n})})},[e]),q2e(r),r}function UI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!U2e(e,r)}catch{return!0}}function K2e(e,t){return t()}var Y2e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K2e:Z2e;VU.useSyncExternalStore=xh.useSyncExternalStore!==void 0?xh.useSyncExternalStore:Y2e});var HU=Le((sHe,FU)=>{"use strict";FU.exports=OU()});var Bh=Le((pUe,dG)=>{dG.exports=window.wp.a11y});var vd=Le((dGe,GG)=>{GG.exports=window.wp.deprecated});var es=Le((VGe,rW)=>{rW.exports=window.wp.richText});var Bw=Le((Nqe,K$)=>{K$.exports=window.wp.date});var hb=Le((sZe,uq)=>{uq.exports=window.wp.apiFetch});var vu=Le((HKe,qZ)=>{qZ.exports=window.wp.hooks});var Pb=Le((uXe,B3)=>{var SY={\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"},TY=Object.keys(SY).join("|"),Awe=new RegExp(TY,"g"),zwe=new RegExp(TY,"");function Vwe(e){return SY[e]}var PY=function(e){return e.replace(Awe,Vwe)},Owe=function(e){return!!e.match(zwe)};B3.exports=PY;B3.exports.has=Owe;B3.exports.remove=PY});var xQ=Le((mJe,_Q)=>{"use strict";_Q.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 o,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;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(o=t.length,o!=r.length)return!1;for(n=o;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),o=i.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=o;n--!==0;){var l=i[n];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var mJ=Le((lrt,pJ)=>{pJ.exports=window.wp.uploadMedia});var xM=Le((glt,woe)=>{woe.exports=window.wp.escapeHtml});var Wse=Le((lht,Gse)=>{Gse.exports=window.wp.wordcount});var Jpe=Le((evt,Xpe)=>{Xpe.exports=window.wp.patterns});var $me=Le((ibt,Wme)=>{Wme.exports=window.wp.autop});var Zme=Le((lbt,qme)=>{qme.exports=window.wp.shortcode});var Y1e=Le((S3t,K1e)=>{K1e.exports=window.wp.keyboardShortcuts});var ONe={};K(ONe,{__experimentalGetCoreBlocks:()=>ave,__experimentalRegisterExperimentalCoreBlocks:()=>VNe,privateApis:()=>JO,registerCoreBlocks:()=>zNe});var jl=a($(),1),eve=a(ge(),1),tve=a(F(),1),rve=a(B(),1),ove=a(ap(),1),W2=a(I(),1);function gF(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=gF(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function wve(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=gF(e))&&(o&&(o+=" "),o+=t);return o}var C=wve;var B9=a(P9(),1),Wl=a(P9(),1),pH=B9.default.default||B9.default;var fH=a(Ca(),1),hH=a(y(),1),Hbe=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let p=(0,Wl.attributesToProps)(s||{}),m=i;if(!c){let d={...p,...e,className:C(p.className,e.className),style:{...p.style||{},...e.style||{}}};return(0,hH.jsx)(m,{...d,children:(0,Wl.domToReact)(u,r)})}}}},o=(0,fH.safeHTML)(t);return pH(o,r)},_o=Hbe;var aI={};K(aI,{init:()=>Wbe,metadata:()=>Qk,name:()=>PH,settings:()=>BH});var oI=a(I(),1);var i_=a(H(),1),on=(0,i_.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,i_.cloneElement)(e,{width:t,height:t,...r,ref:o}));var L1=a(A(),1),R1=a(y(),1),E9=(0,R1.jsxs)(L1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,R1.jsx)(L1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,R1.jsx)(L1.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var Fm=a(A(),1),Hm=a(y(),1),N9=(0,Hm.jsxs)(Fm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Hm.jsx)(Fm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,Hm.jsx)(Fm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,Hm.jsx)(Fm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,Hm.jsx)(Fm.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var jm=a(A(),1),Um=a(y(),1),I9=(0,Um.jsxs)(jm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Um.jsx)(jm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,Um.jsx)(jm.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,Um.jsx)(jm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,Um.jsx)(jm.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var l_=a(A(),1),D9=a(y(),1),Gm=(0,D9.jsx)(l_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D9.jsx)(l_.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 s_=a(A(),1),L9=a(y(),1),R9=(0,L9.jsx)(s_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,L9.jsx)(s_.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var c_=a(A(),1),M9=a(y(),1),A9=(0,M9.jsx)(c_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,M9.jsx)(c_.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var u_=a(A(),1),z9=a(y(),1),V9=(0,z9.jsx)(u_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z9.jsx)(u_.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var p_=a(A(),1),O9=a(y(),1),F9=(0,O9.jsx)(p_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O9.jsx)(p_.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var m_=a(A(),1),H9=a(y(),1),j9=(0,H9.jsx)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,H9.jsx)(m_.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 d_=a(A(),1),U9=a(y(),1),tu=(0,U9.jsx)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U9.jsx)(d_.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 f_=a(A(),1),G9=a(y(),1),W9=(0,G9.jsx)(f_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,G9.jsx)(f_.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 h_=a(A(),1),$9=a(y(),1),M1=(0,$9.jsx)(h_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$9.jsx)(h_.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 g_=a(A(),1),q9=a(y(),1),Z9=(0,q9.jsx)(g_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,q9.jsx)(g_.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var v_=a(A(),1),K9=a(y(),1),Y9=(0,K9.jsx)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K9.jsx)(v_.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 b_=a(A(),1),Q9=a(y(),1),X9=(0,Q9.jsx)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Q9.jsx)(b_.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 y_=a(A(),1),J9=a(y(),1),A1=(0,J9.jsx)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J9.jsx)(y_.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 __=a(A(),1),eP=a(y(),1),tP=(0,eP.jsx)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eP.jsx)(__.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 x_=a(A(),1),rP=a(y(),1),lp=(0,rP.jsx)(x_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rP.jsx)(x_.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})});var k_=a(A(),1),oP=a(y(),1),z1=(0,oP.jsx)(k_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oP.jsx)(k_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var w_=a(A(),1),aP=a(y(),1),nP=(0,aP.jsx)(w_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aP.jsx)(w_.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var C_=a(A(),1),iP=a(y(),1),S_=(0,iP.jsx)(C_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iP.jsx)(C_.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var T_=a(A(),1),lP=a(y(),1),sP=(0,lP.jsx)(T_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lP.jsx)(T_.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 P_=a(A(),1),cP=a(y(),1),lh=(0,cP.jsx)(P_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cP.jsx)(P_.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var B_=a(A(),1),uP=a(y(),1),pP=(0,uP.jsx)(B_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uP.jsx)(B_.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var E_=a(A(),1),mP=a(y(),1),V1=(0,mP.jsx)(E_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mP.jsx)(E_.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 N_=a(A(),1),dP=a(y(),1),Wm=(0,dP.jsx)(N_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dP.jsx)(N_.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 I_=a(A(),1),fP=a(y(),1),O1=(0,fP.jsx)(I_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fP.jsx)(I_.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 D_=a(A(),1),hP=a(y(),1),gP=(0,hP.jsx)(D_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hP.jsx)(D_.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 L_=a(A(),1),vP=a(y(),1),bP=(0,vP.jsx)(L_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vP.jsx)(L_.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 R_=a(A(),1),yP=a(y(),1),F1=(0,yP.jsx)(R_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yP.jsx)(R_.Path,{fillRule:"evenodd",clipRule:"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"})});var $m=a(A(),1),sh=a(y(),1),_P=(0,sh.jsxs)($m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,sh.jsx)($m.Path,{fillRule:"evenodd",clipRule:"evenodd",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"}),(0,sh.jsx)($m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,sh.jsx)($m.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var M_=a(A(),1),xP=a(y(),1),kP=(0,xP.jsx)(M_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xP.jsx)(M_.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 A_=a(A(),1),wP=a(y(),1),CP=(0,wP.jsx)(A_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wP.jsx)(A_.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 z_=a(A(),1),SP=a(y(),1),TP=(0,SP.jsx)(z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SP.jsx)(z_.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 V_=a(A(),1),PP=a(y(),1),H1=(0,PP.jsx)(V_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PP.jsx)(V_.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 O_=a(A(),1),BP=a(y(),1),j1=(0,BP.jsx)(O_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BP.jsx)(O_.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"})});var F_=a(A(),1),EP=a(y(),1),qm=(0,EP.jsx)(F_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EP.jsx)(F_.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 H_=a(A(),1),NP=a(y(),1),Zm=(0,NP.jsx)(H_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NP.jsx)(H_.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 j_=a(A(),1),IP=a(y(),1),U1=(0,IP.jsx)(j_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IP.jsx)(j_.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 U_=a(A(),1),DP=a(y(),1),LP=(0,DP.jsx)(U_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DP.jsx)(U_.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 G1=a(A(),1),W1=a(y(),1),RP=(0,W1.jsxs)(G1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,W1.jsx)(G1.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,W1.jsx)(G1.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var G_=a(A(),1),MP=a(y(),1),$1=(0,MP.jsx)(G_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MP.jsx)(G_.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});var W_=a(A(),1),AP=a(y(),1),q1=(0,AP.jsx)(W_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AP.jsx)(W_.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 $_=a(A(),1),zP=a(y(),1),VP=(0,zP.jsx)($_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zP.jsx)($_.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})});var q_=a(A(),1),OP=a(y(),1),FP=(0,OP.jsx)(q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OP.jsx)(q_.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})});var Z_=a(A(),1),HP=a(y(),1),jP=(0,HP.jsx)(Z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HP.jsx)(Z_.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 K_=a(A(),1),UP=a(y(),1),GP=(0,UP.jsx)(K_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UP.jsx)(K_.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 Y_=a(A(),1),WP=a(y(),1),$P=(0,WP.jsx)(Y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WP.jsx)(Y_.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 Q_=a(A(),1),qP=a(y(),1),Z1=(0,qP.jsx)(Q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qP.jsx)(Q_.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 X_=a(A(),1),ZP=a(y(),1),K1=(0,ZP.jsx)(X_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZP.jsx)(X_.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 J_=a(A(),1),KP=a(y(),1),Y1=(0,KP.jsx)(J_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KP.jsx)(J_.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 ex=a(A(),1),YP=a(y(),1),ll=(0,YP.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YP.jsx)(ex.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 tx=a(A(),1),QP=a(y(),1),XP=(0,QP.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QP.jsx)(tx.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 rx=a(A(),1),JP=a(y(),1),Q1=(0,JP.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JP.jsx)(rx.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 ox=a(A(),1),eB=a(y(),1),X1=(0,eB.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eB.jsx)(ox.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 ax=a(A(),1),tB=a(y(),1),Km=(0,tB.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tB.jsx)(ax.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 nx=a(A(),1),rB=a(y(),1),J1=(0,rB.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rB.jsx)(nx.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})});var ix=a(A(),1),oB=a(y(),1),$l=(0,oB.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oB.jsx)(ix.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})});var lx=a(A(),1),aB=a(y(),1),Ym=(0,aB.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aB.jsx)(lx.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 sx=a(A(),1),nB=a(y(),1),iB=(0,nB.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nB.jsx)(sx.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 cx=a(A(),1),lB=a(y(),1),sB=(0,lB.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lB.jsx)(cx.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var ux=a(A(),1),cB=a(y(),1),uB=(0,cB.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cB.jsx)(ux.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 px=a(A(),1),pB=a(y(),1),mB=(0,pB.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pB.jsx)(px.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 mx=a(A(),1),dB=a(y(),1),fB=(0,dB.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dB.jsx)(mx.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var dx=a(A(),1),hB=a(y(),1),gB=(0,hB.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hB.jsx)(dx.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 fx=a(A(),1),vB=a(y(),1),bB=(0,vB.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vB.jsx)(fx.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 hx=a(A(),1),yB=a(y(),1),_B=(0,yB.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yB.jsx)(hx.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var gx=a(A(),1),xB=a(y(),1),kB=(0,xB.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xB.jsx)(gx.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var vx=a(A(),1),wB=a(y(),1),CB=(0,wB.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wB.jsx)(vx.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 bx=a(A(),1),SB=a(y(),1),sp=(0,SB.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SB.jsx)(bx.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 yx=a(A(),1),TB=a(y(),1),PB=(0,TB.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TB.jsx)(yx.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 _x=a(A(),1),BB=a(y(),1),Qm=(0,BB.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BB.jsx)(_x.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 xx=a(A(),1),EB=a(y(),1),ev=(0,EB.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EB.jsx)(xx.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 kx=a(A(),1),NB=a(y(),1),fi=(0,NB.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NB.jsx)(kx.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 wx=a(A(),1),IB=a(y(),1),DB=(0,IB.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IB.jsx)(wx.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 Cx=a(A(),1),LB=a(y(),1),ql=(0,LB.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LB.jsx)(Cx.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 Sx=a(A(),1),RB=a(y(),1),MB=(0,RB.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RB.jsx)(Sx.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 Tx=a(A(),1),AB=a(y(),1),Xm=(0,AB.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AB.jsx)(Tx.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 Px=a(A(),1),zB=a(y(),1),VB=(0,zB.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zB.jsx)(Px.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 Bx=a(A(),1),OB=a(y(),1),FB=(0,OB.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OB.jsx)(Bx.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 Ex=a(A(),1),HB=a(y(),1),jB=(0,HB.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HB.jsx)(Ex.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var tv=a(A(),1),rv=a(y(),1),ov=(0,rv.jsxs)(tv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,rv.jsx)(tv.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,rv.jsx)(tv.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 Nx=a(A(),1),UB=a(y(),1),GB=(0,UB.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UB.jsx)(Nx.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var Ix=a(A(),1),WB=a(y(),1),av=(0,WB.jsx)(Ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WB.jsx)(Ix.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Dx=a(A(),1),$B=a(y(),1),qB=(0,$B.jsx)(Dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$B.jsx)(Dx.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var Lx=a(A(),1),ZB=a(y(),1),KB=(0,ZB.jsx)(Lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZB.jsx)(Lx.Path,{d:"M18.5 10a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1-1.5 1.5h-7a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5zM16 4a2 2 0 0 1 2 2v2h-1.5V6a.5.5 0 0 0-.5-.5H6a.5.5 0 0 0-.5.5v3H8v1.5H5.5V16a.5.5 0 0 0 .5.5h2V18H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"})});var Rx=a(A(),1),YB=a(y(),1),Jm=(0,YB.jsx)(Rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YB.jsx)(Rx.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 Mx=a(A(),1),QB=a(y(),1),XB=(0,QB.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QB.jsx)(Mx.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 Ax=a(A(),1),JB=a(y(),1),eE=(0,JB.jsx)(Ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JB.jsx)(Ax.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 zx=a(A(),1),tE=a(y(),1),rE=(0,tE.jsx)(zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tE.jsx)(zx.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 nv=a(A(),1),iv=a(y(),1),ru=(0,iv.jsxs)(nv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,iv.jsx)(nv.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,iv.jsx)(nv.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 ch=a(A(),1),uh=a(y(),1),oE=(0,uh.jsxs)(ch.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,uh.jsx)(ch.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,uh.jsx)(ch.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,uh.jsx)(ch.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var Vx=a(A(),1),aE=a(y(),1),nE=(0,aE.jsx)(Vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aE.jsx)(Vx.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 Ox=a(A(),1),iE=a(y(),1),ed=(0,iE.jsx)(Ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iE.jsx)(Ox.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var Fx=a(A(),1),lE=a(y(),1),lv=(0,lE.jsx)(Fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lE.jsx)(Fx.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 Hx=a(A(),1),sE=a(y(),1),sv=(0,sE.jsx)(Hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sE.jsx)(Hx.Path,{d:"M16.1 5.7h-.3c-1 0-2.2 0-2.8.6-.3.4-.5.9-.5 1.6v7.3c0 .7-.2 1.7-.7 2.5C11.3 19 10 20 8.5 20 6.6 20 5 18.4 5 16.5S6.6 13 8.5 13c1 0 1.9.4 2.5 1V7.9c0-1.1.3-2 .9-2.6 1-1 2.6-1 3.8-1h.4zM20 15.75h-5v-1.5h5zM20 10.75h-5v-1.5h5z"})});var jx=a(A(),1),cE=a(y(),1),uE=(0,cE.jsx)(jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cE.jsx)(jx.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 Ux=a(A(),1),pE=a(y(),1),ph=(0,pE.jsx)(Ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pE.jsx)(Ux.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var Gx=a(A(),1),mE=a(y(),1),dE=(0,mE.jsx)(Gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mE.jsx)(Gx.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var Wx=a(A(),1),fE=a(y(),1),hE=(0,fE.jsx)(Wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fE.jsx)(Wx.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var $x=a(A(),1),gE=a(y(),1),vE=(0,gE.jsx)($x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gE.jsx)($x.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var qx=a(A(),1),bE=a(y(),1),td=(0,bE.jsx)(qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bE.jsx)(qx.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})});var Zx=a(A(),1),yE=a(y(),1),mh=(0,yE.jsx)(Zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yE.jsx)(Zx.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})});var Kx=a(A(),1),_E=a(y(),1),cv=(0,_E.jsx)(Kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_E.jsx)(Kx.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 Yx=a(A(),1),xE=a(y(),1),kE=(0,xE.jsx)(Yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xE.jsx)(Yx.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 Qx=a(A(),1),wE=a(y(),1),CE=(0,wE.jsx)(Qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wE.jsx)(Qx.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 Xx=a(A(),1),SE=a(y(),1),TE=(0,SE.jsx)(Xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SE.jsx)(Xx.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var uv=a(A(),1),pv=a(y(),1),mv=(0,pv.jsxs)(uv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,pv.jsx)(uv.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,pv.jsx)(uv.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 Jx=a(A(),1),PE=a(y(),1),BE=(0,PE.jsx)(Jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PE.jsx)(Jx.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 ek=a(A(),1),EE=a(y(),1),NE=(0,EE.jsx)(ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EE.jsx)(ek.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 tk=a(A(),1),IE=a(y(),1),dv=(0,IE.jsx)(tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IE.jsx)(tk.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 rk=a(A(),1),DE=a(y(),1),LE=(0,DE.jsx)(rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DE.jsx)(rk.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 ok=a(A(),1),RE=a(y(),1),ME=(0,RE.jsx)(ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RE.jsx)(ok.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 ak=a(A(),1),AE=a(y(),1),zE=(0,AE.jsx)(ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AE.jsx)(ak.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 nk=a(A(),1),VE=a(y(),1),OE=(0,VE.jsx)(nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VE.jsx)(nk.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var ik=a(A(),1),FE=a(y(),1),HE=(0,FE.jsx)(ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FE.jsx)(ik.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var lk=a(A(),1),jE=a(y(),1),UE=(0,jE.jsx)(lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jE.jsx)(lk.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 sk=a(A(),1),GE=a(y(),1),fv=(0,GE.jsx)(sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GE.jsx)(sk.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var ck=a(A(),1),WE=a(y(),1),hv=(0,WE.jsx)(ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WE.jsx)(ck.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 uk=a(A(),1),$E=a(y(),1),gv=(0,$E.jsx)(uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$E.jsx)(uk.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 pk=a(A(),1),qE=a(y(),1),vv=(0,qE.jsx)(pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qE.jsx)(pk.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var mk=a(A(),1),ZE=a(y(),1),KE=(0,ZE.jsx)(mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZE.jsx)(mk.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 dk=a(A(),1),YE=a(y(),1),QE=(0,YE.jsx)(dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YE.jsx)(dk.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 fk=a(A(),1),XE=a(y(),1),JE=(0,XE.jsx)(fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XE.jsx)(fk.Path,{d:"M7 11.5h10V13H7z"})});var hk=a(A(),1),eN=a(y(),1),tN=(0,eN.jsx)(hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eN.jsx)(hk.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var gk=a(A(),1),rN=a(y(),1),oN=(0,rN.jsx)(gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rN.jsx)(gk.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})});var vk=a(A(),1),aN=a(y(),1),nN=(0,aN.jsx)(vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aN.jsx)(vk.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 bk=a(A(),1),iN=a(y(),1),bv=(0,iN.jsx)(bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iN.jsx)(bk.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 yk=a(A(),1),lN=a(y(),1),yv=(0,lN.jsx)(yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lN.jsx)(yk.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 _k=a(A(),1),sN=a(y(),1),cN=(0,sN.jsx)(_k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sN.jsx)(_k.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var xk=a(A(),1),uN=a(y(),1),_v=(0,uN.jsx)(xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uN.jsx)(xk.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 kk=a(A(),1),pN=a(y(),1),xv=(0,pN.jsx)(kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pN.jsx)(kk.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 wk=a(A(),1),mN=a(y(),1),dN=(0,mN.jsx)(wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mN.jsx)(wk.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 Ck=a(A(),1),fN=a(y(),1),hN=(0,fN.jsx)(Ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fN.jsx)(Ck.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 Sk=a(A(),1),gN=a(y(),1),vN=(0,gN.jsx)(Sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gN.jsx)(Sk.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var Tk=a(A(),1),bN=a(y(),1),yN=(0,bN.jsx)(Tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bN.jsx)(Tk.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 Pk=a(A(),1),_N=a(y(),1),kv=(0,_N.jsx)(Pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_N.jsx)(Pk.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 Bk=a(A(),1),xN=a(y(),1),kN=(0,xN.jsx)(Bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xN.jsx)(Bk.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 Ek=a(A(),1),wN=a(y(),1),CN=(0,wN.jsx)(Ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wN.jsx)(Ek.Path,{d:"M18.2 9.5h-3.5c-1 0-1.8.8-1.8 1.8v2.5h1.5v-2.5c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5v-2.5c0-1-.8-1.8-1.8-1.8Zm-9 0H5.7c-1 0-1.8.8-1.8 1.8v2.5h7v-2.5c0-1-.8-1.8-1.8-1.8Z"})});var Nk=a(A(),1),SN=a(y(),1),TN=(0,SN.jsx)(Nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SN.jsx)(Nk.Path,{d:"M4 16.5h13V15H4v1.5ZM4 12v1.5h16V12H4Zm1.5-4.2c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5V7.8c0-1-.8-1.8-1.8-1.8H5.6c-1 0-1.8.8-1.8 1.8v2.5h1.5V7.8Z"})});var Ik=a(A(),1),PN=a(y(),1),BN=(0,PN.jsx)(Ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PN.jsx)(Ik.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 Dk=a(A(),1),EN=a(y(),1),NN=(0,EN.jsx)(Dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EN.jsx)(Dk.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 Lk=a(A(),1),IN=a(y(),1),DN=(0,IN.jsx)(Lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IN.jsx)(Lk.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 wv=a(A(),1),Cv=a(y(),1),Sv=(0,Cv.jsxs)(wv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Cv.jsx)(wv.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,Cv.jsx)(wv.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 Rk=a(A(),1),LN=a(y(),1),RN=(0,LN.jsx)(Rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LN.jsx)(Rk.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 Mk=a(A(),1),MN=a(y(),1),AN=(0,MN.jsx)(Mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MN.jsx)(Mk.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 Ak=a(A(),1),zN=a(y(),1),VN=(0,zN.jsx)(Ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zN.jsx)(Ak.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 zk=a(A(),1),ON=a(y(),1),FN=(0,ON.jsx)(zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ON.jsx)(zk.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 Vk=a(A(),1),HN=a(y(),1),jN=(0,HN.jsx)(Vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HN.jsx)(Vk.Path,{d:"M4 16.5h13V15H4v1.5Zm0-3h16V12H4v1.5ZM18.2 6h-3.5c-1 0-1.8.8-1.8 1.8v2.5h1.5V7.8c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5V7.8c0-1-.8-1.8-1.8-1.8ZM11 7.8c0-1-.8-1.8-1.8-1.8H5.7c-1 0-1.8.8-1.8 1.8v2.5h7V7.8Z"})});var Ok=a(A(),1),UN=a(y(),1),Tv=(0,UN.jsx)(Ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UN.jsx)(Ok.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 Pv=a(A(),1),Bv=a(y(),1),GN=(0,Bv.jsxs)(Pv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Bv.jsx)(Pv.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,Bv.jsx)(Pv.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 Fk=a(A(),1),WN=a(y(),1),$N=(0,WN.jsx)(Fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WN.jsx)(Fk.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 Ev=a(A(),1),Nv=a(y(),1),qN=(0,Nv.jsxs)(Ev.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Nv.jsx)(Ev.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,Nv.jsx)(Ev.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 Hk=a(A(),1),ZN=a(y(),1),Iv=(0,ZN.jsx)(Hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZN.jsx)(Hk.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 jk=a(A(),1),KN=a(y(),1),Zl=(0,KN.jsx)(jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KN.jsx)(jk.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var Uk=a(A(),1),YN=a(y(),1),ou=(0,YN.jsx)(Uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YN.jsx)(Uk.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 Gk=a(A(),1),QN=a(y(),1),Dv=(0,QN.jsx)(Gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QN.jsx)(Gk.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 Wk=a(A(),1),XN=a(y(),1),au=(0,XN.jsx)(Wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XN.jsx)(Wk.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 $k=a(A(),1),JN=a(y(),1),eI=(0,JN.jsx)($k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JN.jsx)($k.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 Sa=a(B(),1),hi=a(I(),1),Ro=a(O(),1),dh=a(F(),1),Kk=a($(),1);var qk=a(F(),1),rd=a(H(),1),cp=a(Mr(),1),tI=a(B(),1),xH=a(oe(),1),kH=a(ge(),1);function Zk(e,t,r){return(0,qk.useSelect)(o=>o(xH.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function Ws(e={}){let t=(0,rd.useRef)(e),r=(0,rd.useRef)(!1),{getSettings:o}=(0,qk.useSelect)(tI.store);(0,rd.useLayoutEffect)(()=>{t.current=e}),(0,rd.useEffect)(()=>{if(r.current||!t.current.url||!(0,cp.isBlobURL)(t.current.url))return;let n=(0,cp.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([p])=>{(0,cp.isBlobURL)(p?.url)||((0,cp.revokeBlobURL)(i),s(p),r.current=!1)},onError:p=>{(0,cp.revokeBlobURL)(i),c(p),r.current=!1}}))},[o])}function Lv(){return(0,qk.useSelect)(t=>{let{getSettings:r}=t(tI.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function Z(){return(0,kH.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var Cr=a(y(),1),rI="core/accordion-item",jbe="core/accordion-heading",Ube={name:rI};function wH({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,dh.useRegistry)(),{getBlockOrder:u}=(0,dh.useSelect)(Sa.store),p=(0,Sa.useBlockProps)({role:"group"}),m=Z(),{updateBlockAttributes:d,insertBlock:f}=(0,dh.useDispatch)(Sa.store),g=(0,Sa.useBlockEditingMode)()==="contentOnly",v=(0,Sa.useInnerBlocksProps)(p,{template:[[rI]],defaultBlock:Ube,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Cr.jsxs)(Cr.Fragment,{children:[s&&!g&&(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(Sa.BlockControls,{children:(0,Cr.jsx)(Ro.ToolbarGroup,{children:(0,Cr.jsx)(Sa.HeadingLevelDropdown,{value:o,options:n,onChange:k=>{let x=u(i),w=[];x.forEach(S=>{let T=u(S);w.push(...T)}),c.batch(()=>{l({headingLevel:k}),d(w,{level:k})})}})})}),(0,Cr.jsx)(Sa.BlockControls,{group:"other",children:(0,Cr.jsx)(Ro.ToolbarButton,{onClick:()=>{let k=(0,Kk.createBlock)(rI,{},[(0,Kk.createBlock)(jbe,{level:o}),(0,Kk.createBlock)("core/accordion-panel",{})]);f(k,void 0,i)},children:(0,hi.__)("Add item")})})]}),(0,Cr.jsx)(Sa.InspectorControls,{children:(0,Cr.jsxs)(Ro.__experimentalToolsPanel,{label:(0,hi.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:m,children:[(0,Cr.jsx)(Ro.__experimentalToolsPanelItem,{label:(0,hi.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,Cr.jsx)(Ro.ToggleControl,{label:(0,hi.__)("Auto-close"),onChange:k=>{l({autoclose:k})},checked:e,help:(0,hi.__)("Automatically close accordions when a new one is opened.")})}),(0,Cr.jsx)(Ro.__experimentalToolsPanelItem,{label:(0,hi.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,Cr.jsx)(Ro.ToggleControl,{label:(0,hi.__)("Show icon"),onChange:k=>{l({showIcon:k,iconPosition:k?t:"right"})},checked:r,help:(0,hi.__)("Display a plus icon next to the accordion header.")})}),r&&(0,Cr.jsx)(Ro.__experimentalToolsPanelItem,{label:(0,hi.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,Cr.jsxs)(Ro.__experimentalToggleGroupControl,{isBlock:!0,label:(0,hi.__)("Icon Position"),value:t,onChange:k=>{l({iconPosition:k})},children:[(0,Cr.jsx)(Ro.__experimentalToggleGroupControlOption,{label:(0,hi.__)("Left"),value:"left"}),(0,Cr.jsx)(Ro.__experimentalToggleGroupControlOption,{label:(0,hi.__)("Right"),value:"right"})]})})]})},"setting"),(0,Cr.jsx)("div",{...v})]})}var Yk=a(B(),1),CH=a(y(),1);function SH(){let e=Yk.useBlockProps.save({role:"group"});return(0,CH.jsx)("div",{...Yk.useInnerBlocksProps.save(e)})}var Qk={$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,gradient:!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,listView:!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 TH=a($(),1);function R(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,TH.registerBlockType)({name:o,...t},r)}var{name:PH}=Qk,BH={icon:I9,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,oI.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,oI.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:wH,save:SH},Wbe=()=>R({name:PH,metadata:Qk,settings:BH});var nI={};K(nI,{init:()=>Zbe,metadata:()=>Jk,name:()=>LH,settings:()=>RH});var Rv=a(I(),1),up=a(B(),1),EH=a(F(),1),fh=a(O(),1);var $s=a(y(),1),$be=[["core/accordion-heading"],["core/accordion-panel"]];function NH({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:n}=e,i=Z(),{isSelected:l}=(0,EH.useSelect)(u=>o||n?{isSelected:!0}:{isSelected:u(up.store).hasSelectedInnerBlock(t,!0)},[t,o,n]),s=(0,up.useBlockProps)({className:C({"is-open":n||l})}),c=(0,up.useInnerBlocksProps)(s,{template:$be,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,$s.jsxs)($s.Fragment,{children:[(0,$s.jsx)(up.InspectorControls,{children:(0,$s.jsx)(fh.__experimentalToolsPanel,{label:(0,Rv.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,$s.jsx)(fh.__experimentalToolsPanelItem,{label:(0,Rv.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,$s.jsx)(fh.ToggleControl,{label:(0,Rv.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,Rv.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,$s.jsx)("div",{...c})]})}var Xk=a(B(),1);var IH=a(y(),1);function DH({attributes:e}){let{openByDefault:t}=e,r=Xk.useBlockProps.save({className:C({"is-open":t})}),o=Xk.useInnerBlocksProps.save(r);return(0,IH.jsx)("div",{...o})}var Jk={$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"],padding:!0,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{name:LH}=Jk,RH={icon:N9,edit:NH,save:DH},Zbe=()=>R({name:LH,metadata:Jk,settings:RH});var iI={};K(iI,{init:()=>Jbe,metadata:()=>e5,name:()=>HH,settings:()=>jH});var MH=a(I(),1),AH=a(H(),1),sl=a(B(),1),zH=a(F(),1),od=a(y(),1);function VH({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,zH.useDispatch)(sl.store);(0,AH.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,p]=(0,sl.useSettings)("typography.fluid","layout"),m=(0,sl.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:p?.wideSize}}),d=(0,sl.useBlockProps)({className:C({"has-icon":i,"has-icon-left":i&&n==="left","has-icon-right":i&&n==="right"})}),f=(0,sl.__experimentalGetSpacingClassesAndStyles)(e);return(0,od.jsx)(s,{...d,children:(0,od.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,od.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,od.jsx)(sl.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:h=>t({title:h}),placeholder:(0,MH.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:m.style.letterSpacing,textDecoration:m.style.textDecoration}}),i&&n==="right"&&(0,od.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var pp=a(B(),1),ad=a(y(),1);function OH({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),l=(0,pp.getTypographyClassesAndStyles)(e),s=pp.useBlockProps.save({className:C({"has-icon":n,"has-icon-left":n&&o==="left","has-icon-right":n&&o==="right"})}),c=(0,pp.__experimentalGetSpacingClassesAndStyles)(e);return(0,ad.jsx)(i,{...s,children:(0,ad.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,ad.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,ad.jsx)(pp.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,ad.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var e5={$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 an=a(B(),1),Yo=a(y(),1),Ybe={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:o,showIcon:n}=e,i="h"+(t||3),l=an.useBlockProps.save(),s=(0,an.__experimentalGetSpacingClassesAndStyles)(e);return(0,Yo.jsx)(i,{...l,children:(0,Yo.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&o==="left"&&(0,Yo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Yo.jsx)(an.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&o==="right"&&(0,Yo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Qbe={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:o,showIcon:n}=e,i="h"+(t||3),l=(0,an.getTypographyClassesAndStyles)(e),s=an.useBlockProps.save(),c=(0,an.__experimentalGetSpacingClassesAndStyles)(e);return(0,Yo.jsx)(i,{...s,children:(0,Yo.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,Yo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Yo.jsx)(an.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,Yo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Xbe={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:o,showIcon:n}=e,i="h"+(t||3),l=(0,an.getTypographyClassesAndStyles)(e),s=an.useBlockProps.save(),c=(0,an.__experimentalGetSpacingClassesAndStyles)(e);return(0,Yo.jsx)(i,{...s,children:(0,Yo.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,Yo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Yo.jsx)(an.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,Yo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},FH=[Xbe,Qbe,Ybe];var{name:HH}=e5,jH={icon:E9,edit:VH,save:OH,deprecated:FH},Jbe=()=>R({name:HH,metadata:e5,settings:jH});var lI={};K(lI,{init:()=>tye,metadata:()=>r5,name:()=>ZH,settings:()=>KH});var hh=a(B(),1),UH=a(F(),1),GH=a(y(),1);function WH({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:n,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,UH.useSelect)(p=>{if(o||l)return{hasSelection:!0};let{getBlockRootClientId:m,isBlockSelected:d,hasSelectedInnerBlock:f}=p(hh.store),h=m(r);return{hasSelection:d(h)||f(h,!0)}},[r,o,l]),c=(0,hh.useBlockProps)({hidden:!s,role:"region"}),u=(0,hh.useInnerBlocksProps)(c,{allowedBlocks:n,template:[["core/paragraph",{}]],templateLock:i});return(0,GH.jsx)("div",{...u})}var t5=a(B(),1),$H=a(y(),1);function qH(){let e=t5.useBlockProps.save({role:"region"}),t=t5.useInnerBlocksProps.save(e);return(0,$H.jsx)("div",{...t})}var r5={$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{name:ZH}=r5,KH={icon:j1,edit:WH,save:qH},tye=()=>R({name:ZH,metadata:r5,settings:KH});var sI={};K(sI,{init:()=>oye,metadata:()=>o5,name:()=>JH,settings:()=>ej});var o5={$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 nn=a(O(),1),Qo=a(I(),1),a5=a(B(),1),YH=a(ap(),1),QH=a(ge(),1);var ao=a(y(),1);function XH({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:n,displayAsDropdown:i,type:l}=e,s=Z(),{content:c,status:u,error:p}=(0,YH.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),m=(0,QH.useDisabled)(),d=(0,a5.useBlockProps)({ref:m});return(0,ao.jsxs)(ao.Fragment,{children:[(0,ao.jsx)(a5.InspectorControls,{children:(0,ao.jsxs)(nn.__experimentalToolsPanel,{label:(0,Qo.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,ao.jsx)(nn.__experimentalToolsPanelItem,{label:(0,Qo.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,ao.jsx)(nn.ToggleControl,{label:(0,Qo.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,ao.jsx)(nn.__experimentalToolsPanelItem,{label:(0,Qo.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,ao.jsx)(nn.ToggleControl,{label:(0,Qo.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,ao.jsx)(nn.__experimentalToolsPanelItem,{label:(0,Qo.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,ao.jsx)(nn.ToggleControl,{label:(0,Qo.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,ao.jsx)(nn.__experimentalToolsPanelItem,{label:(0,Qo.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,ao.jsx)(nn.SelectControl,{label:(0,Qo.__)("Group by"),options:[{label:(0,Qo.__)("Year"),value:"yearly"},{label:(0,Qo.__)("Month"),value:"monthly"},{label:(0,Qo.__)("Week"),value:"weekly"},{label:(0,Qo.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,ao.jsx)("div",{...d,children:(0,ao.jsx)(nn.Spinner,{})}),u==="error"&&(0,ao.jsx)("div",{...d,children:(0,ao.jsx)("p",{children:(0,Qo.sprintf)((0,Qo.__)("Error: %s"),p)})}),u==="success"&&(0,ao.jsx)(_o,{wrapperProps:d,html:c})]})}var{name:JH}=o5,ej={icon:j9,example:{},edit:XH},oye=()=>R({name:JH,metadata:o5,settings:ej});var uI={};K(uI,{init:()=>cye,metadata:()=>n5,name:()=>vj,settings:()=>bj});var n5={$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 nd=a(B(),1),An=a(O(),1),cl=a(I(),1),l5=a(ur(),1);var Mv=a(oe(),1),mp=a(I(),1),rj=a(F(),1);function oj(e){let t=e?e[0]:24,r=e?e[e.length-1]:96,o=Math.floor(r*2.5);return{minSize:t,maxSize:o}}function aj({commentId:e}){let[t]=(0,Mv.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,Mv.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=oj(n),s=Lv();return{src:o?o[o.length-1]:s,minSize:i,maxSize:l,alt:r?(0,mp.sprintf)((0,mp.__)("%s Avatar"),r):(0,mp.__)("Default Avatar")}}function nj({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,rj.useSelect)(u=>{let{getEditedEntityRecord:p,getUser:m}=u(Mv.store);if(e)return{authorDetails:m(e)};let d=p("postType",r,t)?.author;return{authorDetails:d?m(d):null}},[r,t,e]),n=o?.avatar_urls?Object.values(o.avatar_urls):null,i=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:s}=oj(i),c=Lv();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:o?(0,mp.sprintf)((0,mp.__)("%s Avatar"),o?.name):(0,mp.__)("Default Avatar")}}var cI=a(I(),1),lj=a(O(),1),sj=a(F(),1),cj=a(oe(),1),i5=a(H(),1),uj=a(ge(),1),pj=a(Xo(),1),mj=a(y(),1),nye={who:"authors",per_page:100,_fields:"id,name",context:"view"};function dj({value:e,onChange:t}){let[r,o]=(0,i5.useState)(""),{authors:n,isLoading:i}=(0,sj.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(cj.store),p={...nye};return r&&(p.search=r,p.search_columns=["name"]),{authors:c(p),isLoading:u("getUsers",[p])}},[r]),l=(0,i5.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,pj.decodeEntities)(s.name)})),[n]);return(0,mj.jsx)(lj.ComboboxControl,{label:(0,cI.__)("User"),help:(0,cI.__)("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,uj.debounce)(o,300),isLoading:i})}var Ft=a(y(),1),fj=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let n=Z();return(0,Ft.jsx)(nd.InspectorControls,{children:(0,Ft.jsxs)(An.__experimentalToolsPanel,{label:(0,cl.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,Ft.jsx)(An.__experimentalToolsPanelItem,{label:(0,cl.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,Ft.jsx)(An.RangeControl,{label:(0,cl.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,Ft.jsx)(An.__experimentalToolsPanelItem,{label:(0,cl.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,Ft.jsx)(An.ToggleControl,{label:(0,cl.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,Ft.jsx)(An.__experimentalToolsPanelItem,{label:(0,cl.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,Ft.jsx)(An.ToggleControl,{label:(0,cl.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,Ft.jsx)(An.__experimentalToolsPanelItem,{label:(0,cl.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,Ft.jsx)(dj,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},iye=({children:e,isLink:t})=>t?(0,Ft.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,hj=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:n})=>{let i=(0,nd.__experimentalUseBorderProps)(t),l=(0,l5.addQueryArgs)((0,l5.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,Ft.jsx)("div",{...o,children:(0,Ft.jsx)(iye,{isLink:t.isLink,children:(0,Ft.jsx)(An.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,p)=>{e({size:parseInt(t.size+(p.height||p.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,cl.isRTL)(),bottom:!0,left:(0,cl.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,Ft.jsx)("img",{src:l,alt:r.alt,className:C("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},lye=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:n}=t,i=(0,nd.useBlockProps)(),l=aj({commentId:n});return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(fj,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,Ft.jsx)(hj,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:r})]})},sye=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:n,postType:i}=t,l=nj({userId:e?.userId,postId:n,postType:i}),s=(0,nd.useBlockProps)();return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(fj,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,Ft.jsx)(hj,{attributes:e,avatar:l,blockProps:s,isSelected:o,setAttributes:r})]})};function gj(e){return e?.context?.commentId||e?.context?.commentId===null?(0,Ft.jsx)(lye,{...e}):(0,Ft.jsx)(sye,{...e})}var{name:vj}=n5,bj={icon:F1,edit:gj,example:{}},cye=()=>R({name:vj,metadata:n5,settings:bj});var yI={};K(yI,{init:()=>_ye,metadata:()=>u5,name:()=>Uj,settings:()=>p5});var bI=a(I(),1);var jj=a($(),1);var pI=a(B(),1),Av=a(y(),1),yj=[{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:o,preload:n,src:i}=e;return(0,Av.jsxs)("figure",{children:[(0,Av.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!pI.RichText.isEmpty(r)&&(0,Av.jsx)(pI.RichText.Content,{tagName:"figcaption",value:r})]})}}];var Lj=a(Mr(),1),gi=a(O(),1),zn=a(B(),1),ln=a(I(),1),Rj=a(F(),1);var Mj=a(Sr(),1),Aj=a(H(),1);function gh(e,t){var r=0,o,n;t=t||{};function i(){var l=o,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!==o&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},o?(o.prev=l,l.next=o):n=l,r===t.maxSize?(n=n.prev,n.next=null):r++,o=l,l.val}return i.clear=function(){o=null,n=null,r=0},i}var Cj=a(O(),1),fI=a(H(),1),Zs=a($(),1),Sj=a(ur(),1);var qs={$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 zv=[{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"}],mI="wp-embed";var kj=a(dI(),1),{lock:wj,unlock:U}=(0,kj.__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 s5=a(y(),1),{name:vh}=qs,{kebabCase:pye}=U(Cj.privateApis),Tj=e=>(0,Zs.getBlockVariations)(vh)?.find(({name:t})=>t===e),hI=(e,t=[])=>t.some(r=>e.match(r)),bh=e=>(0,Zs.getBlockVariations)(vh)?.find(({patterns:t})=>hI(e,t));function Vv(e){if(!e||(0,Sj.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var Pj=e=>e&&e.includes('class="wp-embedded-content"'),Bj=e=>{let t=e.url||e.thumbnail_url,r=(0,s5.jsx)("p",{children:(0,s5.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,fI.renderToString)(r)},fp=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:n,providerNameSlug:i,type:l,...s}=o;if(!n||!(0,Zs.getBlockType)(vh))return;let c=bh(n),u=i==="wordpress"||l===mI;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,Zs.createBlock)(vh,{url:n,...s,...c.attributes});let m=(0,Zs.getBlockVariations)(vh)?.find(({name:d})=>d==="wordpress");if(!(!m||!r||!Pj(r.html)||u))return(0,Zs.createBlock)(vh,{url:n,...m.attributes,...t})},mye=e=>e?zv.some(({className:t})=>e.includes(t)):!1,dp=e=>{if(!e)return e;let t=zv.reduce((o,{className:n})=>(o.push(n),o),["wp-has-aspect-ratio"]),r=e;for(let o of t)r=r.replace(o,"");return r.trim()};function dye(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function gI(e,t,r=!0){if(!r||dye(e))return dp(t);let o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;let n=o.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let l=0;l<zv.length;l++){let s=zv[l];if(i>=s.ratio)return i-s.ratio>.1?dp(t):C(dp(t),s.className,"wp-has-aspect-ratio")}}return t}function Ej(e,t){t((0,Zs.createBlock)("core/paragraph",{content:(0,fI.renderToString)((0,s5.jsx)("a",{href:e,children:e}))}))}var fye=gh((e,t,r,o,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=pye((c||t).toLowerCase());return Pj(s)&&(l=mI),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),mye(r)||(i.className=gI(s,r,o&&n)),i}),Nj=(e,t,r,o)=>{let{allowResponsive:n,className:i}=e;return{...e,...fye(t,r,i,o,n)}};var id=a(H(),1),Ij=a(ge(),1),Ov=a(I(),1),nu=a(B(),1),Dj=a(O(),1);var c5=a($(),1),hp=a(y(),1);function Mo({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n,placeholder:i=(0,Ov.__)("Add caption"),label:l=(0,Ov.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:p,tagName:m="figcaption",addLabel:d=(0,Ov.__)("Add caption"),removeLabel:f=(0,Ov.__)("Remove caption"),icon:h=tP,...g}){let v=t[e],b=(0,Ij.usePrevious)(v),_=nu.RichText.isEmpty(v),k=nu.RichText.isEmpty(b),[x,w]=(0,id.useState)(!_);(0,id.useEffect)(()=>{!_&&k&&w(!0)},[_,k]),(0,id.useEffect)(()=>{!o&&_&&w(!1)},[o,_]);let S=(0,id.useCallback)(T=>{T&&_&&T.focus()},[_]);return(0,hp.jsxs)(hp.Fragment,{children:[s&&(0,hp.jsx)(nu.BlockControls,{group:"block",children:(0,hp.jsx)(Dj.ToolbarButton,{onClick:()=>{w(!x),x&&v&&r({[e]:void 0})},icon:h,isPressed:x,label:x?f:d})}),x&&(!nu.RichText.isEmpty(v)||o)&&(0,hp.jsx)(nu.RichText,{identifier:e,tagName:m,className:C(u,c?"":(0,nu.__experimentalGetElementClassName)("caption")),ref:S,"aria-label":l,placeholder:i,value:v,onChange:T=>r({[e]:T}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,c5.createBlock)((0,c5.getDefaultBlockName)())),readOnly:p,...g})]})}var Ar=a(y(),1),vI=["audio"];function hye({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:p}=e,[m,d]=(0,Aj.useState)(e.blob),h=(0,zn.useBlockEditingMode)()==="default";Ws({url:m,allowedTypes:vI,onChange:x,onError:_});function g(N){return D=>{r({[N]:D})}}function v(N){if(N!==p){let D=fp({attributes:{url:N}});if(D!==void 0&&o){o(D);return}r({src:N,id:void 0,blob:void 0}),d()}}let{createErrorNotice:b}=(0,Rj.useDispatch)(Mj.store);function _(N){b(N,{type:"snackbar"})}function k(N){return N?(0,ln.__)("Autoplay may cause usability issues for some users."):null}function x(N){if(!N||!N.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,Lj.isBlobURL)(N.url)){d(N.url);return}r({blob:void 0,src:N.url,id:N.id,caption:N.caption}),d()}let w=C(t,{"is-transient":!!m}),S=(0,zn.useBlockProps)({className:w}),T=Z();return!p&&!m?(0,Ar.jsx)("div",{...S,children:(0,Ar.jsx)(zn.MediaPlaceholder,{icon:(0,Ar.jsx)(zn.BlockIcon,{icon:tu}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:vI,value:e,onError:_})}):(0,Ar.jsxs)(Ar.Fragment,{children:[n&&(0,Ar.jsx)(zn.BlockControls,{group:"other",children:(0,Ar.jsx)(zn.MediaReplaceFlow,{mediaId:l,mediaURL:p,allowedTypes:vI,accept:"audio/*",onSelect:x,onSelectURL:v,onError:_,onReset:()=>x(void 0),variant:"toolbar"})}),(0,Ar.jsx)(zn.InspectorControls,{children:(0,Ar.jsxs)(gi.__experimentalToolsPanel,{label:(0,ln.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:T,children:[(0,Ar.jsx)(gi.__experimentalToolsPanelItem,{label:(0,ln.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,Ar.jsx)(gi.ToggleControl,{label:(0,ln.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:k})}),(0,Ar.jsx)(gi.__experimentalToolsPanelItem,{label:(0,ln.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Ar.jsx)(gi.ToggleControl,{label:(0,ln.__)("Loop"),onChange:g("loop"),checked:!!c})}),(0,Ar.jsx)(gi.__experimentalToolsPanelItem,{label:(0,ln.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Ar.jsx)(gi.SelectControl,{label:(0,ln._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:N=>r({preload:N||void 0}),options:[{value:"",label:(0,ln.__)("Browser default")},{value:"auto",label:(0,ln.__)("Auto")},{value:"metadata",label:(0,ln.__)("Metadata")},{value:"none",label:(0,ln._x)("None","Preload value")}]})})]})}),(0,Ar.jsxs)("figure",{...S,children:[(0,Ar.jsx)("audio",{controls:"controls",inert:n?void 0:"true",src:p??m}),!!m&&(0,Ar.jsx)(gi.Spinner,{}),(0,Ar.jsx)(Mo,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,ln.__)("Audio caption text"),showToolbarButton:n&&h})]})]})}var zj=hye;var u5={$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 ld=a(B(),1),Fv=a(y(),1);function Vj({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return i&&(0,Fv.jsxs)("figure",{...ld.useBlockProps.save(),children:[(0,Fv.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!ld.RichText.isEmpty(r)&&(0,Fv.jsx)(ld.RichText.Content,{tagName:"figcaption",value:r,className:(0,ld.__experimentalGetElementClassName)("caption")})]})}var Oj=a(Mr(),1),Fj=a($(),1),vye={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,Fj.createBlock)("core/audio",{blob:(0,Oj.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:o,wav:n,wma:i}})=>e||t||r||o||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}}}]},Hj=vye;var{fieldsKey:bye,formKey:yye}=U(jj.privateApis),{name:Uj}=u5,p5={icon:tu,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Hj,deprecated:yj,edit:zj,save:Vj};window.__experimentalContentOnlyInspectorFields&&(p5[bye]=[{id:"audio",label:(0,bI.__)("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,bI.__)("Caption"),type:"text",Edit:"rich-text"}],p5[yye]={fields:["audio","caption"]});var _ye=()=>R({name:Uj,metadata:u5,settings:p5});var _I={};K(_I,{init:()=>kye,metadata:()=>m5,name:()=>Zj,settings:()=>Kj});var m5={$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 qr=a(I(),1),Hv=a(B(),1),Jo=a(O(),1),Gj=a(F(),1),f5=a(oe(),1),iu=a(H(),1),Wj=a(ap(),1),$j=a(ge(),1);var Pt=a(y(),1),d5="/";function qj({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:n,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:p}=e,{post:m,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:g}=(0,Gj.useSelect)(z=>{if(!n)return{};let j=z(f5.store).getEntityRecord("postType",n,o),q=z(f5.store).getPostType(n),G=q&&q.taxonomies.length,W;return G&&(W=z(f5.store).getTaxonomies({type:n,per_page:-1})),{post:j,isPostTypeHierarchical:q?.hierarchical,postTypeHasTaxonomies:G,hasTermsAssigned:j&&(W||[]).filter(({visibility:V})=>V?.publicly_queryable).some(V=>!!j[V.rest_base]?.length),isLoading:o&&!j||!q||G&&!W}},[n,o]),[v,b]=(0,iu.useState)(0);(0,iu.useEffect)(()=>{b(z=>z+1)},[m]);let _=Z(),{content:k,status:x,error:w}=(0,Wj.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:v}}),S=(0,iu.useRef)("");(0,iu.useEffect)(()=>{x==="success"&&(S.current=k)},[k,x]);let[T,N]=(0,iu.useState)(!1);(0,iu.useEffect)(()=>{if(x!=="loading")return;let z=setTimeout(()=>{N(!0)},400);return()=>{clearTimeout(z),N(!1)}},[x]);let D=(0,$j.useDisabled)(),L=(0,Hv.useBlockProps)({ref:D});if(g)return(0,Pt.jsx)("div",{...L,children:(0,Pt.jsx)(Jo.Spinner,{})});let P;!d&&!m?.parent?P=!0:f?P=u:P=!1;let E=null,M=!o||!n||i&&!n||!P&&!d||P&&!h;if(M){let z=[];s&&z.push((0,qr.__)("Home")),i&&!o?z.push((0,qr.__)("Page")):P?z.push((0,qr.__)("Category")):z.push((0,qr.__)("Ancestor"),(0,qr.__)("Parent")),E=(0,Pt.jsx)("nav",{...L,style:{"--separator":`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...L.style},children:(0,Pt.jsxs)("ol",{children:[z.map((j,q)=>(0,Pt.jsx)("li",{children:(0,Pt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${q}`,children:j})},q)),c&&(0,Pt.jsx)("li",{children:(0,Pt.jsx)("span",{"aria-current":"page",children:(0,qr.__)("Current")})})]})})}return(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(Hv.InspectorControls,{children:(0,Pt.jsxs)(Jo.__experimentalToolsPanel,{label:(0,qr.__)("Settings"),resetAll:()=>{t({separator:d5,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,Pt.jsx)(Jo.__experimentalToolsPanelItem,{label:(0,qr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,Pt.jsx)(Jo.ToggleControl,{label:(0,qr.__)("Show home breadcrumb"),onChange:z=>t({showHomeItem:z}),checked:s})}),(0,Pt.jsx)(Jo.__experimentalToolsPanelItem,{label:(0,qr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Pt.jsx)(Jo.ToggleControl,{label:(0,qr.__)("Show current breadcrumb"),onChange:z=>t({showCurrentItem:z}),checked:c})}),(0,Pt.jsx)(Jo.__experimentalToolsPanelItem,{label:(0,qr.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==d5,onDeselect:()=>t({separator:d5}),children:(0,Pt.jsx)(Jo.TextControl,{autoComplete:"off",label:(0,qr.__)("Separator"),value:l,onChange:z=>t({separator:z}),onBlur:()=>{l||t({separator:d5})}})})]})}),(0,Pt.jsxs)(Hv.InspectorControls,{group:"advanced",children:[(0,Pt.jsx)(Jo.CheckboxControl,{label:(0,qr.__)("Show on homepage"),checked:p,onChange:z=>t({showOnHomePage:z}),help:(0,qr.__)("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,Pt.jsx)(Jo.CheckboxControl,{label:(0,qr.__)("Prefer taxonomy terms"),checked:u,onChange:z=>t({prefersTaxonomy:z}),help:(0,qr.__)("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.")})]}),x==="loading"&&!M&&(S.current?(0,Pt.jsx)(_o,{wrapperProps:{...L,style:{...L.style,opacity:T?.3:1}},html:S.current}):(0,Pt.jsx)("div",{...L,children:(0,Pt.jsx)(Jo.Spinner,{})})),x==="error"&&(0,Pt.jsx)("div",{...L,children:(0,Pt.jsx)("p",{children:(0,qr.sprintf)((0,qr.__)("Error: %s"),w)})}),M&&E,!M&&x==="success"&&(0,Pt.jsx)(_o,{wrapperProps:L,html:k})]})}var{name:Zj}=m5,Kj={icon:Z9,example:{},edit:qj},kye=()=>R({name:Zj,metadata:m5,settings:Kj});var yD={};K(yD,{init:()=>K_e,metadata:()=>G5,name:()=>JG,settings:()=>$5});var W5=a(I(),1);var XG=a($(),1);var be=a(B(),1),Kl=a(ge(),1);var Yj=a(B(),1);var{cleanEmptyObject:wye}=U(Yj.privateApis);function Zt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:wye({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function ve(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Ht=a(y(),1),ul=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},yh=e=>{let{borderRadius:t,...r}=e,o=[t,r.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return o?{...r,style:{...r.style,border:{...r.style?.border,radius:`${o}px`}}}:r};function Cye(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:C(r.className,`align${e.align}`)}}var kI=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:o,customGradient:n,...i}=e;return{...i,style:t}},xI=e=>{let{color:t,textColor:r,...o}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return kI(o)},lu={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"}},Sye={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}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,fontSize:n,linkTarget:i,rel:l,style:s,text:c,title:u,url:p,width:m}=e,d=r||"a",f=d==="button",h=o||"button",g=(0,be.__experimentalGetBorderClassesAndStyles)(e),v=(0,be.__experimentalGetColorClassesAndStyles)(e),b=(0,be.__experimentalGetSpacingClassesAndStyles)(e),_=(0,be.__experimentalGetShadowClassesAndStyles)(e),k=(0,be.getTypographyClassesAndStyles)(e),x=C("wp-block-button__link",v.className,g.className,k.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,be.__experimentalGetElementClassName)("button")),w={...g.style,...v.style,...b.style,..._.style,...k.style,writingMode:void 0},S=C(t,{[`has-custom-width wp-block-button__width-${m}`]:m});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:S}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:d,type:f?h:null,className:x,href:f?null:p,title:u,style:w,value:c,target:f?null:i,rel:f?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:ul},Tye={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:o,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:p,url:m,width:d}=e,f=r||"a",h=f==="button",g=o||"button",v=(0,be.__experimentalGetBorderClassesAndStyles)(e),b=(0,be.__experimentalGetColorClassesAndStyles)(e),_=(0,be.__experimentalGetSpacingClassesAndStyles)(e),k=(0,be.__experimentalGetShadowClassesAndStyles)(e),x=(0,be.getTypographyClassesAndStyles)(e),w=C("wp-block-button__link",b.className,v.className,x.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,be.__experimentalGetElementClassName)("button")),S={...v.style,...b.style,..._.style,...k.style,...x.style,writingMode:void 0},T=C(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:T}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:f,type:h?g:null,className:w,href:h?null:m,title:p,style:S,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,Kl.compose)(ul,ve)},Pye={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:o,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:p,url:m,width:d}=e,f=r||"a",h=f==="button",g=o||"button",v=(0,be.__experimentalGetBorderClassesAndStyles)(e),b=(0,be.__experimentalGetColorClassesAndStyles)(e),_=(0,be.__experimentalGetSpacingClassesAndStyles)(e),k=(0,be.__experimentalGetShadowClassesAndStyles)(e),x=C("wp-block-button__link",b.className,v.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,be.__experimentalGetElementClassName)("button")),w={...v.style,...b.style,..._.style,...k.style},S=C(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:S}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:f,type:h?g:null,className:x,href:h?null:m,title:p,style:w,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:ul},Bye={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:o,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=(0,be.__experimentalGetBorderClassesAndStyles)(e),m=(0,be.__experimentalGetColorClassesAndStyles)(e),d=(0,be.__experimentalGetSpacingClassesAndStyles)(e),f=C("wp-block-button__link",m.className,p.className,{"no-border-radius":i?.border?.radius===0}),h={...p.style,...m.style,...d.style},g=C(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:g}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:n})})}},Eye={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:o,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=(0,be.__experimentalGetBorderClassesAndStyles)(e),m=(0,be.__experimentalGetColorClassesAndStyles)(e),d=(0,be.__experimentalGetSpacingClassesAndStyles)(e),f=C("wp-block-button__link",m.className,p.className,{"no-border-radius":i?.border?.radius===0}),h={...p.style,...m.style,...d.style},g=C(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:g}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:n})})},migrate:(0,Kl.compose)(ul,Zt),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},Nye=[Sye,Tye,Pye,Bye,Eye,{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:{...lu,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:o,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=i?.border?.radius,m=(0,be.__experimentalGetColorClassesAndStyles)(e),d=C("wp-block-button__link",m.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:p||void 0,...m.style},h=C(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:h}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:o,rel:n})})},migrate:(0,Kl.compose)(ul,Zt,yh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...lu,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:o,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,be.__experimentalGetColorClassesAndStyles)(e),p=C("wp-block-button__link",u.className,{"no-border-radius":r===0}),m={borderRadius:r?r+"px":void 0,...u.style},d=C(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:d}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:p,href:s,title:l,style:m,value:i,target:o,rel:n})})},migrate:(0,Kl.compose)(ul,Zt,yh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...lu,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:o,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,be.__experimentalGetColorClassesAndStyles)(e),p=C("wp-block-button__link",u.className,{"no-border-radius":r===0}),m={borderRadius:r?r+"px":void 0,...u.style},d=C(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ht.jsx)("div",{...be.useBlockProps.save({className:d}),children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:p,href:s,title:l,style:m,value:i,target:o,rel:n})})},migrate:(0,Kl.compose)(ul,Zt,yh)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...lu,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:o,text:n,title:i,url:l}=e,s=C("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:r,rel:o})},migrate:(0,Kl.compose)(ul,yh)},{supports:{align:!0,alignWide:!1},attributes:{...lu,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,Kl.compose)(ul,yh,kI,Cye),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:p,title:m,url:d}=e,f=(0,be.getColorClassName)("color",p),h=!i&&(0,be.getColorClassName)("background-color",t),g=(0,be.__experimentalGetGradientClass)(s),v=C("wp-block-button__link",{"has-text-color":p||n,[f]:f,"has-background":t||o||i||s,[h]:h,"no-border-radius":r===0,[g]:g}),b={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Ht.jsx)("div",{children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:v,href:d,title:m,style:b,value:u,target:l,rel:c})})}},{attributes:{...lu,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()),yh(kI({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,p=(0,be.getColorClassName)("color",s),m=(0,be.getColorClassName)("background-color",t),d=C("wp-block-button__link",{"has-text-color":s||o,[p]:p,"has-background":t||r,[m]:m}),f={backgroundColor:m?void 0:r,color:p?void 0:o};return(0,Ht.jsx)("div",{children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...lu,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,Kl.compose)(ul,xI),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,be.getColorClassName)("color",i),u=(0,be.getColorClassName)("background-color",n),p=C("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),m={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,Ht.jsx)("div",{children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:p,href:t,title:o,style:m,value:r})})}},{attributes:{...lu,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,Ht.jsx)("div",{className:`align${n}`,children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:s,value:r})})},migrate:(0,Kl.compose)(ul,xI)},{attributes:{...lu,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:l}=e;return(0,Ht.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Ht.jsx)(be.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:r})})},migrate:(0,Kl.compose)(ul,xI)}],Qj=Nye;var ml=a(I(),1),Ba=a(H(),1),Ih=a(O(),1),pt=a(B(),1),kp=a(Ks(),1);var uu=a($(),1),bd=a(ge(),1),ab=a(F(),1);var sd=a(ut(),1);function Jj({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=sd.useRef(e!==void 0),[i,l]=sd.useState(t),s=n?e:i,c=sd.useCallback(u=>{n||l(u)},[]);return[s,c]}var Iye=a(ut(),1),jv={...Iye};var tU=a(ut(),1),eU={};function Ys(e,t){let r=tU.useRef(eU);return r.current===eU&&(r.current=e(t)),r}var wI=jv.useInsertionEffect,Dye=wI&&wI!==jv.useLayoutEffect?wI:e=>e();function pr(e){let t=Ys(Lye).current;return t.next=e,Dye(t.effect),t.trampoline}function Lye(){let e={next:void 0,callback:Rye,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Rye(){}var rU=a(ut(),1),Mye=()=>{},Kt=typeof document<"u"?rU.useLayoutEffect:Mye;var gp=a(ut(),1);var h5=a(ut(),1),CI=h5.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function oU(){return h5.useContext(CI)}var aU=a(y(),1);function g5(e){let{children:t,elementsRef:r,labelsRef:o,onMapChange:n}=e,i=pr(n),l=gp.useRef(0),s=Ys(zye).current,c=Ys(Aye).current,[u,p]=gp.useState(0),m=gp.useRef(u),d=pr((b,_)=>{c.set(b,_??null),m.current+=1,p(m.current)}),f=pr(b=>{c.delete(b),m.current+=1,p(m.current)}),h=gp.useMemo(()=>{let b=new Map;return Array.from(c.keys()).filter(k=>k.isConnected).sort(Vye).forEach((k,x)=>{let w=c.get(k)??{};b.set(k,{...w,index:x})}),b},[c,u]);Kt(()=>{if(typeof MutationObserver!="function"||h.size===0)return;let b=new MutationObserver(_=>{let k=new Set,x=w=>k.has(w)?k.delete(w):k.add(w);_.forEach(w=>{w.removedNodes.forEach(x),w.addedNodes.forEach(x)}),k.size===0&&(m.current+=1,p(m.current))});return h.forEach((_,k)=>{k.parentElement&&b.observe(k.parentElement,{childList:!0})}),()=>{b.disconnect()}},[h]),Kt(()=>{m.current===u&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),l.current=h.size),i(h)},[i,h,r,o,u]),Kt(()=>()=>{r.current=[]},[r]),Kt(()=>()=>{o&&(o.current=[])},[o]);let g=pr(b=>(s.add(b),()=>{s.delete(b)}));Kt(()=>{s.forEach(b=>b(h))},[s,h]);let v=gp.useMemo(()=>({register:d,unregister:f,subscribeMapChange:g,elementsRef:r,labelsRef:o,nextIndexRef:l}),[d,f,g,r,o,l]);return(0,aU.jsx)(CI.Provider,{value:v,children:t})}function Aye(){return new Map}function zye(){return new Set}function Vye(e,t){let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}var v5=a(ut(),1),Oye=v5.createContext(void 0);function nU(){return v5.useContext(Oye)?.direction??"ltr"}function Fye(e,t){return function(o,...n){let i=new URL(e);return i.searchParams.set("code",o.toString()),n.forEach(l=>i.searchParams.append("args[]",l)),`${t} error #${o}; visit ${i} for the full message.`}}var Hye=Fye("https://base-ui.com/production-error","Base UI"),vp=Hye;var ud=a(ut(),1);function cd(e,t,r,o){let n=Ys(lU).current;return jye(n,e,t,r,o)&&sU(n,[e,t,r,o]),n.callback}function iU(e){let t=Ys(lU).current;return Uye(t,e)&&sU(t,e),t.callback}function lU(){return{callback:null,cleanup:null,refs:[]}}function jye(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function Uye(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function sU(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let l=i(r);typeof l=="function"&&(o[n]=l);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let l=o[n];typeof l=="function"?l():i(null);break}case"object":{i.current=null;break}default:}}}}}}var uU=a(ut(),1);var cU=a(ut(),1),Gye=parseInt(cU.version,10);function b5(e){return Gye>=e}function SI(e){if(!uU.isValidElement(e))return null;let t=e,r=t.props;return(b5(19)?r?.ref:t.ref)??null}function Uv(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function TI(){}var Gv=Object.freeze([]),Qs=Object.freeze({});function pU(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let i=t[o](n);i!=null&&Object.assign(r,i);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function mU(e,t){return typeof e=="function"?e(t):e}function dU(e,t){return typeof e=="function"?e(t):e}var PI={};function Yl(e,t,r,o,n){if(!r&&!o&&!n&&!e)return y5(t);let i=y5(e);return t&&(i=Wv(i,t)),r&&(i=Wv(i,r)),o&&(i=Wv(i,o)),n&&(i=Wv(i,n)),i}function fU(e){if(e.length===0)return PI;if(e.length===1)return y5(e[0]);let t=y5(e[0]);for(let r=1;r<e.length;r+=1)t=Wv(t,e[r]);return t}function y5(e){return BI(e)?{...gU(e,PI)}:Wye(e)}function Wv(e,t){return BI(t)?gU(t,e):$ye(e,t)}function Wye(e){let t={...e};for(let r in t){let o=t[r];hU(r,o)&&(t[r]=vU(o))}return t}function $ye(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=Uv(e.style,o);break}case"className":{e[r]=EI(e.className,o);break}default:hU(r,o)?e[r]=qye(e[r],o):e[r]=o}}return e}function hU(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function BI(e){return typeof e=="function"}function gU(e,t){return BI(e)?e(t):e??PI}function qye(e,t){return t?e?(...r)=>{let o=r[0];if(bU(o)){let i=o;$v(i);let l=t(...r);return i.baseUIHandlerPrevented||e?.(...r),l}let n=t(...r);return e?.(...r),n}:vU(t):e}function vU(e){return e&&((...t)=>{let r=t[0];return bU(r)&&$v(r),e(...t)})}function $v(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function EI(e,t){return t?e?t+" "+e:t:e}function bU(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var NI=a(ut(),1);function pl(e,t,r={}){let o=t.render,n=Zye(t,r);if(r.enabled===!1)return null;let i=r.state??Qs;return Qye(e,o,n,i)}function Zye(e,t={}){let{className:r,style:o,render:n}=e,{state:i=Qs,ref:l,props:s,stateAttributesMapping:c,enabled:u=!0}=t,p=u?mU(r,i):void 0,m=u?dU(o,i):void 0,d=u?pU(i,c):Qs,f=u&&s?Kye(s):void 0,h=u?Uv(d,f)??{}:Qs;return typeof document<"u"&&(u?Array.isArray(l)?h.ref=iU([h.ref,SI(n),...l]):h.ref=cd(h.ref,SI(n),l):cd(null,null)),u?(p!==void 0&&(h.className=EI(h.className,p)),m!==void 0&&(h.style=Uv(h.style,m)),h):Qs}function Kye(e){return Array.isArray(e)?fU(e):Yl(void 0,e)}var Yye=Symbol.for("react.lazy");function Qye(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=Yl(r,t.props);n.ref=r.ref;let i=t;return i?.$$typeof===Yye&&(i=ud.Children.toArray(t)[0]),ud.cloneElement(i,n)}if(e&&typeof e=="string")return Xye(e,r);throw new Error(vp(8))}function Xye(e,t){return e==="button"?(0,NI.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,NI.createElement)("img",{alt:"",...t,key:t.key}):ud.createElement(e,t)}var _5=a(ut(),1);var yU=0;function Jye(e,t="mui"){let[r,o]=_5.useState(e),n=e||r;return _5.useEffect(()=>{r==null&&(yU+=1,o(`${t}-${yU}`))},[r,t]),n}var _U=jv.useId;function xU(e,t){if(_U!==void 0){let r=_U();return e??(t?`${t}-${r}`:r)}return Jye(e,t)}function x5(e){return xU(e,"base-ui")}var Ql={};K(Ql,{cancelOpen:()=>P2e,chipRemovePress:()=>c2e,clearPress:()=>s2e,closePress:()=>i2e,closeWatcher:()=>_2e,decrementPress:()=>m2e,disabled:()=>E2e,drag:()=>C2e,escapeKey:()=>y2e,focusOut:()=>b2e,imperativeAction:()=>D2e,incrementPress:()=>p2e,initial:()=>I2e,inputBlur:()=>h2e,inputChange:()=>d2e,inputClear:()=>f2e,inputPaste:()=>g2e,inputPress:()=>v2e,itemPress:()=>n2e,keyboard:()=>k2e,linkPress:()=>l2e,listNavigation:()=>x2e,missing:()=>N2e,none:()=>e2e,outsidePress:()=>a2e,pointer:()=>w2e,scrub:()=>T2e,siblingOpen:()=>B2e,swipe:()=>L2e,trackPress:()=>u2e,triggerFocus:()=>o2e,triggerHover:()=>r2e,triggerPress:()=>t2e,wheel:()=>S2e,windowResize:()=>R2e});var e2e="none",t2e="trigger-press",r2e="trigger-hover",o2e="trigger-focus",a2e="outside-press",n2e="item-press",i2e="close-press",l2e="link-press",s2e="clear-press",c2e="chip-remove-press",u2e="track-press",p2e="increment-press",m2e="decrement-press",d2e="input-change",f2e="input-clear",h2e="input-blur",g2e="input-paste",v2e="input-press",b2e="focus-out",y2e="escape-key",_2e="close-watcher",x2e="list-navigation",k2e="keyboard",w2e="pointer",C2e="drag",S2e="wheel",T2e="scrub",P2e="cancel-open",B2e="sibling-open",E2e="disabled",N2e="missing",I2e="initial",D2e="imperative-action",L2e="swipe",R2e="window-resize";function qv(e,t,r,o){let n=!1,i=!1,l=o??Qs;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){i=!0},get isCanceled(){return n},get isPropagationAllowed(){return i},trigger:r,...l}}var DI=a(ut(),1);var kU=a(ut(),1),M2e=[];function wU(e){kU.useEffect(e,M2e)}var k5=null,xFe=globalThis.requestAnimationFrame,II=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let n=0;n<r.length;n+=1)r[n]?.(t)};request(t){let r=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(t){let r=t-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}},w5=new II,Xs=class e{static create(){return new e}static request(t){return w5.request(t)}static cancel(t){return w5.cancel(t)}currentId=k5;request(t){this.cancel(),this.currentId=w5.request(()=>{this.currentId=k5,t()})}cancel=()=>{this.currentId!==k5&&(w5.cancel(this.currentId),this.currentId=k5)};disposeEffect=()=>this.cancel};function CU(){let e=Ys(Xs.create).current;return wU(e.disposeEffect),e}function SU(e,t=!1,r=!1){let[o,n]=DI.useState(e&&t?"idle":void 0),[i,l]=DI.useState(e);return e&&!i&&(l(!0),n("starting")),!e&&i&&o!=="ending"&&!r&&n("ending"),!e&&!i&&o==="ending"&&n(void 0),Kt(()=>{if(!e&&i&&o!=="ending"&&r){let s=Xs.request(()=>{n("ending")});return()=>{Xs.cancel(s)}}},[e,i,o,r]),Kt(()=>{if(!e||t)return;let s=Xs.request(()=>{n(void 0)});return()=>{Xs.cancel(s)}},[t,e]),Kt(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&n("starting");let s=Xs.request(()=>{n("idle")});return()=>{Xs.cancel(s)}},[t,e,i,o]),{mounted:i,setMounted:l,transitionStatus:o}}var pd=a(ut(),1);var A2e=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function C5(e={}){let{label:t,metadata:r,textRef:o,indexGuessBehavior:n,index:i}=e,{register:l,unregister:s,subscribeMapChange:c,elementsRef:u,labelsRef:p,nextIndexRef:m}=oU(),d=pd.useRef(-1),[f,h]=pd.useState(i??(n===A2e.GuessFromOrder?()=>{if(d.current===-1){let b=m.current;m.current+=1,d.current=b}return d.current}:-1)),g=pd.useRef(null),v=pd.useCallback(b=>{if(g.current=b,f!==-1&&b!==null&&(u.current[f]=b,p)){let _=t!==void 0;p.current[f]=_?t:o?.current?.textContent??b.textContent}},[f,u,p,t,o]);return Kt(()=>{if(i!=null)return;let b=g.current;if(b)return l(b,r),()=>{s(b)}},[i,l,s,r]),Kt(()=>{if(i==null)return c(b=>{let _=g.current?b.get(g.current)?.index:null;_!=null&&h(_)})},[i,c,h]),{ref:v,index:f}}var md=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),z2e={[md.startingStyle]:""},V2e={[md.endingStyle]:""},TU={transitionStatus(e){return e==="starting"?z2e:e==="ending"?V2e:null}};var _h=a(ut(),1);function PU(){return typeof window<"u"}function LI(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dd(e){return PU()?e instanceof HTMLElement||e instanceof LI(e).HTMLElement:!1}function BU(e){return!PU()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof LI(e).ShadowRoot}function S5(e){return LI(e).getComputedStyle(e)}var T5=a(ut(),1),RI=T5.createContext(void 0);function P5(e=!1){let t=T5.useContext(RI);if(t===void 0&&!e)throw new Error(vp(16));return t}var EU=a(ut(),1);function NU(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:n=0,isNativeButton:i}=e,l=o&&t!==!1,s=o&&t===!1;return{props:EU.useMemo(()=>{let u={onKeyDown(p){r&&t&&p.key!=="Tab"&&p.preventDefault()}};return o||(u.tabIndex=n,!i&&r&&(u.tabIndex=t?n:-1)),(i&&(t||l)||!i&&r)&&(u["aria-disabled"]=r),i&&(!t||s)&&(u.disabled=r),u},[o,r,t,l,s,i,n])}}function AI(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:n=!0,composite:i}=e,l=_h.useRef(null),s=P5(!0),c=i??s!==void 0,{props:u}=NU({focusableWhenDisabled:r,disabled:t,composite:c,tabIndex:o,isNativeButton:n}),p=_h.useCallback(()=>{let f=l.current;MI(f)&&c&&t&&u.disabled===void 0&&f.disabled&&(f.disabled=!1)},[t,u.disabled,c]);Kt(p,[p]);let m=_h.useCallback((f={})=>{let{onClick:h,onMouseDown:g,onKeyUp:v,onKeyDown:b,onPointerDown:_,...k}=f;return Yl({onClick(x){if(t){x.preventDefault();return}h?.(x)},onMouseDown(x){t||g?.(x)},onKeyDown(x){if(t||($v(x),b?.(x),x.baseUIHandlerPrevented))return;let w=x.target===x.currentTarget,S=x.currentTarget,T=MI(S),N=!n&&O2e(S),D=w&&(n?T:!N),L=x.key==="Enter",P=x.key===" ",E=S.getAttribute("role"),M=E?.startsWith("menuitem")||E==="option"||E==="gridcell";if(w&&c&&P){if(x.defaultPrevented&&M)return;x.preventDefault(),N||n&&T?(S.click(),x.preventBaseUIHandler()):D&&(h?.(x),x.preventBaseUIHandler());return}D&&(!n&&(P||L)&&x.preventDefault(),!n&&L&&h?.(x))},onKeyUp(x){if(!t){if($v(x),v?.(x),x.target===x.currentTarget&&n&&c&&MI(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!n&&!c&&x.key===" "&&h?.(x)}},onPointerDown(x){if(t){x.preventDefault();return}_?.(x)}},n?{type:"button"}:{role:"button"},u,k)},[t,u,c,n]),d=pr(f=>{l.current=f,p()});return{getButtonProps:m,buttonRef:d}}function MI(e){return dd(e)&&e.tagName==="BUTTON"}function O2e(e){return!!(e?.tagName==="A"&&e?.href)}function zI(e){return e?.ownerDocument||document}var AU=a(ut(),1);var RU=a(DU(),1);function LU(e){return e==null?e:"current"in e?e.current:e}function MU(e,t=!1,r=!0){let o=CU();return pr((n,i=null)=>{o.cancel();let l=LU(e);if(l==null)return;let s=l,c=()=>{RU.flushSync(n)};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function u(){Promise.all(s.getAnimations().map(p=>p.finished)).then(()=>{i?.aborted||c()}).catch(()=>{if(r){i?.aborted||c();return}let p=s.getAnimations();!i?.aborted&&p.length>0&&p.some(m=>m.pending||m.playState!=="finished")&&u()})}if(t){let p=md.startingStyle;if(!s.hasAttribute(p)){o.request(u);return}let m=new MutationObserver(()=>{s.hasAttribute(p)||(m.disconnect(),u())});m.observe(s,{attributes:!0,attributeFilter:[p]}),i?.addEventListener("abort",()=>m.disconnect(),{once:!0});return}o.request(u)})}function zU(e){let{enabled:t=!0,open:r,ref:o,onComplete:n}=e,i=pr(n),l=MU(o,r,!1);AU.useEffect(()=>{if(!t)return;let s=new AbortController;return l(i,s.signal),()=>{s.abort()}},[t,r,i,l])}function VI(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function OI(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&BU(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function B5(e){return"composedPath"in e?e.composedPath()[0]:e.target}var FI=Math.round;function Zv(e,t){return t<0||t>=e.length}function HI(e,t){return fd(e.current,{disabledIndices:t})}function jI(e,t){return fd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function fd(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:o,amount:n=1}={}){let i=t;do i+=r?-n:n;while(i>=0&&i<=e.length-1&&Kv(e,i,o));return i}function Kv(e,t,r){if(typeof r=="function"?r(t):r?.includes(t)??!1)return!0;let n=e[t];return n?H2e(n)?!r&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!0:!1}function F2e(e){return e.visibility==="hidden"||e.visibility==="collapse"}function H2e(e,t=e?S5(e):null){return!e||!e.isConnected||!t||F2e(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var E5=a(ut(),1);function jU(){let[,e]=E5.useState({});return E5.useCallback(()=>{e({})},[])}var kh="ArrowUp",wh="ArrowDown",Yv="ArrowLeft",Qv="ArrowRight",Xv="Home",Jv="End";var GI=new Set([Yv,Qv]),GU=new Set([Yv,Qv,Xv,Jv]),WI=new Set([kh,wh]),WU=new Set([kh,wh,Xv,Jv]),$I=new Set([...GI,...WI]),$U=new Set([...$I,Xv,Jv]),Q2e="Shift",X2e="Control",J2e="Alt",e_e="Meta",qU=new Set([Q2e,X2e,J2e,e_e]);function t_e(e){return dd(e)&&e.tagName==="INPUT"}function qI(e){return!!(t_e(e)&&e.selectionStart!=null||dd(e)&&e.tagName==="TEXTAREA")}function ZI(e,t,r,o){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,i=e.scrollTop,l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&o!=="vertical"){let c=UU(e,t,"left"),u=N5(e),p=N5(t);r==="ltr"&&(c+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?n=c+t.offsetWidth+p.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:c-p.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(n=c-p.scrollMarginLeft-u.scrollPaddingLeft)),r==="rtl"&&(c-p.scrollMarginRight<e.scrollLeft+u.scrollPaddingLeft?n=c-p.scrollMarginLeft-u.scrollPaddingLeft:c+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(n=c+t.offsetWidth+p.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(s&&o!=="horizontal"){let c=UU(e,t,"top"),u=N5(e),p=N5(t);c-p.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=c-p.scrollMarginTop-u.scrollPaddingTop:c+t.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=c+t.offsetHeight+p.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:n,top:i,behavior:"auto"})}function UU(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);)t=t.offsetParent;return n}function N5(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function ZU(e){return b5(19)?e:e?"true":void 0}var KU=a(ut(),1);function YU(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=P5(),{ref:n,index:i}=C5(e),l=r===i,s=KU.useRef(null),c=cd(n,s);return{compositeProps:{tabIndex:l?0:-1,onFocus(){o(i)},onMouseMove(){let p=s.current;if(!t||!p)return;let m=p.hasAttribute("disabled")||p.ariaDisabled==="true";!l&&!m&&p.focus()}},compositeRef:c,index:i}}function KI(e){let t=S5(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=dd(e),i=n?e.offsetWidth:r,l=n?e.offsetHeight:o;return(FI(r)!==i||FI(o)!==l)&&(r=i,o=l),{width:r,height:o}}function QU(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var I5=a(ut(),1),r_e=I5.createContext(void 0),o_e={disableStyleElements:!1};function XU(){return I5.useContext(r_e)??o_e}var eG=a(ut(),1);var Ch=a(ut(),1);var D5="data-composite-item-active";var a_e=[];function JU(e){let{loopFocus:t=!0,orientation:r="both",grid:o,onLoop:n,direction:i,highlightedIndex:l,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:m,modifierKeys:d=a_e}=e,[f,h]=Ch.useState(0),g=o!=null,v=Ch.useRef(null),b=cd(v,c),_=Ch.useRef([]),k=Ch.useRef(!1),x=l??f,w=pr((L,P=!1)=>{if((s??h)(L),P){let E=_.current[L];ZI(v.current,E,i,r)}}),S=pr(L=>{if(L.size===0||k.current)return;k.current=!0;let P=Array.from(L.keys()),E=P.find(z=>z?.hasAttribute(D5))??null,M=E?P.indexOf(E):-1;if(M!==-1)w(M);else if(Kv(P,x,m)){let z=fd(P,{disabledIndices:m});Zv(P,z)||w(z)}ZI(v.current,E,i,r)});Kt(()=>{if(m==null||l!=null||!k.current)return;let L=_.current;if(Kv(L,x,m)){let P=fd(L,{disabledIndices:m});Zv(L,P)||w(P)}},[m,l,x,_,w]);let T=pr((L,P,E)=>n?n(L,P,E,_):E),N=pr(L=>{let P=u?$U:$I;if(!P.has(L.key)||n_e(L,d)||!v.current)return;let M=i==="rtl",z=M?Yv:Qv,j={horizontal:z,vertical:wh,both:z}[r],q=M?Qv:Yv,G={horizontal:q,vertical:kh,both:q}[r],W=B5(L.nativeEvent);if(W!=null&&qI(W)&&!QU(W)){let ee=W.selectionStart,te=W.selectionEnd,de=W.value??"";if(ee==null||L.shiftKey||ee!==te||L.key!==G&&ee<de.length||L.key!==j&&ee>0)return}let V=x,Q=HI(_,m),Y=jI(_,m);o!=null&&(V=o({disabledIndices:m,elementsRef:_,event:L,highlightedIndex:x,loopFocus:t,maxIndex:Y,minIndex:Q,onLoop:T,orientation:r,rtl:M}));let re={horizontal:[z],vertical:[wh],both:[z,wh]}[r],J={horizontal:[q],vertical:[kh],both:[q,kh]}[r],ie=g?P:{horizontal:u?GU:GI,vertical:u?WU:WI,both:P}[r];u&&(L.key===Xv?V=Q:L.key===Jv&&(V=Y)),V===x&&(re.includes(L.key)||J.includes(L.key))&&(t&&V===Y&&re.includes(L.key)?(V=Q,n&&(V=n(L,x,V,_))):t&&V===Q&&J.includes(L.key)?(V=Y,n&&(V=n(L,x,V,_))):V=fd(_.current,{startingIndex:V,decrement:J.includes(L.key),disabledIndices:m})),V!==x&&!Zv(_.current,V)&&(p&&L.stopPropagation(),ie.has(L.key)&&L.preventDefault(),w(V,!0),queueMicrotask(()=>{_.current[V]?.focus()}))});return{props:{ref:b,onFocus(L){let P=v.current,E=B5(L.nativeEvent);!P||E==null||!qI(E)||E.setSelectionRange(0,E.value.length??0)},onKeyDown:N},highlightedIndex:x,onHighlightedIndexChange:w,elementsRef:_,disabledIndices:m,onMapChange:S,relayKeyboardEvent:N}}function n_e(e,t){for(let r of qU.values())if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}var YI=a(y(),1);function tG(e){let{render:t,className:r,style:o,refs:n=Gv,props:i=Gv,state:l=Qs,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:u,orientation:p,grid:m,loopFocus:d,onLoop:f,enableHomeAndEndKeys:h,onMapChange:g,stopEventPropagation:v=!0,rootRef:b,disabledIndices:_,modifierKeys:k,highlightItemOnHover:x=!1,tag:w="div",...S}=e,T=nU(),{props:N,highlightedIndex:D,onHighlightedIndexChange:L,elementsRef:P,onMapChange:E,relayKeyboardEvent:M}=JU({grid:m,loopFocus:d,onLoop:f,orientation:p,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:v,enableHomeAndEndKeys:h,direction:T,disabledIndices:_,modifierKeys:k}),z=pl(w,e,{state:l,ref:n,props:[N,...i,S],stateAttributesMapping:s}),j=eG.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:L,highlightItemOnHover:x,relayKeyboardEvent:M}),[D,L,x,M]);return(0,YI.jsx)(RI.Provider,{value:j,children:(0,YI.jsx)(g5,{elementsRef:P,onMapChange:q=>{g?.(q),E(q)},children:z})})}var rG=a(HU(),1);function i_e(){return TI}function l_e(){return!1}function s_e(){return!0}function oG(){return(0,rG.useSyncExternalStore)(i_e,l_e,s_e)}var Jl={};K(Jl,{Indicator:()=>cG,List:()=>mG,Panel:()=>pG,Root:()=>iG,Tab:()=>lG});var Zr=a(ut(),1);var L5=a(ut(),1),QI=L5.createContext(void 0);function bp(){let e=L5.useContext(QI);if(e===void 0)throw new Error(vp(64));return e}var aG=(function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e})({});var Js={tabActivationDirection:e=>({[aG.activationDirection]:e})};var XI=a(y(),1),iG=Zr.forwardRef(function(t,r){let{className:o,defaultValue:n=0,onValueChange:i,orientation:l="horizontal",render:s,value:c,style:u,...p}=t,m=t.defaultValue!==void 0,d=Zr.useRef([]),[f,h]=Zr.useState(()=>new Map),[g,v]=Jj({controlled:c,default:n,name:"Tabs",state:"value"}),b=c!==void 0,[_,k]=Zr.useState(()=>new Map),x=Zr.useRef(void 0),w=Zr.useCallback(le=>{if(le===void 0)return null;for(let[me,xe]of _.entries())if(xe!=null&&le===(xe.value??xe.index))return me;return null},[_]),[S,T]=Zr.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:N,tabActivationDirection:D}=S,L=D,P=!1;N!==g&&(L=nG(N,g,l,_),P=N!=null&&g!=null&&w(g)==null);let E=P?N:g,M=N!==E||D!==L;Kt(()=>{M&&T({previousValue:E,tabActivationDirection:L})},[E,M,L]);let z=pr((le,me)=>{let xe=nG(g,le,l,_);me.activationDirection=xe,i?.(le,me),!me.isCanceled&&v(le)}),j=pr((le,me)=>{i?.(le,qv(me,void 0,void 0,{activationDirection:"none"}))}),q=pr((le,me)=>{h(xe=>{if(xe.get(le)===me)return xe;let ae=new Map(xe);return ae.set(le,me),ae})}),G=pr((le,me)=>{h(xe=>{if(!xe.has(le)||xe.get(le)!==me)return xe;let ae=new Map(xe);return ae.delete(le),ae})}),W=Zr.useCallback(le=>f.get(le),[f]),V=Zr.useCallback(le=>{for(let me of _.values())if(le===me?.value)return me?.id},[_]),Q=Zr.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:V,getTabPanelIdByValue:W,onValueChange:z,orientation:l,registerMountedTabPanel:q,setTabMap:k,unregisterMountedTabPanel:G,tabActivationDirection:L,value:g}),[w,V,W,z,l,q,k,G,L,g]),Y=Zr.useMemo(()=>{for(let le of _.values())if(le!=null&&le.value===g)return le},[_,g]),re=Zr.useMemo(()=>{for(let le of _.values())if(le!=null&&!le.disabled)return le.value},[_]),J=Zr.useRef(!m),ie=Zr.useRef(n),ee=Zr.useRef(m),te=Zr.useRef(!1);Kt(()=>{if(b)return;function le(pe,se){v(pe),T(Ne=>Ne.previousValue===pe&&Ne.tabActivationDirection==="none"?Ne:{previousValue:pe,tabActivationDirection:"none"}),j(pe,se),J.current=!1}if(_.size===0){te.current&&g!==null&&!x.current?.isConnected&&le(null,Ql.missing);return}te.current=!0,x.current=_.keys().next().value;let me=Y?.disabled,xe=Y==null&&g!==null;if(!me&&g===ie.current&&(ee.current=!1),ee.current&&me&&g===ie.current)return;let ae=J.current;if(me||xe){let pe=re??null;if(g===pe){J.current=!1;return}let se=Ql.missing;ae?se=Ql.initial:me&&(se=Ql.disabled),le(pe,se);return}ae&&Y!=null&&(j(g,Ql.initial),J.current=!1)},[re,b,j,Y,v,_,g]);let we=pl("div",t,{state:{orientation:l,tabActivationDirection:L},ref:r,props:p,stateAttributesMapping:Js});return(0,XI.jsx)(QI.Provider,{value:Q,children:(0,XI.jsx)(g5,{elementsRef:d,children:we})})});function nG(e,t,r,o){if(e==null||t==null)return"none";let n=null,i=null;for(let[c,u]of o.entries()){if(u==null)continue;let p=u.value??u.index;if(e===p&&(n=c),t===p&&(i=c),n!=null&&i!=null)break}if(n==null||i==null)return n!==i&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?r==="horizontal"?t>e?"right":"left":t>e?"down":"up":"none";let l=n.getBoundingClientRect(),s=i.getBoundingClientRect();if(r==="horizontal"){if(s.left<l.left)return"left";if(s.left>l.left)return"right"}else{if(s.top<l.top)return"up";if(s.top>l.top)return"down"}return"none"}var su=a(ut(),1);var R5=a(ut(),1),JI=R5.createContext(void 0);function M5(){let e=R5.useContext(JI);if(e===void 0)throw new Error(vp(65));return e}var lG=su.forwardRef(function(t,r){let{className:o,disabled:n=!1,render:i,value:l,id:s,nativeButton:c=!0,style:u,...p}=t,{value:m,getTabPanelIdByValue:d,orientation:f,tabActivationDirection:h}=bp(),{activateOnFocus:g,highlightedTabIndex:v,onTabActivation:b,registerTabResizeObserverElement:_,setHighlightedTabIndex:k,tabsListElement:x}=M5(),w=x5(s),S=su.useMemo(()=>({disabled:n,id:w,value:l}),[n,w,l]),{compositeProps:T,compositeRef:N,index:D}=YU({metadata:S}),L=l===m,P=su.useRef(!1),E=su.useRef(null);Kt(()=>{let J=E.current;if(J)return _(J)},[_]),Kt(()=>{if(P.current){P.current=!1;return}if(!(L&&D>-1&&v!==D))return;let J=x;if(J!=null){let ie=VI(zI(J));if(ie&&OI(J,ie))return}n||k(D)},[L,D,v,k,n,x]);let{getButtonProps:M,buttonRef:z}=AI({disabled:n,native:c,focusableWhenDisabled:!0}),j=d(l),q=su.useRef(!1),G=su.useRef(!1);function W(J){L||n||b(l,qv(Ql.none,J.nativeEvent,void 0,{activationDirection:"none"}))}function V(J){L||(D>-1&&!n&&k(D),!n&&g&&(!q.current||q.current&&G.current)&&b(l,qv(Ql.none,J.nativeEvent,void 0,{activationDirection:"none"})))}function Q(J){if(L||n)return;q.current=!0;function ie(){q.current=!1,G.current=!1}(!J.button||J.button===0)&&(G.current=!0,zI(J.currentTarget).addEventListener("pointerup",ie,{once:!0}))}return pl("button",t,{state:{disabled:n,active:L,orientation:f,tabActivationDirection:h},ref:[r,z,N,E],props:[T,{role:"tab","aria-controls":j,"aria-selected":L,id:w,onClick:W,onFocus:V,onPointerDown:Q,[D5]:L?"":void 0,onKeyDownCapture(){P.current=!0}},p,M],stateAttributesMapping:Js})});var Sh=a(ut(),1);var sG='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';var hd=(function(e){return e.activeTabLeft="--active-tab-left",e.activeTabRight="--active-tab-right",e.activeTabTop="--active-tab-top",e.activeTabBottom="--active-tab-bottom",e.activeTabWidth="--active-tab-width",e.activeTabHeight="--active-tab-height",e})({});var A5=a(y(),1),c_e={...Js,activeTabPosition:()=>null,activeTabSize:()=>null},cG=Sh.forwardRef(function(t,r){let{className:o,render:n,renderBeforeHydration:i=!1,style:l,...s}=t,{nonce:c}=XU(),{getTabElementBySelectedValue:u,orientation:p,tabActivationDirection:m,value:d}=bp(),{tabsListElement:f,registerIndicatorUpdateListener:h}=M5(),g=oG(),v=jU();Sh.useEffect(()=>h(v),[h,v]);let b=0,_=0,k=0,x=0,w=0,S=0,T=!1;if(d!=null&&f!=null){let z=u(d);if(z!=null){T=!0;let{width:j,height:q}=KI(z),{width:G,height:W}=KI(f),V=z.getBoundingClientRect(),Q=f.getBoundingClientRect(),Y=G>0?Q.width/G:1,re=W>0?Q.height/W:1;if(Math.abs(Y)>Number.EPSILON&&Math.abs(re)>Number.EPSILON){let ie=V.left-Q.left,ee=V.top-Q.top;b=ie/Y+f.scrollLeft-f.clientLeft,k=ee/re+f.scrollTop-f.clientTop}else b=z.offsetLeft,k=z.offsetTop;w=j,S=q,_=f.scrollWidth-b-w,x=f.scrollHeight-k-S}}let N=T?{left:b,right:_,top:k,bottom:x}:null,D=T?{width:w,height:S}:null,L=T?{[hd.activeTabLeft]:`${b}px`,[hd.activeTabRight]:`${_}px`,[hd.activeTabTop]:`${k}px`,[hd.activeTabBottom]:`${x}px`,[hd.activeTabWidth]:`${w}px`,[hd.activeTabHeight]:`${S}px`}:void 0,P=T&&w>0&&S>0,M=pl("span",t,{state:{orientation:p,activeTabPosition:N,activeTabSize:D,tabActivationDirection:m},ref:r,props:[{role:"presentation",style:L,hidden:!P},s,{suppressHydrationWarning:!0}],stateAttributesMapping:c_e});return d==null?null:(0,A5.jsxs)(Sh.Fragment,{children:[M,g&&i&&(0,A5.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:sG},suppressHydrationWarning:!0})]})});var Th=a(ut(),1);var uG=(function(e){return e.index="data-index",e.activationDirection="data-activation-direction",e.orientation="data-orientation",e.hidden="data-hidden",e[e.startingStyle=md.startingStyle]="startingStyle",e[e.endingStyle=md.endingStyle]="endingStyle",e})({});var u_e={...Js,...TU},pG=Th.forwardRef(function(t,r){let{className:o,value:n,render:i,keepMounted:l=!1,style:s,...c}=t,{value:u,getTabIdByPanelValue:p,orientation:m,tabActivationDirection:d,registerMountedTabPanel:f,unregisterMountedTabPanel:h}=bp(),g=x5(),v=Th.useMemo(()=>({id:g,value:n}),[g,n]),{ref:b,index:_}=C5({metadata:v}),k=n===u,{mounted:x,transitionStatus:w,setMounted:S}=SU(k),T=!x,N=p(n),D={hidden:T,orientation:m,tabActivationDirection:d,transitionStatus:w},L=Th.useRef(null),P=pl("div",t,{state:D,ref:[r,b,L],props:[{"aria-labelledby":N,hidden:T,id:g,role:"tabpanel",tabIndex:k?0:-1,inert:ZU(!k),[uG.index]:_},c],stateAttributesMapping:u_e});return zU({open:k,ref:L,onComplete(){k||S(!1)}}),Kt(()=>{if(!(T&&!l)&&g!=null)return f(n,g),()=>{h(n,g)}},[T,l,n,g,f,h]),l||x?P:null});var Xl=a(ut(),1);var eD=a(y(),1),mG=Xl.forwardRef(function(t,r){let{activateOnFocus:o=!1,className:n,loopFocus:i=!0,render:l,style:s,...c}=t,{onValueChange:u,orientation:p,value:m,setTabMap:d,tabActivationDirection:f}=bp(),[h,g]=Xl.useState(0),[v,b]=Xl.useState(null),_=Xl.useRef(new Set),k=Xl.useRef(new Set),x=Xl.useRef(null);Kt(()=>{if(typeof ResizeObserver>"u")return;let P=new ResizeObserver(()=>{_.current.forEach(E=>{E()})});return x.current=P,v&&P.observe(v),k.current.forEach(E=>{P.observe(E)}),()=>{P.disconnect(),x.current=null}},[v]);let w=pr(P=>(_.current.add(P),()=>{_.current.delete(P)})),S=pr(P=>(k.current.add(P),x.current?.observe(P),()=>{k.current.delete(P),x.current?.unobserve(P)})),T=pr((P,E)=>{P!==m&&u(P,E)}),N={orientation:p,tabActivationDirection:f},D={"aria-orientation":p==="vertical"?"vertical":void 0,role:"tablist"},L=Xl.useMemo(()=>({activateOnFocus:o,highlightedTabIndex:h,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:S,onTabActivation:T,setHighlightedTabIndex:g,tabsListElement:v}),[o,h,w,S,T,g,v]);return(0,eD.jsx)(JI.Provider,{value:L,children:(0,eD.jsx)(tG,{render:l,className:n,style:s,state:N,refs:[r,b],props:[D,c],stateAttributesMapping:Js,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:i,orientation:p,onHighlightedIndexChange:g,onMapChange:d,disabledIndices:Gv})})});function Ph(e){return pl(e.defaultTagName??"div",e,e)}var fG=a(H(),1),hG=a(A(),1),gG=a(y(),1),tD=(0,fG.forwardRef)(function({icon:t,size:r=24,...o},n){return(0,gG.jsx)(hG.SVG,{ref:n,...t.props,...o,width:r,height:r})});var vG=a(H(),1),rD="data-wp-hash";function oD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&m_e(document)),e.__wpStyleRuntime}function p_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${rD}]`))if(r.getAttribute(rD)===t)return!0;return!1}function bG(e,t,r){if(!e.head)return;let o=oD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(p_e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(rD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function m_e(e){let t=oD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)bG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function d_e(e,t){let r=oD();r.styles.set(e,t);for(let o of r.documents.keys())bG(o,e,t)}typeof process>"u",d_e("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var f_e={stack:"_19ce0419607e1896__stack"},h_e={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},yp=(0,vG.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:i,render:l,...s},c){let u={gap:r&&h_e[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:i};return Ph({render:l,ref:c,props:Yl(s,{style:u,className:f_e.stack})})});var _p=a(H(),1);function yG(e){let t=(0,_p.useRef)(e);t.current=e;let r=(0,_p.useRef)(null),o=(0,_p.useRef)(!1),n=(0,_p.useCallback)(()=>{o.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t.current(),r.current=null},0))},[]);return(0,_p.useEffect)(()=>(o.current=!1,()=>{o.current=!0,r.current&&clearTimeout(r.current)}),[]),n}var _G=a(H(),1),aD="data-wp-hash";function nD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&v_e(document)),e.__wpStyleRuntime}function g_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${aD}]`))if(r.getAttribute(aD)===t)return!0;return!1}function xG(e,t,r){if(!e.head)return;let o=nD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(g_e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(aD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function v_e(e){let t=nD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)xG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function b_e(e,t){let r=nD();r.styles.set(e,t);for(let o of r.documents.keys())xG(o,e,t)}typeof process>"u",b_e("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var y_e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},vi=(0,_G.forwardRef)(function({render:t,...r},o){return Ph({render:t,ref:o,props:Yl({className:y_e["visually-hidden"]},r,{"data-visually-hidden":""})})});var kG=a(H(),1),wG=a(I(),1),Eh=a(y(),1),iD="data-wp-hash";function lD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&x_e(document)),e.__wpStyleRuntime}function __e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${iD}]`))if(r.getAttribute(iD)===t)return!0;return!1}function CG(e,t,r){if(!e.head)return;let o=lD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(__e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(iD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function x_e(e){let t=lD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)CG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function V5(e,t){let r=lD();r.styles.set(e,t);for(let o of r.documents.keys())CG(o,e,t)}typeof process>"u",V5("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var k_e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",V5("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var w_e={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",V5("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var z5={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",V5("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var C_e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},cu=(0,kG.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:n=!1,render:i,className:l,...s},c){return Ph({render:i,defaultTagName:"a",ref:c,props:Yl(s,{className:C(C_e.a,k_e["box-sizing"],w_e["outset-ring--focus-except-active"],r!=="unstyled"&&z5.link,r!=="unstyled"&&z5[`is-${o}`],r==="unstyled"&&z5["is-unstyled"],l),target:n?"_blank":void 0,children:(0,Eh.jsxs)(Eh.Fragment,{children:[t,n&&(0,Eh.jsx)("span",{className:z5["link-icon"],role:"img","aria-label":(0,wG.__)("(opens in a new tab)")})]})})})});var xp={};K(xp,{List:()=>BG,Panel:()=>AG,Root:()=>VG,Tab:()=>HG});var gd=a(H(),1);var TG=a(ge(),1),O5=a(y(),1),sD="data-wp-hash";function cD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&T_e(document)),e.__wpStyleRuntime}function S_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${sD}]`))if(r.getAttribute(sD)===t)return!0;return!1}function PG(e,t,r){if(!e.head)return;let o=cD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(S_e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function T_e(e){let t=cD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)PG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function P_e(e,t){let r=cD();r.styles.set(e,t);for(let o of r.documents.keys())PG(o,e,t)}typeof process>"u",P_e("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)
			&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]
				[role=tab]:is([aria-selected=true])
				&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var eb={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},SG=1,BG=(0,gd.forwardRef)(function({children:t,variant:r="default",className:o,activateOnFocus:n,...i},l){let[s,c]=(0,gd.useState)(null),[u,p]=(0,gd.useState)({first:!1,last:!1,isScrolling:!1});(0,gd.useEffect)(()=>{if(!s)return;let d=()=>{let{scrollWidth:_,clientWidth:k,scrollLeft:x}=s,w=Math.max(_-k,0),T=(s.dir||(typeof window<"u"?window.getComputedStyle(s).direction:"ltr"))==="rtl"&&x<0?-x:x,N={first:T>SG,last:T<w-SG,isScrolling:_>k};p(D=>D.first===N.first&&D.last===N.last&&D.isScrolling===N.isScrolling?D:N)},f=new ResizeObserver(d),h=()=>{f.disconnect(),f.observe(s),s.querySelectorAll('[role="tab"]').forEach(_=>f.observe(_))},g=new MutationObserver(h);g.observe(s,{childList:!0,subtree:!0});let v=!1,b=()=>{v||(requestAnimationFrame(()=>{d(),v=!1}),v=!0)};return s.addEventListener("scroll",b,{passive:!0}),h(),d(),()=>{s.removeEventListener("scroll",b),f.disconnect(),g.disconnect()}},[s]);let m=(0,TG.useMergeRefs)([l,d=>c(d)]);return(0,O5.jsxs)(Jl.List,{ref:m,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:C(eb.tablist,u.first&&eb["is-overflowing-first"],u.last&&eb["is-overflowing-last"],eb[`is-${r}-variant`],o),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,O5.jsx)(Jl.Indicator,{className:eb.indicator})]})});var DG=a(H(),1);var Ta=a(H(),1);var tb=a(y(),1),F5=!1,uD=F5?(0,Ta.createContext)(null):null;function B_e(){let e=(0,Ta.useContext)(uD);(0,Ta.useEffect)(()=>{if(e)return e.registerTab()},[e])}function E_e(){}var EG=F5?B_e:E_e;function N_e(){let e=(0,Ta.useContext)(uD);(0,Ta.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function I_e(){}var NG=F5?N_e:I_e;function D_e({children:e}){let t=(0,Ta.useRef)(0),r=(0,Ta.useRef)(0),o=yG(()=>{let s=t.current,c=r.current;if(s!==c)throw new Error(`Tabs: Tab/Panel count mismatch (${s} Tabs, ${c} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),n=(0,Ta.useCallback)(()=>(t.current+=1,o(),()=>{t.current-=1,o()}),[o]),i=(0,Ta.useCallback)(()=>(r.current+=1,o(),()=>{r.current-=1,o()}),[o]),l=(0,Ta.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,tb.jsx)(uD.Provider,{value:l,children:e})}function L_e({children:e}){return(0,tb.jsx)(tb.Fragment,{children:e})}var IG=F5?D_e:L_e;var MG=a(y(),1),pD="data-wp-hash";function mD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&M_e(document)),e.__wpStyleRuntime}function R_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${pD}]`))if(r.getAttribute(pD)===t)return!0;return!1}function LG(e,t,r){if(!e.head)return;let o=mD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(R_e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(pD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function M_e(e){let t=mD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)LG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function RG(e,t){let r=mD();r.styles.set(e,t);for(let o of r.documents.keys())LG(o,e,t)}typeof process>"u",RG("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var A_e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",RG("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var z_e={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"},AG=(0,DG.forwardRef)(function({className:t,...r},o){return NG(),(0,MG.jsx)(Jl.Panel,{ref:o,className:C(A_e.div,z_e["outset-ring--focus-visible"],t),...r})});var zG=a(H(),1);var dD=a(y(),1),VG=(0,zG.forwardRef)(function({...t},r){return(0,dD.jsx)(IG,{children:(0,dD.jsx)(Jl.Root,{ref:r,...t})})});var OG=a(H(),1);var rb=a(y(),1),hD="data-wp-hash";function gD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&O_e(document)),e.__wpStyleRuntime}function V_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${hD}]`))if(r.getAttribute(hD)===t)return!0;return!1}function FG(e,t,r){if(!e.head)return;let o=gD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(V_e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(hD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function O_e(e){let t=gD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)FG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function F_e(e,t){let r=gD();r.styles.set(e,t);for(let o of r.documents.keys())FG(o,e,t)}typeof process>"u",F_e("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)
			&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]
				[role=tab]:is([aria-selected=true])
				&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var fD={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},HG=(0,OG.forwardRef)(function({className:t,children:r,...o},n){return EG(),(0,rb.jsxs)(Jl.Tab,{ref:n,className:C(fD.tab,t),...o,children:[(0,rb.jsx)("span",{className:fD["tab-children"],children:r}),(0,rb.jsx)(tD,{icon:lh,className:fD["tab-chevron"]})]})});var H5="noopener",j5="_blank",Nh="nofollow";var jG=a(ur(),1);function UG({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let n,i=e;if(r)n=j5,i=i?.includes(H5)?i:i+` ${H5}`;else{let l=new RegExp(`\\b${H5}\\s*`,"g");i=i?.replace(l,"").trim()}if(o)i=i?.includes(Nh)?i:(i+` ${Nh}`).trim();else{let l=new RegExp(`\\b${Nh}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,jG.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function ob(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var WG=a(ge(),1),U5=a(H(),1),$G=a(vd(),1),qG=a(F(),1),ZG=a(B(),1);function wt(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,qG.useDispatch)(ZG.store),l=(0,WG.useEvent)(()=>{(0,$G.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,U5.useRef)();(0,U5.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}function vD(e){return typeof e=="string"&&e.endsWith("%")}function KG(e){if(!e)return{};if(vD(e)){let t={"25%":"wp-block-button__width-25","50%":"wp-block-button__width-50","75%":"wp-block-button__width-75","100%":"wp-block-button__width-100"};return{"has-custom-width":!0,"wp-block-button__width":!0,...t[e]&&{[t[e]]:!0}}}return{"has-custom-width":!0}}var Pa=a(y(),1),{HTMLElementControl:H_e}=U(pt.privateApis),{subscribeDelegatedListener:j_e}=U(bd.privateApis),U_e=[...pt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,ml.__)("Mark as nofollow")}];function G_e(e){let{replaceBlocks:t,selectionChange:r}=(0,ab.useDispatch)(pt.store),{getBlock:o,getBlockAttributes:n,getBlockRootClientId:i,getBlockIndex:l}=(0,ab.useSelect)(pt.store);return(0,bd.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==kp.ENTER)return;let{text:p}=n(e)??{};if(p?.length)return;u.preventDefault();let m=o(i(e)),d=l(e),f=(0,uu.cloneBlock)({...m,innerBlocks:m.innerBlocks.slice(0,d)}),h=(0,uu.createBlock)((0,uu.getDefaultBlockName)()),g=m.innerBlocks.slice(d+1),v=g.length?[(0,uu.cloneBlock)({...m,innerBlocks:g})]:[];t(m.clientId,[f,h,...v],1),r(h.clientId)}return j_e(s,"keydown",c,!0)},[])}function W_e(e){let{attributes:t,setAttributes:r,className:o,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:p,placeholder:m,rel:d,style:f,text:h,url:g,metadata:v}=t,b=f?.dimensions?.width;wt(e);let _=u||"a";function k(he){kp.isKeyboardEvent.primary(he,"k")?te(he):kp.isKeyboardEvent.primaryShift(he,"k")&&(de(),E.current?.focus())}let[x,w]=(0,Ba.useState)(null),S=(0,pt.__experimentalUseBorderProps)(t),T=(0,pt.__experimentalUseColorProps)(t),N=(0,pt.__experimentalGetSpacingClassesAndStyles)(t),D=(0,pt.__experimentalGetShadowClassesAndStyles)(t),L=(0,pt.__experimentalGetDimensionsClassesAndStyles)(t),P=(0,Ba.useRef)(),E=(0,Ba.useRef)(),M=(0,pt.useBlockProps)({ref:(0,bd.useMergeRefs)([w,P]),onKeyDown:k}),z=(0,pt.useBlockEditingMode)(),[j,q]=(0,Ba.useState)(!1),G=!!g,W=p===j5,V=!!d?.includes(Nh),Q=_==="a",{createPageEntity:Y,userCanCreatePages:re,lockUrlControls:J=!1}=(0,ab.useSelect)(he=>{if(!n)return{};let ze=he(pt.store).getSettings(),Ct=(0,uu.getBlockBindingsSource)(v?.bindings?.url?.source);return{createPageEntity:ze.__experimentalCreatePageEntity,userCanCreatePages:ze.__experimentalUserCanCreatePages,lockUrlControls:!!v?.bindings?.url&&!Ct?.canUserEditValue?.({select:he,context:c,args:v?.bindings?.url?.args})}},[c,n,v?.bindings?.url]);async function ie(he){let ze=await Y({title:he,status:"draft"});return{id:ze.id,type:ze.type,title:ze.title.rendered,url:ze.link,kind:"post-type"}}function ee(he){return(0,Ba.createInterpolateElement)((0,ml.sprintf)((0,ml.__)("Create page: <mark>%s</mark>"),he),{mark:(0,Pa.jsx)("mark",{})})}function te(he){he.preventDefault(),q(!0)}function de(){r({url:void 0,linkTarget:void 0,rel:void 0}),q(!1)}(0,Ba.useEffect)(()=>{n||q(!1)},[n]);let we=(0,Ba.useMemo)(()=>({url:g,opensInNewTab:W,nofollow:V}),[g,W,V]),le=G_e(s),me=(0,bd.useMergeRefs)([le,E]),[xe,ae,pe]=(0,pt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),se=(0,Ba.useMemo)(()=>pe?[...pe?.custom??[],...pe?.theme??[],...pe?.default??[]]:[],[pe]),Ne=(0,pt.getTypographyClassesAndStyles)(t,{typography:{fluid:xe},layout:{wideSize:ae?.wideSize}}),Ie=(0,Ba.useMemo)(()=>{if(!b)return;let he="var:preset|dimension|";if(b.startsWith(he)){let ze=b.slice(he.length);return se?.find(Ae=>Ae.slug===ze)?.size??b}return b},[b,se]),Ce=z==="default"||Q&&!J,ue=C(M.className,KG(Ie)),ct=(0,Ba.useMemo)(()=>b?vD(Ie)?{"--wp--block-button--width":parseFloat(Ie)}:L.style:{},[b,Ie,L.style]);return(0,Pa.jsxs)(Pa.Fragment,{children:[(0,Pa.jsx)("div",{...M,className:ue,style:{...M.style,...ct},children:(0,Pa.jsx)(pt.RichText,{ref:me,"aria-label":(0,ml.__)("Button text"),placeholder:m||(0,ml.__)("Add text\u2026"),value:h,onChange:he=>r({text:ob(he)}),withoutInteractiveFormatting:!0,className:C(o,"wp-block-button__link",T.className,S.className,Ne.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":M.style.fontSize},(0,pt.__experimentalGetElementClassName)("button")),style:{...S.style,...T.style,...N.style,...D.style,...Ne.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),Ce&&(0,Pa.jsx)(pt.BlockControls,{group:"block",children:Q&&!J&&(0,Pa.jsx)(Ih.ToolbarButton,{name:"link",icon:G?ev:fi,title:G?(0,ml.__)("Unlink"):(0,ml.__)("Link"),shortcut:G?kp.displayShortcut.primaryShift("k"):kp.displayShortcut.primary("k"),onClick:G?de:te,isActive:G})}),Q&&n&&(j||G)&&!J&&(0,Pa.jsx)(Ih.Popover,{placement:"bottom",onClose:()=>{q(!1),E.current?.focus()},anchor:x,focusOnMount:j?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Pa.jsx)(pt.LinkControl,{value:we,onChange:({url:he,opensInNewTab:ze,nofollow:Ct})=>r(UG({rel:d,url:he,opensInNewTab:ze,nofollow:Ct})),onRemove:()=>{de(),E.current?.focus()},forceIsEditingLink:j,settings:U_e,createSuggestion:Y&&ie,withCreateSuggestion:re,createSuggestionButtonText:ee})}),(0,Pa.jsxs)(pt.InspectorControls,{group:"advanced",children:[(0,Pa.jsx)(H_e,{tagName:u,onChange:he=>r({tagName:he}),options:[{label:(0,ml.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),Q&&(0,Pa.jsx)(Ih.TextControl,{label:(0,ml.__)("Link relation"),help:(0,Ba.createInterpolateElement)((0,ml.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Pa.jsx)(cu,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:he=>r({rel:he})})]})]})}var YG=W_e;var G5={$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"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{width:!0,__experimentalSkipSerialization:["width"],__experimentalDefaultControls:{width:!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"},dimensions:{root:".wp-block-button",width:".wp-block-button"}}};var Ea=a(B(),1),bD=a(y(),1);function QG({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:n,rel:i,style:l,text:s,title:c,url:u}=e,p=t||"a",m=p==="button",d=r||"button",f=(0,Ea.__experimentalGetBorderClassesAndStyles)(e),h=(0,Ea.__experimentalGetColorClassesAndStyles)(e),g=(0,Ea.__experimentalGetSpacingClassesAndStyles)(e),v=(0,Ea.__experimentalGetShadowClassesAndStyles)(e),b=(0,Ea.getTypographyClassesAndStyles)(e),_=C("wp-block-button__link",h.className,f.className,b.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":o||l?.typography?.fontSize},(0,Ea.__experimentalGetElementClassName)("button")),k={...f.style,...h.style,...g.style,...v.style,...b.style,writingMode:void 0};return(0,bD.jsx)("div",{...Ea.useBlockProps.save(),children:(0,bD.jsx)(Ea.RichText.Content,{tagName:p,type:m?d:null,className:_,href:m?null:u,title:c,style:k,value:s,target:m?null:n,rel:m?null:i})})}var{fieldsKey:q_e,formKey:Z_e}=U(XG.privateApis),{name:JG}=G5,$5={icon:Y9,example:{attributes:{className:"is-style-fill",text:(0,W5.__)("Call to action")}},edit:YG,save:QG,deprecated:Qj,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&($5[q_e]=[{id:"text",label:(0,W5.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,W5.__)("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})}],$5[Z_e]={fields:["text","link"]});var K_e=()=>R({name:JG,metadata:G5,settings:$5});var kD={};K(kD,{init:()=>txe,metadata:()=>Z5,name:()=>sW,settings:()=>cW});var xD=a(I(),1);var ib=a(B(),1),nb=a(y(),1),eW=e=>{if(e.layout)return e;let{contentJustification:t,orientation:r,...o}=e;return(t||r)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),o},Y_e=[{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:eW,save({attributes:{contentJustification:e,orientation:t}}){return(0,nb.jsx)("div",{...ib.useBlockProps.save({className:C({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,nb.jsx)(ib.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,nb.jsx)("div",{children:(0,nb.jsx)(ib.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return eW({...e,align:void 0,contentJustification:e.align})}}],tW=Y_e;var sb=a($(),1),_D=a(es(),1);var lb=a($(),1);function pu(e,t,r=null){if(!e)return;let o=(0,lb.getBlockType)(t);if(!o)return;let n={};if((0,lb.hasBlockSupport)(o,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,lb.hasBlockSupport)(o,"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 Q_e={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,sb.createBlock)("core/buttons",{},e.map(t=>(0,sb.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,sb.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,_D.__unstableCreateElement)(document,r),n=o.innerText||"",l=o.querySelector("a")?.getAttribute("href");return(0,sb.createBlock)("core/button",{...t,...pu(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let r=(0,_D.__unstableCreateElement)(document,t.content),o=r.innerText||"",n=r.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},oW=Q_e;var q5=a(B(),1),aW=a(y(),1),X_e={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function J_e({attributes:e,className:t}){let{fontSize:r,layout:o,style:n}=e,i=(0,q5.useBlockProps)({className:C(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),l=(0,q5.useInnerBlocksProps)(i,{defaultBlock:X_e,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:o?.orientation??"horizontal"});return(0,aW.jsx)("div",{...l})}var nW=J_e;var Z5={$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 K5=a(B(),1),iW=a(y(),1);function lW({attributes:e,className:t}){let{fontSize:r,style:o}=e,n=K5.useBlockProps.save({className:C(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=K5.useInnerBlocksProps.save(n);return(0,iW.jsx)("div",{...i})}var{name:sW}=Z5,cW={icon:X9,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,xD.__)("Find out more")}},{name:"core/button",attributes:{text:(0,xD.__)("Contact us")}}]},deprecated:tW,transforms:oW,edit:nW,save:lW},txe=()=>R({name:sW,metadata:Z5,settings:cW});var CD={};K(CD,{init:()=>nxe,metadata:()=>Y5,name:()=>vW,settings:()=>bW});var Y5={$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 cb=a(O(),1),uW=a(F(),1),pW=a(ap(),1),mW=a(B(),1),dW=a(oe(),1),Dh=a(I(),1),fW=a(ge(),1);var bi=a(y(),1),oxe=gh(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function hW({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:n}=(0,uW.useSelect)(p=>{let{getEntityRecords:m,hasFinishedResolution:d}=p(dW.store),f={status:"publish",per_page:1},h=m("postType","post",f),g=d("getEntityRecords",["postType","post",f]),v,b=p("core/editor");return b&&b.getEditedPostAttribute("type")==="post"&&(v=b.getEditedPostAttribute("date")),{date:v,hasPostsResolved:g,hasPosts:g&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,pW.useServerSideRender)({attributes:{...e,...oxe(r)},block:t}),c=(0,fW.useDisabled)(),u=(0,mW.useBlockProps)({ref:c});return o?(0,bi.jsxs)(bi.Fragment,{children:[l==="loading"&&(0,bi.jsx)("div",{...u,children:(0,bi.jsx)(cb.Spinner,{})}),l==="error"&&(0,bi.jsx)("div",{...u,children:(0,bi.jsx)("p",{children:(0,Dh.sprintf)((0,Dh.__)("Error: %s"),s)})}),l==="success"&&(0,bi.jsx)(_o,{wrapperProps:u,html:i})]}):(0,bi.jsx)("div",{...u,children:(0,bi.jsx)(cb.Placeholder,{icon:A1,label:(0,Dh.__)("Calendar"),children:n?(0,Dh.__)("No published posts found."):(0,bi.jsx)(cb.Spinner,{})})})}var wD=a($(),1),axe={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,wD.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,wD.createBlock)("core/archives")}]},gW=axe;var{name:vW}=Y5,bW={icon:A1,example:{},edit:hW,transforms:gW},nxe=()=>R({name:vW,metadata:Y5,settings:bW});var PD={};K(PD,{init:()=>sxe,metadata:()=>Q5,name:()=>CW,settings:()=>SW});var Q5={$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 Pr=a(O(),1),yW=a(ge(),1),Lh=a(B(),1),_W=a(Xo(),1),Tr=a(I(),1);var SD=a(oe(),1),xW=a(F(),1);var kW=a(Sr(),1);var ht=a(y(),1);function TD({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:p}){let m=(0,yW.useInstanceId)(TD,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,SD.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(G=>G.visibility.public),g=h?.find(G=>G.slug===s),v=!f&&g?.hierarchical,b={per_page:-1,hide_empty:!n,context:"view"};v&&o&&(b.parent=0);let{records:_,isResolving:k}=(0,SD.useEntityRecords)("taxonomy",s,b),{createWarningNotice:x}=(0,xW.useDispatch)(kW.store),w=G=>{G.preventDefault(),x((0,Tr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${p}`,type:"snackbar"})},S=G=>_?.length?G===null?_:_.filter(({parent:W})=>W===G):[],T=G=>W=>c({[G]:W}),N=G=>G?(0,_W.decodeEntities)(G).trim():(0,Tr.__)("(Untitled)"),D=()=>S(v&&t?0:null).map(V=>L(V)),L=G=>{let W=S(G.id),{id:V,link:Q,count:Y,name:re}=G;return(0,ht.jsxs)("li",{className:`cat-item cat-item-${V}`,children:[(0,ht.jsx)("a",{href:Q,onClick:w,children:N(re)}),r&&` (${Y})`,v&&t&&!!W.length&&(0,ht.jsx)("ul",{className:"children",children:W.map(J=>L(J))})]},V)},P=()=>{let W=S(v&&t?0:null);return(0,ht.jsxs)(ht.Fragment,{children:[l?(0,ht.jsx)(Lh.RichText,{className:"wp-block-categories__label","aria-label":(0,Tr.__)("Label text"),placeholder:g?.name,withoutInteractiveFormatting:!0,value:i,onChange:V=>c({label:V})}):(0,ht.jsx)(vi,{render:(0,ht.jsx)("label",{htmlFor:m}),children:i||g?.name}),(0,ht.jsxs)("select",{id:m,children:[(0,ht.jsx)("option",{children:(0,Tr.sprintf)((0,Tr.__)("Select %s"),g?.labels?.singular_name)}),W.map(V=>E(V,0))]})]})},E=(G,W)=>{let{id:V,count:Q,name:Y}=G,re=S(V);return[(0,ht.jsxs)("option",{className:`level-${W}`,children:[Array.from({length:W*3}).map(()=>"\xA0"),N(Y),r&&` (${Q})`]},V),v&&t&&!!re.length&&re.map(J=>E(J,W+1))]},M=_?.length&&!e&&!k?"ul":"div",z=C(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!k,"wp-block-categories-dropdown":!!_?.length&&e&&!k}),j=(0,Lh.useBlockProps)({className:z}),q=Z();return(0,ht.jsxs)(M,{...j,children:[(0,ht.jsx)(Lh.InspectorControls,{children:(0,ht.jsxs)(Pr.__experimentalToolsPanel,{label:(0,Tr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:q,children:[Array.isArray(h)&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,Tr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,ht.jsx)(Pr.SelectControl,{label:(0,Tr.__)("Taxonomy"),options:h.map(G=>({label:G.name,value:G.slug})),value:s,onChange:G=>c({taxonomy:G})})}),(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,Tr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Display as dropdown"),checked:e,onChange:T("displayAsDropdown")})}),e&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Tr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,Tr.__)("Show label"),checked:l,onChange:T("showLabel")})}),(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Tr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show post counts"),checked:r,onChange:T("showPostCounts")})}),v&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,Tr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show only top level terms"),checked:o,onChange:T("showOnlyTopLevel")})}),(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Tr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show empty terms"),checked:n,onChange:T("showEmpty")})}),v&&!o&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Tr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show hierarchy"),checked:t,onChange:T("showHierarchy")})})]})}),k&&(0,ht.jsx)(Pr.Placeholder,{icon:lv,label:(0,Tr.__)("Terms"),children:(0,ht.jsx)(Pr.Spinner,{})}),!k&&_?.length===0&&(0,ht.jsx)("p",{children:g.labels.no_terms}),!k&&_?.length>0&&(e?P():D())]})}var X5=a(I(),1);var lxe=[{name:"terms",title:(0,X5.__)("Terms List"),icon:lp,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,X5.__)("Categories List"),description:(0,X5.__)("Display a list of all categories."),icon:lp,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],wW=lxe;var{name:CW}=Q5,SW={icon:lp,example:{},edit:TD,variations:wW},sxe=()=>R({name:CW,metadata:Q5,settings:SW});var ED={};K(ED,{init:()=>dxe,metadata:()=>rw,name:()=>pb,settings:()=>OW});var mu=a(B(),1),RW=a(F(),1),du=a(O(),1),Mh=a(H(),1),ub=a(I(),1);var TW=a(I(),1),PW=a(O(),1),J5=a(F(),1),ew=a($(),1),BD=a(B(),1),BW=a(y(),1),cxe=({clientId:e})=>{let{replaceBlocks:t}=(0,J5.useDispatch)(BD.store),r=(0,J5.useSelect)(o=>o(BD.store).getBlock(e),[e]);return(0,BW.jsx)(PW.ToolbarButton,{onClick:()=>t(r.clientId,(0,ew.rawHandler)({HTML:(0,ew.serialize)(r)})),children:(0,TW.__)("Convert to blocks")})},EW=cxe;var NW=a(B(),1),ts=a(O(),1),tw=a(H(),1),Rh=a(I(),1),IW=a(F(),1);var DW=a(ge(),1),dl=a(y(),1);function uxe({onClick:e,isModalFullScreen:t}){return(0,DW.useViewportMatch)("small","<")?null:(0,dl.jsx)(ts.Button,{size:"compact",onClick:e,icon:Km,isPressed:t,label:t?(0,Rh.__)("Exit fullscreen"):(0,Rh.__)("Enter fullscreen")})}function pxe(e){let t=(0,IW.useSelect)(r=>r(NW.store).getSettings().styles);return(0,tw.useEffect)(()=>{let{baseURL:r,suffix:o,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:o}),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,dl.jsx)("textarea",{...e})}function LW({clientId:e,content:t,onClose:r,onChange:o}){let[n,i]=(0,tw.useState)(!1),l=`editor-${e}`;return(0,dl.jsxs)(ts.Modal,{title:(0,Rh.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,dl.jsx)(uxe,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,dl.jsx)(pxe,{id:l,defaultValue:t}),(0,dl.jsxs)(ts.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,dl.jsx)(ts.FlexItem,{children:(0,dl.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Rh.__)("Cancel")})}),(0,dl.jsx)(ts.FlexItem,{children:(0,dl.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(l)),r()},children:(0,Rh.__)("Save")})})]})]})}var ea=a(y(),1);function MW({attributes:e,setAttributes:t,clientId:r}){let{content:o}=e,[n,i]=(0,Mh.useState)(!1),l=(0,Mh.useRef)(null),s=(0,RW.useSelect)(c=>c(mu.store).canRemoveBlock(r),[r]);return(0,ea.jsxs)(ea.Fragment,{children:[s&&(0,ea.jsx)(mu.BlockControls,{children:(0,ea.jsx)(du.ToolbarGroup,{children:(0,ea.jsx)(EW,{clientId:r})})}),(0,ea.jsx)(mu.BlockControls,{children:(0,ea.jsx)(du.ToolbarGroup,{children:(0,ea.jsx)(du.ToolbarButton,{ref:l,onClick:()=>i(!0),children:(0,ub.__)("Edit")})})}),(0,ea.jsxs)("div",{...(0,mu.useBlockProps)(),children:[o?(0,ea.jsx)(Mh.RawHTML,{children:o}):(0,ea.jsx)(du.Placeholder,{icon:(0,ea.jsx)(mu.BlockIcon,{icon:V1}),label:(0,ub.__)("Classic"),instructions:(0,ub.__)("Use the classic editor to add content."),children:(0,ea.jsx)(du.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,ub.__)("Edit contents")})}),n&&(0,ea.jsx)(LW,{clientId:r,content:o,onClose:()=>{i(!1),l.current&&l.current.focus()},onChange:c=>t({content:c})})]})]})}var rw={$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,customCSS:!1},editorStyle:"wp-block-freeform-editor"};var AW=a(H(),1),zW=a(y(),1);function VW({attributes:e}){let{content:t}=e;return(0,zW.jsx)(AW.RawHTML,{children:t})}var{name:pb}=rw,OW={icon:V1,edit:MW,save:VW},dxe=()=>R({name:pb,metadata:rw,settings:OW});var RD={};K(RD,{init:()=>_xe,metadata:()=>nw,name:()=>$W,settings:()=>sw});var LD=a(I(),1);var WW=a($(),1);var ND=a(I(),1),ow=a(B(),1),aw=a($(),1),ID=a(y(),1);function FW({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:n}){let i=(0,ow.useBlockProps)();return(0,ID.jsx)("pre",{...i,children:(0,ID.jsx)(ow.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:n,placeholder:(0,ND.__)("Write code\u2026"),"aria-label":(0,ND.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,aw.createBlock)((0,aw.getDefaultBlockName)())),style:{whiteSpace:"break-spaces"}})})}var nw={$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 iw=a(B(),1);var HW=a(ge(),1);function jW(e){return(0,HW.pipe)(hxe,gxe)(e||"")}function hxe(e){return e.replace(/\[/g,"&#91;")}function gxe(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var DD=a(y(),1);function UW({attributes:e}){return(0,DD.jsx)("pre",{...iw.useBlockProps.save(),children:(0,DD.jsx)(iw.RichText.Content,{tagName:"code",value:jW(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var yd=a($(),1),lw=a(es(),1);var vxe={from:[{type:"input",regExp:/^```$/,transform:()=>(0,yd.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,yd.createBlock)("core/code",{...e,...pu(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){let{attributes:t}=e;return(0,yd.createBlock)("core/code",{...t,...pu(t,"core/code"),content:(0,lw.toHTMLString)({value:(0,lw.create)({text:(0,yd.getBlockContent)(e)})})})}},{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,yd.createBlock)("core/paragraph",{...pu(e,"core/paragraph"),content:t})}}]},GW=vxe;var{fieldsKey:bxe,formKey:yxe}=U(WW.privateApis),{name:$W}=nw,sw={icon:O1,example:{attributes:{content:(0,LD.__)(`// 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:GW,edit:FW,save:UW};window.__experimentalContentOnlyInspectorFields&&(sw[bxe]=[{id:"content",label:(0,LD.__)("Code"),type:"text",Edit:"rich-text"}],sw[yxe]={fields:["content"]});var _xe=()=>R({name:$W,metadata:nw,settings:sw});var AD={};K(AD,{init:()=>Sxe,metadata:()=>uw,name:()=>XW,settings:()=>JW});var qW=a(B(),1),MD=a(y(),1),xxe=[{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,o=C({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,MD.jsx)("div",{className:o,style:n,children:(0,MD.jsx)(qW.InnerBlocks.Content,{})})}}],ZW=xxe;var ta=a(B(),1),wp=a(O(),1),cw=a(F(),1),_d=a(I(),1);var yi=a(y(),1);function kxe({width:e,setAttributes:t}){let[r]=(0,ta.useSettings)("spacing.units"),o=(0,wp.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=Z();return(0,yi.jsx)(wp.__experimentalToolsPanel,{label:(0,_d.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,yi.jsx)(wp.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,_d.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,yi.jsx)(wp.__experimentalUnitControl,{label:(0,_d.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function wxe({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:n,clientId:i}){let l=C("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,cw.useSelect)(_=>{let{getBlockOrder:k,getBlockRootClientId:x}=_(ta.store),w=x(i);return{hasChildBlocks:k(i).length>0,rootClientId:w,columnsIds:k(w)}},[i]),{updateBlockAttributes:p}=(0,cw.useDispatch)(ta.store),m=_=>{n({verticalAlignment:_}),p(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,ta.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,v=(0,_d.sprintf)((0,_d.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),b=(0,ta.useInnerBlocksProps)({...f,"aria-label":v},{templateLock:r,allowedBlocks:o,renderAppender:c?void 0:ta.InnerBlocks.ButtonBlockAppender});return(0,yi.jsxs)(yi.Fragment,{children:[(0,yi.jsx)(ta.BlockControls,{children:(0,yi.jsx)(ta.BlockVerticalAlignmentToolbar,{onChange:m,value:e,controls:["top","center","bottom","stretch"]})}),(0,yi.jsx)(ta.InspectorControls,{children:(0,yi.jsx)(kxe,{width:t,setAttributes:n})}),(0,yi.jsx)("div",{...b})]})}var KW=wxe;var uw={$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 pw=a(B(),1),YW=a(y(),1);function QW({attributes:e}){let{verticalAlignment:t,width:r}=e,o=C({[`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=pw.useBlockProps.save({className:o,style:n}),l=pw.useInnerBlocksProps.save(i);return(0,YW.jsx)("div",{...l})}var{name:XW}=uw,JW={icon:gP,edit:KW,save:QW,deprecated:ZW},Sxe=()=>R({name:XW,metadata:uw,settings:JW});var OD={};K(OD,{init:()=>Fxe,metadata:()=>fw,name:()=>c$,settings:()=>u$});var mb=a(I(),1);var e$=a($(),1),kd=a(B(),1),xd=a(y(),1);function mw(e){let{doc:t}=mw;t||(t=document.implementation.createHTMLDocument(""),mw.doc=t);let r;t.body.innerHTML=e;for(let o of t.body.firstChild.classList)if(r=o.match(/^layout-column-(\d+)$/))return Number(r[1])-1}var Txe=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:o,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},t$=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:Txe,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:n,customTextColor:i}=e,l=(0,kd.getColorClassName)("background-color",r),s=(0,kd.getColorClassName)("color",n),c=C({"has-background":r||o,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,xd.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:o,color:s?void 0:i},children:(0,xd.jsx)(kd.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>mw(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((l,s)=>{let{originalContent:c}=s,u=mw(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,e$.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,xd.jsx)("div",{className:`has-${t}-columns`,children:(0,xd.jsx)(kd.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:r,...o}=e;return e={...o,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:r}=e,o=C(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,xd.jsx)("div",{className:o,children:(0,xd.jsx)(kd.InnerBlocks.Content,{})})}}];var wd=a(I(),1),hl=a(O(),1),Kr=a(B(),1),fl=a(F(),1),Cd=a($(),1);var dw=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function r$(e,t){let{width:r=100/t}=e.attributes;return dw(r)}function Pxe(e,t=e.length){return e.reduce((r,o)=>r+r$(o,t),0)}function Bxe(e,t=e.length){return e.reduce((r,o)=>{let n=r$(o,t);return Object.assign(r,{[o.clientId]:n})},{})}function zD(e,t,r=e.length){let o=Pxe(e,r);return Object.fromEntries(Object.entries(Bxe(e,r)).map(([n,i])=>{let l=t*i/o;return[n,dw(l)]}))}function o$(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function VD(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var xo=a(y(),1),Exe={name:"core/column"};function Nxe({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:n,minCount:i}=(0,fl.useSelect)(p=>{let{canInsertBlockType:m,canRemoveBlock:d,getBlockOrder:f}=p(Kr.store),h=f(e),g=h.reduce((v,b,_)=>(d(b)||v.push(_),v),[]);return{count:h.length,canInsertColumnBlock:m("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:l}=(0,fl.useSelect)(Kr.store),{replaceInnerBlocks:s}=(0,fl.useDispatch)(Kr.store);function c(p,m){let d=l(e),f=o$(d),h=m>p;if(h&&f){let g=dw(100/m),v=m-p,b=zD(d,100-g*v);d=[...VD(d,b),...Array.from({length:v}).map(()=>(0,Cd.createBlock)("core/column",{width:`${g}%`}))]}else if(h)d=[...d,...Array.from({length:m-p}).map(()=>(0,Cd.createBlock)("core/column"))];else if(m<p&&(d=d.slice(0,-(p-m)),f)){let g=zD(d,100);d=VD(d,g)}s(e,d)}let u=Z();return(0,xo.jsxs)(hl.__experimentalToolsPanel,{label:(0,wd.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,xo.jsxs)(hl.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,xo.jsx)(hl.RangeControl,{label:(0,wd.__)("Columns"),value:o,onChange:p=>c(o,Math.max(i,p)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,xo.jsx)(hl.Notice,{status:"warning",isDismissible:!1,children:(0,wd.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,xo.jsx)(hl.__experimentalToolsPanelItem,{label:(0,wd.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,xo.jsx)(hl.ToggleControl,{label:(0,wd.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function Ixe({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:n,templateLock:i}=e,l=(0,fl.useRegistry)(),{getBlockOrder:s}=(0,fl.useSelect)(Kr.store),{updateBlockAttributes:c}=(0,fl.useDispatch)(Kr.store),u=C({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!o}),p=(0,Kr.useBlockProps)({className:u}),m=(0,Kr.useInnerBlocksProps)(p,{defaultBlock:Exe,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,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsx)(Kr.BlockControls,{children:(0,xo.jsx)(Kr.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,xo.jsx)(Kr.InspectorControls,{children:(0,xo.jsx)(Nxe,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,xo.jsx)("div",{...m})]})}function Dxe({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:n}=(0,fl.useSelect)(s=>{let{getBlockVariations:c,getBlockType:u}=s(Cd.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,fl.useDispatch)(Kr.store),l=(0,Kr.useBlockProps)();return(0,xo.jsx)("div",{...l,children:(0,xo.jsx)(Kr.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:n,instructions:(0,wd.__)("Divide into columns. Select a layout:"),onSelect:s=>{s.attributes&&r(s.attributes),s.innerBlocks&&i(e,(0,Cd.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!0)}})})}var Lxe=e=>{let{clientId:t}=e,o=(0,fl.useSelect)(n=>n(Kr.store).getBlocks(t).length>0,[t])?Ixe:Dxe;return(0,xo.jsx)(o,{...e})},a$=Lxe;var fw={$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 hw=a(B(),1),n$=a(y(),1);function i$({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=C({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=hw.useBlockProps.save({className:o}),i=hw.useInnerBlocksProps.save(n);return(0,n$.jsx)("div",{...i})}var Vn=a(O(),1),_i=a(I(),1),xi=a(y(),1),Mxe=[{name:"one-column-full",title:(0,_i.__)("100"),description:(0,_i.__)("One column"),icon:(0,xi.jsx)(Vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.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"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,_i.__)("50 / 50"),description:(0,_i.__)("Two columns; equal split"),icon:(0,xi.jsx)(Vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.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"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,_i.__)("33 / 66"),description:(0,_i.__)("Two columns; one-third, two-thirds split"),icon:(0,xi.jsx)(Vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Vn.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,_i.__)("66 / 33"),description:(0,_i.__)("Two columns; two-thirds, one-third split"),icon:(0,xi.jsx)(Vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Vn.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,_i.__)("33 / 33 / 33"),description:(0,_i.__)("Three columns; equal split"),icon:(0,xi.jsx)(Vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Vn.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,_i.__)("25 / 50 / 25"),description:(0,_i.__)("Three columns; wide center column"),icon:(0,xi.jsx)(Vn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Vn.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"]}],l$=Mxe;var ec=a($(),1),Axe=6,zxe=(e,t)=>{let r=+(100/t).toFixed(2),o=Array.from({length:t},(n,i)=>["core/column",{width:`${r}%`},e.filter((l,s)=>s%t===i)]);return(0,ec.createBlocksFromInnerBlocksTemplate)(o)},Vxe=e=>e.flatMap(t=>{let r=t.innerBlocks||[];return r.length>1?[(0,ec.createBlock)("core/group",{layout:{type:"constrained"}},r)]:r}),Oxe={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:n}=r;return(0,ec.createBlock)("core/columns",o,zxe(t,n))},isMatch:({layout:e})=>e?.type==="grid"&&Number.isInteger(e?.columnCount)&&e.columnCount>0},{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:n,innerBlocks:i,innerContent:l})=>["core/column",{width:`${t}%`},[[o,{...n},i,l]]]);return(0,ec.createBlock)("core/columns",{},(0,ec.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=Axe},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:p,mediaUrl:m,mediaWidth:d,verticalAlignment:f}=e,h;if(p==="image"||!p){let v={id:s,alt:l,url:m,sizeSlug:u},b={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...v,...b}]}else h=["core/video",{id:s,src:m}];let g=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&g.reverse(),(0,ec.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:n,style:i,verticalAlignment:f},(0,ec.createBlocksFromInnerBlocksTemplate)(g))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,ec.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},Vxe(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},s$=Oxe;var{name:c$}=fw,u$={icon:bP,variations:l$,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,mb.__)("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,mb.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,mb.__)("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,mb.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:t$,edit:a$,save:i$,transforms:s$},Fxe=()=>R({name:c$,metadata:fw,settings:u$});var UD={};K(UD,{init:()=>$xe,metadata:()=>gw,name:()=>B$,settings:()=>E$});var gw={$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 vw=a(B(),1),FD=a(y(),1),jxe={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=vw.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,FD.jsx)(e,{...i,children:(0,FD.jsx)(vw.InnerBlocks.Content,{})})}},p$=[jxe];var xw=a(B(),1);var m$=a(I(),1),db=a(B(),1);var bw=a(y(),1),{HTMLElementControl:Uxe}=U(db.privateApis);function d$({attributes:{tagName:e},setAttributes:t}){return(0,bw.jsx)(db.InspectorControls,{children:(0,bw.jsx)(db.InspectorControls,{group:"advanced",children:(0,bw.jsx)(Uxe,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,m$.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Sp=a(B(),1),jD=a(I(),1),k$=a(O(),1);var v$=a(B(),1),no=a(I(),1),b$=a(F(),1),y$=a(oe(),1),_$=a(H(),1);var gl=a(I(),1),Cp=a(B(),1),f$=a(O(),1),h$=a(ge(),1),yw=a(oe(),1),HD=a(F(),1),sn=a(y(),1),g$=()=>{let e=(0,h$.useInstanceId)(g$);return(0,sn.jsxs)("div",{className:"comment-respond",children:[(0,sn.jsx)("h3",{className:"comment-reply-title",children:(0,gl.__)("Leave a Reply")}),(0,sn.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,sn.jsxs)("p",{children:[(0,sn.jsx)("label",{htmlFor:`comment-${e}`,children:(0,gl.__)("Comment")}),(0,sn.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,sn.jsx)("p",{className:"form-submit wp-block-button",children:(0,sn.jsx)("input",{name:"submit",type:"submit",className:C("wp-block-button__link",(0,Cp.__experimentalGetElementClassName)("button")),label:(0,gl.__)("Post Comment"),value:(0,gl.__)("Post Comment"),"aria-disabled":"true"})})]})]})},Gxe=({postId:e,postType:t})=>{let[r,o]=(0,yw.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,HD.useSelect)(s=>s(Cp.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,HD.useSelect)(s=>t?!!s(yw.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let s=[(0,sn.jsx)(f$.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,gl._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,sn.jsx)(Cp.Warning,{actions:s,children:(0,gl.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,sn.jsx)(Cp.Warning,{children:(0,gl.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,sn.jsx)(Cp.Warning,{children:(0,gl.sprintf)((0,gl.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,sn.jsx)(g$,{})},_w=Gxe;var it=a(y(),1);function x$({postType:e,postId:t}){let[r]=(0,y$.useEntityProp)("postType",e,"title",t);r=r||(0,no.__)("Post Title");let o=(0,b$.useSelect)(n=>n(v$.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,it.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,it.jsx)("h3",{children:(0,no.sprintf)((0,no.__)("One response to %s"),r)}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["\xAB ",(0,no.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,no.__)("Newer Comments")," \xBB"]})})]}),(0,it.jsx)("ol",{className:"commentlist",children:(0,it.jsx)("li",{className:"comment even thread-even depth-1",children:(0,it.jsxs)("article",{className:"comment-body",children:[(0,it.jsxs)("footer",{className:"comment-meta",children:[(0,it.jsxs)("div",{className:"comment-author vcard",children:[(0,it.jsx)("img",{alt:(0,no.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,it.jsx)("b",{className:"fn",children:(0,it.jsx)("a",{href:"#top",className:"url",children:(0,no.__)("A WordPress Commenter")})})," ",(0,it.jsxs)("span",{className:"says",children:[(0,no.__)("says"),":"]})]}),(0,it.jsxs)("div",{className:"comment-metadata",children:[(0,it.jsx)("a",{href:"#top",children:(0,it.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,no.__)("January 1, 2000 at 00:00 am")})})," ",(0,it.jsx)("span",{className:"edit-link",children:(0,it.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,no.__)("Edit")})})]})]}),(0,it.jsx)("div",{className:"comment-content",children:(0,it.jsxs)("p",{children:[(0,no.__)("Hi, this is a comment."),(0,it.jsx)("br",{}),(0,no.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,it.jsx)("br",{}),(0,_$.createInterpolateElement)((0,no.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,it.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,it.jsx)("div",{className:"reply",children:(0,it.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,no.__)("Reply to A WordPress Commenter"),children:(0,no._x)("Reply","verb")})})]})})}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["\xAB ",(0,no.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,no.__)("Newer Comments")," \xBB"]})})]}),(0,it.jsx)(_w,{postId:t,postType:e})]})}var rs=a(y(),1);function w$({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:n}=e,i=[(0,rs.jsx)(k$.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,jD.__)("Switch to editable mode")},"convert")],l=(0,Sp.useBlockProps)({className:C({[`has-text-align-${n}`]:n})});return(0,rs.jsxs)(rs.Fragment,{children:[(0,rs.jsx)(Sp.BlockControls,{group:"block",children:(0,rs.jsx)(Sp.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,rs.jsxs)("div",{...l,children:[(0,rs.jsx)(Sp.Warning,{actions:i,children:(0,jD.__)("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,rs.jsx)(x$,{postId:o,postType:r})]})]})}var Wxe=[["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"]],C$=Wxe;var Tp=a(y(),1);function S$(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:n,legacy:i}=t,l=(0,xw.useBlockProps)(),s=(0,xw.useInnerBlocksProps)(l,{template:C$});return i?(0,Tp.jsx)(w$,{...e}):(0,Tp.jsxs)(Tp.Fragment,{children:[(0,Tp.jsx)(d$,{attributes:t,setAttributes:r,clientId:o}),(0,Tp.jsx)(n,{...s})]})}var kw=a(B(),1),T$=a(y(),1);function P$({attributes:{tagName:e,legacy:t}}){let r=kw.useBlockProps.save(),o=kw.useInnerBlocksProps.save(r);return t?null:(0,T$.jsx)(e,{...o})}var{name:B$}=gw,E$={icon:CE,example:{},edit:S$,save:P$,deprecated:p$},$xe=()=>R({name:B$,metadata:gw,settings:E$});var WD={};K(WD,{init:()=>Zxe,metadata:()=>ww,name:()=>D$,settings:()=>L$});var ww={$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 Pp=a(B(),1),Ah=a(O(),1),GD=a(oe(),1),N$=a(F(),1),Sd=a(I(),1),os=a(y(),1);function I$({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:n,width:i}=e,[l]=(0,GD.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,GD.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,p=u?u[0]:24,m=u?u[u.length-1]:96,d=(0,Pp.useBlockProps)(),f=(0,Pp.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(m*2.5),g=(0,N$.useSelect)(_=>{let{__experimentalDiscussionSettings:k}=_(Pp.store).getSettings();return k?.avatarURL},[]),v=(0,os.jsx)(Pp.InspectorControls,{children:(0,os.jsx)(Ah.PanelBody,{title:(0,Sd.__)("Settings"),children:(0,os.jsx)(Ah.RangeControl,{label:(0,Sd.__)("Image size"),onChange:_=>r({width:_,height:_}),min:p,max:h,initialPosition:i,value:i})})}),b=(0,os.jsx)(Ah.ResizableBox,{size:{width:i,height:n},showHandle:o,onResizeStop:(_,k,x,w)=>{r({height:parseInt(n+w.height,10),width:parseInt(i+w.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Sd.isRTL)(),bottom:!0,left:(0,Sd.isRTL)()},minWidth:p,maxWidth:h,children:(0,os.jsx)("img",{src:c?c[c.length-1]:g,alt:`${s} ${(0,Sd.__)("Avatar")}`,...d})});return(0,os.jsxs)(os.Fragment,{children:[v,(0,os.jsx)("div",{...f,children:b})]})}var{name:D$}=ww,L$={icon:F1,edit:I$},Zxe=()=>R({name:D$,metadata:ww,settings:L$});var $D={};K($D,{init:()=>Xxe,metadata:()=>Cw,name:()=>V$,settings:()=>O$});var Cw={$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 fu=a(I(),1),R$=a(F(),1),Sw=a(B(),1),M$=a(oe(),1),Bp=a(O(),1);var ki=a(y(),1);function A$(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:n}=e;wt(e);let i=Z(),l=(0,Sw.useBlockProps)(),s=(0,R$.useSelect)(p=>{let{getEntityRecord:m}=p(M$.store),d=m("root","comment",o),f=d?.author_name;return d&&!f?m("root","user",d.author)?.name??(0,fu.__)("Anonymous"):f??""},[o]),c=(0,ki.jsx)(Sw.InspectorControls,{children:(0,ki.jsxs)(Bp.__experimentalToolsPanel,{label:(0,fu.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,ki.jsx)(Bp.__experimentalToolsPanelItem,{label:(0,fu.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,ki.jsx)(Bp.ToggleControl,{label:(0,fu.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,ki.jsx)(Bp.__experimentalToolsPanelItem,{label:(0,fu.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,ki.jsx)(Bp.ToggleControl,{label:(0,fu.__)("Open in new tab"),onChange:p=>n({linkTarget:p?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!s)&&(s=(0,fu._x)("Comment Author","block title")),(0,ki.jsxs)(ki.Fragment,{children:[c,(0,ki.jsx)("div",{...l,children:t?(0,ki.jsx)("a",{href:"#comment-author-pseudo-link",onClick:p=>p.preventDefault(),children:s}):s})]})}var Yxe={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:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Qxe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},z$=[Yxe,Qxe];var{name:V$}=Cw,O$={icon:_P,edit:A$,deprecated:z$,example:{}},Xxe=()=>R({name:V$,metadata:Cw,settings:O$});var qD={};K(qD,{init:()=>tke,metadata:()=>Tw,name:()=>q$,settings:()=>Z$});var Tw={$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 F$=a(I(),1),H$=a(H(),1),j$=a(O(),1),U$=a(oe(),1),G$=a(B(),1);var as=a(y(),1);function W$(e){let{context:{commentId:t}}=e;wt(e);let r=(0,G$.useBlockProps)(),[o]=(0,U$.useEntityProp)("root","comment","content",t);return!t||!o?(0,as.jsx)(as.Fragment,{children:(0,as.jsx)("div",{...r,children:(0,as.jsx)("p",{children:(0,F$._x)("Comment Content","block title")})})}):(0,as.jsx)(as.Fragment,{children:(0,as.jsx)("div",{...r,children:(0,as.jsx)(j$.Disabled,{children:(0,as.jsx)(H$.RawHTML,{children:o.rendered},"html")})})})}var eke={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:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},$$=[eke];var{name:q$}=Tw,Z$={icon:kP,edit:W$,deprecated:$$,example:{}},tke=()=>R({name:q$,metadata:Tw,settings:Z$});var KD={};K(KD,{init:()=>ake,metadata:()=>Pw,name:()=>X$,settings:()=>J$});var Pw={$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,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-date"};var ZD=a(oe(),1),Pd=a(Bw(),1),zh=a(B(),1),Bd=a(O(),1),Td=a(I(),1);var cn=a(y(),1);function Y$({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let n=(0,zh.useBlockProps)(),i=Z(),[l]=(0,ZD.useEntityProp)("root","comment","date",r),[s=(0,Pd.getSettings)().formats.date]=(0,ZD.useEntityProp)("root","site","date_format"),c=(0,cn.jsx)(zh.InspectorControls,{children:(0,cn.jsxs)(Bd.__experimentalToolsPanel,{label:(0,Td.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,cn.jsx)(Bd.__experimentalToolsPanelItem,{label:(0,Td.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,cn.jsx)(zh.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:p=>o({format:p})})}),(0,cn.jsx)(Bd.__experimentalToolsPanelItem,{label:(0,Td.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,cn.jsx)(Bd.ToggleControl,{label:(0,Td.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,Td._x)("Comment Date","block title"));let u=l instanceof Date?(0,cn.jsx)("time",{dateTime:(0,Pd.dateI18n)("c",l),children:e==="human-diff"?(0,Pd.humanTimeDiff)(l):(0,Pd.dateI18n)(e||s,l)}):(0,cn.jsx)("time",{children:l});return t&&(u=(0,cn.jsx)("a",{href:"#comment-date-pseudo-link",onClick:p=>p.preventDefault(),children:u})),(0,cn.jsxs)(cn.Fragment,{children:[c,(0,cn.jsx)("div",{...n,children:u})]})}var oke={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Q$=[oke];var{name:X$}=Pw,J$={icon:mv,edit:Y$,deprecated:Q$,example:{}},ake=()=>R({name:X$,metadata:Pw,settings:J$});var YD={};K(YD,{init:()=>lke,metadata:()=>Ew,name:()=>rq,settings:()=>oq});var Ew={$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"}},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,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}},style:"wp-block-comment-edit-link"};var Nw=a(B(),1),Vh=a(O(),1),fb=a(I(),1);var ns=a(y(),1);function eq(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;wt(e);let n=(0,Nw.useBlockProps)(),i=Z(),l=(0,ns.jsx)(Nw.InspectorControls,{children:(0,ns.jsx)(Vh.__experimentalToolsPanel,{label:(0,fb.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,ns.jsx)(Vh.__experimentalToolsPanelItem,{label:(0,fb.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,ns.jsx)(Vh.ToggleControl,{label:(0,fb.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,ns.jsxs)(ns.Fragment,{children:[l,(0,ns.jsx)("div",{...n,children:(0,ns.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,fb.__)("Edit")})})]})}var ike={attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,html:!1,color:{link:!0,gradients:!0,text:!1},spacing:{margin:!0,padding:!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:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},tq=[ike];var{name:rq}=Ew,oq={icon:CP,edit:eq,deprecated:tq,example:{}},lke=()=>R({name:rq,metadata:Ew,settings:oq});var QD={};K(QD,{init:()=>pke,metadata:()=>Iw,name:()=>sq,settings:()=>cq});var Iw={$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"],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,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},html:!1},style:"wp-block-comment-reply-link"};var aq=a(I(),1),nq=a(B(),1);var Oh=a(y(),1);function cke(e){wt(e);let t=(0,nq.useBlockProps)();return(0,Oh.jsx)(Oh.Fragment,{children:(0,Oh.jsx)("div",{...t,children:(0,Oh.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,aq._x)("Reply","verb")})})})}var iq=cke;var uke={attributes:{textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,text:!1},spacing:{margin:!0,padding:!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},html:!1},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},lq=[uke];var{name:sq}=Iw,cq={edit:iq,icon:TP,deprecated:lq,example:{}},pke=()=>R({name:sq,metadata:Iw,settings:cq});var JD={};K(JD,{init:()=>yke,metadata:()=>Dw,name:()=>Tq,settings:()=>Pq});var Dw={$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 Lw=a(H(),1),XD=a(F(),1),bq=a(I(),1),is=a(B(),1),yq=a(O(),1),_q=a(oe(),1);var Ed=a(H(),1),mq=a(F(),1),dq=a(B(),1),fq=a(ur(),1),hq=a(hb(),1),pq=100,gq=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:n}=(0,mq.useSelect)(s=>{let{getSettings:c}=s(dq.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,pq):pq,l=dke({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,Ed.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},dke=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[n,i]=(0,Ed.useState)({}),l=`${t}_${r}`,s=n[l]||0;return(0,Ed.useEffect)(()=>{s||e!=="newest"||(0,hq.default)({path:(0,fq.addQueryArgs)("/wp/v2/comments",{...o,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},vq=e=>(0,Ed.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[n]=o?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var wi=a(y(),1),fke=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],hke=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let n=r?Math.min(o,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 gke({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:n}){let{children:i,...l}=(0,is.useInnerBlocksProps)({},{template:fke});return(0,wi.jsxs)("li",{...l,children:[e.commentId===(t||o)?i:null,(0,wi.jsx)(bke,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,wi.jsx)(xq,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:o}):null]})}var vke=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let n=(0,is.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,wi.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},bke=(0,Lw.memo)(vke),xq=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})=>(0,wi.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,wi.jsx)(is.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,wi.jsx)(gke,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})},s.commentId||c))});function kq({clientId:e,context:{postId:t}}){let r=(0,is.useBlockProps)(),[o,n]=(0,Lw.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,XD.useSelect)(h=>{let{getSettings:g}=h(is.store);return g().__experimentalDiscussionSettings??{}},[]),p=gq({postId:t}),{topLevelComments:m,blocks:d}=(0,XD.useSelect)(h=>{let{getEntityRecords:g}=h(_q.store),{getBlocks:v}=h(is.store);return{topLevelComments:p?g("root","comment",p):null,blocks:v(e)}},[e,p]),f=vq(i==="desc"&&m?[...m].reverse():m);return m?(t||(f=hke({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,wi.jsx)(xq,{comments:f,blockProps:r,blocks:d,activeCommentId:o,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,wi.jsx)("p",{...r,children:(0,bq.__)("No results found.")})):(0,wi.jsx)("p",{...r,children:(0,wi.jsx)(yq.Spinner,{})})}var wq=a(B(),1),Cq=a(y(),1);function Sq(){return(0,Cq.jsx)(wq.InnerBlocks.Content,{})}var{name:Tq}=Dw,Pq={icon:Qm,edit:kq,save:Sq},yke=()=>R({name:Tq,metadata:Dw,settings:Pq});var tL={};K(tL,{init:()=>kke,metadata:()=>Rw,name:()=>Nq,settings:()=>Iq});var Eq=a(I(),1);var Rw={$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 eL=a(I(),1),Mw=a(B(),1),gb=a(y(),1),xke={none:"",arrow:"\u2190",chevron:"\xAB"};function Bq({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=xke[r];return(0,gb.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,Mw.useBlockProps)(),children:[o&&(0,gb.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,gb.jsx)(Mw.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,eL.__)("Older comments page link"),placeholder:(0,eL.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:Nq}=Rw,Iq={icon:gv,edit:Bq,example:{attributes:{label:(0,Eq.__)("Older Comments")}}},kke=()=>R({name:Nq,metadata:Rw,settings:Iq});var oL={};K(oL,{init:()=>Ske,metadata:()=>Aw,name:()=>zq,settings:()=>Vq});var Aw={$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 zw=a(I(),1),ss=a(B(),1),rL=a(F(),1),Vw=a(O(),1);var Nd=a(I(),1),Fh=a(O(),1),Hh=a(y(),1);function Dq({value:e,onChange:t}){return(0,Hh.jsxs)(Fh.__experimentalToggleGroupControl,{label:(0,Nd.__)("Arrow"),value:e,onChange:t,help:(0,Nd.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Hh.jsx)(Fh.__experimentalToggleGroupControlOption,{value:"none",label:(0,Nd._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Hh.jsx)(Fh.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Nd._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Hh.jsx)(Fh.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Nd._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var ls=a(y(),1),Cke=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function Lq({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,rL.useSelect)(c=>{let{getBlocks:u}=c(ss.store);return u(r)?.find(m=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(m.name))},[]),n=(0,ss.useBlockProps)(),i=Z(),l=(0,ss.useInnerBlocksProps)(n,{template:Cke});return(0,rL.useSelect)(c=>{let{getSettings:u}=c(ss.store),{__experimentalDiscussionSettings:p}=u();return p?.pageComments},[])?(0,ls.jsxs)(ls.Fragment,{children:[o&&(0,ls.jsx)(ss.InspectorControls,{children:(0,ls.jsx)(Vw.__experimentalToolsPanel,{label:(0,zw.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,ls.jsx)(Vw.__experimentalToolsPanelItem,{label:(0,zw.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,ls.jsx)(Dq,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,ls.jsx)("div",{...l})]}):(0,ls.jsx)(ss.Warning,{children:(0,zw.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var Rq=a(B(),1),Mq=a(y(),1);function Aq(){return(0,Mq.jsx)(Rq.InnerBlocks.Content,{})}var{name:zq}=Aw,Vq={icon:vv,edit:Lq,save:Aq},Ske=()=>R({name:zq,metadata:Aw,settings:Vq});var nL={};K(nL,{init:()=>Bke,metadata:()=>Ow,name:()=>Hq,settings:()=>jq});var Fq=a(I(),1);var Ow={$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 aL=a(I(),1),Fw=a(B(),1),vb=a(y(),1),Pke={none:"",arrow:"\u2192",chevron:"\xBB"};function Oq({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=Pke[r];return(0,vb.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,Fw.useBlockProps)(),children:[(0,vb.jsx)(Fw.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,aL.__)("Newer comments page link"),placeholder:(0,aL.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),o&&(0,vb.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:Hq}=Ow,jq={icon:fv,edit:Oq,example:{attributes:{label:(0,Fq.__)("Newer Comments")}}},Bke=()=>R({name:Hq,metadata:Ow,settings:jq});var iL={};K(iL,{init:()=>Nke,metadata:()=>Hw,name:()=>Wq,settings:()=>$q});var Hw={$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 Uq=a(B(),1),vl=a(y(),1),Id=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,vl.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,vl.jsx)(t,{className:`page-numbers ${r}`,children:e});function Gq(){return(0,vl.jsxs)("div",{...(0,Uq.useBlockProps)(),children:[(0,vl.jsx)(Id,{content:"1"}),(0,vl.jsx)(Id,{content:"2"}),(0,vl.jsx)(Id,{content:"3",tag:"span",extraClass:"current"}),(0,vl.jsx)(Id,{content:"4"}),(0,vl.jsx)(Id,{content:"5"}),(0,vl.jsx)(Id,{content:"...",tag:"span",extraClass:"dots"}),(0,vl.jsx)(Id,{content:"8"})]})}var{name:Wq}=Hw,$q={icon:hv,edit:Gq,example:{}},Nke=()=>R({name:Wq,metadata:Hw,settings:$q});var lL={};K(lL,{init:()=>Rke,metadata:()=>jw,name:()=>Jq,settings:()=>eZ});var jw={$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:{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,textAlign:!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 tc=a(B(),1),zr=a(I(),1),qq=a(oe(),1),Ep=a(O(),1),Uw=a(H(),1),Zq=a(F(),1),Kq=a(hb(),1),Yq=a(ur(),1);var On=a(y(),1);function Qq(e){wt(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:n,showCommentsCount:i,level:l=2,levelOptions:s}=t,{postId:c,postType:u}=o,p="h"+l,[m,d]=(0,Uw.useState)(),[f]=(0,qq.useEntityProp)("postType",u,"title",c),h=typeof c>"u",g=(0,tc.useBlockProps)(),{threadCommentsDepth:v,threadComments:b,commentsPerPage:_,pageComments:k}=(0,Zq.useSelect)(D=>{let{getSettings:L}=D(tc.store);return L().__experimentalDiscussionSettings??{}},[]),x=Z();(0,Uw.useEffect)(()=>{if(h){let L=b?Math.min(v,3)-1:0,P=k?_:3,E=parseInt(L)+parseInt(P);d(Math.min(E,3));return}let D=c;(0,Kq.default)({path:(0,Yq.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(L=>{D===c&&d(parseInt(L.headers.get("X-WP-Total")))}).catch(()=>{d(0)})},[c]);let w=(0,On.jsx)(tc.BlockControls,{group:"block",children:(0,On.jsx)(tc.HeadingLevelDropdown,{value:l,options:s,onChange:D=>r({level:D})})}),S=(0,On.jsx)(tc.InspectorControls,{children:(0,On.jsxs)(Ep.__experimentalToolsPanel,{label:(0,zr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:x,children:[(0,On.jsx)(Ep.__experimentalToolsPanelItem,{label:(0,zr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,On.jsx)(Ep.ToggleControl,{label:(0,zr.__)("Show post title"),checked:n,onChange:D=>r({showPostTitle:D})})}),(0,On.jsx)(Ep.__experimentalToolsPanelItem,{label:(0,zr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,On.jsx)(Ep.ToggleControl,{label:(0,zr.__)("Show comments count"),checked:i,onChange:D=>r({showCommentsCount:D})})})]})}),T=h?(0,zr.__)("Post Title"):f,N;return i&&m!==void 0?n?m===1?N=(0,zr.sprintf)((0,zr.__)('One response to "%s"'),T):N=(0,zr.sprintf)((0,zr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',m),m,T):m===1?N=(0,zr.__)("One response"):N=(0,zr.sprintf)((0,zr._n)("%s response","%s responses",m),m):n?m===1?N=(0,zr.sprintf)((0,zr.__)('Response to "%s"'),T):N=(0,zr.sprintf)((0,zr.__)('Responses to "%s"'),T):m===1?N=(0,zr.__)("Response"):N=(0,zr.__)("Responses"),(0,On.jsxs)(On.Fragment,{children:[w,S,(0,On.jsx)(p,{...g,children:N})]})}var Dke={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}},migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...o}=e;return ve(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Lke={attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"},singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},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}},migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...o}=e;return ve(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},Xq=[Dke,Lke];var{name:Jq}=jw,eZ={icon:Zl,edit:Qq,deprecated:Xq,example:{}},Rke=()=>R({name:Jq,metadata:jw,settings:eZ});var TL={};K(TL,{init:()=>ewe,metadata:()=>l3,name:()=>aK,settings:()=>c3});var SL=a(I(),1);var oK=a($(),1);var $w=a($(),1),Te=a(B(),1),qw=a(I(),1),bb=a(ge(),1);var Gw=a(Mr(),1),Mke={"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"},Yt="image",Br="video",hu="embed-video",tZ=50;var Ake={x:.5,y:.5},Ww=["image","video"];function ra({x:e,y:t}=Ake){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function bl(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function rZ(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,Gw.isBlobURL)(e.url)&&(e.type=(0,Gw.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Yt?t=Yt:t=Br;else if(e.type&&(e.type===Yt||e.type===Br))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Br?{hasParallax:void 0}:{}}}function un(e){return!e||e==="center center"||e==="center"}function Fn(e){return un(e)?"":Mke[e]}var fe=a(y(),1);function rc(e){return e?{backgroundImage:`url(${e})`}:{}}function Dd(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function Zw(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Np(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var Ld={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"}},yb={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]}},sL={...yb,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},zke={...sL,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},jh={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}},cL={...jh,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}},Vke={...cL,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},Oke={attributes:zke,supports:Vke,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_,sizeSlug:k}=e,x=(0,Te.getColorClassName)("background-color",d),w=(0,Te.__experimentalGetGradientClass)(r),S=v&&b?`${v}${b}`:v,T=Yt===t,N=Br===t,D=!(u||m),L={minHeight:S||void 0},P={backgroundColor:x?void 0:i,background:n||void 0},E=s&&D?ra(s):void 0,M=f?`url(${f})`:void 0,z=ra(s),j=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!un(o)},Fn(o)),q=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":m}),G=r||n;return(0,fe.jsxs)(_,{...Te.useBlockProps.save({className:j,style:L}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",x,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[w]:w}),style:P}),!c&&T&&f&&(D?(0,fe.jsx)("img",{className:q,alt:h,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,fe.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:q,style:{backgroundPosition:z,backgroundImage:M}})),N&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Fke={attributes:sL,supports:cL,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_}=e,k=(0,Te.getColorClassName)("background-color",d),x=(0,Te.__experimentalGetGradientClass)(r),w=v&&b?`${v}${b}`:v,S=Yt===t,T=Br===t,N=!(u||m),D={minHeight:w||void 0},L={backgroundColor:k?void 0:i,background:n||void 0},P=s&&N?ra(s):void 0,E=f?`url(${f})`:void 0,M=ra(s),z=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!un(o)},Fn(o)),j=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),q=r||n;return(0,fe.jsxs)(_,{...Te.useBlockProps.save({className:z,style:D}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",k,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&q&&l!==0,"has-background-gradient":q,[x]:x}),style:L}),!c&&S&&f&&(N?(0,fe.jsx)("img",{className:j,alt:h,src:f,style:{objectPosition:P},"data-object-fit":"cover","data-object-position":P}):(0,fe.jsx)("div",{role:"img",className:j,style:{backgroundPosition:M,backgroundImage:E}})),T&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:P},"data-object-fit":"cover","data-object-position":P}),(0,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Hke={attributes:sL,supports:cL,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:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_}=e,k=(0,Te.getColorClassName)("background-color",d),x=(0,Te.__experimentalGetGradientClass)(r),w=v&&b?`${v}${b}`:v,S=Yt===t,T=Br===t,N=!(u||m),D={minHeight:w||void 0},L={backgroundColor:k?void 0:i,background:n||void 0},P=s&&N?ra(s):void 0,E=f?`url(${f})`:void 0,M=ra(s),z=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!un(o)},Fn(o)),j=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),q=r||n;return(0,fe.jsxs)(_,{...Te.useBlockProps.save({className:z,style:D}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",k,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&q&&l!==0,"has-background-gradient":q,[x]:x}),style:L}),!c&&S&&f&&(N?(0,fe.jsx)("img",{className:j,alt:h,src:f,style:{objectPosition:P},"data-object-fit":"cover","data-object-position":P}):(0,fe.jsx)("div",{role:"img",className:j,style:{backgroundPosition:M,backgroundImage:E}})),T&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:P},"data-object-fit":"cover","data-object-position":P}),(0,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},jke={attributes:yb,supports:jh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b}=e,_=(0,Te.getColorClassName)("background-color",d),k=(0,Te.__experimentalGetGradientClass)(r),x=v&&b?`${v}${b}`:v,w=Yt===t,S=Br===t,T=!(u||m),N={minHeight:x||void 0},D={backgroundColor:_?void 0:i,background:n||void 0},L=s&&T?ra(s):void 0,P=f?`url(${f})`:void 0,E=ra(s),M=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!un(o)},Fn(o)),z=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),j=r||n;return(0,fe.jsxs)("div",{...Te.useBlockProps.save({className:M,style:N}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",_,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&j&&l!==0,"has-background-gradient":j,[k]:k}),style:D}),!c&&w&&f&&(T?(0,fe.jsx)("img",{className:z,alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}):(0,fe.jsx)("div",{role:"img",className:z,style:{backgroundPosition:E,backgroundImage:P}})),S&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},Uke={attributes:yb,supports:jh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b}=e,_=(0,Te.getColorClassName)("background-color",d),k=(0,Te.__experimentalGetGradientClass)(r),x=v&&b?`${v}${b}`:v,w=Yt===t,S=Br===t,T=!(u||m),N={...w&&!T&&!c?rc(f):{},minHeight:x||void 0},D={backgroundColor:_?void 0:i,background:n||void 0},L=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,P=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!un(o)},Fn(o)),E=r||n;return(0,fe.jsxs)("div",{...Te.useBlockProps.save({className:P,style:N}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",_,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&E&&l!==0,"has-background-gradient":E,[k]:k}),style:D}),!c&&w&&T&&f&&(0,fe.jsx)("img",{className:C("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),S&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},Gke={attributes:yb,supports:jh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:p,overlayColor:m,url:d,alt:f,id:h,minHeight:g,minHeightUnit:v}=e,b=(0,Te.getColorClassName)("background-color",m),_=(0,Te.__experimentalGetGradientClass)(r),k=v?`${g}${v}`:g,x=Yt===t,w=Br===t,S=!(c||p),T={...x&&!S?rc(d):{},minHeight:k||void 0},N={backgroundColor:b?void 0:i,background:n||void 0},D=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,L=C({"is-light":!u,"has-parallax":c,"is-repeated":p,"has-custom-content-position":!un(o)},Fn(o)),P=r||n;return(0,fe.jsxs)("div",{...Te.useBlockProps.save({className:L,style:T}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",b,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&P&&l!==0,"has-background-gradient":P,[_]:_}),style:N}),x&&S&&d&&(0,fe.jsx)("img",{className:C("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}),w&&d&&(0,fe.jsx)("video",{className:C("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,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},Wke={attributes:yb,supports:jh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:p,overlayColor:m,url:d,alt:f,id:h,minHeight:g,minHeightUnit:v}=e,b=(0,Te.getColorClassName)("background-color",m),_=(0,Te.__experimentalGetGradientClass)(r),k=v?`${g}${v}`:g,x=Yt===t,w=Br===t,S=!(c||p),T={...x&&!S?rc(d):{},minHeight:k||void 0},N={backgroundColor:b?void 0:i,background:n||void 0},D=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,L=C({"is-light":!u,"has-parallax":c,"is-repeated":p,"has-custom-content-position":!un(o)},Fn(o));return(0,fe.jsxs)("div",{...Te.useBlockProps.save({className:L,style:T}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C(b,bl(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":r||n,[_]:!d&&_}),style:N}),x&&S&&d&&(0,fe.jsx)("img",{className:C("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}),w&&d&&(0,fe.jsx)("video",{className:C("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,fe.jsx)("div",{...Te.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},$ke={attributes:{...Ld,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:jh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:p,url:m,alt:d,id:f,minHeight:h,minHeightUnit:g}=e,v=(0,Te.getColorClassName)("background-color",p),b=(0,Te.__experimentalGetGradientClass)(r),_=g?`${h}${g}`:h,k=Yt===t,x=Br===t,w=!(c||u),S={...k&&!w?rc(m):{},backgroundColor:v?void 0:i,background:n&&!m?n:void 0,minHeight:_||void 0},T=s&&w?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,N=C(Dd(l),v,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[b]:!m&&b,"has-custom-content-position":!un(o)},Fn(o));return(0,fe.jsxs)("div",{...Te.useBlockProps.save({className:N,style:S}),children:[m&&(r||n)&&l!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",b),style:n?{background:n}:void 0}),k&&w&&m&&(0,fe.jsx)("img",{className:C("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),x&&m&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Te.InnerBlocks.Content,{})})]})},migrate:(0,bb.compose)(Zw,Np)},qke={attributes:{...Ld,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:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:p,url:m,minHeight:d,minHeightUnit:f}=e,h=(0,Te.getColorClassName)("background-color",p),g=(0,Te.__experimentalGetGradientClass)(r),v=f?`${d}${f}`:d,b=Yt===t,_=Br===t,k=b?rc(m):{},x={};h||(k.backgroundColor=i),n&&!m&&(k.background=n),k.minHeight=v||void 0;let w;s&&(w=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,b&&!c&&(k.backgroundPosition=w),_&&(x.objectPosition=w));let S=C(Dd(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[g]:!m&&g,"has-custom-content-position":!un(o)},Fn(o));return(0,fe.jsxs)("div",{...Te.useBlockProps.save({className:S,style:k}),children:[m&&(r||n)&&l!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",g),style:n?{background:n}:void 0}),_&&m&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:x}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Te.InnerBlocks.Content,{})})]})},migrate:(0,bb.compose)(Zw,Np)},Zke={attributes:{...Ld,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:p}=e,m=(0,Te.getColorClassName)("background-color",c),d=(0,Te.__experimentalGetGradientClass)(r),f=t===Yt?rc(u):{};m||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=p||void 0;let h=C(Dd(i),m,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,fe.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),Br===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Te.InnerBlocks.Content,{})})]})},migrate:(0,bb.compose)(Zw,Np)},Kke={attributes:{...Ld,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:p}=e,m=(0,Te.getColorClassName)("background-color",c),d=(0,Te.__experimentalGetGradientClass)(r),f=t===Yt?rc(u):{};m||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),o&&!u&&(f.background=o),f.minHeight=p||void 0;let h=C(Dd(i),m,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,fe.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),Br===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Te.InnerBlocks.Content,{})})]})},migrate:(0,bb.compose)(Zw,Np)},Yke={attributes:{...Ld,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:r,customOverlayColor:o,dimRatio:n,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,p=(0,Te.getColorClassName)("background-color",s),m=t===Yt?rc(u):{};p||(m.backgroundColor=o),i&&!l&&(m.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=C(Dd(n),p,{"has-background-dim":n!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,fe.jsxs)("div",{className:d,style:m,children:[Br===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Te.RichText.isEmpty(c)&&(0,fe.jsx)(Te.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:o,...n}=t;return[n,[(0,$w.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,qw.__)("Write title\u2026")})]]}},Qke={attributes:{...Ld,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:o,dimRatio:n,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,Te.getColorClassName)("background-color",s),p=rc(t);u||(p.backgroundColor=c);let m=C("wp-block-cover-image",Dd(n),u,{"has-background-dim":n!==0,"has-parallax":o,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,fe.jsx)("div",{className:m,style:p,children:!Te.RichText.isEmpty(r)&&(0,fe.jsx)(Te.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:o,align:n,...i}=t;return[i,[(0,$w.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,qw.__)("Write title\u2026")})]]}},Xke={attributes:{...Ld,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:o,dimRatio:n,align:i}=e,l=rc(t),s=C("wp-block-cover-image",Dd(n),{"has-background-dim":n!==0,"has-parallax":o},i?`align${i}`:null);return(0,fe.jsx)("section",{className:s,style:l,children:(0,fe.jsx)(Te.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:o,align:n,...i}=t;return[i,[(0,$w.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,qw.__)("Write title\u2026")})]]}},oZ=[Oke,Fke,Hke,jke,Uke,Gke,Wke,$ke,qke,Zke,Kke,Yke,Qke,Xke];var wb=a(oe(),1),Hn=a(H(),1),zd=a(O(),1),i3=a(ge(),1),Yr=a(B(),1),wL=a(I(),1),bu=a(F(),1),YZ=a(Mr(),1),QZ=a(Sr(),1);var mZ=a(H(),1),ar=a(O(),1),dZ=a(ge(),1),oa=a(B(),1),ko=a(I(),1),pL=a(F(),1),fZ=a(oe(),1);var aZ=a(B(),1);var{cleanEmptyObject:Kw,getStyleForState:Jke,setStyleForState:nZ}=U(aZ.privateApis);function uL(e,t){return Jke(e,t)||{}}function e5e(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function t5e(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function Uh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function r5e(e,t){return uL(e,t)?.dimensions||{}}function Ci(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:n,attributeKey:i,styleKey:l=i,rootValue:s}=e;return n?r5e(r,o)?.[l]:Object.hasOwn(e,"rootValue")?s:t?.[i]}function o5e(e,t,r){let o=uL(e,t);return nZ(e,t,Kw({...o,dimensions:Kw({...o?.dimensions,...r})}))}function Gh({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:n,dimensionKeys:i}){let l=t5e(o,i);return r?{style:o5e(e,t,e5e(l,n))}:l}function iZ(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return Kw({...e,dimensions:Kw({...e?.dimensions,...r})})}function a5e(e,t,r){return nZ(e,t,iZ(uL(e,t),r))}function Wh({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:n,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?a5e(t,r,n):iZ(t,n)}}var Rd="full";var $h=a(B(),1),sZ=a(Sr(),1),pn=a(O(),1),cZ=a(Mr(),1),Si=a(I(),1),Yw=a(H(),1),uZ=a(ge(),1),Qw=a(F(),1),Na=a(y(),1),lZ=["image"];function pZ({poster:e,onChange:t}){let r=(0,Yw.useRef)(),[o,n]=(0,Yw.useState)(!1),i=(0,uZ.useInstanceId)(pZ,"block-library-poster-image-description"),{getSettings:l}=(0,Qw.useSelect)($h.store),{createErrorNotice:s}=(0,Qw.useDispatch)(sZ.store),c=p=>{l().mediaUpload({allowedTypes:lZ,filesList:p,onFileChange:([m])=>{if((0,cZ.isBlobURL)(m?.url)){n(!0);return}m&&t(m),n(!1)},onError:m=>{s(m,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&o?(0,Na.jsx)(pn.Spinner,{}):e?(0,Si.__)("Replace"):(0,Si.__)("Set poster image");return(0,Na.jsx)($h.MediaUploadCheck,{children:(0,Na.jsxs)(pn.__experimentalToolsPanelItem,{label:(0,Si.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,Na.jsx)(pn.BaseControl.VisualLabel,{children:(0,Si.__)("Poster image")}),(0,Na.jsx)($h.MediaUpload,{title:(0,Si.__)("Select poster image"),onSelect:t,allowedTypes:lZ,render:({open:p})=>(0,Na.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,Na.jsxs)(pn.Button,{__next40pxDefaultSize:!0,onClick:p,"aria-haspopup":"dialog","aria-label":(0,Si.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,Na.jsx)("img",{src:e,alt:(0,Si.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,Na.jsx)(pn.Spinner,{})]}),(0,Na.jsxs)(pn.__experimentalHStack,{className:C("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,Na.jsx)(pn.Button,{__next40pxDefaultSize:!0,onClick:p,ref:r,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:o,accessibleWhenDisabled:!0,children:u()}),(0,Na.jsx)("p",{id:i,hidden:!0,children:e?(0,Si.sprintf)((0,Si.__)("The current poster image url is %s."),e):(0,Si.__)("There is no poster image currently selected.")}),!!e&&(0,Na.jsx)(pn.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,Si.__)("Remove")})]}),(0,Na.jsx)(pn.DropZone,{onFilesDrop:c})]})})]})})}var Xw=pZ;var yt=a(y(),1),{cleanEmptyObject:n5e,isDefaultBlockStyleState:i5e,ResolutionTool:l5e,HTMLElementControl:s5e}=U(oa.privateApis);function c5e({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,dZ.useInstanceId)(ar.__experimentalUnitControl)}`,l=r==="px",[s]=(0,oa.useSettings)("spacing.units"),c=(0,ar.__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)},p=(0,mZ.useMemo)(()=>{let[d]=(0,ar.__experimentalParseQuantityAndUnitFromRawValue)(o);return[d,r].join("")},[r,o]),m=l?tZ:0;return(0,yt.jsx)(ar.__experimentalUnitControl,{label:(0,ko.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:m,onChange:u,onUnitChange:t,units:c,value:p})}function hZ({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:p,focalPoint:m,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:g,alt:v,tagName:b,poster:_}=e,{isVideoBackground:k,isImageBackground:x,mediaElement:w,url:S,overlayColor:T}=i,N=e.sizeSlug||Rd,{gradientValue:D,setGradient:L}=(0,oa.__experimentalUseGradient)(),{imageSizes:P,selectedStyleState:E}=(0,pL.useSelect)(se=>{let{getSettings:Ne,getSelectedBlockStyleState:Ie}=U(se(oa.store));return{imageSizes:Ne()?.imageSizes,selectedStyleState:Ie(r)}},[r]),M=!i5e(E),z=Uh(E),j=Ci({attributes:e,selectedState:E,hasSelectedStyleState:M,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[q,G]=(0,ar.__experimentalParseQuantityAndUnitFromRawValue)(j||""),W=M?q:h,V=M&&G||g,Q=Ci({attributes:e,selectedState:E,hasSelectedStyleState:M,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),Y=(0,pL.useSelect)(se=>u&&x?se(fZ.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,x]),re=c?s:Y;function J(se){let Ne=re?.media_details?.sizes?.[se]?.source_url;if(!Ne)return null;t({url:Ne,sizeSlug:se})}let ie=P?.filter(({slug:se})=>re?.media_details?.sizes?.[se]?.source_url)?.map(({name:se,slug:Ne})=>({value:Ne,label:se})),ee=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},te=()=>{t({isRepeated:!f})},de=k||x,we=se=>{let[Ne,Ie]=w.current?[w.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];Ne[Ie]=ra(se)},le=(0,oa.__experimentalUseMultipleOriginColorsAndGradients)(),me=le.hasColorsOrGradients&&!M,xe=(se,Ne)=>{if(M){t(Gh({style:e.style,selectedState:E,hasSelectedStyleState:M,nextDimensions:{minHeight:se===void 0?void 0:`${se}${Ne||V||"px"}`,aspectRatio:void 0}}));return}t({minHeight:se,style:n5e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},ae=(se=e)=>Wh({style:se.style,selectedState:E,hasSelectedStyleState:M,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),pe=Z();return(0,yt.jsxs)(yt.Fragment,{children:[(!!S||c)&&(0,yt.jsx)(oa.InspectorControls,{children:(0,yt.jsxs)(ar.__experimentalToolsPanel,{label:(0,ko.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),J(Rd)},dropdownMenuProps:pe,children:[x&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,yt.jsx)(ar.ToggleControl,{label:(0,ko.__)("Fixed background"),checked:!!d,onChange:ee})}),(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,yt.jsx)(ar.ToggleControl,{label:(0,ko.__)("Repeated background"),checked:f,onChange:te})})]}),de&&(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>t({focalPoint:void 0}),children:(0,yt.jsx)(ar.FocalPointPicker,{label:(0,ko.__)("Focal point"),url:S,value:m,onDragStart:we,onDrag:we,onChange:se=>t({focalPoint:se})})}),k&&(0,yt.jsx)(Xw,{poster:_,onChange:se=>t({poster:se?.url})}),!c&&S&&!k&&(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>t({alt:""}),children:(0,yt.jsx)(ar.TextareaControl,{label:(0,ko.__)("Alternative text"),value:v,onChange:se=>t({alt:se}),help:(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(cu,{openInNewTab:!0,href:(0,ko.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ko.__)("Describe the purpose of the image.")}),(0,yt.jsx)("br",{}),(0,ko.__)("Leave empty if decorative.")]})})}),!!ie?.length&&(0,yt.jsx)(l5e,{value:N,onChange:J,options:ie,defaultValue:Rd})]})}),me&&(0,yt.jsxs)(oa.InspectorControls,{group:"color",children:[(0,yt.jsx)(oa.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:T.color,gradientValue:D,label:(0,ko.__)("Overlay"),onColorChange:o,onGradientChange:L,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...le}),(0,yt.jsx)(ar.__experimentalToolsPanelItem,{hasValue:()=>p===void 0?!1:p!==(S?50:100),label:(0,ko.__)("Overlay opacity"),onDeselect:()=>l(S?50:100),resetAllFilter:()=>({dimRatio:S?50:100}),isShownByDefault:!0,panelId:r,children:(0,yt.jsx)(ar.RangeControl,{label:(0,ko.__)("Overlay opacity"),value:p,onChange:se=>l(se),min:0,max:100,step:10,required:!0})})]}),(0,yt.jsx)(oa.InspectorControls,{group:"dimensions",children:(0,yt.jsx)(ar.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!W,label:(0,ko.__)("Minimum height"),onDeselect:()=>t(ae()),resetAllFilter:ae,isShownByDefault:!0,panelId:r,children:(0,yt.jsx)(c5e,{value:Q?"":W,unit:V,onChange:se=>xe(se),onUnitChange:se=>{if(M){W!==void 0&&xe(W,se);return}t({minHeightUnit:se})}})},z)}),(0,yt.jsx)(oa.InspectorControls,{group:"advanced",children:(0,yt.jsx)(s5e,{tagName:b,onChange:se=>t({tagName:se}),clientId:r,options:[{label:(0,ko.__)("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 Jw=a(H(),1),cs=a(B(),1),Kh=a(I(),1),e3=a(O(),1);var mL=a(H(),1),Zh=a(O(),1),Md=a(I(),1);var gZ=a($(),1);var u5e="core/embed",vZ=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function bZ(e){return Array.isArray(e)?vZ.filter(t=>e.includes(t)):[]}function yZ(e,t){return e?p5e(e,t)!==null:!1}function p5e(e,t=vZ){let r=(0,gZ.getBlockVariations)(u5e);if(!r)return null;let o=r.find(({patterns:n})=>hI(e,n));return!o||!t.includes(o.name)?null:o}function _Z(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=d5e(r);return e.replace(r,o)}function m5e(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 d5e(e){if(!e)return e;try{let t=new URL(e);switch(m5e(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 o=t.pathname.split("/").pop();o&&t.searchParams.set("playlist",o);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 qh=a(y(),1);function xZ({onSubmit:e,onClose:t,initialUrl:r="",allowedVideoProviders:o}){let[n,i]=(0,mL.useState)(r),[l,s]=(0,mL.useState)("");return(0,qh.jsx)(Zh.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!n){s((0,Md.__)("Please enter a URL."));return}if(!yZ(n,o)){s((0,Md.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(n),t()},onCancel:t,confirmButtonText:(0,Md.__)("Add video"),size:"medium",children:(0,qh.jsxs)(yp,{direction:"column",gap:"lg",children:[l&&(0,qh.jsx)(Zh.Notice,{status:"error",isDismissible:!1,children:l}),(0,qh.jsx)(Zh.TextControl,{type:"url",label:(0,Md.__)("Video URL"),value:n,onChange:u=>{i(u),s("")},placeholder:(0,Md.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,Md.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Ti=a(y(),1),{cleanEmptyObject:f5e}=U(cs.privateApis);function kZ({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,onEditMedia:s,editMediaButtonRef:c,showEditMediaButton:u,blockEditingMode:p}){let{contentPosition:m,id:d,useFeaturedImage:f,minHeight:h,minHeightUnit:g,backgroundType:v,allowedVideoProviders:b}=e,{hasInnerBlocks:_,url:k}=o,x=bZ(b),w=x.length>0,[S,T]=(0,Jw.useState)(h),[N,D]=(0,Jw.useState)(g),[L,P]=(0,Jw.useState)(!1),E=g==="vh"&&h===100&&!e?.style?.dimensions?.aspectRatio,M=p==="contentOnly",z=()=>E?t(N==="vh"&&S===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:S,minHeightUnit:N}):(T(h),D(g),t({minHeight:100,minHeightUnit:"vh",style:f5e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Ti.jsxs)(Ti.Fragment,{children:[!M&&(0,Ti.jsxs)(cs.BlockControls,{group:"block",children:[(0,Ti.jsx)(cs.__experimentalBlockAlignmentMatrixControl,{label:(0,Kh.__)("Change content position"),value:m,onChange:j=>t({contentPosition:j}),isDisabled:!_}),(0,Ti.jsx)(cs.__experimentalBlockFullHeightAligmentControl,{isActive:E,onToggle:z,isDisabled:!_}),u&&(0,Ti.jsx)(e3.ToolbarButton,{ref:c,icon:Zm,label:(0,Kh.__)("Crop background image"),onClick:s,"aria-haspopup":"dialog"})]}),(0,Ti.jsx)(cs.BlockControls,{group:"other",children:(0,Ti.jsx)(cs.MediaReplaceFlow,{mediaId:d,mediaURL:k,allowedTypes:Ww,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:f,name:k?(0,Kh.__)("Replace"):(0,Kh.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:j})=>w?(0,Ti.jsx)(e3.MenuItem,{icon:fi,onClick:()=>{P(!0),j()},children:(0,Kh.__)("Embed video from URL")}):null})}),L&&(0,Ti.jsx)(xZ,{onSubmit:j=>{l(j)},onClose:()=>P(!1),initialUrl:v===hu?k:"",allowedVideoProviders:x})]})}var t3=a(B(),1),wZ=a(I(),1);var CZ=a(Mr(),1);var dL=a(y(),1);function fL({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:n,toggleUseFeaturedImage:i}){let l=s=>{s.length===1&&r({url:(0,CZ.createBlobURL)(s[0])})};return(0,dL.jsx)(t3.MediaPlaceholder,{icon:(0,dL.jsx)(t3.BlockIcon,{icon:qm}),labels:{title:(0,wZ.__)("Cover")},onSelect:r,allowedTypes:Ww,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:l,onError:o,style:n,children:t})}var SZ=a(H(),1),TZ=a(B(),1);var PZ=a(y(),1),h5e={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:g5e}=U(TZ.privateApis);function hL({className:e,height:t,minHeight:r,onResize:o,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[p,m]=(0,SZ.useState)(!1),d={className:C(e,{"is-resizing":p}),enable:h5e,onResizeStart:(f,h,g)=>{n(g.clientHeight),o(g.clientHeight)},onResize:(f,h,g)=>{o(g.clientHeight),p||m(!0)},onResizeStop:(f,h,g)=>{i(g.clientHeight),m(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:p}};return(0,PZ.jsx)(g5e,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var v5e={grad:.9,turn:360,rad:360/(2*Math.PI)},gu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Ao=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},yl=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},MZ=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},BZ=function(e){return{r:yl(e.r,0,255),g:yl(e.g,0,255),b:yl(e.b,0,255),a:yl(e.a)}},gL=function(e){return{r:Ao(e.r),g:Ao(e.g),b:Ao(e.b),a:Ao(e.a,3)}},b5e=/^#([0-9a-f]{3,8})$/i,r3=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},AZ=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=Math.max(t,r,o),l=i-Math.min(t,r,o),s=l?i===t?(r-o)/l:i===r?2+(o-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}},zZ=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var i=Math.floor(t),l=o*(1-r),s=o*(1-(t-i)*r),c=o*(1-(1-t+i)*r),u=i%6;return{r:255*[o,s,l,l,c,o][u],g:255*[c,o,o,s,l,l][u],b:255*[l,l,c,o,o,s][u],a:n}},EZ=function(e){return{h:MZ(e.h),s:yl(e.s,0,100),l:yl(e.l,0,100),a:yl(e.a)}},NZ=function(e){return{h:Ao(e.h),s:Ao(e.s),l:Ao(e.l),a:Ao(e.a,3)}},IZ=function(e){return zZ((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},_b=function(e){return{h:(t=AZ(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},y5e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_5e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x5e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k5e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yL={string:[[function(e){var t=b5e.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?Ao(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?Ao(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=x5e.exec(e)||k5e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:BZ({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=y5e.exec(e)||_5e.exec(e);if(!t)return null;var r,o,n=EZ({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(v5e[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return IZ(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=n===void 0?1:n;return gu(t)&&gu(r)&&gu(o)?BZ({r:Number(t),g:Number(r),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,i=n===void 0?1:n;if(!gu(t)||!gu(r)||!gu(o))return null;var l=EZ({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return IZ(l)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,i=n===void 0?1:n;if(!gu(t)||!gu(r)||!gu(o))return null;var l=(function(s){return{h:MZ(s.h),s:yl(s.s,0,100),v:yl(s.v,0,100),a:yl(s.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return zZ(l)},"hsv"]]},DZ=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},w5e=function(e){return typeof e=="string"?DZ(e.trim(),yL.string):typeof e=="object"&&e!==null?DZ(e,yL.object):[null,void 0]};var vL=function(e,t){var r=_b(e);return{h:r.h,s:yl(r.s+100*t,0,100),l:r.l,a:r.a}},bL=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},LZ=function(e,t){var r=_b(e);return{h:r.h,s:r.s,l:yl(r.l+100*t,0,100),a:r.a}},_L=(function(){function e(t){this.parsed=w5e(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 Ao(bL(this.rgba),2)},e.prototype.isDark=function(){return bL(this.rgba)<.5},e.prototype.isLight=function(){return bL(this.rgba)>=.5},e.prototype.toHex=function(){return t=gL(this.rgba),r=t.r,o=t.g,n=t.b,l=(i=t.a)<1?r3(Ao(255*i)):"","#"+r3(r)+r3(o)+r3(n)+l;var t,r,o,n,i,l},e.prototype.toRgb=function(){return gL(this.rgba)},e.prototype.toRgbString=function(){return t=gL(this.rgba),r=t.r,o=t.g,n=t.b,(i=t.a)<1?"rgba("+r+", "+o+", "+n+", "+i+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,i},e.prototype.toHsl=function(){return NZ(_b(this.rgba))},e.prototype.toHslString=function(){return t=NZ(_b(this.rgba)),r=t.h,o=t.s,n=t.l,(i=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+i+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,i},e.prototype.toHsv=function(){return t=AZ(this.rgba),{h:Ao(t.h),s:Ao(t.s),v:Ao(t.v),a:Ao(t.a,3)};var t},e.prototype.invert=function(){return Er({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),Er(vL(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Er(vL(this.rgba,-t))},e.prototype.grayscale=function(){return Er(vL(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Er(LZ(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Er(LZ(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"?Er({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):Ao(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=_b(this.rgba);return typeof t=="number"?Er({h:t,s:r.s,l:r.l,a:r.a}):Ao(r.h)},e.prototype.isEqual=function(t){return this.toHex()===Er(t).toHex()},e})(),Er=function(e){return e instanceof _L?e:new _L(e)},RZ=[],VZ=function(e){e.forEach(function(t){RZ.indexOf(t)<0&&(t(_L,yL),RZ.push(t))})};function OZ(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"},o={};for(var n in r)o[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=o[this.toHex()];if(u)return u;if(l?.closest){var p=this.toRgb(),m=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 g=(s=p,c=i[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));g<m&&(m=g,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 C5e(e){var t=e.toString(16);return t.length===1?"0"+t:t}function FZ(e){return"#"+e.map(C5e).join("")}function S5e(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function T5e(e){return e?P5e(e)?e:[e]:[]}function P5e(e){return Array.isArray(e[0])}function kL(e,t,r){for(var o=0;o<r.length;o++)if(B5e(e,t,r[o]))return!0;return!1}function B5e(e,t,r){switch(r.length){case 3:if(E5e(e,t,r))return!0;break;case 4:if(N5e(e,t,r))return!0;break;case 5:if(I5e(e,t,r))return!0;break;default:return!1}}function E5e(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function N5e(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 o3(e,t,r){return e>=t-r&&e<=t+r}function I5e(e,t,r){var o=r[0],n=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=o3(c,l,s);return l?!!(!c&&u||o3(e[t],o,s)&&o3(e[t+1],n,s)&&o3(e[t+2],i,s)&&u):u}function D5e(e,t,r){for(var o={},n=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],p=e[c+1],m=e[c+2],d=e[c+3];if(!(i&&kL(e,c,i))){var f=Math.round(u/n)+","+Math.round(p/n)+","+Math.round(m/n);o[f]?o[f]=[o[f][0]+u*d,o[f][1]+p*d,o[f][2]+m*d,o[f][3]+d,o[f][4]+1]:o[f]=[u*d,p*d,m*d,d,1],s[4]<o[f][4]&&(s=o[f])}}var h=s[0],g=s[1],v=s[2],b=s[3],_=s[4];return b?[Math.round(h/b),Math.round(g/b),Math.round(v/b),Math.round(b/_)]:r.defaultColor}function L5e(e,t,r){for(var o=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,p=0;p<t;p+=u){var m=e[p+3],d=e[p]*m,f=e[p+1]*m,h=e[p+2]*m;c&&kL(e,p,c)||(o+=d,n+=f,i+=h,l+=m,s++)}return l?[Math.round(o/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function R5e(e,t,r){for(var o=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,p=0;p<t;p+=u){var m=e[p],d=e[p+1],f=e[p+2],h=e[p+3];c&&kL(e,p,c)||(o+=m*m*h,n+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function HZ(e){return kb(e,"defaultColor",[0,0,0,0])}function kb(e,t,r){return e[t]===void 0?r:e[t]}var jZ=10,xL=100;function M5e(e){return e.search(/\.svg(\?|$)/i)!==-1}function A5e(e){if(GZ(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&M5e(e.src)&&(t=r=xL),{width:t,height:r}}return V5e(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function UZ(e){return O5e(e)?"canvas":z5e(e)?"offscreencanvas":F5e(e)?"imagebitmap":e.src}function GZ(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function z5e(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function V5e(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function O5e(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function F5e(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function H5e(e,t){var r=kb(t,"left",0),o=kb(t,"top",0),n=kb(t,"width",e.width),i=kb(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=xL,s=Math.round(l/c)):(c=i/n,s=xL,l=Math.round(s/c)),(l>n||s>i||l<jZ||s<jZ)&&(l=n,s=i),{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var j5e=typeof window>"u";function U5e(){return j5e?new OffscreenCanvas(1,1):document.createElement("canvas")}var WZ="FastAverageColor: ";function a3(e,t,r){t||(console.error(WZ+e),r&&console.error(r))}function xb(e){return Error(WZ+e)}var $Z=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(xb("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(xb("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=r&&r.crossOrigin||"",o.src=t,this.bindImageEvents(o,r)}else{if(GZ(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 o=HZ(r);if(!t)return a3("call .getColor(null) without resource",r.silent),this.prepareResult(o);var n=A5e(t),i=H5e(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return a3('incorrect sizes for resource "'.concat(UZ(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=U5e()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return a3("Canvas Context 2D is not supported in this browser",r.silent),this.prepareResult(o);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=o;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){a3("security error (CORS) for resource ".concat(UZ(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 o=4,n=t.length,i=HZ(r);if(n<o)return i;var l=n-n%o,s=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=L5e;break;case"sqrt":c=R5e;break;case"dominant":c=D5e;break;default:throw xb("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:T5e(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),o=[t[0],t[1],t[2],t[3]/255],n=S5e(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:FZ(r),hexa:FZ(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 o=this;return new Promise(function(n,i){var l=function(){u();var p=o.getColor(t,r);p.error?i(p.error):n(p)},s=function(){u(),i(xb('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(xb('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 ZZ=a(vu(),1);VZ([OZ]);var Yh="#FFF",KZ="#000";function G5e(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 n3(){return n3.fastAverageColor||(n3.fastAverageColor=new $Z),n3.fastAverageColor}var Ad=gh(async e=>{if(!e)return Yh;let{r:t,g:r,b:o,a:n}=Er(Yh).toRgb();try{let i=(0,ZZ.applyFilters)("media.crossOrigin",void 0,e);return(await n3().getColorAsync(e,{defaultColor:[t,r,o,n*255],silent:!0,crossOrigin:i})).hex}catch{return Yh}});function Ip(e,t,r){if(t===r||e===100)return Er(t).isDark();let o=Er(t).alpha(e/100).toRgb(),n=Er(r).toRgb(),i=G5e(o,n);return Er(i).isDark()}var Qt=a(y(),1),{openMediaEditorModalKey:W5e}=U(Yr.privateApis);function $5e(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,wL.__)("Write title\u2026"),...e}]]}var q5e=(e,t)=>!e&&(0,YZ.isBlobURL)(t);function Z5e({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:p,url:m,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:g,hasParallax:v,isDark:b,isRepeated:_,minHeight:k,minHeightUnit:x,alt:w,allowedBlocks:S,templateLock:T,tagName:N="div",isUserOverlayColor:D,sizeSlug:L,poster:P}=e,[E]=(0,wb.useEntityProp)("postType",c,"featured_media",s),{getSettings:M}=(0,bu.useSelect)(Yr.store),z=(0,bu.useSelect)(De=>De(Yr.store).getSettings()[W5e],[]),{__unstableMarkNextChangeAsNotPersistent:j}=(0,bu.useDispatch)(Yr.store),q=(0,Hn.useRef)({attributes:e,overlayColor:o});(0,Hn.useLayoutEffect)(()=>{q.current={attributes:e,overlayColor:o}});let{media:G}=(0,bu.useSelect)(De=>({media:E&&f?De(wb.store).getEntityRecord("postType","attachment",E,{context:"view"}):void 0}),[E,f]),W=G?.media_details?.sizes?.[L]?.source_url??G?.source_url;(0,Hn.useEffect)(()=>{(async()=>{if(!f)return;let De=await Ad(W),{attributes:bt,overlayColor:sr}=q.current,wr=sr.color;bt.isUserOverlayColor||(wr=De,j(),i(wr));let $r=Ip(bt.dimRatio,wr,De);j(),n({isDark:$r,isUserOverlayColor:bt.isUserOverlayColor||!1})})()},[W,j,n,i,f]);let V=f?W:m?.replaceAll("&amp;","&"),Q=f?Yt:d,{createErrorNotice:Y}=(0,bu.useDispatch)(QZ.store),{gradientClass:re,gradientValue:J}=(0,Yr.__experimentalUseGradient)(),ie=async De=>{let bt=rZ(De),sr=[De?.type,De?.media_type].includes(Yt),wr=await Ad(sr?De?.url:void 0),{attributes:$r,overlayColor:en}=q.current,ui=en.color;$r.isUserOverlayColor||(ui=wr,i(ui),j());let Rm=$r.url===void 0&&$r.dimRatio===100?50:$r.dimRatio,rh=Ip(Rm,ui,wr);if(Q===Yt&&bt?.id){let{imageDefaultSize:al}=M();L&&(De?.sizes?.[L]||De?.media_details?.sizes?.[L])?(bt.sizeSlug=L,bt.url=De?.sizes?.[L]?.url||De?.media_details?.sizes?.[L]?.source_url):De?.sizes?.[al]||De?.media_details?.sizes?.[al]?(bt.sizeSlug=al,bt.url=De?.sizes?.[al]?.url||De?.media_details?.sizes?.[al]?.source_url):bt.sizeSlug=Rd}n({...bt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Rm,isDark:rh,isUserOverlayColor:$r.isUserOverlayColor||!1})},ee=()=>{let De=o.color;!D&&o.color&&(De=KZ,i(void 0),j());let bt=Ip(h,De,Yh);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:bt})},te=async De=>{let bt=await Ad(V),{attributes:sr}=q.current,wr=Ip(sr.dimRatio,De,bt);i(De),j(),n({isUserOverlayColor:!0,isDark:wr})},de=async De=>{let bt=await Ad(V),{overlayColor:sr}=q.current,wr=Ip(De,sr.color,bt);n({dimRatio:De,isDark:wr})},we=De=>{Y(De,{type:"snackbar"})},le=De=>{n({url:De,backgroundType:hu,dimRatio:m===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:me,isFetchingEmbed:xe}=(0,bu.useSelect)(De=>{if(Q!==hu||!V)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:bt,isRequestingEmbedPreview:sr}=De(wb.store);return{embedPreview:bt(V),isFetchingEmbed:sr(V)}},[V,Q]),ae=(0,Hn.useMemo)(()=>Q!==hu||!me?.html?null:_Z(me.html),[me,Q]),pe=q5e(p,V),se=Yt===Q,Ne=Br===Q,Ie=hu===Q,X=(0,Yr.useBlockEditingMode)(),Ce=X==="default",[ue,{height:ct,width:he}]=(0,i3.useResizeObserver)(),ze=(0,Hn.useMemo)(()=>({height:x==="px"&&k?k:"auto",width:"auto"}),[k,x]),Ct=k&&x?`${k}${x}`:k,Ae=!(v||_),Io={minHeight:Ct||void 0},Do=V?`url(${V})`:void 0,Lo=ra(g),bo={backgroundColor:o.color},qo={objectPosition:g&&Ae?ra(g):void 0},Xa=!!(V||o.color||J),ne=(0,bu.useSelect)(De=>De(Yr.store).getBlock(t).innerBlocks.length>0,[t]),Ve=(0,Hn.useRef)(),$e=(0,Yr.useBlockProps)({ref:Ve}),[Lt]=(0,Yr.useSettings)("typography.fontSizes"),tt=Lt?.length>0,kr=$5e({fontSize:tt?"large":void 0}),Ja=(0,Yr.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ne?void 0:kr,templateInsertUpdatesSelection:!0,allowedBlocks:S,templateLock:T,dropZoneElement:Ve.current}),ci=(0,Hn.useRef)(),rt=(0,Hn.useRef)(),wa={isVideoBackground:Ne,isImageBackground:se,mediaElement:ci,hasInnerBlocks:ne,url:V,isImgElement:Ae,overlayColor:o},Lm=(0,Hn.useCallback)(()=>{!p||!z||z({id:p,onClose:()=>{rt.current?.focus()},onUpdate:async({id:De,url:bt})=>{if(typeof De!="number")return;let sr={id:De,backgroundType:Yt,...bt?{url:bt}:{},...De!==p?{sizeSlug:Rd}:{}};if(bt){let wr=await Ad(bt),{attributes:$r,overlayColor:en}=q.current,ui=en.color;$r.isUserOverlayColor||(ui=wr,i(ui),j()),sr.isDark=Ip($r.dimRatio,ui,wr),sr.isUserOverlayColor=$r.isUserOverlayColor||!1}n(sr)}})},[p,z,n,i,j]),Ln=Ce&&!f&&se&&!!p&&!!V&&!pe&&!!z,ol=async()=>{let De=!f,bt=De?await Ad(W):Yh,{attributes:sr,overlayColor:wr}=q.current,$r=sr.isUserOverlayColor?wr.color:bt;sr.isUserOverlayColor||(i(De?$r:void 0),j());let en=sr.dimRatio===100?50:sr.dimRatio,ui=Ip(en,$r,bt);n({id:void 0,url:void 0,useFeaturedImage:De,dimRatio:en,backgroundType:f?Yt:void 0,isDark:ui})},tp=(0,Qt.jsx)(kZ,{attributes:e,setAttributes:n,onSelectMedia:ie,onSelectEmbedUrl:le,currentSettings:wa,toggleUseFeaturedImage:ol,onClearMedia:ee,blockEditingMode:X,onEditMedia:Lm,editMediaButtonRef:rt,showEditMediaButton:Ln}),Hs=(0,Qt.jsx)(hZ,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:te,coverRef:Ve,currentSettings:wa,toggleUseFeaturedImage:ol,updateDimRatio:de,onClearMedia:ee,featuredImage:G}),Ul={className:"block-library-cover__resize-container",clientId:t,height:ct,minHeight:Ct,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:De=>{n({minHeight:De})},onResizeStop:De=>{l(!0),n({minHeight:De})},showHandle:!e.style?.dimensions?.aspectRatio,size:ze,width:he};if(!f&&!ne&&!Xa)return(0,Qt.jsxs)(Qt.Fragment,{children:[tp,Hs,Ce&&r&&(0,Qt.jsx)(hL,{...Ul}),(0,Qt.jsxs)(N,{...$e,className:C("is-placeholder",$e.className),style:{...$e.style,minHeight:Ct||void 0},children:[ue,(0,Qt.jsx)(fL,{onSelectMedia:ie,onError:we,toggleUseFeaturedImage:ol,children:(0,Qt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Qt.jsx)(Yr.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:te,clearable:!1,asButtons:!0,"aria-label":(0,wL.__)("Overlay color")})})})]})]});let Jc=C({"is-dark-theme":b,"is-light":!b,"is-transient":pe,"has-parallax":v,"is-repeated":_,"has-custom-content-position":!un(u)},Fn(u)),_1=V||!f||f&&!V;return(0,Qt.jsxs)(Qt.Fragment,{children:[tp,Hs,(0,Qt.jsxs)(N,{...$e,className:C(Jc,$e.className),style:{...Io,...$e.style},"data-url":V,children:[ue,!V&&f&&(0,Qt.jsx)(zd.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),V&&se&&(Ae?(0,Qt.jsx)("img",{ref:ci,className:"wp-block-cover__image-background",alt:w,src:V,style:qo}):(0,Qt.jsx)("div",{ref:ci,role:w?"img":void 0,"aria-label":w||void 0,className:C(Jc,"wp-block-cover__image-background"),style:{backgroundImage:Do,backgroundPosition:Lo}})),V&&Ne&&(0,Qt.jsx)("video",{ref:ci,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:V,poster:P,style:qo}),Ie&&ae&&(0,Qt.jsx)("div",{ref:ci,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:qo,children:(0,Qt.jsx)(zd.SandBox,{allowSameOrigin:!0,html:ae,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),Ie&&!ae&&xe&&(0,Qt.jsx)(zd.Spinner,{}),_1&&(0,Qt.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",bl(h),{[o.class]:o.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":V&&J&&h!==0,"has-background-gradient":J,[re]:re}),style:{backgroundImage:J,...bo}}),pe&&(0,Qt.jsx)(zd.Spinner,{}),(0,Qt.jsx)(fL,{disableMediaButtons:!0,onSelectMedia:ie,onError:we,toggleUseFeaturedImage:ol}),(0,Qt.jsx)("div",{...Ja})]}),Ce&&r&&(0,Qt.jsx)(hL,{...Ul})]})}var XZ=(0,i3.compose)([(0,Yr.withColors)({overlayColor:"background-color"})])(Z5e);var l3={$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"},allowedVideoProviders:{type:"array",default:["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"]}},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 Dp=a(B(),1);var oc=a(y(),1);function JZ({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_,sizeSlug:k,poster:x}=e,w=(0,Dp.getColorClassName)("background-color",d),S=(0,Dp.__experimentalGetGradientClass)(r),T=v&&b?`${v}${b}`:v,N=Yt===t,D=Br===t,L=hu===t,P=!(u||m),E={minHeight:T||void 0},M={backgroundColor:w?void 0:i,background:n||void 0},z=s&&P?ra(s):void 0,j=f?`url(${f})`:void 0,q=ra(s),G=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!un(o)},Fn(o)),W=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":m}),V=r||n;return(0,oc.jsxs)(_,{...Dp.useBlockProps.save({className:G,style:E}),children:[!c&&N&&f&&(P?(0,oc.jsx)("img",{className:W,alt:h,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}):(0,oc.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:W,style:{backgroundPosition:q,backgroundImage:j}})),D&&f&&(0,oc.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:x,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),L&&f&&(0,oc.jsx)("figure",{className:C("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,oc.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,oc.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",w,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&V&&l!==0,"has-background-gradient":V,[S]:S}),style:M}),(0,oc.jsx)("div",{...Dp.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var Pi=a($(),1),eK=a(B(),1);var{cleanEmptyObject:s3}=U(eK.privateApis),Y5e={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:l})=>(0,Pi.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,Pi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:r,id:o,anchor:n})=>(0,Pi.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:Br,anchor:n},[(0,Pi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:r,anchor:o,backgroundColor:n,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,Pi.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:o,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:s3({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Pi.createBlock)("core/cover",c,[(0,Pi.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===Yt:!r&&!o&&!n&&!i,transform:({title:e,url:t,alt:r,align:o,id:n,anchor:i,style:l})=>(0,Pi.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===Br:!r&&!o&&!n&&!i,transform:({title:e,url:t,align:r,id:o,anchor:n})=>(0,Pi.createBlock)("core/video",{caption:e,src:t,id:o,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:s3({...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 o=s3(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,Pi.createBlock)("core/group",o,t[0]?.innerBlocks):(0,Pi.createBlock)("core/group",{...r,...o,style:s3({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Pi.createBlock)("core/group",{...e,...r},t)}}]},tK=Y5e;var CL=a(I(),1);var Q5e=[{name:"cover",title:(0,CL.__)("Cover"),description:(0,CL.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:qm}],rK=Q5e;var{fieldsKey:X5e,formKey:J5e}=U(oK.privateApis),{name:aK}=l3,c3={icon:qm,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,SL.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:tK,save:JZ,edit:XZ,deprecated:oZ,variations:rK};window.__experimentalContentOnlyInspectorFields&&(c3[X5e]=[{id:"background",label:(0,SL.__)("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})}],c3[J5e]={fields:["background"]});var ewe=()=>R({name:aK,metadata:l3,settings:c3});var PL={};K(PL,{init:()=>lwe,metadata:()=>u3,name:()=>pK,settings:()=>m3});var Lp=a(I(),1),uK=a($(),1);var u3={$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 us=a(B(),1),ac=a(O(),1),yu=a(I(),1),nK=a(H(),1),iK=a(F(),1);var jn=a(y(),1),{withIgnoreIMEEvents:rwe}=U(ac.privateApis),owe=[["core/paragraph",{placeholder:(0,yu.__)("Type / to add a hidden block")}]];function awe({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,us.useBlockProps)(),u=(0,us.useInnerBlocksProps)(c,{template:owe,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[p,m]=(0,nK.useState)(n),d=Z(),f=(0,iK.useSelect)(v=>v(us.store).hasSelectedInnerBlock(r,!0),[r]),h=v=>{v.key==="Enter"&&!v.shiftKey&&(m(b=>!b),v.preventDefault())},g=v=>{v.key===" "&&v.preventDefault()};return(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsx)(us.InspectorControls,{children:(0,jn.jsx)(ac.__experimentalToolsPanel,{label:(0,yu.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,jn.jsx)(ac.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,yu.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,jn.jsx)(ac.ToggleControl,{label:(0,yu.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,jn.jsx)(us.InspectorControls,{group:"advanced",children:(0,jn.jsx)(ac.TextControl,{label:(0,yu.__)("Name attribute"),value:o||"",onChange:v=>t({name:v}),help:(0,yu.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,jn.jsxs)("details",{...u,open:p||f,onToggle:v=>m(v.target.open),name:o||"",children:[(0,jn.jsx)("summary",{onKeyDown:rwe(h),onKeyUp:g,children:(0,jn.jsx)(us.RichText,{identifier:"summary","aria-label":(0,yu.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,yu.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:v=>t({summary:v})})}),u.children]})]})}var lK=awe;var Xh=a(B(),1),Qh=a(y(),1);function sK({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",n=Xh.useBlockProps.save();return(0,Qh.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,Qh.jsx)("summary",{children:(0,Qh.jsx)(Xh.RichText.Content,{value:o})}),(0,Qh.jsx)(Xh.InnerBlocks.Content,{})]})}var p3=a($(),1),cK={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,p3.createBlock)("core/details",{},e.map(t=>(0,p3.cloneSanitizedBlock)(t)))}}]};var{fieldsKey:nwe,formKey:iwe}=U(uK.privateApis),{name:pK}=u3,m3={icon:RP,example:{attributes:{summary:(0,Lp.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Lp.__)("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,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o;if(t==="accessibility")return n?(0,Lp.sprintf)((0,Lp.__)("Details. %s"),r):(0,Lp.__)("Details. Empty.")},save:sK,edit:lK,transforms:cK};window.__experimentalContentOnlyInspectorFields&&(m3[nwe]=[{id:"summary",label:(0,Lp.__)("Summary"),type:"text",Edit:"rich-text"}],m3[iwe]={fields:["summary"]});var lwe=()=>R({name:pK,metadata:u3,settings:m3});var DL={};K(DL,{init:()=>vwe,metadata:()=>qs,name:()=>qK,settings:()=>ZK});var Od=a(I(),1),rg=a(H(),1),Cb=a(F(),1),v3=a(B(),1),IL=a(oe(),1);var Vd=a(I(),1),nc=a(O(),1),d3=a(B(),1);var _l=a(y(),1);function swe(e){return e?(0,Vd.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Vd.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var cwe=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:n,switchBackToURLInput:i})=>{let l=Z();return(0,_l.jsxs)(_l.Fragment,{children:[(0,_l.jsx)(d3.BlockControls,{children:(0,_l.jsx)(nc.ToolbarGroup,{children:t&&(0,_l.jsx)(nc.ToolbarButton,{className:"components-toolbar__control",label:(0,Vd.__)("Edit URL"),icon:ed,onClick:i})})}),r&&e&&(0,_l.jsx)(d3.InspectorControls,{children:(0,_l.jsx)(nc.__experimentalToolsPanel,{label:(0,Vd.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,_l.jsx)(nc.__experimentalToolsPanelItem,{label:(0,Vd.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{n(!o)},children:(0,_l.jsx)(nc.ToggleControl,{label:(0,Vd.__)("Resize for smaller devices"),checked:o,help:swe,onChange:n})})})})]})},mK=cwe;var Se=a(O(),1),Pe=a(y(),1),ps=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)(Se.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"})}),f3=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)(Se.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"})}),BL=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)(Se.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"})}),Jh=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)(Se.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"})}),dK={foreground:"#000000",src:(0,Pe.jsx)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})})},fK={foreground:"#ff0000",src:(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})})},hK={foreground:"#3b5998",src:(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})})},gK=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.G,{children:(0,Pe.jsx)(Se.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"})})}),vK={foreground:"#0073AA",src:(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.G,{children:(0,Pe.jsx)(Se.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"})})})},bK={foreground:"#1db954",src:(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})})},yK=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})}),_K={foreground:"#1ab7ea",src:(0,Pe.jsx)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.G,{children:(0,Pe.jsx)(Se.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"})})})},xK=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})}),kK={foreground:"#35465c",src:(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})})},wK=(0,Pe.jsxs)(Se.SVG,{viewBox:"0 0 24 24",children:[(0,Pe.jsx)(Se.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,Pe.jsx)(Se.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,Pe.jsx)(Se.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"})]}),CK=(0,Pe.jsxs)(Se.SVG,{viewBox:"0 0 24 24",children:[(0,Pe.jsx)(Se.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Pe.jsx)(Se.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,Pe.jsx)(Se.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Pe.jsx)(Se.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,Pe.jsx)(Se.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Pe.jsx)(Se.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),SK=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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"})}),TK=(0,Pe.jsx)(Se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Pe.jsx)(Se.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"})}),PK=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 44 44",children:(0,Pe.jsx)(Se.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"})}),BK={foreground:"#f43e37",src:(0,Pe.jsxs)(Se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Pe.jsx)(Se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Pe.jsx)(Se.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"})]})},EK=(0,Pe.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Pe.jsx)(Se.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 NK=a(O(),1),EL=a(y(),1),uwe=()=>(0,EL.jsx)("div",{className:"wp-block-embed is-loading",children:(0,EL.jsx)(NK.Spinner,{})}),IK=uwe;var ic=a(I(),1),Rp=a(O(),1),DK=a(B(),1);var Un=a(y(),1);function LK({icon:e,label:t,value:r,onSubmit:o,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s}){return(0,Un.jsxs)(Rp.Placeholder,{icon:(0,Un.jsx)(DK.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,ic.__)("Paste a link to the content you want to display on your site."),children:[(0,Un.jsxs)("form",{onSubmit:o,children:[(0,Un.jsx)(Rp.__experimentalInputControl,{type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,ic.__)("Enter URL to embed here\u2026"),onChange:n}),(0,Un.jsx)(Rp.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,ic._x)("Embed","button label")})]}),(0,Un.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Un.jsx)(cu,{openInNewTab:!0,href:(0,ic.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,ic.__)("Learn more about embeds")})}),i&&(0,Un.jsxs)(yp,{direction:"column",gap:"md",className:"components-placeholder__error",children:[(0,Un.jsx)("div",{className:"components-placeholder__instructions",children:(0,ic.__)("Sorry, this content could not be embedded.")}),(0,Un.jsxs)(yp,{direction:"row",gap:"md",justify:"flex-start",children:[(0,Un.jsx)(Rp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,ic._x)("Try again","button label")}),(0,Un.jsx)(Rp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,ic._x)("Convert to link","button label")})]})]})]})}var tg=a(I(),1),g3=a(O(),1),MK=a(B(),1),AK=a(H(),1),zK=a(ur(),1);var h3=a(ge(),1),eg=a(H(),1),NL=a(y(),1),pwe={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function RK({html:e}){let t=(0,eg.useRef)(),r=(0,eg.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[pwe[l]||l]=s)}),i},[e]);return(0,eg.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:n}=o;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,NL.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,NL.jsx)("iframe",{ref:(0,h3.useMergeRefs)([t,(0,h3.useFocusableIframe)()]),title:r.title,...r})})}var Gn=a(y(),1);function VK({preview:e,previewable:t,url:r,type:o,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,AK.useState)(!1);!n&&c&&u(!1);let p=()=>{u(!0)},{scripts:m}=e,d=o==="photo"?Bj(e):e.html,f=(0,zK.getAuthority)(r),h=(0,tg.sprintf)((0,tg.__)("Embedded content from %s"),f),g=C(o,i,"wp-block-embed__wrapper");return(0,Gn.jsx)(Gn.Fragment,{children:t?o==="wp-embed"?(0,Gn.jsx)(RK,{html:d}):(0,Gn.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,Gn.jsx)(g3.SandBox,{allowSameOrigin:!0,html:d,scripts:m,title:h,type:g,onFocus:p}),!c&&(0,Gn.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:p})]}):(0,Gn.jsxs)(g3.Placeholder,{icon:(0,Gn.jsx)(MK.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,Gn.jsx)("p",{className:"components-placeholder__error",children:(0,Gn.jsx)("a",{href:r,children:r})}),(0,Gn.jsx)("p",{className:"components-placeholder__error",children:(0,tg.sprintf)((0,tg.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Bi=a(y(),1),mwe=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:p}=e,m={title:(0,Od._x)("Embed","block title"),icon:ps},{icon:d,title:f}=Tj(t)||m,[h,g]=(0,rg.useState)(n),[v,b]=(0,rg.useState)(!1),{invalidateResolution:_}=(0,Cb.useDispatch)(IL.store),{__unstableMarkNextChangeAsNotPersistent:k}=(0,Cb.useDispatch)(v3.store),{preview:x,fetching:w,themeSupportsResponsive:S,cannotEmbed:T,hasResolved:N}=(0,Cb.useSelect)(V=>{let{getEmbedPreview:Q,isPreviewEmbedFallback:Y,isRequestingEmbedPreview:re,getThemeSupports:J,hasFinishedResolution:ie}=V(IL.store);if(!n)return{fetching:!1,cannotEmbed:!1};let ee=Q(n),te=Y(n),de=ee?.html===!1&&ee?.type===void 0,we=ee?.data?.status===404,le=!!ee&&!de&&!we;return{preview:le?ee:void 0,fetching:re(n),themeSupportsResponsive:J()["responsive-embeds"],cannotEmbed:!le||te,hasResolved:ie("getEmbedPreview",[n])}},[n]),D=()=>Nj(i,x,f,o);function L(V){let{className:Q}=i,{html:Y}=x;c({allowResponsive:V,className:gI(Y,Q,o&&V)})}(0,rg.useEffect)(()=>{if(!T||!N||!n)return;let V=n.replace(/\/$/,"");V!==n&&(g(V),b(!1),k(),c({url:V}))},[n,T,N,c,k]),(0,rg.useEffect)(()=>{if(!x||v)return;let V=D();if(s){let Y=fp(e,V);if(Y){k(),c(Y.attributes);return}}Object.keys(V).some(Y=>V[Y]!==i[Y])&&(k(),c(V))},[x,v]);let P=(0,v3.useBlockProps)();if(w)return(0,Bi.jsx)("div",{...P,children:(0,Bi.jsx)(IK,{})});let E=(0,Od.sprintf)((0,Od.__)("%s URL"),f);if(!x||T||v)return(0,Bi.jsx)("div",{...P,children:(0,Bi.jsx)(LK,{icon:d,label:E,onFocus:p,onSubmit:V=>{V&&V.preventDefault();let Q=Vv(h),Y=dp(i.className);g(Q),c({url:Q,...bh(Q)?.attributes,className:Y}),b(!1)},value:h,cannotEmbed:T,onChange:V=>g(V),fallback:()=>Ej(h,s),tryAgain:()=>{_("getEmbedPreview",[h])}})});let{caption:z,type:j,allowResponsive:q,className:G}=D(),W=C(G,e.className);return(0,Bi.jsxs)(Bi.Fragment,{children:[(0,Bi.jsx)(mK,{showEditButton:x&&!T,themeSupportsResponsive:S,blockSupportsResponsive:o,allowResponsive:q,toggleResponsive:L,switchBackToURLInput:()=>b(!0)}),(0,Bi.jsxs)("figure",{...P,className:C(P.className,W,{[`is-type-${j}`]:j,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Bi.jsx)(VK,{preview:x,previewable:r,className:W,url:h,type:j,caption:z,onCaptionChange:V=>c({caption:V}),isSelected:l,icon:d,label:E,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Bi.jsx)(Mo,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,Od.__)("Embed caption text"),showToolbarButton:l})]})]})},OK=mwe;var Fd=a(B(),1),Sb=a(y(),1);function FK({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=C("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,Sb.jsxs)("figure",{...Fd.useBlockProps.save({className:i}),children:[(0,Sb.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Fd.RichText.isEmpty(r)&&(0,Sb.jsx)(Fd.RichText.Content,{className:(0,Fd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var b3=a($(),1),y3=a(ur(),1);var{name:HK}=qs,dwe={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,y3.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,y3.getFilename)(t)||"")},transform:e=>{let t=Vv(e.textContent.trim());return(0,b3.createBlock)(HK,{url:t,...bh(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=Vv(t.content?.trim());return(0,b3.createBlock)(HK,{url:r,...bh(r)?.attributes})}}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:r})=>{let o=`<a href="${e}">${e}</a>`;return t?.trim()&&(o+=`<br />${t}`),(0,b3.createBlock)("core/paragraph",{content:o,className:dp(r)})}}]},jK=dwe;var ke=a(I(),1);function _t(e){return(0,ke.sprintf)((0,ke.__)("%s Embed"),e)}var UK=[{name:"twitter",title:_t("X"),icon:dK,keywords:["x","twitter","tweet",(0,ke.__)("social")],description:(0,ke.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:_t("YouTube"),icon:fK,keywords:[(0,ke.__)("music"),(0,ke.__)("video")],description:(0,ke.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:_t("Facebook"),icon:hK,keywords:[(0,ke.__)("social")],description:(0,ke.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:_t("Instagram"),icon:gK,keywords:[(0,ke.__)("image"),(0,ke.__)("social")],description:(0,ke.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:_t("WordPress"),icon:vK,keywords:[(0,ke.__)("post"),(0,ke.__)("blog")],description:(0,ke.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:_t("SoundCloud"),icon:f3,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:_t("Spotify"),icon:bK,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:_t("Flickr"),icon:yK,keywords:[(0,ke.__)("image")],description:(0,ke.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:_t("Vimeo"),icon:_K,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:_t("Animoto"),icon:CK,description:(0,ke.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:_t("Cloudup"),icon:ps,description:(0,ke.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:_t("CollegeHumor"),icon:Jh,description:(0,ke.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:_t("Crowdsignal"),icon:ps,keywords:["polldaddy",(0,ke.__)("survey")],description:(0,ke.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:_t("Dailymotion"),icon:SK,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:_t("Imgur"),icon:BL,description:(0,ke.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:_t("Issuu"),icon:ps,description:(0,ke.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:_t("Kickstarter"),icon:ps,description:(0,ke.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:_t("Mixcloud"),icon:f3,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:_t("Pocket Casts"),icon:BK,keywords:[(0,ke.__)("podcast"),(0,ke.__)("audio")],description:(0,ke.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:_t("Reddit"),icon:xK,description:(0,ke.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:_t("ReverbNation"),icon:f3,description:(0,ke.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:_t("Scribd"),icon:ps,description:(0,ke.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:_t("SmugMug"),icon:BL,description:(0,ke.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:_t("Speaker Deck"),icon:ps,description:(0,ke.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:_t("TikTok"),icon:Jh,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:_t("TED"),icon:Jh,description:(0,ke.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:_t("Tumblr"),icon:kK,keywords:[(0,ke.__)("social")],description:(0,ke.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:_t("VideoPress"),icon:Jh,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:_t("WordPress.tv"),icon:Jh,description:(0,ke.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:_t("Amazon Kindle"),icon:wK,keywords:[(0,ke.__)("ebook")],description:(0,ke.__)("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:_t("Pinterest"),icon:TK,keywords:[(0,ke.__)("social"),(0,ke.__)("bookmark")],description:(0,ke.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:_t("Wolfram"),icon:PK,description:(0,ke.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:_t("Bluesky"),icon:EK,description:(0,ke.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];UK.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var GK=UK;var Hd=a(B(),1),jd=a(y(),1),{attributes:WK}=qs,fwe={attributes:WK,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=C("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,jd.jsxs)("figure",{...Hd.useBlockProps.save({className:i}),children:[(0,jd.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Hd.RichText.isEmpty(r)&&(0,jd.jsx)(Hd.RichText.Content,{tagName:"figcaption",value:r})]})}},hwe={attributes:WK,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let n=C("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${o}`]:o});return(0,jd.jsxs)("figure",{className:n,children:[`
${e}
`,!Hd.RichText.isEmpty(t)&&(0,jd.jsx)(Hd.RichText.Content,{tagName:"figcaption",value:t})]})}},gwe=[fwe,hwe],$K=gwe;var{name:qK}=qs,ZK={icon:ps,edit:OK,save:FK,transforms:jK,variations:GK,deprecated:$K},vwe=()=>R({name:qK,metadata:qs,settings:ZK});var zL={};K(zL,{init:()=>Ewe,metadata:()=>x3,name:()=>hY,settings:()=>k3});var ng=a(I(),1);var fY=a($(),1);var wo=a(B(),1),ms=a(I(),1),Xt=a(y(),1),bwe={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:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=wo.RichText.isEmpty(o)?(0,ms.__)("PDF embed"):(0,ms.sprintf)((0,ms.__)("Embed of %s."),o),m=!wo.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,Xt.jsxs)("div",{...wo.useBlockProps.save(),children:[c&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,Xt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Xt.jsx)(wo.RichText.Content,{value:o})}),l&&(0,Xt.jsx)("a",{href:t,className:C("wp-block-file__button",(0,wo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Xt.jsx)(wo.RichText.Content,{value:s})})]})}},ywe={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:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=wo.RichText.isEmpty(o)?(0,ms.__)("PDF embed"):(0,ms.sprintf)((0,ms.__)("Embed of %s."),o),m=!wo.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,Xt.jsxs)("div",{...wo.useBlockProps.save(),children:[c&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,Xt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Xt.jsx)(wo.RichText.Content,{value:o})}),l&&(0,Xt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Xt.jsx)(wo.RichText.Content,{value:s})})]})}},_we={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:o,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=wo.RichText.isEmpty(r)?(0,ms.__)("PDF embed"):(0,ms.sprintf)((0,ms.__)("Embed of %s."),r);return t&&(0,Xt.jsxs)("div",{...wo.useBlockProps.save(),children:[s&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!wo.RichText.isEmpty(r)&&(0,Xt.jsx)("a",{href:o,target:n,rel:n?"noreferrer noopener":void 0,children:(0,Xt.jsx)(wo.RichText.Content,{value:r})}),i&&(0,Xt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Xt.jsx)(wo.RichText.Content,{value:l})})]})}},xwe=[bwe,ywe,_we],KK=xwe;var RL=a(Mr(),1),ag=a(O(),1),og=a(F(),1),ia=a(B(),1),eY=a(H(),1),tY=a(ge(),1),_u=a(I(),1);var rY=a(oe(),1),ML=a(Sr(),1),oY=a(ur(),1);var aa=a(I(),1),na=a(O(),1),YK=a(B(),1);var zo=a(y(),1);function QK({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:p,textLinkHref:m,attachmentPage:d}=e,f=Z(),h=[{value:p,label:(0,aa.__)("URL")}];return d&&(h=[{value:p,label:(0,aa.__)("Media file")},{value:d,label:(0,aa.__)("Attachment page")}]),(0,zo.jsx)(zo.Fragment,{children:(0,zo.jsxs)(YK.InspectorControls,{children:[p.endsWith(".pdf")&&(0,zo.jsxs)(na.__experimentalToolsPanel,{label:(0,aa.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,zo.jsx)(na.__experimentalToolsPanelItem,{label:(0,aa.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,zo.jsx)(na.ToggleControl,{label:(0,aa.__)("Show inline embed"),help:l?(0,aa.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,zo.jsx)(na.__experimentalToolsPanelItem,{label:(0,aa.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,zo.jsx)(na.RangeControl,{label:(0,aa.__)("Height in pixels"),min:_3,max:Math.max(LL,c),value:c,onChange:u})})]}),(0,zo.jsxs)(na.__experimentalToolsPanel,{label:(0,aa.__)("Settings"),resetAll:()=>{o(p),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,zo.jsx)(na.__experimentalToolsPanelItem,{label:(0,aa.__)("Link to"),isShownByDefault:!0,hasValue:()=>m!==p,onDeselect:()=>o(p),children:(0,zo.jsx)(na.SelectControl,{label:(0,aa.__)("Link to"),value:m,options:h,onChange:o})}),(0,zo.jsx)(na.__experimentalToolsPanelItem,{label:(0,aa.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,zo.jsx)(na.ToggleControl,{label:(0,aa.__)("Open in new tab"),checked:t,onChange:n})}),(0,zo.jsx)(na.__experimentalToolsPanelItem,{label:(0,aa.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,zo.jsx)(na.ToggleControl,{label:(0,aa.__)("Show download button"),checked:r,onChange:i})})]})]})})}var JK=()=>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)&&!(XK("AcroPDF.PDF")||XK("PDF.PdfCtrl"))),XK=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var Qr=a(y(),1),_3=200,LL=2e3;function kwe({text:e,disabled:t}){let{createNotice:r}=(0,og.useDispatch)(ML.store),o=(0,tY.useCopyToClipboard)(e,()=>{r("info",(0,_u.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Qr.jsx)(ag.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,_u.__)("Copy URL")})}function wwe({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:p,displayPreview:m,previewHeight:d}=e,[f,h]=(0,eY.useState)(e.blob),{media:g}=(0,og.useSelect)(M=>({media:n?M(rY.store).getEntityRecord("postType","attachment",n,{context:"view"}):void 0}),[n]),{createErrorNotice:v}=(0,og.useDispatch)(ML.store),{toggleSelection:b}=(0,og.useDispatch)(ia.store);Ws({url:f,onChange:_,onError:k});function _(M){if(!M||!M.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,RL.isBlobURL)(M.url)){h(M.url);return}let z=(M.mime||M.mime_type)==="application/pdf"||(0,oY.getFilename)(M.url).toLowerCase().endsWith(".pdf"),j={displayPreview:z?e.displayPreview??!0:void 0,previewHeight:z?e.previewHeight??600:void 0};r({href:M.url,fileName:M.title,textLinkHref:M.url,id:M.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...j}),h()}function k(M){r({href:void 0}),v(M,{type:"snackbar"})}function x(M){r({textLinkHref:M})}function w(M){r({textLinkTarget:M?"_blank":!1})}function S(M){r({showDownloadButton:M})}function T(M){r({displayPreview:M})}function N(M,z,j,q){b(!0);let G=parseInt(d+q.height,10);r({previewHeight:G})}function D(M){let z=Math.max(parseInt(M,10),_3);r({previewHeight:z})}let L=g&&g.link,P=(0,ia.useBlockProps)({className:C(!!f&&(0,ag.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),E=JK()&&m;return!l&&!f?(0,Qr.jsx)("div",{...P,children:(0,Qr.jsx)(ia.MediaPlaceholder,{icon:(0,Qr.jsx)(ia.BlockIcon,{icon:q1}),labels:{title:(0,_u.__)("File"),instructions:(0,_u.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:_,onError:k,accept:"*"})}):(0,Qr.jsxs)(Qr.Fragment,{children:[(0,Qr.jsx)(QK,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:L},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:x,changeOpenInNewWindow:w,changeShowDownloadButton:S,displayPreview:m,changeDisplayPreview:T,previewHeight:d,changePreviewHeight:D}),(0,Qr.jsxs)(ia.BlockControls,{group:"other",children:[(0,Qr.jsx)(ia.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:_,onError:k,onReset:()=>_(void 0)}),(0,Qr.jsx)(kwe,{text:l,disabled:(0,RL.isBlobURL)(l)})]}),(0,Qr.jsxs)("div",{...P,children:[E&&(0,Qr.jsxs)(ag.ResizableBox,{size:{height:d,width:"100%"},minHeight:_3,maxHeight:LL,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:N,showHandle:t,children:[(0,Qr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,_u.__)("Embed of the selected PDF file.")}),!t&&(0,Qr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Qr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Qr.jsx)(ia.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,_u.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:M=>r({fileName:ob(M)}),href:s}),u&&(0,Qr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Qr.jsx)(ia.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,_u.__)("Download button text"),className:C("wp-block-file__button",(0,ia.__experimentalGetElementClassName)("button")),value:p,withoutInteractiveFormatting:!0,placeholder:(0,_u.__)("Add text\u2026"),onChange:M=>r({downloadButtonText:ob(M)})})})]})]})]})}var aY=wwe;var x3={$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 xu=a(B(),1),ds=a(y(),1);function nY({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=xu.RichText.isEmpty(o)?"PDF embed":o.toString(),m=!xu.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,ds.jsxs)("div",{...xu.useBlockProps.save(),children:[c&&(0,ds.jsx)(ds.Fragment,{children:(0,ds.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,ds.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ds.jsx)(xu.RichText.Content,{value:o})}),l&&(0,ds.jsx)("a",{href:t,className:C("wp-block-file__button",(0,xu.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,ds.jsx)(xu.RichText.Content,{value:s})})]})}var Tb=a(Mr(),1),Ud=a($(),1),lY=a(F(),1),sY=a(oe(),1),cY=a(I(),1),uY=a(ur(),1),iY=(0,cY._x)("Download","button label"),AL=(e,t,r)=>({type:"block",blocks:[e],isMatch:({id:o})=>{if(!o)return!1;let{getEntityRecord:n}=(0,lY.select)(sY.store),i=n("postType","attachment",o,{context:"view"});return!!i&&i.mime_type.includes(t)},transform:o=>(0,Ud.createBlock)(e,{[r]:o.href,caption:o.fileName,id:o.id,anchor:o.anchor})}),Swe={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,Tb.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,Ud.createBlock)("core/video",{blob:(0,Tb.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,Ud.createBlock)("core/image",{blob:(0,Tb.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,Ud.createBlock)("core/audio",{blob:(0,Tb.createBlobURL)(r)})):t.push((0,Ud.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:iY}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,Ud.createBlock)("core/file",{href:t,fileName:e.caption||(0,uY.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:iY})}}],to:[AL("core/audio","audio","src"),AL("core/video","video","src"),AL("core/image","image","url")]},pY=Swe;var mY=a(I(),1),Twe=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,mY._x)("Download","button label")}}],dY=Twe;var{fieldsKey:Pwe,formKey:Bwe}=U(fY.privateApis),{name:hY}=x3,k3={icon:q1,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,ng._x)("Armstrong_Small_Step","Name of the file")}},transforms:pY,deprecated:KK,edit:aY,save:nY,variations:dY};window.__experimentalContentOnlyInspectorFields&&(k3[Pwe]=[{id:"file",label:(0,ng.__)("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,ng.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,ng.__)("Button Text"),type:"text",Edit:"rich-text"}],k3[Bwe]={fields:["file","fileName","downloadButtonText"]});var Ewe=()=>R({name:hY,metadata:x3,settings:k3});var jL={};K(jL,{init:()=>Mwe,metadata:()=>S3,name:()=>wY,settings:()=>CY});var kY=a(vu(),1);var Vo=a(I(),1),fs=a(B(),1),hs=a(O(),1),gY=a(F(),1);var VL=a(I(),1),w3=["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,VL.__)("Your form has been submitted successfully")+"</mark>"}]]],C3=["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,VL.__)("There was an error submitting your form.")+"</mark>"}]]];var mn=a(y(),1),Nwe=[w3,C3,["core/form-input",{type:"text",label:(0,Vo.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,Vo.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,Vo.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Iwe=({attributes:e,setAttributes:t,clientId:r})=>{let o=Z(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,fs.useBlockProps)(),{hasInnerBlocks:p}=(0,gY.useSelect)(d=>{let{getBlock:f}=d(fs.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),m=(0,fs.useInnerBlocksProps)(u,{template:Nwe,renderAppender:p?void 0:fs.InnerBlocks.ButtonBlockAppender});return(0,mn.jsxs)(mn.Fragment,{children:[(0,mn.jsx)(fs.InspectorControls,{children:(0,mn.jsxs)(hs.__experimentalToolsPanel,{dropdownMenuProps:o,label:(0,Vo.__)("Settings"),resetAll:n,children:[(0,mn.jsx)(hs.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,Vo.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,mn.jsx)(hs.SelectControl,{label:(0,Vo.__)("Submissions method"),options:[{label:(0,Vo.__)("Send email"),value:"email"},{label:(0,Vo.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,Vo.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,Vo.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,mn.jsx)(hs.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Vo.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,mn.jsx)(hs.TextControl,{autoComplete:"off",label:(0,Vo.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,Vo.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,mn.jsxs)(fs.InspectorControls,{group:"advanced",children:[(0,mn.jsx)(hs.SelectControl,{label:(0,Vo.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,Vo.__)("Select the method to use for form submissions.")}),(0,mn.jsx)(hs.TextControl,{autoComplete:"off",label:(0,Vo.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,Vo.__)("The URL where the form should be submitted."),type:"url"})]}),(0,mn.jsx)("form",{...m,encType:c==="email"?"text/plain":null})]})},vY=Iwe;var S3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"widgets",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 T3=a(B(),1),OL=a(y(),1);function bY({attributes:e}){let t=T3.useBlockProps.save(),{submissionMethod:r}=e;return(0,OL.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,OL.jsx)(T3.InnerBlocks.Content,{})})}var xl=a(I(),1);var Lwe=[{name:"comment-form",title:(0,xl.__)("Experimental Comment form"),description:(0,xl.__)("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,xl.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,xl.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,xl.__)("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,xl.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,xl.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[w3,C3,["core/paragraph",{content:(0,xl.__)("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,xl.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,xl.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,xl.__)("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"}],yY=Lwe;var lc=a(B(),1),FL=a(y(),1),Rwe={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,lc.__experimentalGetColorClassesAndStyles)(e),o=(0,lc.getTypographyClassesAndStyles)(e),n=(0,lc.__experimentalGetSpacingClassesAndStyles)(e),i=lc.useBlockProps.save({style:{...r.style,...o.style,...n.style},id:e.anchor});return(0,FL.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,FL.jsx)(lc.InnerBlocks.Content,{})})}},_Y=[Rwe];var P3=a(A(),1),HL=a(y(),1),xY=(0,HL.jsx)(P3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,HL.jsx)(P3.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:wY}=S3,CY={icon:xY,edit:vY,save:bY,deprecated:_Y,variations:yY,example:{}},Mwe=()=>{let e=["core/form"];return(0,kY.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(n(o)?.name===l||i(o,l).length)return!1;return!0}),R({name:wY,metadata:S3,settings:CY})};var GL={};K(GL,{init:()=>qwe,metadata:()=>E3,name:()=>OY,settings:()=>FY});var BY=a(Pb(),1),gs=a(B(),1),EY=a(Ca(),1),Ei=a(y(),1),NY=e=>(0,BY.default)((0,EY.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Fwe={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:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,gs.__experimentalGetBorderClassesAndStyles)(e),u=(0,gs.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=C("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=gs.useBlockProps.save();return t==="hidden"?(0,Ei.jsx)("input",{type:t,name:r,value:s}):(0,Ei.jsx)("div",{...f,children:(0,Ei.jsxs)("label",{className:C("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,Ei.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Ei.jsx)(gs.RichText.Content,{value:o})}),(0,Ei.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||NY(o),required:i,"aria-required":i,placeholder:l||void 0,style:p})]})})}},Hwe={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:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,gs.__experimentalGetBorderClassesAndStyles)(e),u=(0,gs.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=C("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,Ei.jsx)("input",{type:t,name:r,value:s}):(0,Ei.jsxs)("label",{className:C("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,Ei.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Ei.jsx)(gs.RichText.Content,{value:o})}),(0,Ei.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||NY(o),required:i,"aria-required":i,placeholder:l||void 0,style:p})]})}},jwe=[Fwe,Hwe],IY=jwe;var Ia=a(I(),1),vs=a(B(),1),bs=a(O(),1),DY=a(H(),1);var io=a(y(),1);function Uwe({attributes:e,setAttributes:t,className:r}){let{type:o,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,p=(0,vs.useBlockProps)(),m=Z(),d=(0,DY.useRef)(),f=o==="textarea"?"textarea":"input",h=(0,vs.__experimentalUseBorderProps)(e),g=(0,vs.__experimentalUseColorProps)(e);d.current&&d.current.focus();let v=o==="checkbox"||o==="radio",b=(0,io.jsxs)(io.Fragment,{children:[o!=="hidden"&&(0,io.jsx)(vs.InspectorControls,{children:(0,io.jsxs)(bs.__experimentalToolsPanel,{label:(0,Ia.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:m,children:[o!=="checkbox"&&(0,io.jsx)(bs.__experimentalToolsPanelItem,{label:(0,Ia.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,io.jsx)(bs.CheckboxControl,{label:(0,Ia.__)("Inline label"),checked:l,onChange:k=>{t({inlineLabel:k})}})}),(0,io.jsx)(bs.__experimentalToolsPanelItem,{label:(0,Ia.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,io.jsx)(bs.CheckboxControl,{label:(0,Ia.__)("Required"),checked:s,onChange:k=>{t({required:k})}})})]})}),(0,io.jsxs)(vs.InspectorControls,{group:"advanced",children:[(0,io.jsx)(bs.TextControl,{autoComplete:"off",label:(0,Ia.__)("Name"),value:n,onChange:k=>{t({name:k})},help:(0,Ia.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')}),o==="hidden"&&(0,io.jsx)(bs.TextControl,{autoComplete:"off",label:(0,Ia.__)("Value"),value:u,onChange:k=>t({value:k}),help:(0,Ia.__)("Sets the stored value for this hidden field.")})]})]}),_=(0,io.jsx)(vs.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:k=>t({label:k}),"aria-label":i?(0,Ia.__)("Label"):(0,Ia.__)("Empty label"),"data-empty":!i,placeholder:(0,Ia.__)("Type the label for this input")});return o==="hidden"?(0,io.jsxs)("div",{...p,children:[b,(0,io.jsx)("span",{className:"wp-block-form-input__label is-input-hidden","data-message":(0,Ia.__)("Hidden field")})]}):(0,io.jsxs)("div",{...p,children:[b,(0,io.jsxs)("span",{className:C("wp-block-form-input__label",{"is-label-inline":l||o==="checkbox"}),children:[!v&&_,(0,io.jsx)(f,{type:o==="textarea"?void 0:o,className:C(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,Ia.__)("Optional placeholder text"),placeholder:c?void 0:(0,Ia.__)("Optional placeholder\u2026"),value:c,onChange:k=>t({placeholder:k.target.value}),"aria-required":s,style:{...h.style,...g.style}}),v&&_]})]})}var LY=Uwe;var E3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"widgets",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 RY=a(Pb(),1),ku=a(B(),1),MY=a(Ca(),1),sc=a(y(),1),Wwe=e=>(0,RY.default)((0,MY.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function AY({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,ku.__experimentalGetBorderClassesAndStyles)(e),u=(0,ku.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=C("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=ku.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,sc.jsx)("input",{type:t,name:r,value:s}):(0,sc.jsx)("div",{...f,children:(0,sc.jsxs)("label",{className:C("wp-block-form-input__label",{"is-label-inline":n}),children:[!h&&(0,sc.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,sc.jsx)(ku.RichText.Content,{value:o})}),(0,sc.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||Wwe(o),required:i,"aria-required":i,placeholder:l||void 0,style:p}),h&&(0,sc.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,sc.jsx)(ku.RichText.Content,{value:o})})]})})}var la=a(I(),1),$we=[{name:"text",title:(0,la.__)("Text Input"),description:(0,la.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,la.__)("Textarea Input"),description:(0,la.__)("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,la.__)("Checkbox Input"),description:(0,la.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,la.__)("Email Input"),description:(0,la.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,la.__)("URL Input"),description:(0,la.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,la.__)("Telephone Input"),description:(0,la.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,la.__)("Number Input"),description:(0,la.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"},{name:"hidden",title:(0,la.__)("Hidden Input"),icon:"visibility",description:(0,la.__)("A hidden input field."),attributes:{type:"hidden"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="hidden"}],zY=$we;var N3=a(A(),1),UL=a(y(),1),VY=(0,UL.jsx)(N3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UL.jsx)(N3.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:OY}=E3,FY={icon:VY,deprecated:IY,edit:LY,save:AY,variations:zY,example:{}},qwe=()=>R({name:OY,metadata:E3,settings:FY});var $L={};K($L,{init:()=>Qwe,metadata:()=>D3,name:()=>WY,settings:()=>$Y});var HY=a(I(),1),I3=a(B(),1),jY=a(y(),1),Zwe=[["core/buttons",{},[["core/button",{text:(0,HY.__)("Submit"),tagName:"button",type:"submit"}]]]],Kwe=()=>{let e=(0,I3.useBlockProps)(),t=(0,I3.useInnerBlocksProps)(e,{template:Zwe,templateLock:"all"});return(0,jY.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},UY=Kwe;var D3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"widgets",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 L3=a(B(),1),WL=a(y(),1);function GY(){let e=L3.useBlockProps.save();return(0,WL.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,WL.jsx)(L3.InnerBlocks.Content,{})})}var{name:WY}=D3,$Y={edit:UY,save:GY,example:{}},Qwe=()=>R({name:WY,metadata:D3,settings:$Y});var qL={};K(qL,{init:()=>r3e,metadata:()=>M3,name:()=>JY,settings:()=>eQ});var R3=a(I(),1),Mp=a(B(),1),qY=a(F(),1);var ZY=a(y(),1),Xwe=[["core/paragraph",{content:(0,R3.__)("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.")}]],Jwe=({attributes:e,clientId:t})=>{let{type:r}=e,o=(0,Mp.useBlockProps)({className:C("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:n}=(0,qY.useSelect)(l=>{let{getBlock:s}=l(Mp.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,Mp.useInnerBlocksProps)(o,{template:Xwe,renderAppender:n?void 0:Mp.InnerBlocks.ButtonBlockAppender});return(0,ZY.jsx)("div",{...i,"data-message-success":(0,R3.__)("Submission success notification"),"data-message-error":(0,R3.__)("Submission error notification")})},KY=Jwe;var M3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"widgets",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 A3=a(B(),1);var YY=a(y(),1);function QY({attributes:e}){let{type:t}=e;return(0,YY.jsx)("div",{...A3.useInnerBlocksProps.save(A3.useBlockProps.save({className:C("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var Gd=a(I(),1),t3e=[{name:"form-submission-success",title:(0,Gd.__)("Form Submission Success"),description:(0,Gd.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,Gd.__)("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,Gd.__)("Form Submission Error"),description:(0,Gd.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,Gd.__)("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"}],XY=t3e;var{name:JY}=M3,eQ={icon:Ym,edit:KY,save:QY,variations:XY,example:{}},r3e=()=>R({name:JY,metadata:M3,settings:eQ});var aR={};K(aR,{init:()=>M3e,metadata:()=>Z3,name:()=>YQ,settings:()=>QQ});var Vr=a(B(),1),oQ=a($(),1);var cc="none",uc="media",ig="lightbox",pc="attachment",tQ="file",rQ="post",Bb="large";var Ue=a(y(),1),aQ="file",nQ="post";function lg(e){return Math.min(3,e?.images?.length)}function o3e(e,t){switch(t){case aQ:return{href:e?.source_url||e?.url,linkDestination:uc};case nQ:return{href:e?.link,linkDestination:pc};case uc:return{href:e?.source_url||e?.url,linkDestination:uc};case pc:return{href:e?.link,linkDestination:pc};case cc:return{href:void 0,linkDestination:cc}}return{}}function sg(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>a3e(l,e.sizeSlug,t)),{images:o,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function a3e(e,t,r){return(0,oQ.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...o3e(e,r)})}var n3e={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:o}=e,n=C("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Vr.useBlockProps.save({className:n}),l=Vr.useInnerBlocksProps.save(i);return(0,Ue.jsxs)("figure",{...l,children:[l.children,!Vr.RichText.isEmpty(t)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},i3e={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=lg(e),imageCrop:o,caption:n,linkTo:i}=e,l=`columns-${r} ${o?"is-cropped":""}`;return(0,Ue.jsxs)("figure",{...Vr.useBlockProps.save({className:l}),children:[(0,Ue.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case aQ:c=s.fullUrl||s.url;break;case nQ:c=s.link;break}let u=(0,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[c?(0,Ue.jsx)("a",{href:c,children:u}):u,!Vr.RichText.isEmpty(s.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Vr.RichText.isEmpty(n)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return sg(e)}},l3e={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 sg(e)},save({attributes:e}){let{images:t,columns:r=lg(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Ue.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ue.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,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[s?(0,Ue.jsx)("a",{href:s,children:c}):c,!Vr.RichText.isEmpty(l.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Vr.RichText.isEmpty(n)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},s3e={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 sg(e)},save({attributes:e}){let{images:t,columns:r=lg(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Ue.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ue.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,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[s?(0,Ue.jsx)("a",{href:s,children:c}):c,!Vr.RichText.isEmpty(l.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Vr.RichText.isEmpty(n)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},c3e={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=lg(e),imageCrop:o,linkTo:n}=e;return(0,Ue.jsx)("ul",{className:`columns-${r} ${o?"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,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[l?(0,Ue.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return sg(e)}},u3e={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,o)=>!r&&t[o]!==null?!0:parseInt(r,10)!==t[o]))},migrate(e){return sg(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=lg(e),imageCrop:o,linkTo:n}=e;return(0,Ue.jsx)("ul",{className:`columns-${r} ${o?"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,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[l?(0,Ue.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},p3e={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=lg(e),align:o,imageCrop:n,linkTo:i}=e,l=C(`columns-${r}`,{alignnone:o==="none","is-cropped":n});return(0,Ue.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,Ue.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Ue.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Ue.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return sg(e)}},iQ=[n3e,i3e,l3e,s3e,c3e,u3e,p3e];var St=a(O(),1),lo=a(B(),1),Rb=a(H(),1),He=a(I(),1),Mb=a(F(),1),jQ=a($(),1),tR=a(Mr(),1),UQ=a(Sr(),1);var lQ=a(B(),1);var sQ=a(y(),1),z3=(0,sQ.jsx)(lQ.BlockIcon,{icon:J1});function V3(e){return e?Math.min(3,e):3}var O3=(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 o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(r.fullUrl=o),r};var mc=20,Wd="none",cg="media",ug="attachment",ZL="custom",cQ=["noopener"],Ap=["image"];var KL=["flex","grid"],Eb="full";function Nb(e,t,r,o,n){switch(r||t){case tQ:case uc:return{href:e?.source_url||e?.url,linkDestination:cg,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case rQ:case pc:return{href:e?.link,linkDestination:ug,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case ig:return{href:void 0,lightbox:n?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:Wd};case cc:return{href:void 0,linkDestination:Wd,lightbox:void 0}}return{}}function uQ(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function m3e(e){let t=e;return e!==void 0&&t&&(cQ.forEach(r=>{let o=new RegExp("\\b"+r+"\\b","gi");t=t.replace(o,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function Ib(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=m3e(t),{linkTarget:r,rel:o}}function pQ(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function YL(e){return Ap.some(t=>e.type.indexOf(t)===0)}function $d({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var QL=a(I(),1);var F3=a(y(),1);function mQ(e){let{attributes:t,isSelected:r,setAttributes:o,insertBlocksAfter:n,blockProps:i,__unstableLayoutClassNames:l,isContentLocked:s,multiGallerySelection:c}=e,{align:u,columns:p,imageCrop:m}=t;return(0,F3.jsxs)("figure",{...i,className:C(i.className,l,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":m}),children:[i.children,(0,F3.jsx)(Mo,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:n,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,QL.__)("Gallery caption text"),placeholder:(0,QL.__)("Add gallery caption")})]})}var dQ=a(H(),1);function fQ(e,t,r){return(0,dQ.useMemo)(()=>o(),[e,t]);function o(){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((p,m)=>{let d=c.sizes?.[m.slug]?.url,f=c.media_details?.sizes?.[m.slug]?.source_url;return{...p,[m.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 H3=a(H(),1);function hQ(e,t){let[r,o]=(0,H3.useState)([]);return(0,H3.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)&&o([...l,...s]),s.length>0?s:null}}var vQ=a(F(),1),bQ=a(oe(),1),gQ=[];function yQ(e){return(0,vQ.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?gQ:t(bQ.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??gQ},[e])}var ys=a(B(),1),EQ=a(F(),1);var kQ={mobile:"480px",tablet:"782px"},wQ=/^(\d+|\d*\.\d+)(px|em|rem)$/,d3e=16;function f3e(e){return"mobile"in e||"tablet"in e}function h3e(e){return!e||typeof e!="object"?{}:f3e(e)?e:e.settings?.viewport??{}}function g3e(e){return typeof e=="string"&&wQ.test(e.trim())}function XL(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(wQ);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*d3e}function JL(e){let t=h3e(e),r={},o={};Object.keys(kQ).forEach(s=>{let c=s,u=t[c],p=XL(u);p!==void 0&&g3e(u)&&(r[c]=u.trim(),o[c]=p)});let n=Object.keys(r);if(!n.length)return{...kQ};if(n.length===1)return r;let i=r.mobile,l=r.tablet;return o.mobile>=o.tablet?{mobile:i}:{mobile:i,tablet:l}}function CQ(e){let t=JL(e),r={};return t.mobile&&(r["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(r["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),r}var SQ=a(dI(),1),{lock:TQ,unlock:fJe}=(0,SQ.__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/global-styles-engine");var j3={};TQ(j3,{getResponsiveMediaQueries:CQ,getViewportBreakpoints:JL,getViewportBreakpointValueInPixels:XL});var{getResponsiveMediaQueries:v3e}=U(j3),{globalStylesDataKey:b3e}=U(ys.privateApis),y3e="core/gallery",U3="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";function PQ(e,t){let r=U3;return t&&(r=typeof t=="string"?(0,ys.__experimentalGetGapCSSValue)(t)||U3:(0,ys.__experimentalGetGapCSSValue)(t?.left)||U3),`${e} {
		--wp--style--unstable-gallery-gap: ${r==="0"?"0px":r}
	}`}function BQ(e){if(Object.hasOwn(e?.spacing||{},"blockGap"))return e.spacing.blockGap}function NQ({style:e,clientId:t}){let r=`#block-${t}`,[o]=(0,ys.useSettings)("viewport"),i=(0,EQ.useSelect)(p=>p(ys.store).getSettings()?.[b3e],[])?.blocks?.[y3e]||{},l=BQ(e),s=i?.spacing?.blockGap??U3,u=PQ(r,l===void 0?s:l);return Object.entries(v3e(o)).forEach(([p,m])=>{let d=BQ(e?.[p]),f=l===void 0?i?.[p]?.spacing?.blockGap:void 0,h=d===void 0?f:d;h!=null&&(u+=`${m}{${PQ(r,h)}}`)}),(0,ys.useStyleOverride)({css:u}),null}var Lb=a(H(),1),q3=a(F(),1),RQ=a(B(),1),$3=a(oe(),1),MQ=a($(),1);var G3=a(I(),1),zp="core/attached-media",pg="date",mg="desc",_3e={[zp]:{title:(0,G3.__)("Use attached images"),description:(0,G3.__)("Images attached to the post."),emptyMessage:(0,G3.__)("Images attached to the post will appear here.")}};function W3(e){return _3e[e]}var Db=100;function IQ(e,{postId:t}){let{source:r,args:o={}}=e??{};return r===zp&&t?{parent:t,per_page:Db,media_type:"image",orderby:o.orderBy==="date"||o.orderBy==="title"?o.orderBy:pg,order:o.order==="asc"||o.order==="desc"?o.order:mg}:null}var DQ=[];function x3e(e,t){let{sizeSlug:r,linkTo:o,linkTarget:n,aspectRatio:i}=t,l=!!i&&i!=="auto";return{id:e.id,...O3(e,r),...Nb(e,o),...Ib(n,t),sizeSlug:r,caption:e.caption?.raw||"",alt:e.alt_text||"",aspectRatio:l?i:void 0,scale:l?"cover":void 0}}function LQ(e,t){return e.map(r=>(0,MQ.createBlock)("core/image",x3e(r,t)))}function AQ({attributes:e,setAttributes:t,clientId:r,postId:o,postType:n}){let{dynamicContent:i}=e,l=!!n,s=W3(i?.source),c=i?.args?.orderBy??pg,u=i?.args?.order??mg,{replaceInnerBlocks:p}=(0,q3.useDispatch)(RQ.store),m=(0,Lb.useMemo)(()=>i?IQ(i,{postId:o}):null,[i,o]),{dynamicMedia:d,dynamicMediaTotal:f,isResolvingDynamic:h}=(0,q3.useSelect)(P=>{if(!m)return{dynamicMedia:DQ,dynamicMediaTotal:0,isResolvingDynamic:!1};let E=["postType","attachment",m];return{dynamicMedia:P($3.store).getEntityRecords(...E)??DQ,dynamicMediaTotal:P($3.store).getEntityRecordsTotalItems(...E)??0,isResolvingDynamic:!P($3.store).hasFinishedResolution("getEntityRecords",E)}},[m]),g=f>Db,{sizeSlug:v,linkTo:b,linkTarget:_,aspectRatio:k}=e,x=(0,Lb.useMemo)(()=>({sizeSlug:v,linkTo:b,linkTarget:_,aspectRatio:k}),[v,b,_,k]),w=(0,Lb.useMemo)(()=>LQ(d,x),[d,x]),S=(0,Lb.useMemo)(()=>({allowResize:e.allowResize??!1,imageCrop:e.imageCrop,fixedHeight:e.fixedHeight,navigationButtonType:e.navigationButtonType}),[e.allowResize,e.imageCrop,e.fixedHeight,e.navigationButtonType]);function T(){t({dynamicContent:{source:zp}}),p(r,[])}function N(){p(r,LQ(d,x)),t({dynamicContent:void 0})}function D(P,E){let M={...i?.args};delete M.orderBy,delete M.order,P!==void 0&&(P!==pg||E!==mg)&&(M.orderBy=P,M.order=E);let z={...i};Object.keys(M).length?z.args=M:delete z.args,t({dynamicContent:z})}function L(){t({dynamicContent:{source:i.source}})}return{dynamicContent:i,canUseDynamicSource:l,sourceDescriptor:s,hasMoreImagesThanCap:g,dynamicMediaTotal:f,sourceOrderby:c,sourceOrder:u,dynamicMedia:d,dynamicImageBlocks:w,isResolvingDynamic:h,galleryContext:S,enableDynamicMode:T,convertToStatic:N,setSourceOrder:D,resetSource:L}}var hr=a(I(),1),zQ=a(H(),1),Xr=a(O(),1),Vp=a(B(),1);var jt=a(y(),1),k3e=[{label:(0,hr.__)("Newest to oldest"),value:"date/desc"},{label:(0,hr.__)("Oldest to newest"),value:"date/asc"},{label:(0,hr.__)("A \u2192 Z"),value:"title/asc"},{label:(0,hr.__)("Z \u2192 A"),value:"title/desc"}];function w3e({orderby:e,order:t,onChange:r}){return(0,jt.jsx)(Xr.SelectControl,{label:(0,hr.__)("Order by"),value:`${e}/${t}`,options:k3e,onChange:o=>{let[n,i]=o.split("/");r({orderby:n,order:i})}})}function VQ({dynamic:e,dropdownMenuProps:t,hasImages:r}){let{dynamicContent:o,canUseDynamicSource:n,sourceDescriptor:i,sourceOrderby:l,sourceOrder:s,setSourceOrder:c,convertToStatic:u,enableDynamicMode:p,resetSource:m,isResolvingDynamic:d,hasMoreImagesThanCap:f,dynamicMediaTotal:h}=e,g=!!o,[v,b]=(0,zQ.useState)(!1);function _(){r?b(!0):p()}return g?(0,jt.jsxs)(Xr.__experimentalToolsPanel,{label:(0,hr.__)("Source"),resetAll:m,dropdownMenuProps:t,children:[(0,jt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,jt.jsx)("p",{className:"wp-block-gallery__source-description",children:i?.description??(0,hr.__)("Dynamic images.")}),(0,jt.jsx)(Xr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:u,disabled:d,accessibleWhenDisabled:!0,children:(0,hr.__)("Convert to individual images")})]}),f&&(0,jt.jsx)(Xr.Notice,{className:"wp-block-gallery__source-notice",status:"warning",isDismissible:!1,children:(0,hr.sprintf)((0,hr.__)("Only the first %1$d of %2$d images will be displayed."),Db,h)}),(0,jt.jsx)(Xr.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,hr.__)("Order by"),hasValue:()=>l!==pg||s!==mg,onDeselect:()=>c(void 0,void 0),children:(0,jt.jsx)(w3e,{orderby:l,order:s,onChange:({orderby:k,order:x})=>c(k,x)})})]}):n?(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Xr.PanelBody,{title:(0,hr.__)("Source"),children:(0,jt.jsx)("div",{className:"wp-block-gallery__source-settings",children:(0,jt.jsx)(Xr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:_,children:(0,hr.__)("Use images attached to the post")})})}),v&&(0,jt.jsx)(Xr.__experimentalConfirmDialog,{isOpen:!0,title:(0,hr.__)("Use images attached to the post?"),__experimentalHideHeader:!1,confirmButtonText:(0,hr.__)("Use attached images"),onConfirm:()=>{p(),b(!1)},onCancel:()=>b(!1),size:"medium",children:(0,hr.__)("The images in this gallery will be replaced, but will remain in the media library.")})]}):null}function C3e({imageBlocks:e}){let{children:t,ref:r,className:o}=(0,Vp.__experimentalUseBlockPreview)({blocks:e});return(0,jt.jsx)("div",{ref:r,className:o,style:{display:"contents"},children:t})}function OQ({dynamic:e,blockProps:t,innerBlocksProps:r,attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,multiGallerySelection:c}){let{sourceDescriptor:u,dynamicImageBlocks:p,galleryContext:m,isResolvingDynamic:d,convertToStatic:f}=e,h=(0,Vp.useBlockEditingMode)(),g=d?(0,hr.__)("Loading images\u2026"):u?.emptyMessage??(0,hr.__)("Dynamic images will appear here.");return(0,jt.jsxs)(jt.Fragment,{children:[h==="default"&&(0,jt.jsx)(Vp.BlockControls,{group:"other",children:(0,jt.jsx)(Xr.ToolbarButton,{onClick:f,disabled:d,children:(0,hr.__)("Convert to images")})}),(0,jt.jsxs)("figure",{...t,children:[p.length?(0,jt.jsx)(Vp.BlockContextProvider,{value:m,children:(0,jt.jsx)(C3e,{imageBlocks:p})}):(0,jt.jsx)(Xr.Placeholder,{icon:z3,label:(0,hr.__)("Gallery"),instructions:g,children:d&&(0,jt.jsx)(Xr.Spinner,{})}),(0,jt.jsx)(Mo,{attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:l,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,hr.__)("Gallery caption text"),placeholder:(0,hr.__)("Add gallery caption")})]}),r.children]})}var ot=a(y(),1),S3e=8,FQ=[{icon:U1,label:(0,He.__)("Link images to attachment pages"),value:pc,noticeText:(0,He.__)("Attachment Pages")},{icon:sp,label:(0,He.__)("Link images to media files"),value:uc,noticeText:(0,He.__)("Media Files")},{icon:Km,label:(0,He.__)("Enlarge on click"),value:ig,noticeText:(0,He.__)("Lightbox effect"),infoText:(0,He.__)("Scale images with a lightbox effect")},{icon:ev,label:(0,He._x)("None","Media item link option"),value:cc,noticeText:(0,He.__)("None")}],T3e=[{label:(0,He.__)("Icon"),value:"icon"},{label:(0,He.__)("Text"),value:"text"},{label:(0,He.__)("Both"),value:"both"}],eR=["image"],P3e=(0,He.__)("Drag and drop images, upload, or choose from your library."),B3e={name:"core/image"},HQ=[];function GQ(e){let{setAttributes:t,attributes:r,className:o,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,context:c,__unstableLayoutClassNames:u}=e,p=c?.postId,m=c?.postType,d=(0,lo.useBlockEditingMode)(),[f,h,g,v]=(0,lo.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),b=f?.allowEditing?FQ:FQ.filter(ne=>ne.value!==ig),{align:_,navigationButtonType:k,columns:x,imageCrop:w,randomOrder:S,linkTarget:T,linkTo:N,sizeSlug:D,aspectRatio:L}=r,{__unstableMarkNextChangeAsNotPersistent:P,replaceInnerBlocks:E,updateBlockAttributes:M,selectBlock:z}=(0,Mb.useDispatch)(lo.store),{createSuccessNotice:j,createErrorNotice:q}=(0,Mb.useDispatch)(UQ.store),{getBlock:G,getSettings:W,innerBlockImages:V,multiGallerySelection:Q}=(0,Mb.useSelect)(ne=>{let{getBlockName:Ve,getMultiSelectedBlockClientIds:$e,getSettings:Lt,getBlock:tt}=ne(lo.store),kr=$e();return{getBlock:tt,getSettings:Lt,innerBlockImages:tt(n)?.innerBlocks??HQ,multiGallerySelection:kr.length&&kr.every(Ja=>Ve(Ja)==="core/gallery")}},[n]),Y=(0,Rb.useMemo)(()=>V?.map(ne=>({clientId:ne.clientId,id:ne.attributes.id,url:ne.attributes.url,attributes:ne.attributes,fromSavedContent:!!ne.originalContent})),[V]),re=yQ(V),J=hQ(Y,re),ie=!!Y.length,ee=!!r.dynamicContent,te=AQ({attributes:r,setAttributes:t,clientId:n,postId:p,postType:m}),de=ee?te.dynamicMedia.length:Y.length,we;ee?we=N===ig:f?.enabled?we=Y.filter(ne=>ne.attributes?.lightbox?.enabled===void 0||ne.attributes?.lightbox?.enabled===!0).length>0:we=Y.filter(ne=>ne.attributes.lightbox?.enabled).length>0;let le=g?.map(({name:ne,ratio:Ve})=>({label:ne,value:Ve})),me=h?.map(({name:ne,ratio:Ve})=>({label:ne,value:Ve})),xe=[{label:(0,He._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...v?me||[]:[],...le||[]];(0,Rb.useEffect)(()=>{J?.forEach(ne=>{P(),M(ne.clientId,{...pe(ne.attributes),id:ne.id,align:void 0})})},[J]);let ae=fQ(ee?te.dynamicMedia:re,i,W);function pe(ne){let Ve=ne.id?re.find(({id:tt})=>tt===ne.id):null,$e;ne.className&&ne.className!==""&&($e=ne.className);let Lt;return ne.linkTarget||ne.rel?Lt={linkTarget:ne.linkTarget,rel:ne.rel}:Lt=Ib(T,r),{...O3(Ve,D),...Nb(Ve,N,ne?.linkDestination),...Lt,className:$e,sizeSlug:D,caption:ne.caption.length>0?ne.caption:Ve.caption?.raw,alt:ne.alt||Ve.alt_text,aspectRatio:L==="auto"?void 0:L}}function se(ne){let Ve=ne.type;return eR.some($e=>Ve?.indexOf($e)===0)||ne.blob}function Ne(ne){let Ve=Object.prototype.toString.call(ne)==="[object FileList]",$e=Ve?Array.from(ne).map(rt=>rt.url?rt:{blob:(0,tR.createBlobURL)(rt)}):ne;$e.every(se)||q((0,He.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Lt=$e.filter(rt=>rt.url||se(rt)).map(rt=>rt.url?rt:{blob:rt.blob||(0,tR.createBlobURL)(rt)}),tt=Lt.reduce((rt,wa,Lm)=>(rt[wa.id]=Lm,rt),{}),kr=Ve?V:V.filter(rt=>Lt.find(wa=>wa.id===rt.attributes.id)),ci=Lt.filter(rt=>!kr.find(wa=>rt.id===wa.attributes.id)).map(rt=>(0,jQ.createBlock)("core/image",{id:rt.id,blob:rt.blob,url:rt.url,caption:rt.caption,alt:rt.alt}));E(n,kr.concat(ci).sort((rt,wa)=>tt[rt.attributes.id]-tt[wa.attributes.id])),ci?.length>0&&z(ci[0].clientId)}function Ie(ne){q(ne,{type:"snackbar"})}function X(ne){t({linkTo:ne});let Ve={},$e=[];G(n).innerBlocks.forEach(tt=>{$e.push(tt.clientId);let kr=tt.attributes.id?re.find(({id:Ja})=>Ja===tt.attributes.id):null;Ve[tt.clientId]=Nb(kr,ne,!1,tt.attributes,f)}),M($e,Ve,{uniqueByBlock:!0});let Lt=[...b].find(tt=>tt.value===ne);j((0,He.sprintf)((0,He.__)("All gallery image links updated to: %s"),Lt.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Ce(ne){t({columns:ne})}function ue(){t({imageCrop:!w})}function ct(){t({randomOrder:!S})}function he(ne){let Ve=ne?"_blank":void 0;t({linkTarget:Ve});let $e={},Lt=[];G(n).innerBlocks.forEach(kr=>{Lt.push(kr.clientId),$e[kr.clientId]=Ib(Ve,kr.attributes)}),M(Lt,$e,{uniqueByBlock:!0});let tt=ne?(0,He.__)("All gallery images updated to open in new tab"):(0,He.__)("All gallery images updated to not open in new tab");j(tt,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function ze(ne){t({sizeSlug:ne});let Ve={},$e=[];G(n).innerBlocks.forEach(tt=>{$e.push(tt.clientId);let kr=tt.attributes.id?re.find(({id:Ja})=>Ja===tt.attributes.id):null;Ve[tt.clientId]=pQ(kr,ne)}),M($e,Ve,{uniqueByBlock:!0});let Lt=ae.find(tt=>tt.value===ne);j((0,He.sprintf)((0,He.__)("All gallery image sizes updated to: %s"),Lt?.label??ne),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function Ct(ne){t({aspectRatio:ne});let Ve={},$e=[];G(n).innerBlocks.forEach(tt=>{$e.push(tt.clientId),Ve[tt.clientId]={aspectRatio:ne==="auto"?void 0:ne}}),M($e,Ve,!0);let Lt=xe.find(tt=>tt.value===ne);j((0,He.sprintf)((0,He.__)("All gallery images updated to aspect ratio: %s"),Lt?.label||ne),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Rb.useEffect)(()=>{N||(P(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||cc}))},[N]);let Ae=ie&&Y.some(ne=>!!ne.id),Do={addToGallery:!1,disableMediaButtons:Y.some(ne=>!ne.id&&ne.url?.indexOf("blob:")===0),value:{}},Lo=(0,lo.useBlockProps)({className:C(o,"has-nested-images",ee&&[u,"blocks-gallery-grid",{[`align${_}`]:_,[`columns-${x}`]:x!==void 0,"columns-default":x===void 0,"is-cropped":w}])}),bo=(0,lo.useInnerBlocksProps)(Lo,{defaultBlock:B3e,directInsert:!0,orientation:"horizontal",renderAppender:!1,allowedBlocks:ee?HQ:void 0}),qo=Z();if(!ie&&!ee)return(0,ot.jsxs)("div",{...bo,children:[bo.children,(0,ot.jsx)(lo.MediaPlaceholder,{handleUpload:!1,icon:z3,labels:{title:(0,He.__)("Gallery"),instructions:P3e},onSelect:Ne,allowedTypes:eR,multiple:!0,onError:Ie,...Do,children:d==="default"&&(0,ot.jsx)(St.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:te.enableDynamicMode,children:W3(zp).title})})]});let Xa=N&&N!=="none";return(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(lo.InspectorControls,{children:[(0,ot.jsx)(VQ,{dynamic:te,dropdownMenuProps:qo,hasImages:ie}),(0,ot.jsxs)(St.__experimentalToolsPanel,{label:(0,He.__)("Settings"),resetAll:()=>{t({navigationButtonType:"icon",columns:void 0,imageCrop:!0,randomOrder:!1}),Ct("auto"),D!==Bb&&ze(Bb),T&&he(!1)},dropdownMenuProps:qo,children:[de>1&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Columns"),hasValue:()=>!!x&&x!==de,onDeselect:()=>Ce(void 0),children:(0,ot.jsx)(St.RangeControl,{label:(0,He.__)("Columns"),value:x||V3(de),onChange:Ce,min:1,max:Math.min(S3e,de),required:!0})}),ae?.length>0&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Resolution"),hasValue:()=>D!==Bb,onDeselect:()=>ze(Bb),children:(0,ot.jsx)(St.SelectControl,{label:(0,He.__)("Resolution"),help:(0,He.__)("Select the size of the source images."),value:D,options:ae,onChange:ze,hideCancelButton:!0})}),(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Crop images to fit"),hasValue:()=>!w,onDeselect:()=>t({imageCrop:!0}),children:(0,ot.jsx)(St.ToggleControl,{label:(0,He.__)("Crop images to fit"),checked:!!w,onChange:ue})}),(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Randomize order"),hasValue:()=>!!S,onDeselect:()=>t({randomOrder:!1}),children:(0,ot.jsx)(St.ToggleControl,{label:(0,He.__)("Randomize order"),checked:!!S,onChange:ct})}),Xa&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Open images in new tab"),hasValue:()=>!!T,onDeselect:()=>he(!1),children:(0,ot.jsx)(St.ToggleControl,{label:(0,He.__)("Open images in new tab"),checked:T==="_blank",onChange:he})}),xe.length>1&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{hasValue:()=>!!L&&L!=="auto",label:(0,He.__)("Aspect ratio"),onDeselect:()=>Ct("auto"),isShownByDefault:!0,children:(0,ot.jsx)(St.SelectControl,{label:(0,He.__)("Aspect ratio"),help:(0,He.__)("Set a consistent aspect ratio for all images in the gallery."),value:L,options:xe,onChange:Ct})}),f?.allowEditing&&we&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{label:(0,He.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>k!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,ot.jsx)(St.__experimentalToggleGroupControl,{label:(0,He.__)("Navigation button type"),value:k,onChange:ne=>t({navigationButtonType:ne}),isBlock:!0,help:(0,He.__)("Adjust the appearance of buttons in the lightbox."),children:T3e.map(ne=>(0,ot.jsx)(St.__experimentalToggleGroupControlOption,{value:ne.value,label:ne.label},ne.value))})})]})]}),(0,ot.jsx)(lo.BlockControls,{group:"block",children:(0,ot.jsx)(St.ToolbarDropdownMenu,{icon:fi,label:(0,He.__)("Link"),children:({onClose:ne})=>(0,ot.jsx)(St.MenuGroup,{children:b.map(Ve=>{let $e=N===Ve.value;return(0,ot.jsx)(St.MenuItem,{isSelected:$e,className:C("components-dropdown-menu__menu-item",{"is-active":$e}),iconPosition:"left",icon:Ve.icon,onClick:()=>{X(Ve.value),ne()},role:"menuitemradio",info:Ve.infoText,children:Ve.label},Ve.value)})})})}),(0,ot.jsxs)(ot.Fragment,{children:[!Q&&!ee&&(0,ot.jsx)(lo.BlockControls,{group:"other",children:(0,ot.jsx)(lo.MediaReplaceFlow,{allowedTypes:eR,handleUpload:!1,onSelect:Ne,name:(0,He.__)("Add"),multiple:!0,mediaIds:Y.filter(ne=>ne.id).map(ne=>ne.id),addToGallery:Ae,variant:"toolbar"})}),(0,ot.jsx)(NQ,{style:r.style,clientId:n})]}),ee?(0,ot.jsx)(OQ,{...e,dynamic:te,blockProps:Lo,innerBlocksProps:bo,multiGallerySelection:Q}):(0,ot.jsx)(mQ,{...e,isContentLocked:s,images:Y,blockProps:bo,insertBlocksAfter:l,multiGallerySelection:Q})]})}var Z3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",usesContext:["galleryId","postId","postType"],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:[]},dynamicContent:{type:"object"},navigationButtonType:{type:"string",default:"icon",enum:["icon","text","both"]},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",navigationButtonType:"navigationButtonType"},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:{sides:["horizontal","vertical"],__experimentalDefault:"var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )"},__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},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var wu=a(B(),1),K3=a(y(),1);function WQ({attributes:e}){let{caption:t,columns:r,imageCrop:o,dynamicContent:n}=e,i=!wu.RichText.isEmpty(t)&&(0,K3.jsx)(wu.RichText.Content,{tagName:"figcaption",className:C("blocks-gallery-caption",(0,wu.__experimentalGetElementClassName)("caption")),value:t});if(n)return i||null;let l=C("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),s=wu.useBlockProps.save({className:l}),c=wu.useInnerBlocksProps.save(s);return(0,K3.jsxs)("figure",{...c,children:[c.children,i]})}var kl=a($(),1),$Q=a(Mr(),1),rR=a(vu(),1);var N3e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],qQ=e=>e.map(t=>(0,kl.createBlock)(t.name,t.attributes,qQ(t.innerBlocks||[])));function I3e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:n})=>(0,kl.createBlock)("core/image",{url:r,id:o?parseInt(o,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,rR.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",I3e);function D3e(e,t){let o=(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(o){let n=o.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);o.attributes.images=n,o.attributes.ids=i}return e}(0,rR.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",D3e);var L3e={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,kl.createBlock)("core/image",i)));return(0,kl.createBlock)("core/gallery",{align:t,sizeSlug:r},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:o,size:n}}){let i=N3e(e).map(c=>parseInt(c,10)),l=cc;return r==="post"?l=pc:r==="file"&&(l=uc),(0,kl.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:o==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,kl.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,kl.createBlock)("core/image",{blob:(0,$Q.createBlobURL)(r)}));return(0,kl.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:o,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:p,linkDestination:m,linkTarget:d,anchor:f,className:h}})=>(0,kl.createBlock)("core/image",{align:e,url:r,alt:o,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:p,linkDestination:m,linkTarget:d,anchor:f,className:h})):(0,kl.createBlock)("core/image",{align:e})},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let{allowResize:r,aspectRatio:o,caption:n,columns:i,fixedHeight:l,ids:s,imageCrop:c,images:u,linkTarget:p,linkTo:m,navigationButtonType:d,randomOrder:f,shortCodeTransforms:h,sizeSlug:g,...v}=e;return(0,kl.createBlock)("core/group",{...v,layout:{type:"grid",columnCount:i??V3(t.length)}},qQ(t))}}]},ZQ=L3e;var oR=a(I(),1);var R3e=[{name:"dynamic-gallery",title:(0,oR.__)("Dynamic Gallery"),description:(0,oR.__)("Display images from a source, such as those attached to the current post."),attributes:{dynamicContent:{source:zp}},isActive:e=>!!e.dynamicContent,scope:[]}],KQ=R3e;var{name:YQ}=Z3,QQ={icon:J1,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:ZQ,variations:KQ,edit:GQ,save:WQ,deprecated:iQ},M3e=()=>R({name:YQ,metadata:Z3,settings:QQ});var sR={};K(sR,{init:()=>W3e,metadata:()=>Q3,name:()=>t4,settings:()=>pX});var e4=a(I(),1);var Da=a(B(),1),Ni=a(y(),1),nR=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:o,...n}=e;return{...n,style:t}},A3e=[{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,Ni.jsx)(e,{...Da.useInnerBlocksProps.save(Da.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,Ni.jsx)(t,{...Da.useBlockProps.save(),children:(0,Ni.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Ni.jsx)(Da.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:nR,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,Da.getColorClassName)("background-color",t),l=(0,Da.getColorClassName)("color",o),s=C(i,l,{"has-text-color":o||n,"has-background":t||r});return(0,Ni.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,Ni.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Ni.jsx)(Da.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:nR,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,Da.getColorClassName)("background-color",t),l=(0,Da.getColorClassName)("color",o),s=C(i,{"has-text-color":o||n,"has-background":t||r});return(0,Ni.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,Ni.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Ni.jsx)(Da.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:nR,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,Da.getColorClassName)("background-color",t),n=C(o,{"has-background":t||r});return(0,Ni.jsx)("div",{className:n,style:{backgroundColor:o?void 0:r},children:(0,Ni.jsx)(Da.InnerBlocks.Content,{})})}}],XQ=A3e;var Y3=a(F(),1),Di=a(B(),1),aX=a(H(),1),nX=a(I(),1);var JQ=a(F(),1),eX=a(B(),1),iR=a(I(),1),tX=a($(),1),$n=a(O(),1),Ab=a(H(),1),Wn=a(y(),1),z3e=(e="group")=>({group:(0,Wn.jsx)($n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)($n.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,Wn.jsx)($n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)($n.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,Wn.jsx)($n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)($n.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,Wn.jsx)($n.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wn.jsx)($n.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 rX({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:o,backgroundColor:n,textColor:i,fontSize:l}=e,[s,c]=(0,Ab.useState)(!r&&!n&&!l&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,Ab.useEffect)(()=>{(r||n||l||i||o||t==="flex")&&c(!1)},[n,l,i,o,t,r]),[s,c]}function V3e({name:e,onSelect:t}){let r=(0,JQ.useSelect)(n=>n(tX.store).getBlockVariations(e,"block"),[e]),o=(0,eX.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Ab.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,Wn.jsx)("div",{...o,children:(0,Wn.jsx)($n.Placeholder,{instructions:(0,iR.__)("Group blocks together. Select a layout:"),children:(0,Wn.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,iR.__)("Block variations"),children:r.map(n=>(0,Wn.jsx)("li",{children:(0,Wn.jsx)($n.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:z3e(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var oX=V3e;var Ii=a(y(),1),{HTMLElementControl:O3e}=U(Di.privateApis);function F3e({tagName:e,onSelectTagName:t,clientId:r}){return(0,Ii.jsx)(Di.InspectorControls,{group:"advanced",children:(0,Ii.jsx)(O3e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,nX.__)("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 H3e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,Y3.useSelect)(x=>{let{getBlock:w,getSettings:S}=x(Di.store),T=w(o);return{hasInnerBlocks:!!(T&&T.innerBlocks.length),themeSupportsLayout:S()?.supportsLayout}},[o]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:p="default"}=u,m=i||p==="flex"||p==="grid",d=(0,aX.useRef)(),f=(0,Di.useBlockProps)({ref:d}),[h,g]=rX({attributes:e,usedLayoutType:p,hasInnerBlocks:n}),v;h?v=!1:n||(v=Di.InnerBlocks.ButtonBlockAppender);let b=(0,Di.useInnerBlocksProps)(m?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:v}),{selectBlock:_}=(0,Y3.useDispatch)(Di.store),k=x=>{r(x.attributes),_(o,-1),g(!1)};return(0,Ii.jsxs)(Ii.Fragment,{children:[(0,Ii.jsx)(F3e,{tagName:l,onSelectTagName:x=>r({tagName:x}),clientId:o}),h&&(0,Ii.jsxs)("div",{children:[b.children,(0,Ii.jsx)(oX,{name:t,onSelect:k})]}),m&&!h&&(0,Ii.jsx)(l,{...b}),!m&&!h&&(0,Ii.jsx)(l,{...f,children:(0,Ii.jsx)("div",{...b})})]})}var iX=H3e;var Q3={$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,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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,minWidth:!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 X3=a(B(),1),lX=a(y(),1);function sX({attributes:{tagName:e}}){return(0,lX.jsx)(e,{...X3.useInnerBlocksProps.save(X3.useBlockProps.save())})}var J3=a($(),1),U3e={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),o=e.map(n=>(0,J3.cloneSanitizedBlock)(n));return(0,J3.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},cX=U3e;var La=a(I(),1);var lR={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.")}}]},G3e=[{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:Ym},{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:nN,example:lR},{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:yN,example:lR},{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:$l,example:lR}],uX=G3e;var{name:t4}=Q3,pX={icon:Ym,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,e4.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,e4.__)("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,e4.__)("Read more")}}],viewportWidth:600},transforms:cX,edit:iX,save:sX,deprecated:XQ,variations:uX},W3e=()=>R({name:t4,metadata:Q3,settings:pX});var dR={};K(dR,{init:()=>s4e,metadata:()=>n4,name:()=>l4,settings:()=>s4});var Fp=a(I(),1),hg=a($(),1);var dn=a(B(),1);var dc=a(y(),1),cR={className:!1,anchor:!0},r4={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},dg=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},mX=["left","right","center"],fg=e=>{let{align:t,...r}=e;return mX.includes(t)?{...r,textAlign:t}:e},$3e={supports:cR,attributes:{...r4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ve(dg(fg(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:n,customTextColor:i}=e,l="h"+r,s=(0,dn.getColorClassName)("color",n),c=C({[s]:s});return(0,dc.jsx)(dn.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:o})}},q3e={attributes:{...r4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ve(dg(fg(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,l="h"+n,s=(0,dn.getColorClassName)("color",i),c=C({[s]:s,[`has-text-align-${t}`]:t});return(0,dc.jsx)(dn.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})},supports:cR},Z3e={supports:cR,attributes:{...r4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ve(dg(fg(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,l="h"+n,s=(0,dn.getColorClassName)("color",i),c=C({[s]:s,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,dc.jsx)(dn.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})}},K3e={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:r4,isEligible:({align:e})=>mX.includes(e),migrate:e=>ve(dg(fg(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,n="h"+o,i=C({[`has-text-align-${t}`]:t});return(0,dc.jsx)(n,{...dn.useBlockProps.save({className:i}),children:(0,dc.jsx)(dn.RichText.Content,{value:r})})}},Y3e={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:o}=e,n="h"+o,i=C({[`has-text-align-${t}`]:t});return(0,dc.jsx)(n,{...dn.useBlockProps.save({className:i}),children:(0,dc.jsx)(dn.RichText.Content,{value:r})})},migrate:e=>ve(dg(fg(e)))},Q3e={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:o}=e,n="h"+o,i=C({[`has-text-align-${t}`]:t});return(0,dc.jsx)(n,{...dn.useBlockProps.save({className:i}),children:(0,dc.jsx)(dn.RichText.Content,{value:r})})},migrate:e=>ve(dg(fg(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},X3e=[Q3e,Y3e,K3e,Z3e,q3e,$3e],dX=X3e;var hX=a(I(),1),gX=a(H(),1),a4=a(F(),1),qd=a(B(),1);var fX=a(Pb(),1),uR={},J3e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},e4e=e=>(0,fX.default)(J3e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),o4=(e,t)=>{let r=e4e(t);if(r==="")return null;delete uR[e];let o=r,n=0;for(;Object.values(uR).includes(o);)n+=1,o=r+"-"+n;return o},pR=(e,t)=>{uR[e]=t};var vX=a(y(),1);function t4e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:n,style:i,clientId:l}=e;wt(e);let{content:s,level:c,placeholder:u,anchor:p}=t,m="h"+c,d=(0,qd.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,a4.useSelect)(v=>{let{getGlobalBlockCount:b,getSettings:_}=v(qd.store);return{canGenerateAnchors:!!_().generateAnchors||b("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,a4.useDispatch)(qd.store);return(0,gX.useEffect)(()=>{if(f)return!p&&s&&(h(),r({anchor:o4(l,s)})),pR(l,p),()=>pR(l,null)},[p,s,l,f,r,h]),(0,vX.jsx)(qd.RichText,{identifier:"content",tagName:m,value:s,onChange:v=>{let b={content:v};f&&(!p||!v||o4(l,s)===p)&&(b.anchor=o4(l,v)),r(b)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,hX.__)("Heading"),...d})}var bX=t4e;var n4={$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 i4=a(B(),1),mR=a(y(),1);function yX({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,mR.jsx)(o,{...i4.useBlockProps.save(),children:(0,mR.jsx)(i4.RichText.Content,{value:t})})}var Op=a($(),1);function _X(e){return Number(e.substr(1))}var o4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:o,style:n}=t,i=n?.typography?.textAlign;return(0,Op.createBlock)("core/heading",{...pu(t,"core/heading",({content:l})=>({content:l})),content:r,anchor:o,...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,Op.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=_X(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,Op.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,Op.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,Op.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:o}=t,n=o?.typography?.textAlign;return(0,Op.createBlock)("core/paragraph",{...pu(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},xX=o4e;var zb=a(I(),1);var a4e=[sB,uB,mB,fB,gB,bB],n4e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,zb.sprintf)((0,zb.__)("Heading %d"),e),description:(0,zb.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:a4e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],kX=n4e;var{fieldsKey:i4e,formKey:l4e}=U(hg.privateApis),{name:l4}=n4,s4={icon:_B,example:{attributes:{content:(0,Fp.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:o}=e,n=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(n||i))return n||r;if(t==="breadcrumb"&&n)return n;if(t==="accessibility")return i?(0,Fp.sprintf)((0,Fp.__)("Level %1$s. %2$s"),o,r):(0,Fp.sprintf)((0,Fp.__)("Level %s. Empty."),o)},transforms:xX,deprecated:dX,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:bX,save:yX,variations:kX};window.__experimentalContentOnlyInspectorFields&&(s4[i4e]=[{id:"content",label:(0,Fp.__)("Content"),type:"text",Edit:"rich-text"}],s4[l4e]={fields:["content"]});var s4e=()=>{let e=R({name:l4,metadata:n4,settings:s4}),t=(0,hg.getBlockType)(l4)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,hg.unregisterBlockVariation)(l4,`h${r}`)}),e};var fR={};K(fR,{init:()=>p4e,metadata:()=>c4,name:()=>IX,settings:()=>DX});var NX=a(I(),1);var c4={$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"},opensInNewTab:{type:"boolean",default:!1},description:{type:"string"}},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 Hp=a(B(),1),fn=a(O(),1),qn=a(I(),1),wX=a(F(),1),CX=a(oe(),1);var SX=a(Ca(),1);var Co=a(y(),1),u4e=e=>e.preventDefault();function TX({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:n,frontPageId:i,frontPageTemplateId:l}=(0,wX.useSelect)(g=>{let{getEntityRecord:v,getDefaultTemplateId:b,canUser:_}=g(CX.store),k=v("root","__unstableBase")?.home,w=_("read",{kind:"root",name:"site"})?v("root","site"):null,S=w?.show_on_front==="page"?w?.page_on_front:null,T=S?null:b({slug:"front-page"});return{homeUrl:k,onNavigateToEntityRecord:g(Hp.store).getSettings().onNavigateToEntityRecord,frontPageId:S,frontPageTemplateId:T}},[]),{textColor:s,backgroundColor:c,style:u}=r,{label:p,opensInNewTab:m,description:d}=e,f=Z(),h=(0,Hp.useBlockProps)({className:C("wp-block-navigation-item",{"has-text-color":!!s||!!u?.color?.text,[`has-${s}-color`]:!!s,"has-background":!!c||!!u?.color?.background,[`has-${c}-background-color`]:!!c}),style:{color:u?.color?.text,backgroundColor:u?.color?.background}});return(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)(Hp.InspectorControls,{group:"content",children:(0,Co.jsxs)(fn.__experimentalToolsPanel,{label:(0,qn.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,Co.jsx)(fn.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,qn.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Co.jsx)(fn.TextControl,{label:(0,qn.__)("Text"),value:p?(0,SX.__unstableStripHTML)(p):"",onChange:g=>{t({label:g})},autoComplete:"off"})}),(0,Co.jsx)(fn.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,qn.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Co.jsx)(fn.CheckboxControl,{label:(0,qn.__)("Open in new tab"),checked:m,onChange:g=>t({opensInNewTab:g})})}),n&&(i||l)&&(0,Co.jsx)(fn.Button,{variant:"secondary",onClick:()=>{n(i?{postId:i,postType:"page"}:{postId:l,postType:"wp_template"})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qn.__)("Edit")}),o&&(0,Co.jsx)(fn.Button,{variant:"secondary",href:o,target:"_blank",icon:$1,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qn.__)("View")}),(0,Co.jsx)(fn.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,qn.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,Co.jsx)(fn.TextareaControl,{label:(0,qn.__)("Description"),value:d||"",onChange:g=>{t({description:g})},help:(0,qn.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,Co.jsx)("div",{...h,children:(0,Co.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:u4e,children:[(0,Co.jsx)(Hp.RichText,{identifier:"label",className:"wp-block-home-link__label",value:p??(0,qn.__)("Home"),onChange:g=>{t({label:g})},"aria-label":(0,qn.__)("Home link text"),placeholder:(0,qn.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),d&&(0,Co.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]})})]})}var PX=a(B(),1),BX=a(y(),1);function EX(){return(0,BX.jsx)(PX.InnerBlocks.Content,{})}var{name:IX}=c4,DX={icon:kB,edit:TX,save:EX,example:{attributes:{label:(0,NX._x)("Home Link","block example")}}},p4e=()=>R({name:IX,metadata:c4,settings:DX});var vR={};K(vR,{init:()=>g4e,metadata:()=>m4,name:()=>qX,settings:()=>ZX});var $X=a(I(),1);var vg=a(I(),1),p4=a(H(),1),Zn=a(B(),1),Kd=a($(),1),bg=a(F(),1),HX=a(vd(),1),_s=a(O(),1);var Li=a(I(),1),Vb=a(H(),1),OX=a(F(),1),sa=a(O(),1),gg=a(B(),1);var FX=a(ge(),1);var LX=a(H(),1),u4=a(B(),1),RX=a(O(),1),MX=a(F(),1),AX=a(I(),1),Zd=a(y(),1),m4e=`
	html,body,:root {
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		min-height: auto !important;
	}
`;function zX({content:e,isSelected:t}){let r=(0,MX.useSelect)(n=>n(u4.store).getSettings().styles,[]),o=(0,LX.useMemo)(()=>[m4e,...(0,u4.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,Zd.jsxs)(Zd.Fragment,{children:[(0,Zd.jsx)(RX.SandBox,{html:e,styles:o,title:(0,AX.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Zd.jsx)("div",{className:"block-library-html__preview-overlay"})]})}function VX(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"]'),o=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:o,js:i}}function hR({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
${t}
</style>`),r.trim()&&o.push(`<script data-wp-block-html="js">
${r}
<\/script>`),e.trim()&&o.push(e),o.join(`

`)}var Bt=a(y(),1),{Tabs:jp}=U(sa.privateApis);function gR({onRequestClose:e,content:t,onUpdate:r}){let{html:o,css:n,js:i}=VX(t),[l,s]=(0,Vb.useState)(o),[c,u]=(0,Vb.useState)(n),[p,m]=(0,Vb.useState)(i),[d,f]=(0,Vb.useState)(!1),h=(0,FX.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:g}=(0,OX.useSelect)(x=>({canUserUseUnfilteredHTML:x(gg.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),v=!g&&(n.trim()||i.trim()),b=()=>{r(hR({html:l,css:g?c:"",js:g?p:""}))},_=()=>{b(),e()},k=()=>{f(x=>!x)};return(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsx)(sa.Modal,{title:(0,Li.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:d,__experimentalHideHeader:!0,children:(0,Bt.jsx)(jp,{orientation:"horizontal",defaultTabId:"html",children:(0,Bt.jsxs)(sa.__experimentalVStack,{expanded:!0,children:[(0,Bt.jsxs)(sa.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Bt.jsx)("div",{children:(0,Bt.jsxs)(jp.TabList,{children:[(0,Bt.jsx)(jp.Tab,{tabId:"html",children:"HTML"}),g&&(0,Bt.jsx)(jp.Tab,{tabId:"css",children:"CSS"}),g&&(0,Bt.jsx)(jp.Tab,{tabId:"js",children:(0,Li.__)("JavaScript")})]})}),!h&&(0,Bt.jsx)("div",{children:(0,Bt.jsx)(sa.Button,{__next40pxDefaultSize:!0,icon:d?vN:Km,label:(0,Li.__)("Enable/disable fullscreen"),onClick:k,variant:"tertiary"})})]}),v&&(0,Bt.jsx)(sa.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,Li.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Bt.jsxs)(sa.Flex,{direction:h?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Bt.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Bt.jsx)(jp.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Bt.jsx)(gg.PlainText,{value:l,onChange:s,placeholder:(0,Li.__)("Write HTML\u2026"),"aria-label":(0,Li.__)("HTML"),className:"block-library-html__modal-editor",async:!0})}),g&&(0,Bt.jsx)(jp.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Bt.jsx)(gg.PlainText,{value:c,onChange:u,placeholder:(0,Li.__)("Write CSS\u2026"),"aria-label":(0,Li.__)("CSS"),className:"block-library-html__modal-editor",async:!0})}),g&&(0,Bt.jsx)(jp.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Bt.jsx)(gg.PlainText,{value:p,onChange:m,placeholder:(0,Li.__)("Write JavaScript\u2026"),"aria-label":(0,Li.__)("JavaScript"),className:"block-library-html__modal-editor",async:!0})})]}),(0,Bt.jsx)("div",{className:"block-library-html__preview",children:(0,Bt.jsx)(zX,{content:hR({html:l,css:c,js:p})})})]}),(0,Bt.jsxs)(sa.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Bt.jsx)(sa.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Li.__)("Cancel")}),(0,Bt.jsx)(sa.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:_,children:(0,Li.__)("Update")})]})]})})})})}var Ra=a(y(),1),{InnerContent:d4e}=U(Zn.privateApis);function jX({clientId:e,attributes:t}){let[r,o]=(0,p4.useState)(!1),n=(0,bg.useRegistry)(),{updateBlock:i,replaceInnerBlocks:l}=(0,bg.useDispatch)(Zn.store),s=(0,bg.useSelect)(p=>{let m=p(Zn.store).getBlock(e);return m?(0,Kd.getBlockContent)(m):""},[e]),c=(0,Zn.useBlockProps)({className:"block-library-html__edit"}),u=p=>{if(p===s)return;let[m]=(0,Kd.parse)(`<!-- wp:html -->
${p}
<!-- /wp:html -->`),d=m?.innerBlocks??[],f=n.select(Zn.store).getBlocks(e),h=f.length===d.length&&f.every((g,v)=>(0,Kd.serialize)(g)===(0,Kd.serialize)(d[v]));n.batch(()=>{i(e,{innerContent:m?.innerContent??(p?[p]:[])}),h||l(e,d,!1)})};return(0,p4.useEffect)(()=>{t.content&&((0,HX.default)("The content attribute on the Custom HTML block",{since:"7.1",alternative:"inner content"}),i(e,{attributes:{content:void 0},innerContent:[t.content]}))},[t.content]),s?.trim()?(0,Ra.jsxs)("div",{...c,children:[(0,Ra.jsx)(Zn.BlockControls,{children:(0,Ra.jsx)(_s.ToolbarGroup,{children:(0,Ra.jsx)(_s.ToolbarButton,{onClick:()=>o(!0),children:(0,vg.__)("Edit code")})})}),(0,Ra.jsx)(Zn.InspectorControls,{children:(0,Ra.jsx)(_s.__experimentalVStack,{className:"block-library-html__edit-code",expanded:!0,children:(0,Ra.jsx)(_s.Button,{className:"block-library-html__edit-code-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(!0),children:(0,vg.__)("Edit code")})})}),(0,Ra.jsx)(d4e,{clientId:e}),r&&(0,Ra.jsx)(gR,{onRequestClose:()=>o(!1),content:s,onUpdate:u})]}):(0,Ra.jsxs)("div",{...c,children:[(0,Ra.jsx)(_s.Placeholder,{icon:(0,Ra.jsx)(Zn.BlockIcon,{icon:O1}),label:(0,vg.__)("Custom HTML"),instructions:(0,vg.__)("Add custom HTML code and preview how it looks."),children:(0,Ra.jsx)(_s.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>o(!0),children:(0,vg.__)("Edit HTML")})}),r&&(0,Ra.jsx)(gR,{onRequestClose:()=>o(!1),content:s,onUpdate:u})]})}var m4={$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",role:"local"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0},listView:!0,customCSS:!1,visibility:!1},editorStyle:"wp-block-html-editor"};function UX(){return null}var d4=a($(),1),GX=a(es(),1),h4e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>{let t=(0,GX.create)({html:e}).text,[r]=(0,d4.parse)(`<!-- wp:html -->
${t}
<!-- /wp:html -->`);return r??(0,d4.createBlock)("core/html",{},[],[t])}}]},WX=h4e;var{name:qX}=m4,ZX={icon:CB,example:{innerContent:["<marquee>"+(0,$X.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"]},edit:jX,save:UX,transforms:WX},g4e=()=>R({name:qX,metadata:m4,settings:ZX});var wR={};K(wR,{init:()=>w4e,metadata:()=>g4,name:()=>sJ,settings:()=>cJ});var Mi=a(I(),1),hn=a(O(),1);var ca=a(B(),1),rJ=a(H(),1),xg=a(A(),1),oJ=a(F(),1),aJ=a(oe(),1);var h4=a(I(),1),_g=a(O(),1);var Fb=a(H(),1),tJ=a(ge(),1),yR=a(F(),1),_R=a(oe(),1);var bR=a(I(),1),YX=a(O(),1),QX=a(ge(),1),f4=a(H(),1),XX=a(Ca(),1);var fc=a(y(),1),KX=20;function JX({icons:e,onChange:t,value:r}){let o=(0,QX.useAsyncList)(e,{step:KX}),n=(0,f4.useRef)(),i=e?.findIndex(s=>s.name===r)??-1,l=i>=0&&(o.length>=i+KX||o.length===e.length);return(0,f4.useLayoutEffect)(()=>{let s=n.current;!l||!s||(0,XX.getScrollContainer)(s)?.scrollTop||s.scrollIntoView({block:"center"})},[l]),(0,fc.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,fc.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,bR.__)("Icon library"),children:o.map(s=>(0,fc.jsxs)(YX.Button,{ref:s.name===r?n:void 0,className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(s.name),variant:s.name===r?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,fc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,fc.jsx)(_o,{html:s.content})}),(0,fc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:s.label})]},s.name))}):(0,fc.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,fc.jsx)("p",{children:(0,bR.__)("No results found.")})})})}var eJ=a(Pb(),1);function yg(e=""){return e=(0,eJ.default)(e),e=e.trim().toLowerCase(),e}function v4e(e,t){let r=yg(t),o=yg(e.title),n=0;return r===o?n+=30:o.startsWith(r)?n+=20:r.split(" ").every(s=>o.includes(s))&&(n+=10),n}function Ob(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,v4e(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,n])=>n-o),r.map(([o])=>o)}var Ri=a(y(),1);function xR({onClose:e,value:t,onChange:r}){let[o,n]=(0,Fb.useState)(""),[i,l]=(0,Fb.useState)(null),s=(0,tJ.useDebounce)(n,300),c=(0,yR.useSelect)(h=>h(_R.store).getEntityRecords("root","iconCollection"),[]),u=t?.split("/")[0],p=i??(c?.some(({slug:h})=>h===u)?u:c?.[0]?.slug)??null,{icons:m,hasResolvedIcons:d}=(0,yR.useSelect)(h=>{if(p===null)return{icons:null,hasResolvedIcons:!1};let g=p===""?{}:{collection:p},{getEntityRecords:v,hasFinishedResolution:b}=h(_R.store);return{icons:v("root","icon",g),hasResolvedIcons:b("getEntityRecords",["root","icon",g])}},[p]),f=(0,Fb.useMemo)(()=>{if(!m)return[];if(o){let h=yg(o);return m.filter(g=>{let v=yg(g.name),b=yg(g.label);return v.includes(h)||b.includes(h)})}return m},[o,m]);return(0,Ri.jsx)(_g.Modal,{className:"wp-block-icon__inserter-modal",title:(0,h4.__)("Icon library"),onRequestClose:e,isFullScreen:!0,children:(0,Ri.jsxs)(xp.Root,{className:"wp-block-icon__inserter",orientation:"vertical",value:p,onValueChange:l,children:[(0,Ri.jsxs)(yp,{direction:"column",gap:"lg",className:"wp-block-icon__inserter-sidebar",children:[(0,Ri.jsx)(_g.SearchControl,{value:o,onChange:s}),(0,Ri.jsxs)(xp.List,{children:[(0,Ri.jsx)(xp.Tab,{value:"",children:(0,h4.__)("All")}),c?.map(h=>(0,Ri.jsx)(xp.Tab,{value:h.slug,children:h.label},h.slug))]})]}),[{slug:""},...c??[]].map(h=>(0,Ri.jsx)(xp.Panel,{tabIndex:-1,value:h.slug,className:"wp-block-icon__inserter-panel",children:d?(0,Ri.jsx)(JX,{icons:f,onChange:r,value:t}):(0,Ri.jsx)("div",{className:"wp-block-icon__inserter-loading",role:"status","aria-label":(0,h4.__)("Loading\u2026"),children:(0,Ri.jsx)(_g.Spinner,{})})},h.slug))]})})}var Ut=a(y(),1),b4e=({className:e,style:t})=>(0,Ut.jsxs)(xg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:C("wp-block-icon__placeholder",e),style:t,children:[(0,Ut.jsx)(xg.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,Ut.jsx)(xg.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function y4e({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:n,flipVertical:i,rotation:l}=e,[s,c]=(0,rJ.useState)(!1),u=(0,ca.useBlockEditingMode)()==="contentOnly",p=(0,ca.__experimentalUseColorProps)(e),m=(0,ca.__experimentalGetSpacingClassesAndStyles)(e),d=(0,ca.__experimentalUseBorderProps)(e),f=(0,ca.getDimensionsClassesAndStyles)(e),g=(0,oJ.useSelect)(w=>{let{getEntityRecord:S}=w(aJ.store);return r?S("root","icon",r):null},[r])?.content||"",v={"is-flip-horizontal":n,"is-flip-vertical":i},b=l?{rotate:`${l}deg`}:{},_=(0,Ut.jsxs)(Ut.Fragment,{children:[r&&(0,Ut.jsxs)(ca.BlockControls,{group:"block",children:[(0,Ut.jsx)(hn.ToolbarButton,{icon:VP,label:(0,Mi.__)("Flip horizontal"),isPressed:n,onClick:()=>t({flipHorizontal:!n})}),(0,Ut.jsx)(hn.ToolbarButton,{icon:FP,label:(0,Mi.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,Ut.jsx)(hn.ToolbarButton,{icon:oN,label:(0,Mi.__)("Rotate"),onClick:()=>t({rotation:((l||0)+90)%360})})]}),(0,Ut.jsxs)(ca.BlockControls,{group:"other",children:[(0,Ut.jsx)(hn.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,Mi.__)("Replace"):(0,Mi.__)("Choose icon")}),u&&r&&(0,Ut.jsx)(hn.DropdownMenu,{icon:"",toggleProps:{as:hn.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,Mi.__)("Label"),children:()=>(0,Ut.jsx)(hn.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,Mi.__)("Label"),value:o||"",onChange:w=>t({ariaLabel:w}),help:(0,Mi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),k=Z(),x=r&&(0,Ut.jsx)(Ut.Fragment,{children:(0,Ut.jsx)(ca.InspectorControls,{group:"settings",children:(0,Ut.jsx)(hn.__experimentalToolsPanel,{label:(0,Mi.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:k,children:(0,Ut.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Mi.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,Ut.jsx)(hn.TextControl,{label:(0,Mi.__)("Label"),help:(0,Mi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:w=>t({ariaLabel:w})})})})})});return(0,Ut.jsxs)(Ut.Fragment,{children:[_,x,(0,Ut.jsx)("div",{...(0,ca.useBlockProps)(),children:g?(0,Ut.jsx)(_o,{html:g,wrapperProps:{className:C(p.className,d.className,m.className,f.className,v),style:{...p.style,...d.style,...m.style,...f.style,...b}}}):(0,Ut.jsx)(b4e,{className:C(d.className,m.className,f.className,v),style:{...d.style,...m.style,...f.style,...b,height:"auto"}})}),s&&(0,Ut.jsx)(xR,{onClose:()=>c(!1),value:e.icon,onChange:w=>{t({icon:w}),c(!1)}})]})}var nJ=y4e;var g4={apiVersion:3,$schema:"https://schemas.wp.org/trunk/block.json",name:"core/icon",title:"Icon",category:"media",description:"Insert an SVG icon.",keywords:["icon","svg"],textdomain:"default",attributes:{icon:{type:"string",role:"content"},flipHorizontal:{type:"boolean",default:!1},flipVertical:{type:"boolean",default:!1},rotation:{type:"number",default:0}},supports:{anchor:!0,ariaLabel:{__experimentalSkipSerialization:!0},align:["left","center","right"],html:!1,color:{__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}},spacing:{padding:!0,margin:!0,__experimentalSkipSerialization:["padding"],__experimentalDefaultControls:{margin:!1,padding:!1}},dimensions:{width:!0,__experimentalSkipSerialization:["width"],__experimentalDefaultControls:{width:!0}}},selectors:{root:".wp-block-icon svg",css:".wp-block-icon",spacing:{margin:".wp-block-icon"}},style:"wp-block-icon",editorStyle:"wp-block-icon-editor"};var v4=a(O(),1),kR=a(y(),1),x4e=(0,kR.jsx)(v4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,kR.jsx)(v4.Path,{d:"M6 9.5h3.5V6H6v3.5Zm5 .5a1 1 0 0 1-.898.995L10 11H5.5l-.103-.005a1 1 0 0 1-.892-.893L4.5 10V5.5a1 1 0 0 1 1-1H10a1 1 0 0 1 1 1V10ZM18.25 7.75a2 2 0 1 0-4 0 2 2 0 0 0 4 0Zm1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM6.88 13.535a1 1 0 0 1 1.74 0l2.534 4.472a1 1 0 0 1-.87 1.493H5.216a1 1 0 0 1-.87-1.493l2.534-4.472ZM6.074 18h3.352L7.75 15.041l-1.676 2.96ZM14.952 13h2.596a1 1 0 0 1 .866.5l1.298 2.25a1 1 0 0 1 0 1L18.414 19l-.074.11a1 1 0 0 1-.792.39h-2.596a1 1 0 0 1-.792-.39l-.074-.11-1.298-2.25a1.001 1.001 0 0 1 0-1l1.298-2.25a1 1 0 0 1 .866-.5Zm-.72 3.25 1.01 1.75h2.017l1.009-1.75-1.01-1.75h-2.017l-1.01 1.75Z"})}),iJ=x4e;var k4e=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],lJ=k4e;var{name:sJ}=g4,cJ={icon:iJ,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:lJ,edit:nJ},w4e=()=>R({name:sJ,metadata:g4,settings:cJ});var NR={};K(NR,{init:()=>eCe,metadata:()=>S4,name:()=>GJ,settings:()=>P4});var Gp=a(I(),1);var UJ=a($(),1);var Ke=a(B(),1);var Me=a(y(),1),C4e={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:o,align:n,href:i,width:l,height:s}=e,u=(0,Me.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),p={};return l?p={width:l}:(n==="left"||n==="right")&&(p={maxWidth:"50%"}),(0,Me.jsxs)("figure",{className:n?`align${n}`:null,style:p,children:[i?(0,Me.jsx)("a",{href:i,children:u}):u,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]})}},S4e={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:o,align:n,href:i,width:l,height:s,id:c}=e,u=(0,Me.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Me.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,Me.jsx)("a",{href:i,children:u}):u,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]})}},T4e={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:o,align:n,href:i,width:l,height:s,id:c}=e,u=C({[`align${n}`]:n,"is-resized":l||s}),p=(0,Me.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Me.jsxs)("figure",{className:u,children:[i?(0,Me.jsx)("a",{href:i,children:p}):p,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]})}},P4e={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:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:p,linkTarget:m,sizeSlug:d,title:f}=e,h=l||void 0,g=C({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),v=(0,Me.jsx)("img",{src:t,alt:r,className:p?`wp-image-${p}`:null,width:c,height:u,title:f}),b=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:m,rel:h,children:v}):v,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]});return n==="left"||n==="right"||n==="center"?(0,Me.jsx)("div",{...Ke.useBlockProps.save(),children:(0,Me.jsx)("figure",{className:g,children:b})}):(0,Me.jsx)("figure",{...Ke.useBlockProps.save({className:g}),children:b})}},B4e={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:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:p,linkTarget:m,sizeSlug:d,title:f}=e,h=l||void 0,g=C({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),v=(0,Me.jsx)("img",{src:t,alt:r,className:p?`wp-image-${p}`:null,width:c,height:u,title:f}),b=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:m,rel:h,children:v}):v,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ke.useBlockProps.save({className:g}),children:b})}},E4e={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:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),_=C({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=C(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Me.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m},width:c,height:u,title:g}),w=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ke.useBlockProps.save({className:_}),children:w})}},N4e={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{width:t,height:r}=e;return{...e,width:typeof t=="number"?`${t}px`:t,height:typeof r=="number"?`${r}px`:r}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),_=C({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=C(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Me.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m,width:c,height:u},width:c,height:u,title:g}),w=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ke.useBlockProps.save({className:_}),children:w})}},I4e={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:o}}}=r,n={...r,lightbox:{enabled:o}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),_=C({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=C(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Me.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m,width:c,height:u},title:g}),w=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ke.RichText.isEmpty(o)&&(0,Me.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ke.useBlockProps.save({className:_}),children:w})}},D4e={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}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:v,metadata:{bindings:b={}}={}}=e,_=l||void 0,k=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),x=(0,Ke.__experimentalGetShadowClassesAndStyles)(e),w=C({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!k.className||k.style&&Object.keys(k.style).length>0}),S=C(k.className,{[`wp-image-${f}`]:!!f}),T=(0,Me.jsx)("img",{src:t,alt:r,className:S||void 0,style:{...k.style,...x.style,aspectRatio:p,objectFit:m,objectPosition:d&&m?$d(d):void 0,width:c,height:u},title:v}),N=!Ke.RichText.isEmpty(o)||b.caption||b?.__default?.source==="core/pattern-overrides",D=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:h,rel:_,children:T}):T,N&&(0,Me.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ke.useBlockProps.save({className:w}),children:D})}},uJ=[D4e,I4e,N4e,E4e,B4e,P4e,T4e,S4e,C4e];var Cg=a(Mr(),1),Hb=a($(),1),IJ=a(O(),1),Yd=a(F(),1),vn=a(B(),1),Up=a(H(),1),gc=a(I(),1);var DJ=a(Sr(),1),LJ=a(ge(),1),C4=a(ur(),1),RJ=a(mJ(),1);var Oe=a(O(),1),wg=a(ge(),1),hc=a(F(),1),Mt=a(B(),1),Or=a(H(),1),Be=a(I(),1),PR=a(ur(),1),kg=a($(),1);var CJ=a(Sr(),1),w4=a(oe(),1);var gn=a(O(),1),b4=a(B(),1),dJ=a(Ca(),1),fJ=a(H(),1),CR=a(I(),1),hJ=a(F(),1);var gJ=a(ur(),1),Kn=a(y(),1),L4e=e=>{window.requestAnimationFrame(()=>{let[t]=dJ.focus.tabbable.find(e?.current);t&&t.focus()})};function SR({url:e,filename:t,itemGroupProps:r,className:o,label:n}){return(0,Kn.jsx)(gn.__experimentalItemGroup,{...r,as:"span",children:(0,Kn.jsxs)(gn.__experimentalHStack,{justify:"flex-start",children:[(0,Kn.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,Kn.jsx)(gn.FlexBlock,{children:(0,Kn.jsx)(gn.__experimentalTruncate,{numberOfLines:1,className:o,children:t??n})})]})})}function y4({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:n,onSelectURL:i,onError:l,onReset:s,isUploading:c=!1,emptyLabel:u=(0,CR.__)("Media")}){let{getSettings:p}=(0,hJ.useSelect)(b4.store),m=f=>{let{mediaUpload:h}=p();h&&h({allowedTypes:o,filesList:f,onFileChange([g]){n(g)},onError:l,multiple:!1})},d=(0,fJ.useRef)();return(0,Kn.jsxs)("div",{ref:d,className:"block-library-utils__media-control",children:[(0,Kn.jsx)(b4.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:n,onSelectURL:i,onError:l,name:(0,Kn.jsx)(SR,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,gJ.getFilename)(r)||u}),renderToggle:f=>(0,Kn.jsx)(gn.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,Kn.jsx)(gn.Spinner,{}):f.children}),onReset:s}),t&&s&&(0,Kn.jsx)(gn.Button,{label:(0,CR.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:JE,onClick:()=>{s(),L4e(d)}}),(0,Kn.jsx)(gn.DropZone,{onFilesDrop:m})]})}var _4=a(oe(),1),x4=a(B(),1),_J=a(Ca(),1),k4=a(F(),1),wl=a(H(),1);function vJ(e){return typeof e!="string"||!(0,_J.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function R4e(e){let t=e?.caption;if(typeof t=="string")return vJ(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return vJ(t.raw)}function TR(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:R4e(e)}}function bJ(e){return e||""}function M4e(e,t,r){if(!t||!r)return{};let o=TR(t),n=TR(r),i={},l=bJ(e.alt);o.alt!==n.alt&&(l===o.alt||!l)&&(i.alt=n.alt);let s=bJ(e.caption);return o.caption!==void 0&&n.caption!==void 0&&o.caption!==n.caption&&(s===o.caption||!s)&&(i.caption=n.caption||void 0),i}var{openMediaEditorModalKey:A4e}=U(x4.privateApis);function z4e({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function yJ(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=TR(e).caption!==void 0;return t&&r}function xJ({attributes:e,setAttributes:t,onClose:r}){let{id:o,url:n,alt:i,caption:l}=e,s=(0,k4.useRegistry)(),c=(0,k4.useSelect)(b=>b(x4.store).getSettings()[A4e],[]),u=(0,wl.useRef)({id:o,url:n,alt:i,caption:l?.toString()}),p=(0,wl.useRef)(),m=(0,wl.useRef)(0);(0,wl.useEffect)(()=>{u.current={id:o,url:n,alt:i,caption:l?.toString()}},[i,l,o,n]);let d=(0,wl.useCallback)(b=>s.select(_4.store).getEditedEntityRecord("postType","attachment",b),[s]),f=(0,wl.useCallback)(async b=>{let _=s.resolveSelect(_4.store);try{return await _.getEntityRecord("postType","attachment",b)}catch{return}},[s]),h=(0,wl.useCallback)(async b=>{let{invalidateResolution:_}=s.dispatch(_4.store);return _("getEntityRecord",["postType","attachment",b]),f(b)},[s,f]),g=(0,wl.useCallback)(async({id:b,url:_})=>{if(typeof b!="number")return;let k=p.current;p.current=void 0;let x=++m.current,w={},S=u.current;if(b!==S.id&&(w.id=b,w.url=_??S.url,u.current={...u.current,id:w.id,url:w.url}),k){let T=await h(b);if(x!==m.current)return;let N=u.current,D=M4e(N,k,T);Object.keys(D).length&&Object.assign(w,D)}Object.keys(w).length&&(u.current={...u.current,...w},t(w))},[h,t]),v=(0,wl.useCallback)(async()=>{if(!o||!c)return;let b=d(o),_=z4e(u.current),k=yJ(b)?void 0:await f(o);p.current=k||(yJ(b)?b:_)||b,c({id:o,onUpdate:g,onClose:r})},[d,g,o,r,c,f]);return o&&c?v:void 0}var ce=a(y(),1),{DimensionsTool:kJ,isDefaultBlockStyleState:V4e,ResolutionTool:O4e,mediaEditKey:F4e,mediaSideloadFromUrlKey:wJ}=U(Mt.privateApis),H4e=[{value:"cover",label:(0,Be._x)("Cover","Scale option for dimensions control"),help:(0,Be.__)("Image covers the space evenly.")},{value:"contain",label:(0,Be._x)("Contain","Scale option for dimensions control"),help:(0,Be.__)("Image is contained without distortion.")}],j4e={placement:"bottom-start"},U4e=({href:e,children:t})=>e?(0,ce.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function G4e({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,Or.useState)(null),[c,u]=(0,Or.useState)(!1),[p,m]=(0,Or.useState)(!1);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Oe.ToolbarItem,{ref:s,children:d=>(0,ce.jsx)(Oe.DropdownMenu,{icon:z1,label:(0,Be.__)("More"),toggleProps:{...d,description:(0,Be.__)("Displays more controls.")},popoverProps:j4e,children:({onClose:f})=>(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Oe.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Be._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ce.jsx)(Oe.MenuItem,{onClick:()=>{m(!0),f()},"aria-haspopup":"dialog",children:(0,Be.__)("Title text")})]})})}),c&&(0,ce.jsx)(Oe.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ce.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ce.jsx)(Oe.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Be.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,ce.jsx)(ce.Fragment,{children:o}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Oe.ExternalLink,{href:(0,Be.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Be.__)("Describe the purpose of the image.")}),(0,ce.jsx)("br",{}),(0,Be.__)("Leave empty if decorative.")]})})})}),p&&(0,ce.jsx)(Oe.Popover,{placement:"bottom-start",anchor:l,onClose:()=>m(!1),offset:13,variant:"toolbar",children:(0,ce.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ce.jsx)(Oe.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Be.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,ce.jsx)(ce.Fragment,{children:i}):(0,Or.createInterpolateElement)((0,Be.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ce.jsx)(Oe.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function SJ({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:n,insertBlocksAfter:i,onReplace:l,onSelectImage:s,onSelectURL:c,onUploadError:u,context:p,clientId:m,blockEditingMode:d,parentLayoutType:f,maxContentWidth:h}){let{url:g="",alt:v,align:b,id:_,href:k,rel:x,linkClass:w,linkDestination:S,title:T,width:N,height:D,aspectRatio:L,scale:P,focalPoint:E,linkTarget:M,sizeSlug:z,lightbox:j,metadata:q,isDecorative:G}=r,[W,V]=(0,Or.useState)(),[Q,Y]=(0,Or.useState)(null),[re,J]=(0,Or.useState)({}),[ie,ee]=(0,Or.useState)(0),te=(0,wg.useResizeObserver)(([ye])=>{if(!Q){let[Rt]=ye.borderBoxSize;J({width:Rt.inlineSize,height:Rt.blockSize})}ee(ye.target.offsetTop)}),de=(0,Or.useCallback)(()=>{ee(W?.offsetTop??0)},[W]),we=(0,wg.useMergeRefs)([V,te]),{allowResize:le=!0}=p,{image:me,attachmentResolutionError:xe}=(0,hc.useSelect)(ye=>{let Rt=_&&n?ye(w4.store).getEntityRecord("postType","attachment",_,{context:"view"}):null,il=_&&n?ye(w4.store).getResolutionError("getEntityRecord",["postType","attachment",_,{context:"view"}]):null;return{image:Rt,attachmentResolutionError:il}},[_,n]),{canInsertCover:ae,imageEditing:pe,imageSizes:se,maxWidth:Ne,editMediaEntity:Ie}=(0,hc.useSelect)(ye=>{let{getBlockRootClientId:Rt,canInsertBlockType:il,getSettings:Rn}=ye(Mt.store),C1=Rt(m),rp=Rn();return{imageEditing:rp.imageEditing,imageSizes:rp.imageSizes,maxWidth:rp.maxWidth,editMediaEntity:rp?.[F4e],canInsertCover:il("core/cover",C1)}},[m]),{getBlock:X,getSettings:Ce}=(0,hc.useSelect)(Mt.store),ue=(0,Or.useRef)(),ct=(0,Or.useCallback)(()=>ue.current?.focus(),[]),he=xJ({attributes:r,setAttributes:o,onClose:ct}),{replaceBlocks:ze,toggleSelection:Ct,__unstableMarkNextChangeAsNotPersistent:Ae}=(0,hc.useDispatch)(Mt.store),{createErrorNotice:Io,createSuccessNotice:Do}=(0,hc.useDispatch)(CJ.store),{editEntityRecord:Lo}=(0,hc.useDispatch)(w4.store),bo=(0,wg.useViewportMatch)("medium"),qo=["wide","full"].includes(b),[{loadedNaturalWidth:Xa,loadedNaturalHeight:ne},Ve]=(0,Or.useState)({}),[$e,Lt]=(0,Or.useState)(!1),tt=d==="default",kr=d==="contentOnly",Ja=le&&tt,ci=le&&tt&&!qo&&bo,rt=!!e||t,wa=se.filter(({slug:ye})=>me?.media_details?.sizes?.[ye]?.source_url).map(({name:ye,slug:Rt})=>({value:Rt,label:ye}));(0,Or.useEffect)(()=>{!_||!n||xe?.status===404&&(Ae(),o({id:void 0}))},[_,n,xe,o,Ae]);let Lm=n&&BR(_,g)&&!!Ce()[wJ],{naturalWidth:Ln,naturalHeight:ol}=(0,Or.useMemo)(()=>({naturalWidth:W?.naturalWidth||Xa||void 0,naturalHeight:W?.naturalHeight||ne||void 0}),[Xa,ne,W?.complete]);function tp(){Lt(!0);let ye=fp({attributes:{url:g}});ye!==void 0&&l(ye)}function Hs(ye){Lt(!1),Ve({loadedNaturalWidth:ye.target?.naturalWidth,loadedNaturalHeight:ye.target?.naturalHeight})}function Ul(ye){o(ye)}function Jc(ye){ye&&!pi?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!ye&&pi?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function _1(){pi?.enabled&&pi?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function De(ye){o({title:ye})}function bt(ye){o({alt:ye})}function sr(ye){o({isDecorative:ye||void 0,...ye&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let wr=ye=>{W&&W.style.setProperty("object-position",$d(ye))};function $r(ye){let Rt=me?.media_details?.sizes?.[ye]?.source_url;if(!Rt)return null;o({url:Rt,sizeSlug:ye})}function en(){let ye=Ce()[wJ];ye&&ye({url:g,onSuccess(Rt){s(Rt),Do((0,Be.__)("Image uploaded."),{type:"snackbar"})},onError(Rt){Io(Rt,{type:"snackbar"})}})}let Rm=n&&(_&&Ln&&ol&&pe&&!!Ie)&&!!he&&!kr&&!rt;function rh(){ze(m,(0,kg.switchToBlockType)(X(m),"core/cover"))}let al=(0,Oe.__experimentalUseCustomUnits)({availableUnits:["px"]}),[pi]=(0,Mt.useSettings)("lightbox"),oh=!!j&&j?.enabled!==pi?.enabled||pi?.allowEditing,Mm=!!j?.enabled||!j&&!!pi?.enabled,$2=Z(),js=(0,hc.useSelect)(ye=>{if(!n)return;let{getSelectedBlockStyleState:Rt}=U(ye(Mt.store));return Rt(m)},[m,n]),mi=!V4e(js),x1=Uh(js),t9=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"width"}),r9=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"height"}),k1=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"aspectRatio"}),Am=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"scale",styleKey:"objectFit"}),zm=ye=>{o(Gh({style:r.style,selectedState:js,hasSelectedStyleState:mi,nextDimensions:ye,dimensionKeyMap:{scale:"objectFit"}}))},ah=Ja&&(KL.includes(f)?(0,ce.jsx)(kJ,{panelId:m,value:{aspectRatio:k1,scale:Am},onChange:({aspectRatio:ye})=>{zm({aspectRatio:ye,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},x1):(0,ce.jsx)(kJ,{panelId:m,value:{width:t9,height:r9,scale:Am,aspectRatio:k1},onChange:({width:ye,height:Rt,scale:il,aspectRatio:Rn})=>{zm({width:!ye&&Rt?"auto":ye,height:Rt,aspectRatio:Rn,scale:il})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:H4e,unitsOptions:al,tools:qo?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},x1)),o9=()=>{o({lightbox:void 0}),$r(Eb)},or=q?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:nl=!1,lockHrefControls:eu=!1,lockAltControls:Us=!1,lockAltControlsMessage:a9,lockTitleControls:Vm=!1,lockTitleControlsMessage:eF,hideCaptionControls:nve=!1}=(0,hc.useSelect)(ye=>{if(!n)return{};let{url:Rt,alt:il,title:Rn,caption:C1}=q?.bindings||{},rp=!!p["pattern/overrides"],n9=(0,kg.getBlockBindingsSource)(Rt?.source),nh=(0,kg.getBlockBindingsSource)(il?.source),op=(0,kg.getBlockBindingsSource)(Rn?.source);return{lockUrlControls:!!Rt&&!n9?.canUserEditValue?.({select:ye,context:p,args:Rt?.args}),lockHrefControls:rp||or,hideCaptionControls:!!C1,lockAltControls:!!il&&!nh?.canUserEditValue?.({select:ye,context:p,args:il?.args}),lockAltControlsMessage:nh?.label?(0,Be.sprintf)((0,Be.__)("Connected to %s"),nh.label):(0,Be.__)("Connected to dynamic data"),lockTitleControls:!!Rn&&!op?.canUserEditValue?.({select:ye,context:p,args:Rn?.args}),lockTitleControlsMessage:op?.label?(0,Be.sprintf)((0,Be.__)("Connected to %s"),op.label):(0,Be.__)("Connected to dynamic data")}},[or,p,n,q?.bindings]),tF=n&&!eu&&!nl&&!G,rF=n&&ae&&!kr,ive=tF||Rm||rF,oF=n&&!nl&&(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsx)(Mt.BlockControls,{group:kr?"inline":"other",children:(0,ce.jsx)(Mt.MediaReplaceFlow,{mediaId:_,mediaURL:g,allowedTypes:Ap,onSelect:s,onSelectURL:c,onError:u,name:g?(0,Be.__)("Replace"):(0,Be.__)("Add image"),onReset:()=>s(void 0),variant:"toolbar"})})}),lve=window?.__experimentalContentOnlyInspectorFields,aF=(0,ce.jsxs)(ce.Fragment,{children:[ive&&(0,ce.jsxs)(Mt.BlockControls,{group:"block",children:[tF&&(0,ce.jsx)(Mt.__experimentalImageURLInputUI,{url:k||"",onChangeUrl:Ul,linkDestination:S,mediaUrl:me&&me.source_url||g,mediaLink:me&&me.link,linkTarget:M,linkClass:w,rel:x,showLightboxSetting:oh,lightboxEnabled:Mm,onSetLightbox:Jc,resetLightbox:_1}),Rm&&(0,ce.jsx)(Oe.ToolbarButton,{ref:ue,onClick:he,"aria-haspopup":"dialog",icon:Zm,label:(0,Be.__)("Crop")}),rF&&(0,ce.jsx)(Oe.ToolbarButton,{icon:eE,label:(0,Be.__)("Add text over image"),onClick:rh})]}),Lm&&(0,ce.jsx)(Mt.BlockControls,{children:(0,ce.jsx)(Oe.ToolbarGroup,{children:(0,ce.jsx)(Oe.ToolbarButton,{onClick:en,icon:ou,label:(0,Be.__)("Upload to Media Library")})})}),kr&&(0,ce.jsx)(Mt.BlockControls,{group:"block",children:(0,ce.jsx)(G4e,{attributes:r,setAttributes:o,lockAltControls:Us,lockAltControlsMessage:a9,lockTitleControls:Vm,lockTitleControlsMessage:eF})}),!lve&&n&&(0,ce.jsx)(Mt.InspectorControls,{group:"content",children:(0,ce.jsxs)(Oe.__experimentalToolsPanel,{label:(0,Be.__)("Media"),resetAll:()=>{s(void 0),o({isDecorative:!1})},dropdownMenuProps:$2,children:[!nl&&(0,ce.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Image"),hasValue:()=>!!g,onDeselect:()=>s(void 0),isShownByDefault:!0,children:(0,ce.jsx)(y4,{mediaId:_,mediaUrl:g,alt:v,filename:me?.media_details?.sizes?.full?.file||me?.slug||(0,PR.getFilename)(g),allowedTypes:Ap,onSelect:s,onSelectURL:c,onError:u,onReset:()=>s(void 0),isUploading:rt,emptyLabel:(0,Be.__)("Add image")})}),!G&&(0,ce.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>o({alt:void 0}),children:(0,ce.jsx)(Oe.TextareaControl,{label:(0,Be.__)("Alternative text"),value:v||"",onChange:bt,readOnly:Us,help:Us?(0,ce.jsx)(ce.Fragment,{children:a9}):(0,ce.jsx)(Oe.ExternalLink,{href:(0,Be.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Be.__)("Describe the purpose of the image.")})})}),!Us&&!Mm&&(0,ce.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!G,onDeselect:()=>o({isDecorative:!1}),children:(0,ce.jsx)(Oe.CheckboxControl,{label:(0,Be.__)("Mark as decorative"),checked:!!G,onChange:sr,help:(0,Be.__)("Hidden from assistive technologies.")})})]})}),(0,ce.jsxs)(Mt.InspectorControls,{group:"dimensions",resetAllFilter:ye=>Wh({attributes:ye,selectedState:js,hasSelectedStyleState:mi,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[ah,!mi&&g&&P&&(0,ce.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!E,onDeselect:()=>o({focalPoint:void 0}),panelId:m,children:(0,ce.jsx)(Oe.FocalPointPicker,{label:(0,Be.__)("Focal point"),url:g,value:E,onDragStart:wr,onDrag:wr,onChange:ye=>o({focalPoint:ye})})})]}),!!wa.length&&(0,ce.jsx)(Mt.InspectorControls,{children:(0,ce.jsx)(Oe.__experimentalToolsPanel,{label:(0,Be.__)("Settings"),resetAll:o9,dropdownMenuProps:$2,children:(0,ce.jsx)(O4e,{value:z,defaultValue:Eb,onChange:$r,options:wa})})}),(0,ce.jsx)(Mt.InspectorControls,{group:"advanced",children:(0,ce.jsx)(Oe.TextControl,{label:(0,Be.__)("Title attribute"),value:T||"",onChange:De,readOnly:Vm,help:Vm?(0,ce.jsx)(ce.Fragment,{children:eF}):(0,Or.createInterpolateElement)((0,Be.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ce.jsx)(Oe.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),q2=(0,PR.getFilename)(g),w1;G?w1=q2?(0,Be.sprintf)((0,Be.__)("This image has been marked as decorative; its file name is %s"),q2):(0,Be.__)("This image has been marked as decorative."):v?w1=v:q2?w1=(0,Be.sprintf)((0,Be.__)("This image has an empty alt attribute; its file name is %s"),q2):w1=(0,Be.__)("This image has an empty alt attribute");let nF=(0,Mt.__experimentalUseBorderProps)(r),sve=(0,Mt.__experimentalGetShadowClassesAndStyles)(r),{postType:cve,postId:iF,queryId:uve}=p,pve=Number.isFinite(uve),mve=(0,ce.jsx)(U4e,{href:k,children:e&&$e?(0,ce.jsx)(Oe.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ce.jsx)(Oe.Spinner,{})}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("img",{src:e||g,alt:w1,onError:tp,onLoad:Hs,ref:we,className:nF.className,width:Ln,height:ol,style:{aspectRatio:L,...Q?{width:re.width+Q.width,height:re.height+Q.height}:(()=>{let ye={};return N==="auto"?ye.width="auto":N!=null&&(ye.width=typeof N=="number"?`${N}px`:N),D==="auto"||D===void 0||D===null?ye.height="auto":ye.height=typeof D=="number"?`${D}px`:D,ye})(),objectFit:P,objectPosition:E&&P?$d(E):void 0,...nF.style,...sve.style}}),rt&&(0,ce.jsx)(Oe.Spinner,{})]})}),lF;if(ci&&n&&!rt&&!KL.includes(f)){let ye=L&&uQ(L),Rt=re.width/re.height,il=Ln/ol,Rn=ye||Rt||il||1,C1=Ln<ol?mc:mc*Rn,rp=ol<Ln?mc:mc/Rn,n9=Ne*2.5,nh=h||n9,op=!1,Z2=!1;b==="center"?(op=!0,Z2=!0):(0,Be.isRTL)()?b==="left"?op=!0:Z2=!0:b==="right"?Z2=!0:op=!0,lF=(0,ce.jsx)(Oe.ResizableBox,{ref:de,style:{position:"absolute",inset:`${ie}px 0 0 0`},size:re,minWidth:C1,maxWidth:nh,minHeight:rp,maxHeight:nh/Rn,lockAspectRatio:Rn,enable:{top:!1,right:op,bottom:!0,left:Z2},onResizeStart:()=>{Ct(!1)},onResize:(fve,hve,i9,K2)=>{Y(K2)},onResizeStop:(fve,hve,i9,K2)=>{if(Ct(!0),Y(null),J(sF=>({width:sF.width+K2.width,height:sF.height+K2.height})),h&&Ln>=h&&Math.abs(i9.offsetWidth-h)<10){o({width:void 0,height:void 0});return}o({width:`${i9.offsetWidth}px`,height:"auto",aspectRatio:Rn===il?void 0:String(Rn)})},resizeRatio:b==="center"?2:1})}if(!g&&!e)return(0,ce.jsxs)(ce.Fragment,{children:[oF,aF]});let dve=()=>{Lo("postType",cve,iF,{featured_media:_}),Do((0,Be.__)("Post featured image updated."),{type:"snackbar"})};return(0,ce.jsxs)(ce.Fragment,{children:[oF,aF,!pve&&iF&&_?(0,ce.jsx)(Mt.BlockSettingsMenuControls,{children:({canEdit:ye,selectedClientIds:Rt})=>ye&&Rt.length===1&&m===Rt[0]&&(0,ce.jsx)(Oe.MenuItem,{onClick:dve,children:(0,Be.__)("Set as featured image")})}):null,mve,lF,!G&&(0,ce.jsx)(Mo,{attributes:r,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,Be.__)("Image caption text"),showToolbarButton:n&&(tt||kr)&&!nve})]})}var TJ=a(H(),1),PJ=a(ge(),1),BJ=a(y(),1);function EJ(){let[e,{width:t}]=(0,PJ.useResizeObserver)(),r=(0,TJ.useRef)();return[(0,BJ.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 xs=a(y(),1),W4e=(e,t)=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([o])=>["alt","id","link","caption"].includes(o)));return r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,r},BR=(e,t)=>t&&!e&&!(0,Cg.isBlobURL)(t);function NJ(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function $4e({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:p,id:m,width:d,height:f,sizeSlug:h,aspectRatio:g,scale:v,align:b,metadata:_}=e,[k,x]=(0,Up.useState)(e.blob),w=(0,Up.useRef)(),S=c?.type||c?.default?.type,T=!S||S!=="flex"&&S!=="grid",[N,D]=EJ(),[L,{width:P}]=(0,LJ.useResizeObserver)(),E=P&&P<160,M=(0,Up.useRef)();(0,Up.useEffect)(()=>{M.current=p},[p]);let{__unstableMarkNextChangeAsNotPersistent:z,replaceBlock:j}=(0,Yd.useDispatch)(vn.store);(0,Up.useEffect)(()=>{["wide","full"].includes(b)&&(z(),t({width:void 0,height:void 0}))},[z,b,t]);let{getSettings:q,getBlockRootClientId:G,getBlockName:W,canInsertBlockType:V}=(0,Yd.useSelect)(vn.store),Q=(0,vn.useBlockEditingMode)(),{createErrorNotice:Y}=(0,Yd.useDispatch)(DJ.store);function re(ue){Y(ue,{type:"snackbar"}),x(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function J(ue){ue.length===1&&x((0,Cg.createBlobURL)(ue[0]))}function ie(ue){let ct=w.current?.ownerDocument.defaultView;if(ue.every(he=>he instanceof ct.File)){let he=ue,ze=G(s);he.some(Ae=>!YL(Ae))&&Y((0,gc.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ct=he.filter(Ae=>YL(Ae)).map(Ae=>(0,Hb.createBlock)("core/image",{blob:(0,Cg.createBlobURL)(Ae)}));if(W(ze)==="core/gallery")j(s,Ct);else if(V("core/gallery",ze)){let Ae=(0,Hb.createBlock)("core/gallery",{},Ct);j(s,Ae)}}}function ee(ue){if(Array.isArray(ue)){ie(ue);return}if(!ue||!ue.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),x();return}if((0,Cg.isBlobURL)(ue.url)){x(ue.url);return}let{imageDefaultSize:ct}=q(),he=Eb;h&&NJ(ue,h)?he=h:NJ(ue,ct)&&(he=ct);let ze=W4e(ue,he);if(typeof ze.caption=="string"&&ze.caption.includes(`
`)&&(ze.caption=ze.caption.replace(/\n/g,"<br>")),M.current&&!ze.caption){let{caption:Do,...Lo}=ze;ze=Lo}let Ct;(!ue.id||ue.id!==m)&&(Ct={sizeSlug:he});let Ae=e.linkDestination;if(!Ae)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Wd){case"file":case cg:Ae=cg;break;case"post":case ug:Ae=ug;break;case ZL:Ae=ZL;break;case Wd:Ae=Wd;break}let Io;switch(Ae){case cg:Io=ue.url;break;case ug:Io=ue.link;break}ze.href=Io,t({blob:void 0,...ze,...Ct,linkDestination:Ae}),x()}function te(ue){let ct=(0,C4.getProtocol)(ue)?ue:(0,C4.prependHTTPS)(ue);ct!==u&&(t({blob:void 0,url:ct,id:void 0,sizeSlug:q().imageDefaultSize}),x())}Ws({url:k,allowedTypes:Ap,onChange:ee,onError:re});let we=BR(m,u)?u:void 0,le=(0,Yd.useSelect)(ue=>!window.__clientSideMediaProcessing&&!window.__heicUploadSupport||!m?!1:ue(RJ.store).isUploadingById(m),[m]),me=!!u&&(0,xs.jsx)("img",{alt:(0,gc.__)("Edit image"),title:(0,gc.__)("Edit image"),className:"edit-image-preview",src:u}),xe=(0,vn.__experimentalUseBorderProps)(e),ae=(0,vn.__experimentalGetShadowClassesAndStyles)(e),pe=C(o,{"is-transient":!!k||le,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!xe.className||xe.style&&Object.keys(xe.style).length>0}),se=(0,vn.useBlockProps)({ref:w,className:pe}),{lockUrlControls:Ne=!1,lockUrlControlsMessage:Ie}=(0,Yd.useSelect)(ue=>{if(!r)return{};let ct=(0,Hb.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!ct?.canUserEditValue?.({select:ue,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:ct?.label?(0,gc.sprintf)((0,gc.__)("Connected to %s"),ct.label):(0,gc.__)("Connected to dynamic data")}},[l,r,_?.bindings?.url]),X=f==="auto"?void 0:f;return(0,xs.jsxs)(xs.Fragment,{children:[(0,xs.jsxs)("figure",{...se,children:[(0,xs.jsx)(SJ,{temporaryURL:k,isSideloading:le,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:ee,onSelectURL:te,onUploadError:re,context:l,clientId:s,blockEditingMode:Q,parentLayoutType:S,maxContentWidth:D}),(0,xs.jsx)(vn.MediaPlaceholder,{icon:(0,xs.jsx)(vn.BlockIcon,{icon:sp}),onSelect:ee,onSelectURL:te,onFilesPreUpload:J,onError:re,placeholder:ue=>(0,xs.jsxs)(IJ.Placeholder,{className:C("block-editor-media-placeholder",{[xe.className]:!!xe.className&&!r}),icon:!E&&(Ne?uE:sp),withIllustration:!r||E,label:!E&&(0,gc.__)("Image"),instructions:!Ne&&!E&&(0,gc.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&X)&&g?g:void 0,width:X&&g?"100%":d,height:d&&g?"100%":X,objectFit:v,...xe.style,...ae.style},children:[Ne&&!E&&Ie,!Ne&&!E&&ue,L]}),allowedTypes:Ap,handleUpload:ue=>ue.length===1,value:{id:m,src:we},mediaPreview:me,disableMediaButtons:k||u})]}),r&&T&&N]})}var MJ=$4e;var S4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","navigationButtonType","postId","postType","queryId","galleryId"],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"},isDecorative:{type:"boolean",default:!1}},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:{dimensions:".wp-block-image img, .wp-block-image .components-placeholder",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 ks=a(B(),1);var Cu=a(y(),1);function AJ({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:v,isDecorative:b,metadata:{bindings:_={}}={}}=e,k=l||void 0,x=(0,ks.__experimentalGetBorderClassesAndStyles)(e),w=(0,ks.__experimentalGetShadowClassesAndStyles)(e),S=C({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),T=C(x.className,{[`wp-image-${f}`]:!!f}),N=(0,Cu.jsx)("img",{src:t,alt:r,className:T||void 0,style:(()=>{let P={...x.style,...w.style,aspectRatio:p,objectFit:m,objectPosition:d&&m?$d(d):void 0};return(c!==void 0||u!==void 0)&&(c==="auto"?P.width="auto":c!=null&&(P.width=typeof c=="number"?`${c}px`:c),u==="auto"||u===void 0||u===null?P.height="auto":P.height=typeof u=="number"?`${u}px`:u),P})(),title:v,role:b?"none":void 0}),D=!ks.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",L=(0,Cu.jsxs)(Cu.Fragment,{children:[i?(0,Cu.jsx)("a",{className:s,href:i,target:h,rel:k,children:N}):N,D&&(0,Cu.jsx)(ks.RichText.Content,{className:(0,ks.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Cu.jsx)("figure",{...ks.useBlockProps.save({className:S}),children:L})}var T4=a(Mr(),1),Sg=a($(),1),FJ=a(F(),1),HJ=a(oe(),1);function Z4e(e){let{align:t,anchor:r,className:o,style:n}=e,i=n?.spacing?.margin;return{...t&&{align:t},...r&&{anchor:r},...o&&{className:o},...i&&{style:{spacing:{margin:i}}}}}function zJ(e,t){if(!e||!t?.split(/[?#]/)[0]?.toLowerCase().endsWith(".gif"))return null;let o=(0,FJ.select)(HJ.store).getEntityRecord("postType","attachment",e,{context:"view"}),n=o?.media_details;if(!n?.animated_video||!o?.source_url)return null;let i=o.source_url.slice(0,o.source_url.lastIndexOf("/")+1);return{src:i+n.animated_video,poster:n.animated_video_poster?i+n.animated_video_poster:void 0,width:n.width,height:n.height}}function K4e(e,{shortcode:t}){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=t.content;let o=r.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}function ER(e,t){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=e;let{firstElementChild:o}=r;if(o&&o.nodeName==="A")return o.getAttribute(t)||void 0}var VJ={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function OJ(e){return e&&/^\d+$/.test(e)?`${e}px`:void 0}var Y4e=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...VJ,a:{attributes:["href","rel","target"],classes:["*"],children:VJ},figcaption:{children:e}}}}),Q4e={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:Y4e,transform:e=>{let t=e.querySelector("img"),r=e.className+" "+t.className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(r),n=e.id===""?void 0:e.id,i=o?o[1]:void 0,l=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(r),s=l?Number(l[1]):void 0,c=e.querySelector("a"),u=c&&c.href?"custom":void 0,p=c&&c.href?c.href:void 0,m=c&&c.rel?c.rel:void 0,d=c&&c.className?c.className:void 0,f=OJ(t.getAttribute("width")),h=OJ(t.getAttribute("height")),g=parseInt(f,10),v=parseInt(h,10),b=g&&v?String(g/v):void 0,_=f||(h?"auto":void 0),k=f?"auto":h,x=(0,Sg.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:s,linkDestination:u,href:p,rel:m,linkClass:d,anchor:n,width:_,height:k,aspectRatio:b});return(0,T4.isBlobURL)(x.url)&&(x.blob=x.url,delete x.url),(0,Sg.createBlock)("core/image",x)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,Sg.createBlock)("core/image",{blob:(0,T4.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:K4e},href:{shortcode:(e,{shortcode:t})=>ER(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>ER(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>ER(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","")}}}],to:[{type:"block",blocks:["core/video"],isMatch:({id:e,url:t})=>!!zJ(e,t),transform(e){let{id:t,url:r,caption:o}=e,n=zJ(t,r);return(0,Sg.createBlock)("core/video",{...Z4e(e),id:t,src:n.src,poster:n.poster,caption:o,controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0,width:n.width,height:n.height})}}]},jJ=Q4e;var{fieldsKey:X4e,formKey:J4e}=U(UJ.privateApis),{name:GJ}=S4,P4={icon:sp,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Gp.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){let{caption:o,alt:n,url:i}=e;return i?n?n+(o?". "+o:""):o||"":(0,Gp.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:jJ,edit:MJ,save:AJ,deprecated:uJ};window.__experimentalContentOnlyInspectorFields&&(P4[X4e]=[{id:"image",label:(0,Gp.__)("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,Gp.__)("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}),isVisible:e=>!e.isDecorative},{id:"caption",label:(0,Gp.__)("Caption"),type:"text",Edit:"rich-text",isVisible:e=>!e.isDecorative},{id:"alt",label:(0,Gp.__)("Alt text"),type:"text",isVisible:e=>!e.isDecorative},{id:"isDecorative",label:(0,Gp.__)("Mark as decorative"),type:"boolean",setValue:({value:e})=>({isDecorative:e||void 0,...e&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}],P4[J4e]={fields:["image","link","caption","alt","isDecorative"]});var eCe=()=>R({name:GJ,metadata:S4,settings:P4});var IR={};K(IR,{init:()=>nCe,metadata:()=>B4,name:()=>KJ,settings:()=>YJ});var B4={$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 E4=a(B(),1),Aa=a(O(),1),Ma=a(I(),1),WJ=a(ap(),1),$J=a(ge(),1);var so=a(y(),1),rCe=1,oCe=100;function qJ({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:n,displayDate:i,displayContent:l}=e,s=Z(),{content:c,status:u,error:p}=(0,WJ.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),m=(0,$J.useDisabled)(),d=(0,E4.useBlockProps)({ref:m});return(0,so.jsxs)(so.Fragment,{children:[(0,so.jsx)(E4.InspectorControls,{children:(0,so.jsxs)(Aa.__experimentalToolsPanel,{label:(0,Ma.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,so.jsx)(Aa.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Ma.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,so.jsx)(Aa.ToggleControl,{label:(0,Ma.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,so.jsx)(Aa.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Ma.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,so.jsx)(Aa.ToggleControl,{label:(0,Ma.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,so.jsx)(Aa.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,Ma.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,so.jsx)(Aa.SelectControl,{label:(0,Ma.__)("Display content"),value:l,options:[{label:(0,Ma.__)("No content"),value:"none"},{label:(0,Ma.__)("Excerpt"),value:"excerpt"},{label:(0,Ma.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,so.jsx)(Aa.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,Ma.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,so.jsx)(Aa.RangeControl,{label:(0,Ma.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:rCe,max:oCe,required:!0})})]})}),u==="loading"&&(0,so.jsx)("div",{...d,children:(0,so.jsx)(Aa.Spinner,{})}),u==="error"&&(0,so.jsx)("div",{...d,children:(0,so.jsx)("p",{children:(0,Ma.sprintf)((0,Ma.__)("Error: %s"),p)})}),u==="success"&&(0,so.jsx)(_o,{wrapperProps:d,html:c})]})}var aCe={attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,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}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},ZJ=[aCe];var{name:KJ}=B4,YJ={icon:H1,example:{},edit:qJ,deprecated:ZJ},nCe=()=>R({name:KJ,metadata:B4,settings:YJ});var RR={};K(RR,{init:()=>gCe,metadata:()=>Qd,name:()=>aee,settings:()=>nee});var Qd={$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},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,layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!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 lCe={anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,layout:!0,spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!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}},sCe={postLayout:{type:"string",default:"list"},columns:{type:"number",default:3}},QJ=e=>!e.categories||typeof e.categories!="string"?e:{...e,categories:[{id:Number(e.categories)}]},cCe=e=>{let{postLayout:t,columns:r,...o}=e;return t?{...o,layout:{type:t==="grid"?"grid":"default",...t==="grid"&&r&&{columnCount:r}}}:e},XJ=[{attributes:{...Qd.attributes,...sCe,categories:{type:["array","string"]}},supports:lCe,migrate:e=>cCe(QJ(e)),isEligible:({postLayout:e})=>e,save:()=>null},{attributes:{...Qd.attributes,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:QJ,isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var Xe=a(O(),1),Ge=a(I(),1),Tg=a(Bw(),1),vc=a(B(),1),jb=a(F(),1);var DR=a(oe(),1),tee=a(Sr(),1),ree=a(ge(),1),oee=a(H(),1);var JJ=10,eee=100,N4=55;var Ee=a(y(),1),uCe={per_page:-1,_fields:"id,name",context:"view"},pCe={per_page:-1,has_published_posts:["post"],context:"view"},mCe=[{value:"none",icon:V9,label:(0,Ge.__)("None")},{value:"left",icon:hE,label:(0,Ge.__)("Left")},{value:"center",icon:dE,label:(0,Ge.__)("Center")},{value:"right",icon:vE,label:(0,Ge.__)("Right")}];function dCe(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 fCe(e){return e._embedded?.author?.[0]}function hCe({attributes:e,setAttributes:t}){let{postsToShow:r,order:o,orderBy:n,categories:i,selectedAuthor:l,displayFeaturedImage:s,displayPostContentRadio:c,displayPostContent:u,displayPostDate:p,displayAuthor:m,excerptLength:d,featuredImageAlign:f,featuredImageSizeSlug:h,featuredImageSizeWidth:g,featuredImageSizeHeight:v,addLinkToFeaturedImage:b}=e,{imageSizes:_,defaultImageWidth:k,defaultImageHeight:x,categoriesList:w,authorList:S}=(0,jb.useSelect)(P=>{let{getEntityRecords:E,getUsers:M}=P(DR.store),z=P(vc.store).getSettings();return{defaultImageWidth:z.imageDimensions?.[h]?.width??0,defaultImageHeight:z.imageDimensions?.[h]?.height??0,imageSizes:z.imageSizes,categoriesList:E("taxonomy","category",uCe),authorList:M(pCe)}},[h]),T=Z(),N=_.filter(({slug:P})=>P!=="full").map(({name:P,slug:E})=>({value:E,label:P})),D=w?.reduce((P,E)=>(P[E.name]=E,P),{})??{},L=P=>{if(P.some(z=>typeof z=="string"&&!D[z]))return;let M=P.map(z=>typeof z=="string"?D[z]:z);if(M.includes(null))return!1;t({categories:M})};return(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:N4}),dropdownMenuProps:T,children:[(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Ge.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display post content"),checked:u,onChange:P=>t({displayPostContent:P})})}),u&&(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>c!=="excerpt",label:(0,Ge.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.RadioControl,{label:(0,Ge.__)("Content length"),selected:c,options:[{label:(0,Ge.__)("Excerpt"),value:"excerpt"},{label:(0,Ge.__)("Full post"),value:"full_post"}],onChange:P=>t({displayPostContentRadio:P})})}),u&&c==="excerpt"&&(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>d!==N4,label:(0,Ge.__)("Max number of words"),onDeselect:()=>t({excerptLength:N4}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.RangeControl,{label:(0,Ge.__)("Max number of words"),value:d,onChange:P=>t({excerptLength:P}),min:JJ,max:eee})})]}),(0,Ee.jsxs)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:T,children:[(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Ge.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display author name"),checked:m,onChange:P=>t({displayAuthor:P})})}),(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ge.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display post date"),checked:p,onChange:P=>t({displayPostDate:P})})})]}),(0,Ee.jsxs)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:T,children:[(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ge.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display featured image"),checked:s,onChange:P=>t({displayFeaturedImage:P})})}),s&&(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>h!=="thumbnail"||g!==null||v!==null,label:(0,Ge.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,Ee.jsx)(vc.__experimentalImageSizeControl,{onChange:P=>{let E={};P.hasOwnProperty("width")&&(E.featuredImageSizeWidth=P.width),P.hasOwnProperty("height")&&(E.featuredImageSizeHeight=P.height),t(E)},slug:h,width:g,height:v,imageWidth:k,imageHeight:x,imageSizeOptions:N,imageSizeHelp:(0,Ge.__)("Select the size of the source image."),onChangeImage:P=>t({featuredImageSizeSlug:P,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,Ge.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",label:(0,Ge.__)("Image alignment"),value:f||"none",onChange:P=>t({featuredImageAlign:P!=="none"?P:void 0}),children:mCe.map(({value:P,icon:E,label:M})=>(0,Ee.jsx)(Xe.__experimentalToggleGroupControlOptionIcon,{value:P,icon:E,label:M},P))})}),(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,Ge.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Add link to featured image"),checked:b,onChange:P=>t({addLinkToFeaturedImage:P})})})]})]}),(0,Ee.jsx)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),dropdownMenuProps:T,children:(0,Ee.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>o!=="desc"||n!=="date"||r!==5||i?.length>0||!!l,label:(0,Ge.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,Ee.jsx)(Xe.QueryControls,{order:o,orderBy:n,numberOfItems:r,onOrderChange:P=>t({order:P}),onOrderByChange:P=>t({orderBy:P}),onNumberOfItemsChange:P=>t({postsToShow:P}),categorySuggestions:D,onCategoryChange:L,selectedCategories:i,onAuthorChange:P=>t({selectedAuthor:P!==""?Number(P):void 0}),authorList:S??[],selectedAuthorId:l})})})]})}function LR({attributes:e,setAttributes:t,__unstableLayoutClassNames:r}){let o=(0,ree.useInstanceId)(LR),{postsToShow:n,order:i,orderBy:l,categories:s,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:p,displayPostContent:m,displayPostDate:d,displayAuthor:f,layout:h,postLayout:g,columns:v,excerptLength:b,featuredImageAlign:_,featuredImageSizeSlug:k,featuredImageSizeWidth:x,featuredImageSizeHeight:w,addLinkToFeaturedImage:S}=e,{type:T,minimumColumnWidth:N}=h||{},D=T||(g==="grid"?"grid":"default"),L=h?.columnCount??(T?void 0:v)??3,{latestPosts:P}=(0,jb.useSelect)(Y=>{let{getEntityRecords:re}=Y(DR.store),J=s&&s.length>0?s.map(ee=>ee.id):[],ie=Object.fromEntries(Object.entries({categories:J,author:c,order:i,orderby:l,per_page:n,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,ee])=>typeof ee<"u"));return{latestPosts:re("postType","post",ie)}},[n,i,l,s,c]),{createWarningNotice:E}=(0,jb.useDispatch)(tee.store),M=Y=>{Y.preventDefault(),E((0,Ge.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${o}`,type:"snackbar"})},z=!!P?.length,j=(0,Ee.jsx)(vc.InspectorControls,{children:(0,Ee.jsx)(hCe,{attributes:e,setAttributes:t})}),q=(0,vc.useBlockProps)({className:C(r,{"wp-block-latest-posts__list":!0,"is-grid":D==="grid","has-dates":d,"has-author":f,[`columns-${L}`]:D==="grid"&&L,"has-native-responsive-grid":D==="grid"&&L&&N})});if(!z)return(0,Ee.jsxs)("div",{...q,children:[j,(0,Ee.jsx)(Xe.Placeholder,{icon:lv,label:(0,Ge.__)("Latest Posts"),children:Array.isArray(P)?(0,Ge.__)("No posts found."):(0,Ee.jsx)(Xe.Spinner,{})})]});let G=P.length>n?P.slice(0,n):P,W=Y=>t({layout:{...h,...Y},postLayout:void 0,columns:void 0}),V=[{icon:ql,title:(0,Ge._x)("List view","Latest posts block display setting"),onClick:()=>W({type:"default"}),isActive:D==="default"||D==="constrained"},{icon:$l,title:(0,Ge._x)("Grid view","Latest posts block display setting"),onClick:()=>W({type:"grid",columnCount:L}),isActive:D==="grid"}],Q=(0,Tg.getSettings)().formats.date;return(0,Ee.jsxs)(Ee.Fragment,{children:[j,(0,Ee.jsx)(vc.BlockControls,{children:(0,Ee.jsx)(Xe.ToolbarGroup,{controls:V})}),(0,Ee.jsx)("ul",{...q,children:G.map(Y=>{let re=Y.title.rendered.trim(),J=Y.excerpt.rendered,ie=fCe(Y),ee=document.createElement("div");ee.innerHTML=J,J=ee.textContent||ee.innerText||"";let{url:te,alt:de}=dCe(Y,k),we=C({"wp-block-latest-posts__featured-image":!0,[`align${_}`]:!!_}),le=u&&te,me=le&&(0,Ee.jsx)("img",{src:te,alt:de,style:{maxWidth:x,maxHeight:w}}),ae=b<J.trim().split(" ").length&&Y.excerpt.raw===""?(0,Ee.jsxs)(Ee.Fragment,{children:[J.trim().split(" ",b).join(" "),(0,oee.createInterpolateElement)((0,Ge.sprintf)((0,Ge.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),re||(0,Ge.__)("(no title)")),{a:(0,Ee.jsx)("a",{className:"wp-block-latest-posts__read-more",href:Y.link,rel:"noopener",onClick:M}),span:(0,Ee.jsx)("span",{className:"screen-reader-text"})})]}):J;return(0,Ee.jsxs)("li",{children:[le&&(0,Ee.jsx)("div",{className:we,children:S?(0,Ee.jsx)("a",{href:Y.link,onClick:M,children:me}):me}),(0,Ee.jsx)("a",{className:"wp-block-latest-posts__post-title",href:Y.link,dangerouslySetInnerHTML:re?{__html:re}:void 0,onClick:M,children:re?null:(0,Ge.__)("(no title)")}),f&&ie&&(0,Ee.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Ge.sprintf)((0,Ge.__)("by %s"),ie.name)}),d&&Y.date_gmt&&(0,Ee.jsx)("time",{dateTime:(0,Tg.format)("c",Y.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,Tg.dateI18n)(Q,Y.date_gmt)}),m&&p==="excerpt"&&(0,Ee.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:ae}),m&&p==="full_post"&&(0,Ee.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:Y.content.rendered.trim()}})]},Y.id)})})]})}var{name:aee}=Qd,nee={icon:dv,example:{},edit:LR,deprecated:XJ},gCe=()=>R({name:aee,metadata:Qd,settings:nee});var VR={};K(VR,{init:()=>ICe,metadata:()=>M4,name:()=>yee,settings:()=>_ee});var Eg=a(I(),1);var ws=a(B(),1);var Pg=a($(),1),I4={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function MR(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&&I4[t]?I4[t]:void 0},o=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,Pg.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let p={content:u.join("").trim()},m=[MR(l)];return(0,Pg.createBlock)("core/list-item",p,m)});return(0,Pg.createBlock)("core/list",r,o)}function D4(e){let{values:t,start:r,reversed:o,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),o&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,Pg.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function iee(e){let{type:t}=e;return t&&I4[t]?{...e,type:I4[t]}:e}var Su=a(y(),1),vCe={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:o,reversed:n,start:i}=e;return(0,Su.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Su.jsx)(ws.RichText.Content,{value:r,multiline:"li"})})},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},bCe={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:o,reversed:n,start:i}=e;return(0,Su.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Su.jsx)(ws.RichText.Content,{value:r,multiline:"li"})})},migrate:D4},yCe={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:o,start:n}=e;return(0,Su.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({type:r,reversed:o,start:n}),children:(0,Su.jsx)(ws.InnerBlocks.Content,{})})},migrate:iee},_Ce={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:o,start:n}=e;return(0,Su.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Su.jsx)(ws.InnerBlocks.Content,{})})}},lee=[_Ce,yCe,bCe,vCe];var Ss=a(B(),1),L4=a(O(),1),Wp=a(F(),1),Cs=a(I(),1);var dee=a($(),1),R4=a(H(),1),fee=a(vd(),1);var Ai=a(I(),1),see=a(B(),1),Cl=a(O(),1);var bc=a(y(),1),xCe=[{label:(0,Ai.__)("Numbers"),value:"decimal"},{label:(0,Ai.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Ai.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Ai.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Ai.__)("Lowercase Roman numerals"),value:"lower-roman"}],kCe=({setAttributes:e,reversed:t,start:r,type:o})=>{let n=Z();return(0,bc.jsx)(see.InspectorControls,{children:(0,bc.jsxs)(Cl.__experimentalToolsPanel,{label:(0,Ai.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,bc.jsx)(Cl.__experimentalToolsPanelItem,{label:(0,Ai.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,bc.jsx)(Cl.SelectControl,{label:(0,Ai.__)("List style"),options:xCe,value:o||"decimal",onChange:i=>e({type:i})})}),(0,bc.jsx)(Cl.__experimentalToolsPanelItem,{label:(0,Ai.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,bc.jsx)(Cl.TextControl,{label:(0,Ai.__)("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,bc.jsx)(Cl.__experimentalToolsPanelItem,{label:(0,Ai.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,bc.jsx)(Cl.ToggleControl,{label:(0,Ai.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},cee=kCe;var uee=a(H(),1),pee=a(y(),1);function wCe(e,t){let{ordered:r,...o}=e;return(0,pee.jsx)(r?"ol":"ul",{ref:t,...o})}var mee=(0,uee.forwardRef)(wCe);var Yn=a(y(),1),CCe={name:"core/list-item"},SCe=[["core/list-item"]];function TCe(e,t){let r=(0,Wp.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n}=(0,Wp.useDispatch)(Ss.store);(0,R4.useEffect)(()=>{if(!e.values)return;let[i,l]=D4(e);(0,fee.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),n(t,l)})},[e.values])}function PCe(e){let{replaceBlocks:t,selectionChange:r}=(0,Wp.useDispatch)(Ss.store),{getBlockRootClientId:o,getBlockAttributes:n,getBlock:i}=(0,Wp.useSelect)(Ss.store);return(0,R4.useCallback)(()=>{let l=o(e),s=n(l),c=(0,dee.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function BCe({clientId:e}){let t=PCe(e),r=(0,Wp.useSelect)(o=>{let{getBlockRootClientId:n,getBlockName:i}=o(Ss.store);return i(n(e))==="core/list-item"},[e]);return(0,Yn.jsx)(Yn.Fragment,{children:(0,Yn.jsx)(L4.ToolbarButton,{icon:(0,Cs.isRTL)()?Q1:X1,title:(0,Cs.__)("Outdent"),description:(0,Cs.__)("Outdent list item"),disabled:!r,onClick:t})})}function hee({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:n,reversed:i,start:l}=e,s=(0,Ss.useBlockProps)({style:{listStyleType:o&&n!=="decimal"?n:void 0}}),c=(0,Ss.useInnerBlocksProps)(s,{defaultBlock:CCe,directInsert:!0,template:SCe,templateLock:!1,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0});TCe(e,r);let u=(0,Yn.jsxs)(Ss.BlockControls,{group:"block",children:[(0,Yn.jsx)(L4.ToolbarButton,{icon:(0,Cs.isRTL)()?Z1:K1,title:(0,Cs.__)("Unordered"),description:(0,Cs.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,Yn.jsx)(L4.ToolbarButton,{icon:(0,Cs.isRTL)()?Y1:ll,title:(0,Cs.__)("Ordered"),description:(0,Cs.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,Yn.jsx)(BCe,{clientId:r})]});return(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)(mee,{ordered:o,reversed:i,start:l,...c}),u,o&&(0,Yn.jsx)(cee,{setAttributes:t,reversed:i,start:l,type:n})]})}var M4={$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 A4=a(B(),1),AR=a(y(),1);function gee({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,AR.jsx)(t?"ol":"ul",{...A4.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,AR.jsx)(A4.InnerBlocks.Content,{})})}var Tu=a($(),1),Bg=a(es(),1);function vee({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function zR(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...zR(o)]:zR(o))}var NCe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Tu.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,Bg.create)({html:e[0].content});t=(0,Bg.split)(r,`
`).map(o=>(0,Tu.createBlock)("core/list-item",{content:(0,Bg.toHTMLString)({value:o})}))}return(0,Tu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:vee(e).ol,ul:vee(e).ul}),transform:MR},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Tu.createBlock)("core/list",{},[(0,Tu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Tu.createBlock)("core/list",{ordered:!0},[(0,Tu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>zR(r).map(o=>(0,Tu.createBlock)(e,{content:o}))}))]},bee=NCe;var{name:yee}=M4,_ee={icon:ql,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Eg.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Eg.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Eg.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Eg.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Eg.__)("The Queen of Hearts.")}}]},transforms:bee,edit:hee,save:gee,deprecated:lee},ICe=()=>R({name:yee,metadata:M4,settings:_ee});var FR={};K(FR,{init:()=>MCe,metadata:()=>V4,name:()=>Eee,settings:()=>Nee});var $p=a(I(),1),z4=a(B(),1),Zp=a(O(),1),qp=a(H(),1),xee=a(F(),1),kee=a(Bh(),1);var zi=a(y(),1),{Badge:DCe}=U(Zp.privateApis);function wee({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:n}=e,[i,l]=(0,qp.useState)(),[s,c]=(0,qp.useState)(null),[u,p]=(0,qp.useState)(),m=(0,qp.useRef)(o),{__unstableMarkNextChangeAsNotPersistent:d}=(0,xee.useDispatch)(z4.store);(0,qp.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{p(()=>h.default),m.current&&(d(),t({mathML:h.default(m.current,{displayMode:!0})}))})},[m,t,d]);let f=(0,z4.useBlockProps)({ref:l,position:"relative"});return(0,zi.jsxs)("div",{...f,children:[n?(0,zi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,zi.jsx)(Zp.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,zi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,zi.jsxs)(Zp.__experimentalVStack,{spacing:1,children:[(0,zi.jsx)(Zp.TextareaControl,{__next40pxDefaultSize:!0,label:(0,$p.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:o,className:"wp-block-math__textarea-control",onChange:h=>{if(!u){t({latex:h});return}let g="";try{g=u(h,{displayMode:!0}),c(null)}catch(v){c(v.message),(0,kee.speak)((0,$p.sprintf)((0,$p.__)("Error parsing mathematical expression: %s"),v.message))}t({mathML:g,latex:h})},placeholder:(0,$p.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,zi.jsxs)(zi.Fragment,{children:[(0,zi.jsx)(DCe,{intent:"error",className:"wp-block-math__error",children:(0,$p.sprintf)((0,$p.__)("Error: %s"),s)}),(0,zi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var V4={$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 Cee=a(B(),1),OR=a(y(),1);function See({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,OR.jsx)("div",{...Cee.useBlockProps.save(),children:(0,OR.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var Tee=a(B(),1),Pee=a(y(),1),RCe={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,Pee.jsx)("math",{...Tee.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},Bee=[RCe];var{name:Eee}=V4,Nee={icon:FB,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:wee,save:See,deprecated:Bee},MCe=()=>R({name:Eee,metadata:V4,settings:Nee});var KR={};K(KR,{init:()=>UCe,metadata:()=>O4,name:()=>Yee,settings:()=>G4});var qee=a(I(),1);var Zee=a(B(),1),Kee=a($(),1);var O4={$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,html:!1,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 _c=a(B(),1),yc=a(I(),1),ZR=a(O(),1);var Hee=a(ge(),1),jee=a(F(),1),Uee=a(Ks(),1);var Iee=a(H(),1),Ng=a(F(),1),HR=a(B(),1),Dee=a($(),1);function Pu(){let e=(0,Ng.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:o,updateBlockListSettings:n}=(0,Ng.useDispatch)(HR.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:p,getBlockListSettings:m}=(0,Ng.useSelect)(HR.store);function d(f){let h=i(f),g=i(h);if(g&&l(g)==="core/list-item")return g}return(0,Iee.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let h=f[0];if(l(h)!=="core/list-item")return;let g=d(h);if(!g)return;let v=i(h),b=f[f.length-1],k=s(v).slice(c(b)+1);return e.batch(()=>{if(k.length){let x=s(h)[0];if(!x){let w=(0,Dee.cloneBlock)(p(v),{},[]);x=w.clientId,o(w,0,h,!1),n(x,m(v))}t(k,v,x)}t(f,v,i(g),c(g)+1),s(v).length||r(v,!1)}),!0},[])}var Lee=a(H(),1),F4=a(F(),1),jR=a(B(),1),Ub=a($(),1);function Gb(e){let{replaceBlocks:t,selectionChange:r,multiSelect:o}=(0,F4.useDispatch)(jR.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,F4.useSelect)(jR.store);return(0,Lee.useCallback)(()=>{let p=c(),m=p?u():[e],d=m.map(b=>(0,Ub.cloneBlock)(n(b))),f=i(e),h=(0,Ub.cloneBlock)(n(f));h.innerBlocks?.length||(h.innerBlocks=[(0,Ub.createBlock)("core/list")]),h.innerBlocks[h.innerBlocks.length-1].innerBlocks.push(...d);let g=l(),v=s();return t([f,...m],[h]),p?o(d[0].clientId,d[d.length-1].clientId):r(d[0].clientId,v.attributeKey,v.clientId===g.clientId?g.offset:v.offset,v.offset),!0},[e])}var Xd=a($(),1),Ree=a(ge(),1),Mee=a(es(),1),Aee=a(Ks(),1),H4=a(F(),1),UR=a(B(),1);var{subscribeOwnedListener:zCe}=U(Mee.privateApis);function GR(e){let{replaceBlocks:t,selectionChange:r}=(0,H4.useDispatch)(UR.store),{getBlock:o,getBlockAttributes:n,getBlockRootClientId:i,getBlockIndex:l,getBlockName:s}=(0,H4.useSelect)(UR.store),c=Pu();return(0,Ree.useRefEffect)(u=>{function p(m){if(m.defaultPrevented||m.keyCode!==Aee.ENTER)return;let{content:d}=n(e)??{};if(d?.length)return;if(m.preventDefault(),s(i(i(e)))==="core/list-item"){c();return}let h=o(i(e)),g=l(e),v=(0,Xd.cloneBlock)({...h,innerBlocks:h.innerBlocks.slice(0,g)}),b=(0,Xd.createBlock)((0,Xd.getDefaultBlockName)()),_=[...h.innerBlocks[g].innerBlocks[0]?.innerBlocks||[],...h.innerBlocks.slice(g+1)],k=_.length?[(0,Xd.cloneBlock)({...h,innerBlocks:_})]:[];t(h.clientId,[v,b,...k],1),r(b.clientId)}return zCe(u,"keydown",p,!0)},[])}var zee=a(ge(),1),Vee=a(es(),1),Wb=a(Ks(),1),Oee=a(B(),1),Fee=a(F(),1);var{subscribeOwnedListener:VCe}=U(Vee.privateApis);function WR(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:o}=(0,Fee.useSelect)(Oee.store),n=Gb(e),i=Pu();return(0,zee.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:p,altKey:m,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==Wb.SPACE&&u!==Wb.TAB||m||d||f)return;let h=t(),g=r();h.offset===0&&g.offset===0&&(p?u===Wb.TAB&&i()&&c.preventDefault():o(e)!==0&&n()&&c.preventDefault())}return VCe(l,"keydown",s,!0)},[e,n])}var Ig=a(F(),1),$R=a(B(),1),j4=a($(),1);function qR(e,t){let r=(0,Ig.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,Ig.useSelect)($R.store),{mergeBlocks:u,moveBlocksToPosition:p,removeBlock:m,insertBlocks:d}=(0,Ig.useDispatch)($R.store),f=Pu();function h(v){let b=i(v);return b.length?h(b[b.length-1]):v}function g(v){let b=l(v),_=l(b);if(_&&s(_)==="core/list-item")return _}return v=>{function b(_,k){r.batch(()=>{let[x]=i(k);x&&(o(k)===_&&!i(_).length?p([x],k,_):p(i(x),x,l(_))),u(_,k)})}if(v){let _=i(e)[0],k,x=e;if(_)k=i(_)[0];else for(;!(k=n(x));){let w=g(x);if(!w)break;x=w}if(k)g(k)?f(k):b(e,k);else{let w=l(x),S=n(w);if(S)if(s(S)==="core/list")r.batch(()=>{p(i(S),S,w),m(S,!1)});else{let N=(0,j4.switchToBlockType)(c(S),"core/list")?.[0]?.innerBlocks;N?.length&&r.batch(()=>{d(N,void 0,w,!1),m(S,!1)})}}}else{if(g(e)){f(e);return}let _=o(e);if(_){let x=h(_);b(x,e);return}let k=i(e);(0,j4.isUnmodifiedBlock)(c(e),"content")&&k.length>0?r.batch(()=>{f(i(k[0])),m(e,!0)}):t(v)}}}var Vi=a(y(),1);function OCe({clientId:e}){let t=Gb(e),r=Pu(),{canIndent:o,canOutdent:n}=(0,jee.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(_c.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,Vi.jsxs)(Vi.Fragment,{children:[(0,Vi.jsx)(ZR.ToolbarButton,{icon:(0,yc.isRTL)()?Q1:X1,title:(0,yc.__)("Outdent"),shortcut:Uee.displayShortcut.shift("Tab"),description:(0,yc.__)("Outdent list item"),disabled:!n,onClick:()=>r()}),(0,Vi.jsx)(ZR.ToolbarButton,{icon:(0,yc.isRTL)()?GP:$P,title:(0,yc.__)("Indent"),shortcut:"Tab",description:(0,yc.__)("Indent list item"),disabled:!o,onClick:()=>t()})]})}function Gee({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:n,content:i}=e,l=(0,_c.useBlockProps)(),s=(0,_c.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=GR(r),u=WR(r),p=qR(r,o);return(0,Vi.jsxs)(Vi.Fragment,{children:[(0,Vi.jsxs)("li",{...s,children:[(0,Vi.jsx)(_c.RichText,{ref:(0,Hee.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:m=>t({content:m}),value:i,"aria-label":(0,yc.__)("List text"),placeholder:n||(0,yc.__)("List"),onMerge:p}),s.children]}),(0,Vi.jsx)(_c.BlockControls,{group:"block",children:(0,Vi.jsx)(OCe,{clientId:r})})]})}var Dg=a(B(),1),$b=a(y(),1);function Wee({attributes:e}){return(0,$b.jsxs)("li",{...Dg.useBlockProps.save(),children:[(0,$b.jsx)(Dg.RichText.Content,{value:e.content}),(0,$b.jsx)(Dg.InnerBlocks.Content,{})]})}var U4=a($(),1),FCe={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,U4.createBlock)("core/paragraph",e),...t.map(r=>(0,U4.cloneBlock)(r))]}]},$ee=FCe;var{fieldsKey:HCe,formKey:jCe}=U(Kee.privateApis),{name:Yee}=O4,G4={icon:DB,edit:Gee,save:Wee,merge(e,t){return{...e,content:e.content+t.content}},transforms:$ee,[U(Zee.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(G4[HCe]=[{id:"content",label:(0,qee.__)("Content"),type:"text",Edit:"rich-text"}],G4[jCe]={fields:["content"]});var UCe=()=>R({name:Yee,metadata:O4,settings:G4});var YR={};K(YR,{init:()=>WCe,metadata:()=>$4,name:()=>Xee,settings:()=>Jee});var W4=a(B(),1),Kp=a(O(),1),Jd=a(I(),1);var Oi=a(y(),1);function Qee({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,n=Z();return(0,Oi.jsxs)(Oi.Fragment,{children:[(0,Oi.jsx)(W4.InspectorControls,{children:(0,Oi.jsxs)(Kp.__experimentalToolsPanel,{label:(0,Jd.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,Oi.jsx)(Kp.__experimentalToolsPanelItem,{label:(0,Jd.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Oi.jsx)(Kp.ToggleControl,{label:(0,Jd.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,Oi.jsx)(Kp.__experimentalToolsPanelItem,{label:(0,Jd.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Oi.jsx)(Kp.ToggleControl,{label:(0,Jd.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,Oi.jsx)("div",{...(0,W4.useBlockProps)({className:"logged-in"}),children:(0,Oi.jsx)("a",{href:"#login-pseudo-link",children:(0,Jd.__)("Log out")})})]})}var $4={$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:Xee}=$4,Jee={icon:MB,edit:Qee},WCe=()=>R({name:Xee,metadata:$4,settings:Jee});var rM={};K(rM,{init:()=>fSe,metadata:()=>oC,name:()=>_te,settings:()=>aC});var Kb=a(I(),1);var yte=a($(),1);var gr=a(B(),1),QR=a(ge(),1);var ete=a(I(),1),xc="full",qb=15,q4="none",Z4="media",K4="attachment",tte=[["core/paragraph",{placeholder:(0,ete._x)("Content\u2026","content placeholder")}]];var Re=a(y(),1),Y4=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},rte=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},ef=50,kc=()=>{},ote=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},Lg=e=>e.align?e:{...e,align:"wide"},Q4={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}},XR={...Q4,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"}},ate={...XR,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"}},$Ce={...ate,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},JR={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},nte={...JR,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}}},qCe={...nte,__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}},ZCe={attributes:$Ce,supports:qCe,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=i?(0,Re.jsx)("img",{src:i,alt:r,className:b||null}):null;d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?rte(i,p):{},S;l!==ef&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()})]}):(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},KCe={attributes:ate,supports:nte,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?rte(i,p):{},S;l!==ef&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()})]}):(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Lg,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},YCe={attributes:XR,supports:JR,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?Y4(i,p):{},S;l!==ef&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()})]}):(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Lg},QCe={attributes:XR,supports:JR,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?Y4(i,p):{},S;l!==ef&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Lg},XCe={attributes:{...Q4,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,QR.compose)(ote,Lg),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:p,imageFill:m,focalPoint:d,linkClass:f,href:h,linkTarget:g,rel:v}=e,b=v||void 0,_=(0,Re.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null});h&&(_=(0,Re.jsx)("a",{className:f,href:h,target:g,rel:b,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},x=(0,gr.getColorClassName)("background-color",t),w=C({"has-media-on-the-right":i==="right","has-background":x||r,[x]:x,"is-stacked-on-mobile":o,[`is-vertically-aligned-${p}`]:p,"is-image-fill":m}),S=m?Y4(s,d):{},T;return c!==ef&&(T=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:w,style:{backgroundColor:x?void 0:r,gridTemplateColumns:T},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(k[l]||kc)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(gr.InnerBlocks.Content,{})})]})}},JCe={attributes:{...Q4,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,QR.compose)(ote,Lg),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:p,imageFill:m,focalPoint:d}=e,f={image:()=>(0,Re.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},h=(0,gr.getColorClassName)("background-color",t),g=C({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":o,[`is-vertically-aligned-${p}`]:p,"is-image-fill":m}),v=m?Y4(s,d):{},b;return c!==ef&&(b=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:g,style:{backgroundColor:h?void 0:r,gridTemplateColumns:b},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[l]||kc)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(gr.InnerBlocks.Content,{})})]})}},eSe={attributes:{...Q4,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Lg,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,Re.jsx)("img",{src:s,alt:n}),video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},p=(0,gr.getColorClassName)("background-color",t),m=C({"has-media-on-the-right":i==="right",[p]:p,"is-stacked-on-mobile":o}),d;return c!==ef&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:m,style:{backgroundColor:p?void 0:r,gridTemplateColumns:d},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||kc)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(gr.InnerBlocks.Content,{})})]})}},ite=[ZCe,KCe,YCe,QCe,XCe,JCe,eSe];var ua=a(I(),1),eC=a(F(),1),tC=a(H(),1),Oo=a(B(),1),Fr=a(O(),1),rC=a(Mr(),1);var Zb=a(oe(),1);var Rg=a(O(),1),wc=a(B(),1),ste=a(I(),1),cte=a(ge(),1),eM=a(F(),1),tM=a(H(),1),J4=a(Mr(),1),ute=a(Sr(),1);function X4(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var za=a(y(),1),pte=["image","video"],tSe=()=>{},rSe=(0,tM.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let n=(0,cte.useViewportMatch)("small","<");return(0,za.jsx)(Rg.ResizableBox,{ref:o,showHandle:e&&(!n||!t),...r})});function oSe({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:n}){return(0,za.jsx)(wc.BlockControls,{group:"other",children:(0,za.jsx)(wc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:pte,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:n,onReset:()=>r(void 0)})})}function lte({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:n}=(0,eM.useDispatch)(ute.store),i=s=>{n(s,{type:"snackbar"})},l=s=>{s.length===1&&r({url:(0,J4.createBlobURL)(s[0])})};return(0,za.jsx)(wc.MediaPlaceholder,{icon:(0,za.jsx)(wc.BlockIcon,{icon:ov}),labels:{title:(0,ste.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:pte,onFilesPreUpload:l,onError:i,disableMediaButtons:t})}function aSe(e,t){let{className:r,commitWidthChange:o,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:p,mediaType:m,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:g,enableResize:v,toggleUseFeaturedImage:b,useFeaturedImage:_,featuredImageURL:k,featuredImageAlt:x,refMedia:w}=e,S=!u&&(0,J4.isBlobURL)(d),{toggleSelection:T}=(0,eM.useDispatch)(wc.store);if(d||k||_){let N=()=>{T(!1)},D=(z,j,q)=>{g(parseInt(q.style.width))},L=(z,j,q)=>{T(!0),o(parseInt(q.style.width))},P={right:v&&p==="left",left:v&&p==="right"},E=m==="image"&&i?X4(d||k,n):{},M={image:()=>_&&k?(0,za.jsx)("img",{ref:w,src:k,alt:x,style:E}):d&&(0,za.jsx)("img",{ref:w,src:d,alt:c,style:E}),video:()=>(0,za.jsx)("video",{controls:!0,ref:w,src:d})};return(0,za.jsxs)(rSe,{as:"figure",className:C(r,"editor-media-container__resizer",{"is-transient":S}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:P,onResizeStart:N,onResize:D,onResizeStop:L,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,za.jsx)(oSe,{onSelectMedia:h,mediaUrl:_&&k?k:d,mediaId:u,toggleUseFeaturedImage:b,useFeaturedImage:_}),(M[m]||tSe)(),S&&(0,za.jsx)(Rg.Spinner,{}),!_&&(0,za.jsx)(lte,{...e}),!k&&_&&(0,za.jsx)(Rg.Placeholder,{className:"wp-block-media-text--placeholder-image",style:E,withIllustration:!0})]})}return(0,za.jsx)(lte,{...e})}var mte=(0,tM.forwardRef)(aSe);var gt=a(y(),1),{ResolutionTool:nSe}=U(Oo.privateApis),dte=e=>Math.max(qb,Math.min(e,100-qb));function fte(e,t){return e?.media_details?.sizes?.[t]?.source_url}function iSe({attributes:{linkDestination:e,href:t},setAttributes:r}){return o=>{if(!o||!o.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,rC.isBlobURL)(o.url)&&(o.type=(0,rC.getBlobTypeByURL)(o.url));let n,i;o.media_type?o.media_type==="image"?n="image":n="video":n=o.type,n==="image"&&(i=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=e,s=t;if(n==="image"){if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||q4){case"file":case Z4:l=Z4;break;case"post":case K4:l=K4;break;case q4:default:l=q4;break}switch(l){case Z4:s=o.url;break;case K4:s=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:n,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:s,linkDestination:l,focalPoint:void 0,useFeaturedImage:!1})}}function lSe({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,eC.useSelect)(i=>{let{getSettings:l}=i(Oo.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>fte(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,gt.jsx)(nSe,{value:t,defaultValue:xc,options:n,onChange:r})}function sSe({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:p,linkTarget:m,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:v,mediaWidth:b,mediaSizeSlug:_,rel:k,verticalAlignment:x,allowedBlocks:w,useFeaturedImage:S}=e,[T]=(0,Zb.useEntityProp)("postType",n,"featured_media",o),{featuredImageMedia:N}=(0,eC.useSelect)(pe=>({featuredImageMedia:T&&S?pe(Zb.store).getEntityRecord("postType","attachment",T,{context:"view"}):void 0}),[T,S]),{image:D}=(0,eC.useSelect)(pe=>({image:f&&t?pe(Zb.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),L=S?N?.source_url:"",P=S?N?.alt_text:"",E=()=>{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})},M=(0,tC.useRef)(),z=pe=>{let{style:se}=M.current,{x:Ne,y:Ie}=pe;se.objectPosition=`${Ne*100}% ${Ie*100}%`},[j,q]=(0,tC.useState)(null),G=iSe({attributes:e,setAttributes:r}),W=pe=>{r(pe)},V=pe=>{q(dte(pe))},Q=pe=>{r({mediaWidth:dte(pe)}),q(null)},Y=C({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${x}`]:x,"is-image-fill-element":s}),re=`${j||b}%`,J=h==="right"?`1fr ${re}`:`${re} 1fr`,ie={gridTemplateColumns:J,msGridColumns:J},ee=pe=>{r({mediaAlt:pe})},te=pe=>{r({verticalAlignment:pe})},de=pe=>{let se=fte(D,pe);if(!se)return null;r({mediaUrl:se,mediaSizeSlug:pe})},we=Z(),le=(0,gt.jsxs)(Fr.__experimentalToolsPanel,{label:(0,ua.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),de(xc)},dropdownMenuProps:we,children:[(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,ua.__)("Media width"),isShownByDefault:!0,hasValue:()=>b!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,gt.jsx)(Fr.RangeControl,{label:(0,ua.__)("Media width"),value:j||b,onChange:Q,min:qb,max:100-qb})}),(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,ua.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,gt.jsx)(Fr.ToggleControl,{label:(0,ua.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),g==="image"&&(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,ua.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,gt.jsx)(Fr.ToggleControl,{label:(0,ua.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(v||L)&&g==="image"&&(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,ua.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,gt.jsx)(Fr.FocalPointPicker,{label:(0,ua.__)("Focal point"),url:S&&L?L:v,value:i,onChange:pe=>r({focalPoint:pe}),onDragStart:z,onDrag:z})}),g==="image"&&v&&!S&&(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,ua.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,gt.jsx)(Fr.TextareaControl,{label:(0,ua.__)("Alternative text"),value:d,onChange:ee,help:(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Fr.ExternalLink,{href:(0,ua.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ua.__)("Describe the purpose of the image.")}),(0,gt.jsx)("br",{}),(0,ua.__)("Leave empty if decorative.")]})})}),g==="image"&&!S&&(0,gt.jsx)(lSe,{image:D,value:_,onChange:de})]}),me=(0,Oo.useBlockProps)({className:Y,style:ie}),xe=(0,Oo.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:tte,allowedBlocks:w}),ae=(0,Oo.useBlockEditingMode)();return(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Oo.InspectorControls,{children:le}),(0,gt.jsxs)(Oo.BlockControls,{group:"block",children:[ae==="default"&&(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Oo.BlockVerticalAlignmentControl,{onChange:te,value:x}),(0,gt.jsx)(Fr.ToolbarButton,{icon:OE,title:(0,ua.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,gt.jsx)(Fr.ToolbarButton,{icon:HE,title:(0,ua.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),g==="image"&&!S&&(0,gt.jsx)(Oo.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:W,linkDestination:p,mediaType:g,mediaUrl:D&&D.source_url,mediaLink:D&&D.link,linkTarget:m,linkClass:u,rel:k})]}),(0,gt.jsxs)("div",{...me,children:[h==="right"&&(0,gt.jsx)("div",{...xe}),(0,gt.jsx)(mte,{className:"wp-block-media-text__media",onSelectMedia:G,onWidthChange:V,commitWidthChange:Q,refMedia:M,enableResize:ae==="default",toggleUseFeaturedImage:E,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:v,mediaWidth:b,useFeaturedImage:S,featuredImageURL:L,featuredImageAlt:P}),h!=="right"&&(0,gt.jsx)("div",{...xe})]})]})}var hte=sSe;var oC={$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 Mg=a(B(),1);var Ts=a(y(),1),uSe=50,gte=()=>{};function vte({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=u?X4(i,p):{},k=i?(0,Ts.jsx)("img",{src:i,alt:r,className:b||null,style:_}):null;d&&(k=(0,Ts.jsx)("a",{className:m,href:d,target:f,rel:v,children:k}));let x={image:()=>k,video:()=>(0,Ts.jsx)("video",{controls:!0,src:i})},w=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),S;l!==uSe&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Ts.jsxs)("div",{...Mg.useBlockProps.save({className:w,style:T}),children:[(0,Ts.jsx)("div",{...Mg.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ts.jsx)("figure",{className:"wp-block-media-text__media",children:(x[n]||gte)()})]}):(0,Ts.jsxs)("div",{...Mg.useBlockProps.save({className:w,style:T}),children:[(0,Ts.jsx)("figure",{className:"wp-block-media-text__media",children:(x[n]||gte)()}),(0,Ts.jsx)("div",{...Mg.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var tf=a($(),1),pSe={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,tf.createBlock)("core/media-text",{mediaAlt:e,mediaId:r,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:r})=>(0,tf.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:o,customGradient:n,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:p,url:m,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,tf.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:o,mediaUrl:m,textColor:p,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:o})=>(0,tf.createBlock)("core/image",{alt:e,id:t,url:r,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:r})=>(0,tf.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:o,gradient:n,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:p,useFeaturedImage:m},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||m?50:100,focalPoint:o,gradient:n,id:l,overlayColor:r,textColor:p,url:c,useFeaturedImage:m,...f};return(0,tf.createBlock)("core/cover",h,d)}}]},bte=pSe;var{fieldsKey:mSe,formKey:dSe}=U(yte.privateApis),{name:_te}=oC,aC={icon:jB,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,Kb.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Kb.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:bte,edit:hte,save:vte,deprecated:ite};window.__experimentalContentOnlyInspectorFields&&(aC[mSe]=[{id:"media",label:(0,Kb.__)("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,Kb.__)("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})}],aC[dSe]={fields:["media","link"]});var fSe=()=>R({name:_te,metadata:oC,settings:aC});var oM={};K(oM,{init:()=>gSe,metadata:()=>iC,name:()=>Yb,settings:()=>Nte});var Ete=a($(),1);var Bu=a(I(),1),xte=a(H(),1),kte=a(O(),1),wte=a($(),1),nC=a(F(),1),rf=a(B(),1),Cte=a(Ca(),1),Ag=a(y(),1);function Ste({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,n=!!o,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,nC.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(rf.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,nC.useDispatch)(rf.store);function c(){s(t,(0,wte.createBlock)("core/html",{},[],[o]))}let u=[],p,m=(0,Ag.jsx)(kte.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,Bu.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?l?(p=(0,Bu.__)("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(m)):p=(0,Bu.__)("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?(p=(0,Bu.sprintf)((0,Bu.__)('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(m)):p=(0,Bu.sprintf)((0,Bu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,Ag.jsxs)("div",{...(0,rf.useBlockProps)({className:"has-warning"}),children:[(0,Ag.jsx)(rf.Warning,{actions:u,children:p}),(0,Ag.jsx)(xte.RawHTML,{children:(0,Cte.safeHTML)(o)})]})}var iC={$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},customCSS:!1}};var Tte=a(H(),1),Pte=a(y(),1);function Bte({attributes:e}){return(0,Pte.jsx)(Tte.RawHTML,{children:e.originalContent})}var{name:Yb}=iC,Nte={name:Yb,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,Ete.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:Ste,save:Bte},gSe=()=>R({name:Yb,metadata:iC,settings:Nte});var aM={};K(aM,{init:()=>kSe,metadata:()=>sC,name:()=>Ote,settings:()=>cC});var zte=a(I(),1),Vte=a($(),1);var Yp=a(I(),1),zg=a(O(),1),Vg=a(B(),1),lC=a($(),1);var Ps=a(y(),1),vSe=(0,Yp.__)("Read more");function Ite({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let n=Z();return(0,Ps.jsxs)(Ps.Fragment,{children:[(0,Ps.jsx)(Vg.InspectorControls,{children:(0,Ps.jsx)(zg.__experimentalToolsPanel,{label:(0,Yp.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:n,children:(0,Ps.jsx)(zg.__experimentalToolsPanelItem,{label:(0,Yp.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,Ps.jsx)(zg.ToggleControl,{label:(0,Yp.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,Yp.__)("The excerpt is hidden."):(0,Yp.__)("The excerpt is visible.")})})})}),(0,Ps.jsx)("div",{...(0,Vg.useBlockProps)(),children:(0,Ps.jsx)(Vg.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Yp.__)('"Read more" text'),value:e,placeholder:vSe,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,lC.createBlock)((0,lC.getDefaultBlockName)()))})})]})}var sC={$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},customCSS:!1},editorStyle:"wp-block-more-editor"};var Dte=a(H(),1),Lte=a(y(),1);function Rte({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,Lte.jsx)(Dte.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
`)})}var Mte=a($(),1),ySe={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,o={};return t&&(o.customText=t),r===""&&(o.noTeaser=!0),(0,Mte.createBlock)("core/more",o)}}]},Ate=ySe;var{fieldsKey:_Se,formKey:xSe}=U(Vte.privateApis),{name:Ote}=sC,cC={icon:qB,example:{},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility")return e.customText},transforms:Ate,edit:Ite,save:Rte};window.__experimentalContentOnlyInspectorFields&&(cC[_Se]=[{id:"customText",label:(0,zte.__)("Content"),type:"text",Edit:"rich-text"}],cC[xSe]={fields:["customText"]});var kSe=()=>R({name:Ote,metadata:sC,settings:cC});var VM={};K(VM,{init:()=>N6e,metadata:()=>uC,name:()=>fae,settings:()=>hae});var aS=a(I(),1);var pae=a(F(),1),mae=a(oe(),1),dae=a(Xo(),1);var uC={$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/icon","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},submenuVisibility:{type:"string",enum:["hover","click","always"],default:"hover"},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",submenuVisibility:"submenuVisibility",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 mr=a(H(),1),Je=a(B(),1),om=a(oe(),1),Ns=a(F(),1),Jr=a(O(),1),At=a(I(),1),tS=a(Bh(),1);var aae=a($(),1),nae=a(ge(),1);var Og=a(oe(),1),jte=a(F(),1);var Fi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},Fte=["core/navigation-link/page","core/navigation-link"],nM={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Hte=["postType","wp_navigation",nM],Cc="navigation-overlay";function Fg(e){let t=(0,Og.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n}=(0,jte.useSelect)(h=>CSe(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:p,isResolving:m,hasResolved:d}=(0,Og.useEntityRecords)("postType","wp_navigation",nM),f=e?p?.length>1:p?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n,navigationMenus:p,isResolvingNavigationMenus:m,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 CSe(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:n}=e(Og.store),i=["postType","wp_navigation",t],l=r(...i),s=o(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var Ug=a(O(),1),Xb=a(I(),1);var iM=a(Bh(),1),Gte=a(H(),1),Wte=a(oe(),1);var Ute=a(I(),1),Qb=a(y(),1),SSe=({isVisible:e=!0})=>(0,Qb.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,Qb.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Qb.jsx)(on,{icon:Jm}),(0,Ute.__)("Navigation")]})}),pC=SSe;var Bs=a(O(),1);var bn=a(I(),1),mC=a(Xo(),1),Hg=a(H(),1),dC=a(oe(),1);var Sl=a(y(),1);function TSe(e,t,r){return e?r==="publish"?(0,mC.decodeEntities)(e):(0,bn.sprintf)((0,bn.__)("%1$s (%2$s)"),(0,mC.decodeEntities)(e),r):(0,bn.sprintf)((0,bn.__)("(no title %s)"),t)}function PSe({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,bn.__)("Create from '%s'"),[c,u]=(0,Hg.useState)(!1);n=n||s;let{records:p}=(0,dC.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:m,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:g,isNavigationMenuMissing:v}=Fg(e),[b]=(0,dC.useEntityProp)("postType","wp_navigation","title",e),_=(0,Hg.useMemo)(()=>m?.map(({id:M,title:z,status:j},q)=>{let G=TSe(z?.rendered,q+1,j);return{value:M,label:G,ariaLabel:(0,bn.sprintf)(n,G),disabled:c||d||!f}})||[],[m,n,d,f,c]),k=!!m?.length,x=!!p?.length,w=!!g,S=!!h,T=k&&!e,N=!k&&f,D=f&&e===null,L=e&&v,P="";return d?P=(0,bn.__)("Loading\u2026"):T||N||D||L?P=(0,bn.__)("Choose or create a Navigation Menu"):P=b,(0,Hg.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,D,N,T]),(0,Sl.jsx)(Bs.DropdownMenu,{label:P,icon:av,toggleProps:{size:"small"},children:({onClose:M})=>(0,Sl.jsxs)(Sl.Fragment,{children:[w&&k&&(0,Sl.jsx)(Bs.MenuGroup,{label:(0,bn.__)("Menus"),children:(0,Sl.jsx)(Bs.MenuItemsChoice,{value:e,onSelect:z=>{t(z),M()},choices:_})}),S&&x&&(0,Sl.jsx)(Bs.MenuGroup,{label:(0,bn.__)("Import Classic Menus"),children:p?.map(z=>{let j=(0,mC.decodeEntities)(z.name);return(0,Sl.jsx)(Bs.MenuItem,{onClick:async()=>{u(!0),await r(z),u(!1),M()},"aria-label":(0,bn.sprintf)(s,j),disabled:c||d||!f,children:j},z.id)})}),h&&(0,Sl.jsx)(Bs.MenuGroup,{label:(0,bn.__)("Tools"),children:(0,Sl.jsx)(Bs.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),M()},disabled:c||d||!f,children:(0,bn.__)("Create new Menu")})})]})})}var jg=PSe;var Va=a(y(),1);function $te({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolving:c,hasResolved:u}=(0,Wte.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,Gte.useEffect)(()=>{e&&(c&&(0,iM.speak)((0,Xb.__)("Loading navigation block setup options\u2026")),u&&(0,iM.speak)((0,Xb.__)("Navigation block setup options ready.")))},[u,c,e]);let p=c&&n;return(0,Va.jsx)(Va.Fragment,{children:(0,Va.jsxs)(Ug.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Va.jsx)(pC,{isVisible:!e}),(0,Va.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,Va.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Va.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Va.jsx)(on,{icon:Jm})," ",(0,Xb.__)("Navigation")]}),(0,Va.jsx)("hr",{}),p&&(0,Va.jsx)(Ug.Spinner,{}),(0,Va.jsx)(jg,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,Va.jsx)("hr",{}),o&&(0,Va.jsx)(Ug.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,Xb.__)("Start empty")})]})})]})})}var lM=a(O(),1),Wg=a(I(),1),sM=a(B(),1),qte=a(F(),1),Zte=a(oe(),1);var Jb=a(A(),1);var Gg=a(y(),1);function Sc({icon:e}){return e==="menu"?(0,Gg.jsx)(on,{icon:GB}):(0,Gg.jsxs)(Jb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Gg.jsx)(Jb.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Gg.jsx)(Jb.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function yn(e,t){return e&&t?e+"//"+t:null}var Hi=a(y(),1);function cM({children:e,id:t,isOpen:r,isResponsive:o,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:p,onNavigateToEntityRecord:m}){let d=(0,qte.useSelect)(x=>x(Zte.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!p,h=C("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!s.color||!!s?.class,[(0,sM.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,sM.getColorClassName)("background-color",l?.slug)]:!!l?.slug},{"is-menu-open":r,"hidden-by-default":i}),g=f?{}:{color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},v=C("wp-block-navigation__responsive-container-open",{"always-shown":i}),b=`${t}-modal`,_={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,Wg.__)("Menu")}},k=()=>{if(p&&m){let x=yn(d,p);m({postId:x,postType:"wp_template_part"});return}n(!0)};return(0,Hi.jsxs)(Hi.Fragment,{children:[!r&&(0,Hi.jsxs)(lM.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,Wg.__)("Open menu"),className:v,onClick:k,children:[c&&(0,Hi.jsx)(Sc,{icon:u}),!c&&(0,Wg.__)("Menu")]}),(0,Hi.jsx)("div",{className:h,style:g,id:b,children:(0,Hi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Hi.jsxs)("div",{..._,children:[(0,Hi.jsxs)(lM.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,Wg.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,Hi.jsx)(on,{icon:Wm}),!c&&(0,Wg.__)("Close")]}),(0,Hi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${b}-content`,children:e})]})})})]})}var Kte=a(oe(),1),$g=a(B(),1),Yte=a(F(),1),Qte=a(H(),1);var uM=a(y(),1);function Xte({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,Yte.useSelect)(v=>{let{getBlockCount:b,hasSelectedInnerBlock:_,getSelectedBlockClientId:k}=v($g.store),x=k();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!b(x),hasSelectedDescendant:_(e,!0),isSelected:x===e}},[e]),[c,u,p]=(0,Kte.useEntityBlockEditor)("postType","wp_navigation"),m=l||n&&!i,d=(0,Qte.useMemo)(()=>(0,uM.jsx)(pC,{}),[]),f=!!c?.length,h=!t&&!f&&!l,g=(0,$g.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:p,prioritizedInserterBlocks:Fte,defaultBlock:Fi,directInsert:!0,orientation:r,templateLock:o,renderAppender:l||n&&!i||s||m?$g.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,uM.jsx)("div",{...g})}var Jte=a(O(),1),ere=a(oe(),1),tre=a(I(),1),rre=a(y(),1);function ore(){let[e,t]=(0,ere.useEntityProp)("postType","wp_navigation","title");return(0,rre.jsx)(Jte.TextControl,{label:(0,tre.__)("Menu name"),value:e,onChange:t})}var ire=a(B(),1),pM=a(O(),1),lre=a(oe(),1),sre=a(F(),1),of=a(H(),1);function are(e,t){return!nre(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var nre=(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 o in e)if(t.hasOwnProperty(o)){if(r&&r(o,e))return!0;if(!nre(e[o],t[o],r))return!1}else return!1;return!0}return!1};var cre=a(y(),1),BSe={};function ure({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,of.useRef)();(0,of.useEffect)(()=>{o?.current||(o.current=e)},[e]);let n=are(o?.current,e),i=(0,of.useContext)(pM.Disabled.Context),l=(0,ire.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:Fi,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,sre.useSelect)(p=>{if(i)return BSe;let{hasFinishedResolution:m,isSavingEntityRecord:d}=p(lre.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:m("getEntityRecords",Hte)}},[i]);return(0,of.useEffect)(()=>{i||s||!c||!r||!n||t(null,e)},[e,t,i,s,c,n,r]),(0,cre.jsx)(s?pM.Disabled:"div",{...l})}var hC=a(O(),1),gC=a(oe(),1),pre=a(F(),1),mre=a(H(),1),fC=a(I(),1),af=a(y(),1);function dre({onDelete:e}){let[t,r]=(0,mre.useState)(!1),o=(0,gC.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,pre.useDispatch)(gC.store);return(0,af.jsxs)(af.Fragment,{children:[(0,af.jsx)(hC.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,fC.__)("Delete menu")}),t&&(0,af.jsx)(hC.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,fC.__)("Delete"),size:"medium",children:(0,fC.__)("Are you sure you want to delete this Navigation Menu?")})]})}var ey=a(H(),1),fre=a(F(),1),hre=a(Sr(),1);function ESe({name:e,message:t=""}={}){let r=(0,ey.useRef)(),{createWarningNotice:o,removeNotice:n}=(0,fre.useDispatch)(hre.store),i=(0,ey.useCallback)(s=>{r.current||(r.current=e,o(s||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),l=(0,ey.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,l]}var vC=ESe;var Tc=a(O(),1),Qp=a(I(),1);var ji=a(y(),1);function gre({setAttributes:e,hasIcon:t,icon:r}){return(0,ji.jsxs)(ji.Fragment,{children:[(0,ji.jsx)(Tc.__experimentalToolsPanelItem,{label:(0,Qp.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,ji.jsx)(Tc.ToggleControl,{label:(0,Qp.__)("Show icon button"),help:(0,Qp.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,ji.jsx)(Tc.__experimentalToolsPanelItem,{label:(0,Qp.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,ji.jsxs)(Tc.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Qp.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,ji.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Qp.__)("handle"),label:(0,ji.jsx)(Sc,{icon:"handle"})}),(0,ji.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Qp.__)("menu"),label:(0,ji.jsx)(Sc,{icon:"menu"})})]})})]})}var PC=a(O(),1),Ure=a(I(),1),Gre=a(H(),1);var Tl=a(H(),1),Dre=a(ge(),1),wC=a(oe(),1),CC=a(F(),1),_n=a(O(),1),pa=a(I(),1),fM=a(Xo(),1),Lre=a(Sr(),1);var Cre=a(H(),1),xC=a(F(),1),Sre=a(oe(),1),Tre=a(B(),1),Pre=a(I(),1),lf=a($(),1);var Xp=function(){return Xp=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Xp.apply(this,arguments)};function vre(e){return e.toLowerCase()}var NSe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ISe=/[^A-Z0-9]+/gi;function bC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?NSe:r,n=t.stripRegexp,i=n===void 0?ISe:n,l=t.transform,s=l===void 0?vre:l,c=t.delimiter,u=c===void 0?" ":c,p=bre(bre(e,o,"$1\0$2"),i,"\0"),m=0,d=p.length;p.charAt(m)==="\0";)m++;for(;p.charAt(d-1)==="\0";)d--;return p.slice(m,d).split("\0").map(s).join(u)}function bre(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function yre(e){return e.charAt(0).toUpperCase()+e.substr(1)}function DSe(e){return yre(e.toLowerCase())}function _re(e,t){return t===void 0&&(t={}),bC(e,Xp({delimiter:" ",transform:DSe},t))}function xre(e,t){return t===void 0&&(t={}),bC(e,Xp({delimiter:"."},t))}function yC(e,t){return t===void 0&&(t={}),xre(e,Xp({delimiter:"-"},t))}function mM(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function dM(e,t,r){if(!e)return;t(mM(e).color);let o=e,n=mM(o).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,n=mM(o).backgroundColor;r(n)}function nf(e,t){let{textColor:r,customTextColor:o,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:p}=e,m={};return t&&s?m.customTextColor=s:t&&l?m.textColor=l:o?m.customTextColor=o:r?m.textColor=r:p?.color?.text&&(m.customTextColor=p.color.text),t&&u?m.customBackgroundColor=u:t&&c?m.backgroundColor=c:i?m.customBackgroundColor=i:n?m.backgroundColor=n:p?.color?.background&&(m.customTextColor=p.color.background),m}function _C(e){return{className:C("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 kre=(e,t)=>{let r=e.toLowerCase(),o=t.map(i=>i.title.rendered.toLowerCase());if(!o.includes(r))return e;let n=2;for(;o.includes(`${r} ${n}`);)n++;return`${e} ${n}`},wre=e=>yC(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function Bre(e){let{saveEntityRecord:t}=(0,xC.useDispatch)(Sre.store),r=(0,xC.useSelect)(n=>U(n(Tre.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,Cre.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=kre((0,Pre.__)("Navigation Overlay"),n),l=wre(i),s="";if(r?.content){let u=(0,lf.parse)(r.content,{__unstableSkipMigrationLogs:!0});s=(0,lf.serialize)(u)}else s=(0,lf.serialize)([(0,lf.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:l,title:i,content:s,area:Cc},{throwOnError:!0})},[e,t,r])}var ty=a(O(),1),Ere=a(I(),1),Nre=a(H(),1),kC=a(y(),1);function LSe({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,Nre.createInterpolateElement)((0,Ere.__)("The selected overlay template part is missing or has been deleted. <clearButton>Reset to default overlay</clearButton> or <createButton>create a new overlay</createButton>."),{clearButton:(0,kC.jsx)(ty.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,kC.jsx)(ty.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,kC.jsx)(ty.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var Ire=LSe;var So=a(y(),1);function hM({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:n,setIsCreatingOverlay:i}){let l=(0,Dre.useInstanceId)(hM,"wp-block-navigation__overlay-selector-heading"),{records:s,isResolving:c,hasResolved:u}=(0,wC.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:p}=(0,CC.useDispatch)(Lre.store),m=(0,CC.useSelect)(E=>E(wC.store).getCurrentTheme()?.stylesheet,[]),[d,f]=(0,Tl.useState)(!1),h=n!==void 0?n:d,g=i!==void 0?i:f,v=(0,Tl.useMemo)(()=>s?s.filter(E=>E.area===Cc):[],[s]),b=Bre(v),_=(0,Tl.useMemo)(()=>!e||!v?null:v.find(E=>E.slug===e),[e,v]),k=(0,Tl.useMemo)(()=>{let E=[{label:(0,pa.__)("Default"),value:""}];if(!u||c)return E;let M=v.map(z=>({label:z.title?.rendered?(0,fM.decodeEntities)(z.title.rendered):z.slug,value:z.slug}));return e&&!_&&M.unshift({label:(0,pa.sprintf)((0,pa.__)("%s (missing)"),e),value:e}),[...E,...M]},[v,u,c,e,_]),x=E=>{r({overlay:E||void 0})},w=()=>{if(!e||!_||!o)return;let E=_.theme||m,z={postId:yn(E,e),postType:"wp_template_part"};t==="mobile"&&(z.viewport="mobile"),o(z)},S=(0,Tl.useCallback)(async()=>{try{g(!0);let E=await b();if(r({overlay:E.slug}),o){let M=E.theme||m,j={postId:yn(M,E.slug),postType:"wp_template_part"};t==="mobile"&&(j.viewport="mobile"),o(j)}else g(!1)}catch(E){let M=E instanceof Error&&"code"in E&&E.message&&E.code!=="unknown_error"?E.message:(0,pa.__)("An error occurred while creating the overlay.");p(M,{type:"snackbar"}),g(!1)}},[b,r,o,p,m,g,t]),T=(0,Tl.useCallback)(()=>{r({overlay:void 0})},[r]),N=c||h,D=(0,Tl.useMemo)(()=>e&&u&&!c&&!_,[e,u,c,_]),L=(0,Tl.useMemo)(()=>v.length===0&&u?(0,pa.__)("No overlays found."):(0,pa.__)("Select an overlay for navigation."),[v.length,u]),P=(0,Tl.useMemo)(()=>_?(0,pa.sprintf)((0,pa.__)("Edit overlay: %s"),_.title?.rendered?(0,fM.decodeEntities)(_.title.rendered):_.slug):(0,pa.__)("Edit overlay"),[_]);return(0,So.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,So.jsx)("h3",{id:l,className:"wp-block-navigation__overlay-selector-header",children:(0,pa.__)("Overlay template")}),u&&(v.length===0||h&&v.length===1)?(0,So.jsx)(So.Fragment,{children:(0,So.jsx)(_n.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:S,disabled:N,accessibleWhenDisabled:!0,isBusy:h,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,pa.__)("Create overlay")})}):(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(_n.Button,{size:"small",icon:ph,onClick:S,disabled:N,accessibleWhenDisabled:!0,isBusy:h,label:(0,pa.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,So.jsxs)(_n.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,So.jsx)(_n.FlexBlock,{children:(0,So.jsx)(_n.SelectControl,{label:(0,pa.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":l,value:e||"",options:k,onChange:x,disabled:c,accessibleWhenDisabled:!0,help:L})}),e&&u&&_&&(0,So.jsx)(_n.FlexItem,{children:(0,So.jsx)(_n.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:w,disabled:!o,accessibleWhenDisabled:!0,label:P,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,pa.__)("Edit")})})]}),D&&(0,So.jsx)(Ire,{onClear:T,onCreate:S,isCreating:h})]}),(0,So.jsx)(_n.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,So.jsx)(_n.__experimentalText,{variant:"muted",isBlock:!0,className:"wp-block-navigation__overlay-help-text",children:(0,pa.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var qg=a(O(),1),sf=a(I(),1),Zg=a(y(),1);function Rre({overlayMenu:e,setAttributes:t}){return(0,Zg.jsxs)(qg.__experimentalToggleGroupControl,{label:(0,sf.__)("Overlay Visibility"),"aria-label":(0,sf.__)("Configure overlay visibility"),value:e,help:(0,sf.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,Zg.jsx)(qg.__experimentalToggleGroupControlOption,{value:"never",label:(0,sf.__)("Off")}),(0,Zg.jsx)(qg.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,sf.__)("Mobile")}),(0,Zg.jsx)(qg.__experimentalToggleGroupControlOption,{value:"always",label:(0,sf.__)("Always")})]})}var TC=a(O(),1),SC=a(I(),1);var Nu=a(O(),1),Kg=a(I(),1);var Eu=a(y(),1);function Mre({hasIcon:e,icon:t,setAttributes:r}){return(0,Eu.jsxs)(Nu.__experimentalVStack,{spacing:4,children:[(0,Eu.jsx)(Nu.ToggleControl,{label:(0,Kg.__)("Show icon button"),help:(0,Kg.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,Eu.jsxs)(Nu.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Kg.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,Eu.jsx)(Nu.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Kg.__)("handle"),label:(0,Eu.jsx)(Sc,{icon:"handle"})}),(0,Eu.jsx)(Nu.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Kg.__)("menu"),label:(0,Eu.jsx)(Sc,{icon:"menu"})})]})]})}var Oa=a(y(),1);function Are({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,Oa.jsxs)(Oa.Fragment,{children:[(0,Oa.jsxs)(TC.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,SC.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[o&&(0,Oa.jsxs)(Oa.Fragment,{children:[(0,Oa.jsx)(Sc,{icon:n}),(0,Oa.jsx)(on,{icon:Wm})]}),!o&&(0,Oa.jsxs)(Oa.Fragment,{children:[(0,Oa.jsx)("span",{children:(0,SC.__)("Menu")}),(0,Oa.jsx)("span",{children:(0,SC.__)("Close")})]})]}),t&&(0,Oa.jsx)(TC.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,Oa.jsx)(Mre,{hasIcon:o,icon:n,setAttributes:i})})]}):null}var zre=a(F(),1),Vre=a(oe(),1),gM=a(H(),1),Ore=a($(),1),Fre=a(O(),1),Hre=a(I(),1),vM=a(B(),1);var cf=a(y(),1);function jre({overlay:e,currentTheme:t}){let r=(0,gM.useMemo)(()=>!e||!t?null:yn(t,e),[t,e]),{content:o,editedBlocks:n,hasResolved:i}=(0,zre.useSelect)(s=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=s(Vre.store),p=c("postType","wp_template_part",r,{context:"view"});return{content:p?.content,editedBlocks:p?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),l=(0,gM.useMemo)(()=>r?n&&n.length>0?n:o&&typeof o=="string"?(0,Ore.parse)(o):[]:null,[r,n,o]);return e?i?(0,cf.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,Hre.__)("Navigation Overlay template part preview"),role:"region",children:(0,cf.jsx)(vM.BlockPreview.Async,{placeholder:(0,cf.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,cf.jsx)(vM.BlockPreview,{blocks:l,viewportWidth:400,minHeight:200})})}):(0,cf.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,cf.jsx)(Fre.Spinner,{})}):null}var Jp=a(y(),1);function Wre({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:p,currentTheme:m,hasOverlays:d}){let[f,h]=(0,Gre.useState)(!1);return(0,Jp.jsx)(PC.PanelBody,{title:(0,Ure.__)("Overlay"),initialOpen:!0,children:(0,Jp.jsxs)(PC.__experimentalVStack,{spacing:4,children:[(0,Jp.jsx)(Rre,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,Jp.jsx)(Are,{isResponsive:p,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,Jp.jsx)(hM,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:h}),e!=="never"&&t&&d&&!f&&(0,Jp.jsx)(jre,{overlay:t,currentTheme:m})]})})}var IC=a(F(),1),yM=a(oe(),1),Qg=a(H(),1),Pc=a(I(),1);var ry=a($(),1),Zre=a(vu(),1);var bM=a(H(),1),BC=a(B(),1),$re=a(F(),1),qre=a(oe(),1);function Yg(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 Ui({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,BC.useBlockBindingsUtils)(e),{metadata:o,id:n,kind:i,type:l}=t,s=(0,BC.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",p=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:m,entityRecord:d}=(0,$re.useSelect)(g=>{if(!p||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let v=i==="post-type",b=i==="taxonomy";if(!v&&!b)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:k}=g(qre.store),x=b?"taxonomy":"postType",w=l==="tag"?"post_tag":l,S=_(x,w,n);return{isBoundEntityAvailable:k("getEntityRecord",[x,w,n])?S!==void 0:!0,entityRecord:S||null}},[i,l,n,p,s]),f=(0,bM.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,bM.useCallback)(g=>{let v=g?.kind??i;if(v)try{let b=Yg(v);r(b)}catch(b){console.warn("Failed to create entity binding:",b.message)}},[r,i]);return{hasUrlBinding:p,isBoundEntityAvailable:m,entityRecord:d,clearBinding:f,createBinding:h}}function Kre(e){if(!e)return null;let t=MSe(e),r=Yre(t);return(0,Zre.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function Yre(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[m]=(0,ry.parse)(i.content.raw);return m||(0,ry.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=RSe(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?Yre(i.children,t+1):{};r={...r,...u};let p=(0,ry.createBlock)(l,s,c);return r[i.id]=p.clientId,p}),mapping:r}}function RSe({title:e,xfn:t,classes:r,attr_title:o,object:n,object_id:i,description:l,url:s,type:c,target:u},p,m){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()},...o?.length&&{title:o},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:Yg(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...p==="core/navigation-submenu"&&{isTopLevelItem:m===0},...p==="core/navigation-link"&&{isTopLevelLink:m===0}}}function MSe(e,t="id",r="parent"){let o=Object.create(null),n=[];for(let i of e)o[i[t]]={...i,children:[]},i[r]?(o[i[r]]=o[i[r]]||{},o[i[r]].children=o[i[r]].children||[],o[i[r]].children.push(o[i[t]])):n.push(o[i[t]]);return n}var _M="success",NC="error",DC="pending",ASe="idle",EC=null;function zSe(e,{throwOnError:t=!1}={}){let r=(0,IC.useRegistry)(),{editEntityRecord:o}=(0,IC.useDispatch)(yM.store),[n,i]=(0,Qg.useState)(ASe),[l,s]=(0,Qg.useState)(null),c=(0,Qg.useCallback)(async(p,m,d="publish")=>{let f,h;try{h=await r.resolveSelect(yM.store).getMenuItems({menus:p,per_page:-1,context:"view"})}catch(v){throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to fetch classic menu "%s" from API.'),m),{cause:v})}if(h===null)throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to fetch classic menu "%s" from API.'),m));let{innerBlocks:g}=Kre(h);try{f=await e(m,g,d),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(v){throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to create Navigation Menu "%s".'),m),{cause:v})}return f},[e,o,r]);return{convert:(0,Qg.useCallback)(async(p,m,d)=>{if(EC!==p){if(EC=p,!p||!m){s("Unable to convert menu. Missing menu details."),i(NC);return}return i(DC),s(null),await c(p,m,d).then(f=>(i(_M),EC=null,f)).catch(f=>{if(s(f?.message),i(NC),EC=null,t)throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to create Navigation Menu "%s".'),m),{cause:f})})}},[c,t]),status:n,error:l}}var Qre=zSe;var coe=a($(),1),uoe=a(oe(),1),poe=a(F(),1),Jg=a(H(),1);var roe=a(O(),1),ooe=a(oe(),1),aoe=a(F(),1),LC=a(H(),1),oy=a(I(),1);var Xre=a(B(),1),Jre=a(oe(),1),eoe=a(F(),1);var Xg=e=>e==="header"?iB:e==="footer"?jP:e==="sidebar"?dN:e==="navigation-overlay"?KB:kv;function toe(e){return(0,eoe.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(Xre.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(Jre.store),c=l(),p=(c?.default_template_part_areas||[]).map(m=>({...m,icon:Xg(m.icon)}));for(let m of i){let d=r(m),{theme:f=c?.stylesheet,slug:h}=d.attributes,g=yn(f,h),v=s("postType","wp_template_part",g);if(v?.area)return p.find(b=>b.area!=="uncategorized"&&b.area===v.area)?.label}},[e])}var VSe=["postType","wp_navigation",{status:"draft",per_page:-1}],OSe=["postType","wp_navigation",{per_page:-1,status:"publish"}];function noe(e){let t=(0,LC.useContext)(roe.Disabled.Context),r=toe(t?void 0:e),o=(0,aoe.useRegistry)();return(0,LC.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=o.resolveSelect(ooe.store),[i,l]=await Promise.all([n(...VSe),n(...OSe)]),s=r?(0,oy.sprintf)((0,oy.__)("%s menu"),r):(0,oy.__)("Menu"),c=[...i,...l].reduce((p,m)=>m?.title?.raw?.startsWith(s)?p+1:p,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,o])}var ioe="success",RC="error",loe="pending",soe="idle";function moe(e){let[t,r]=(0,Jg.useState)(soe),[o,n]=(0,Jg.useState)(null),[i,l]=(0,Jg.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,poe.useDispatch)(uoe.store),u=noe(e);return{create:(0,Jg.useCallback)(async(m=null,d=[],f)=>{if(m&&typeof m!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(RC),new Error("Value of supplied title argument was not a string.");r(loe),n(null),l(null),m||(m=await u().catch(g=>{throw l(g?.message),r(RC),new Error("Failed to create title when saving new Navigation Menu.",{cause:g})}));let h={title:m,content:(0,coe.serialize)(d),status:f};return s("postType","wp_navigation",h).then(g=>(n(g),r(ioe),f!=="publish"&&c("postType","wp_navigation",g.id,{status:"publish"}),g)).catch(g=>{throw l(g?.message),r(RC),new Error("Unable to save new Navigation Menu",{cause:g})})},[s,c,u]),status:t,value:o,error:i,isIdle:t===soe,isPending:t===loe,isSuccess:t===ioe,isError:t===RC}}var doe=a(F(),1),foe=a(B(),1),FSe=[];function hoe(e){return(0,doe.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:n}=t(foe.store),i=r(e).innerBlocks,l=!!i?.length,s=l?FSe:o(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}var goe=a(ur(),1),MC=a(O(),1),voe=a(I(),1),boe=a(y(),1),HSe=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=MC.Button;return r&&(o=MC.MenuItem),(0,boe.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,goe.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,voe.__)("Manage menus")})},yoe=HSe;var rm=a(B(),1),by=a(O(),1),QC=a(F(),1),tm=a(I(),1),Joe=a(H(),1);var _oe=a(B(),1),zC=a(O(),1),xoe=a(I(),1),VC=a(H(),1),AC=a(y(),1);function jSe({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,VC.useState)(!1),n=()=>{o(!0),e()},i=(0,VC.createInterpolateElement)((0,xoe.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,AC.jsx)(zC.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,AC.jsx)(zC.Notice,{status:"warning",isDismissible:!1,children:i}):(0,AC.jsx)(_oe.Warning,{children:i})}var OC=jSe;var uf=a($(),1);var Gi=a(O(),1),ay=a(F(),1),Es=a(I(),1),e0=a(B(),1);var Fo=a(y(),1),USe={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},GSe=["core/navigation-link","core/navigation-submenu"];function WSe({block:e,onClose:t,expandedState:r,expand:o,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,ay.useDispatch)(e0.store),c=e.clientId,u=!GSe.includes(e.name);return(0,Fo.jsx)(Gi.MenuItem,{icon:Gm,disabled:u,onClick:()=>{let m=(0,uf.createBlock)(Fi.name,Fi.attributes);if(e.name==="core/navigation-submenu")i(m,e.innerBlocks.length,c,!1);else{let d=(0,uf.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[m],!1)}n(m),r[e.clientId]||o(e.clientId),t()},children:(0,Es.__)("Add submenu link")})}function koe(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:o,moveBlocksUp:n,removeBlocks:i,duplicateBlocks:l,insertBeforeBlock:s,insertAfterBlock:c}=(0,ay.useDispatch)(e0.store),u=(0,Es.sprintf)((0,Es.__)("Remove %s"),(0,e0.BlockTitle)({clientId:r,maximumLength:25})),{rootClientId:p,canDuplicate:m,canInsertBlock:d,isFirst:f,isLast:h}=(0,ay.useSelect)(g=>{let{getBlockRootClientId:v,canInsertBlockType:b,getDirectInsertBlock:_,getBlockIndex:k,getBlockCount:x}=g(e0.store),{getDefaultBlockName:w}=g(uf.store),S=v(r),T=b(w(),S),N=S?_(S):null;return{rootClientId:S,canDuplicate:!!t&&(0,uf.hasBlockSupport)(t.name,"multiple",!0)&&b(t.name,S),canInsertBlock:(T||!!N)&&!!t&&b(t.name,S),isFirst:k(r)===0,isLast:k(r)===x(S)-1}},[r,t]);return(0,Fo.jsx)(Gi.DropdownMenu,{icon:av,label:(0,Es.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:USe,noIcons:!0,...e,children:({onClose:g})=>(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsxs)(Gi.MenuGroup,{children:[(0,Fo.jsx)(Gi.MenuItem,{icon:pP,disabled:f,accessibleWhenDisabled:!0,onClick:()=>{n([r],p),g()},children:(0,Es.__)("Move up")}),(0,Fo.jsx)(Gi.MenuItem,{icon:z1,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{o([r],p),g()},children:(0,Es.__)("Move down")}),(0,Fo.jsx)(WSe,{block:t,onClose:g,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock}),m&&(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{l([r]),g()},children:(0,Es.__)("Duplicate")}),d&&(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{s(r),g()},children:(0,Es.__)("Add before")}),(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{c(r),g()},children:(0,Es.__)("Add after")})]})]}),(0,Fo.jsx)(Gi.MenuGroup,{children:(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{i([r],!1),g()},children:u})})]})})}var $oe=a(B(),1),qoe=a(F(),1);var jo=a(O(),1),Jt=a(I(),1),Hoe=a(Ca(),1),py=a(B(),1),$C=a(F(),1),joe=a(oe(),1);var Coe=a(H(),1),Soe=a(F(),1),Toe=a(B(),1),Poe=a(Ca(),1),Boe=a(xM(),1);var kM=a(xM(),1),ny=a(ur(),1),$Se=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",o=(h,g=null)=>{try{let v=g||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,v)}catch{return null}},n=o(e);if(!n)return!0;let i=o(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=r((0,ny.getPath)(n.toString())),u=r((0,ny.getPath)(i.toString()));if(l!==s||c!==u)return!0;let p=n.searchParams.get("p"),m=i.searchParams.get("p");if(p&&m&&p!==m)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||p&&f||d&&m)},iy=(e={},t,r={})=>{let{label:o="",kind:n="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:p,kind:m=n,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),g=c?.replace(/http(s?):\/\//gi,"")??"",b=f&&f!==o&&h!==g?(0,kM.escapeHTML)(f):o||(0,kM.escapeHTML)(g),_=d==="post_tag"?"tag":d.replace("-","_"),k=["post","page","tag","category"].indexOf(_)>-1,w=!m&&!k||m==="custom"?"custom":m,S={...c!==void 0?{url:c&&encodeURI((0,ny.safeDecodeURI)(c))}:{},...b&&{label:b},...u!==void 0&&{opensInNewTab:u},...w&&{kind:w},..._&&_!=="URL"&&{type:_}};c&&!p&&r.id?$Se(r.url,c)&&(S.id=void 0,S.kind="custom",S.type="custom"):p&&Number.isInteger(p)?S.id=p:r.id&&(S.kind=w,S.type=_),t(S);let T="id"in S?S.id:r.id,N="kind"in S?S.kind:r.kind;return{isEntityLink:!!T&&N!=="custom",attributes:S}};function pf({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:n}=(0,Soe.useDispatch)(Toe.store),{hasUrlBinding:i,createBinding:l,clearBinding:s}=Ui({clientId:e,attributes:t});return(0,Coe.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},p=t.label?(0,Poe.__unstableStripHTML)(t.label):"",m=c.title??"",d=o&&c.title!==void 0&&m!==p,f=d?{label:(0,Boe.escapeHTML)(m)}:{};if((!t.label||t.label===""||d)&&(u.title=c.title),!c.id&&i)s(),n(e,{url:c.url,kind:"custom",type:"custom",id:void 0,...f});else{let{isEntityLink:g,attributes:v}=iy(u,r,t);g?l(v):s(),Object.keys(f).length&&n(e,f)}},[t,o,e,i,l,s,r,n])}var GC=a(Ca(),1),mf=a(O(),1),cy=a(I(),1),WC=a(B(),1),Fa=a(H(),1),Roe=a(oe(),1);var BM=a(ge(),1);var Moe=a(ur(),1);var Qn=a(O(),1),Wi=a(I(),1),sy=a(F(),1),jC=a(oe(),1),Noe=a(Sr(),1),CM=a(Xo(),1),SM=a(H(),1);var Eoe=a(O(),1),FC=a(I(),1);var ly=a(ge(),1);var em=a(y(),1);function qSe({className:e,onBack:t}){return(0,em.jsx)(Eoe.Button,{className:e,icon:(0,FC.isRTL)()?sP:nP,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,FC.__)("Back")})}function wM({className:e,title:t,description:r,onBack:o,children:n}){let i=(0,ly.useInstanceId)(wM,"link-ui-dialog-title"),l=(0,ly.useInstanceId)(wM,"link-ui-dialog-description"),s=(0,ly.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)(vi,{children:[(0,em.jsx)("h2",{id:i,children:t}),(0,em.jsx)("p",{id:l,children:r})]}),(0,em.jsx)(qSe,{className:c,onBack:o}),n]})}var HC=wM;var Pl=a(y(),1);function Ioe({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[n,i]=(0,SM.useState)(o),[l,s]=(0,SM.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:p}=(0,sy.useSelect)(v=>({lastError:v(jC.store).getLastEntitySaveError("postType",e),isSaving:v(jC.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:m}=(0,sy.useDispatch)(jC.store),{createSuccessNotice:d,createErrorNotice:f}=(0,sy.useDispatch)(Noe.store);async function h(v){if(v.preventDefault(),!(p||!c))try{let b=await m("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(b){let _={id:b.id,type:e,title:(0,CM.decodeEntities)(b.title.rendered),url:b.link,kind:"post-type"};d((0,Wi.sprintf)((0,Wi.__)("%s page created successfully."),(0,CM.decodeEntities)(b.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,Wi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let g=p||!c;return(0,Pl.jsx)(HC,{className:"link-ui-page-creator",title:(0,Wi.__)("Create page"),description:(0,Wi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,Pl.jsx)(Qn.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,Pl.jsx)("form",{onSubmit:h,children:(0,Pl.jsxs)(Qn.__experimentalVStack,{spacing:4,children:[(0,Pl.jsx)(Qn.TextControl,{label:(0,Wi.__)("Title"),onChange:i,placeholder:(0,Wi.__)("No title"),value:n}),(0,Pl.jsx)(Qn.CheckboxControl,{label:(0,Wi.__)("Publish"),help:(0,Wi.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:l,onChange:s}),u&&(0,Pl.jsx)(Qn.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,Pl.jsxs)(Qn.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,Pl.jsx)(Qn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:p,accessibleWhenDisabled:!0,children:(0,Wi.__)("Cancel")}),(0,Pl.jsx)(Qn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:p,"aria-disabled":g,children:(0,Wi.__)("Create page")})]})]})})})})}var TM=a(I(),1),Doe=a(F(),1),UC=a(B(),1);var PM=a(y(),1),{PrivateQuickInserter:ZSe}=U(UC.privateApis);function KSe({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,Doe.useSelect)(n=>{let{getBlockRootClientId:i}=n(UC.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,PM.jsx)(HC,{className:"link-ui-block-inserter",title:(0,TM.__)("Add block"),description:(0,TM.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,PM.jsx)(ZSe,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var Loe=KSe;var Xn=a(y(),1);function EM(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e,perPage:20};case"category":return{type:"term",subtype:"category",perPage:20};case"tag":return{type:"term",subtype:"post_tag",perPage:20};case"post_format":return{type:"post-format",perPage:20};default:return t==="taxonomy"?{type:"term",subtype:e,perPage:20}:t==="post-type"?{type:"post",subtype:e,perPage:20}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function YSe(e,t){let{label:r,url:o,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:p}=e.entity||{},{image:m,badges:d}=uy({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:p}),{clientId:f}=e,h=i||"page",[g,v]=(0,Fa.useState)(!1),[b,_]=(0,Fa.useState)(!1),[k,x]=(0,Fa.useState)(null),[w,S]=(0,Fa.useState)(""),T=(0,Fa.useRef)(""),N=V=>{T.current=V,S(V)},D=(0,Fa.useRef)(),L=(0,Fa.useRef)(),P=(0,Fa.useRef)(),E=(0,Roe.useResourcePermissions)({kind:"postType",name:h}),{isBoundEntityAvailable:M}=Ui({clientId:f,attributes:e.link}),z=(0,Fa.useMemo)(()=>({url:o,opensInNewTab:n,title:r&&(0,GC.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:l,type:i,id:s,image:m,badges:d}),[r,n,o,l,i,s,m,d,c]),j=V=>{e.onChange(V),_(!1),x(!0),N("")},q=(0,BM.useInstanceId)(Iu,"link-ui-link-control__title"),G=(0,BM.useInstanceId)(Iu,"link-ui-link-control__description");(0,Fa.useEffect)(()=>{k&&D.current&&(k?.current?k.current.focus():(GC.focus.tabbable.find(D.current)[0]||D.current).focus(),x(!1))},[k]);let W=(0,WC.useBlockEditingMode)();return(0,Xn.jsxs)(mf.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!g&&!b&&(0,Xn.jsxs)("div",{ref:D,role:"dialog","aria-labelledby":q,"aria-describedby":G,children:[(0,Xn.jsxs)(vi,{children:[(0,Xn.jsx)("h2",{id:q,children:(0,cy.__)("Add link")}),(0,Xn.jsx)("p",{id:G,children:(0,cy.__)("Search for and add a link to your Navigation.")})]}),(0,Xn.jsx)(WC.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:z,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:EM(i,l),onChange:e.onChange,onInputChange:V=>{T.current=V},inputValue:w,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:M,forceIsEditingLink:z?.url?!1:void 0,renderControlBottom:()=>z?.url?.length?null:(0,Xn.jsx)(QSe,{addPageButtonRef:L,addBlockButtonRef:P,setAddingBlock:()=>{v(!0)},setAddingPage:()=>{_(!0)},canAddPage:E?.canCreate&&i==="page",canAddBlock:W==="default"})})]}),g&&(0,Xn.jsx)(Loe,{clientId:e.clientId,onBack:()=>{v(!1),x(P),N(T.current)},onBlockInsert:e?.onBlockInsert}),b&&(0,Xn.jsx)(Ioe,{postType:h,onBack:()=>{_(!1),x(L),N(T.current)},onPageCreated:j,initialTitle:T.current&&!(0,Moe.isURL)(T.current)?T.current:""})]})}var Iu=(0,Fa.forwardRef)(YSe),QSe=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:n,canAddBlock:i})=>{let l="listbox";return!n&&!i?null:(0,Xn.jsxs)(mf.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,Xn.jsx)(mf.Button,{__next40pxDefaultSize:!0,ref:e,icon:ph,onClick:s=>{s.preventDefault(),o(!0)},"aria-haspopup":l,children:(0,cy.__)("Create page")}),i&&(0,Xn.jsx)(mf.Button,{__next40pxDefaultSize:!0,ref:t,icon:ph,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,cy.__)("Add block")})]})};var ma=a(I(),1),DM=a(ur(),1),Aoe=a(B(),1),NM=a(F(),1),IM=a(oe(),1);var{useRemoteUrlData:XSe,isHashLink:zoe,isRelativePath:JSe}=U(Aoe.privateApis);function e6e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function t6e(e,t){if(e==="/")return!0;if(!e||!t)return!1;try{let r=new URL(e,t),o=new URL(t);if(r.hostname!==o.hostname)return!1;let n=r.pathname.replace(/\/$/,""),i=o.pathname.replace(/\/$/,"");return n===i}catch{return!1}}function r6e({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,DM.safeDecodeURI)(e),o=!1;if(JSe(e)||zoe(e))return{displayUrl:r,isExternal:!1};try{let n=new URL(e),i=new URL(t).host;if(n.host===i){let l=n.pathname+n.search+n.hash;l.endsWith("/")&&l.length>1&&(l=l.slice(0,-1)),r=l}else o=!0}catch{o=!0}return{displayUrl:r,isExternal:o}}function o6e({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:n,hasBinding:i,isEntityAvailable:l}){let s=[];if(e&&(o?s.push({label:(0,ma.__)("External link"),intent:"default"}):zoe(e)?s.push({label:(0,ma.__)("Internal link"),intent:"default"}):t6e(e,t)?s.push({label:(0,ma.__)("Homepage"),intent:"default"}):r&&r!=="custom"?s.push({label:e6e(r),intent:"default"}):s.push({label:(0,ma.__)("Page"),intent:"default"})),i&&!l)s.push({label:(0,ma.sprintf)((0,ma.__)("Missing %s"),r),intent:"error"});else if(!e)s.push({label:(0,ma.__)("No link selected"),intent:"error"});else if(n){let u={publish:{label:(0,ma.__)("Published"),intent:"success"},future:{label:(0,ma.__)("Scheduled"),intent:"warning"},draft:{label:(0,ma.__)("Draft"),intent:"warning"},pending:{label:(0,ma.__)("Pending"),intent:"warning"},private:{label:(0,ma.__)("Private"),intent:"default"},trash:{label:(0,ma.__)("Trash"),intent:"error"}}[n];u&&s.push(u)}return s}function a6e(e){let t=e?.title;return typeof t=="string"?t:t&&"rendered"in t?t.rendered||(0,ma.__)("(no title)"):e?.name}function uy({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:n}){let i=(0,NM.useSelect)(f=>f(IM.store).getEntityRecord("root","__unstableBase")?.home,[]),l=a6e(t),{richData:s}=XSe(l?null:e),{displayUrl:c,isExternal:u}=r6e({linkUrl:e,homeUrl:i}),p=(0,NM.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:h}=f(IM.store),g=h("postType","attachment",t.featured_media);return g?.media_details?.sizes?.thumbnail?.source_url||g?.media_details?.sizes?.medium?.source_url||g?.source_url||null},[t?.featured_media]),m=o6e({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:n});return{title:e?l||s?.title||(0,DM.safeDecodeURI)(e):(0,ma.__)("Add link"),url:c,image:p,badges:m}}var Voe=a(F(),1),Ooe=a(oe(),1),Foe=a(B(),1),df=(e,t,r,o)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,Foe.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,Voe.useSelect)(m=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=m(Ooe.store),h=d("postType",t,r),v=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:v}},[n,l,o,t,r]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};var Ho=a(y(),1),{LinkPicker:n6e,isHashLink:i6e,isRelativePath:l6e}=U(py.privateApis);function s6e(e,t){if(t==="post-type")switch(e){case"post":return(0,Jt.__)("post");case"page":return(0,Jt.__)("page");default:return e||(0,Jt.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,Jt.__)("category");case"tag":return(0,Jt.__)("tag");default:return e||(0,Jt.__)("term")}return e||(0,Jt.__)("item")}function my({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:n,url:i,description:l,rel:s,opensInNewTab:c}=e,u=Z(),{hasUrlBinding:p,isBoundEntityAvailable:m,entityRecord:d}=Ui({clientId:r,attributes:e}),[f,h]=df(e.kind,e.type,d?.id,p),g="";f||p&&!m?g=qC():h&&(g=c6e({type:e.type,kind:e.kind}));let v=pf({clientId:r,attributes:e,setAttributes:t}),b=(0,$C.useSelect)(N=>N(py.store).getSettings().onNavigateToEntityRecord,[]),_=(0,$C.useSelect)(N=>N(joe.store).getEntityRecord("root","__unstableBase")?.home,[]),x=(0,$C.useSelect)(N=>N(py.store).getBlockEditingMode(r),[r])==="contentOnly",w=uy({url:i,entityRecord:d,type:e.type,hasBinding:p,isEntityAvailable:m}),S=!!i&&(!i6e(i)||l6e(i)&&!i.startsWith("/")),T=S&&i.startsWith("/")&&_?_+i:i;return(0,Ho.jsxs)(jo.__experimentalToolsPanel,{label:(0,Jt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Jt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Ho.jsx)(jo.TextControl,{label:(0,Jt.__)("Text"),value:n?(0,Hoe.__unstableStripHTML)(n):"",onChange:N=>{t({label:N})},autoComplete:"off"})}),o&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,Jt.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Ho.jsx)(n6e,{preview:w,onSelect:v,suggestionsQuery:EM(e.type,e.kind),label:(0,Jt.__)("Link to"),help:g||void 0})}),(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Jt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Ho.jsx)(jo.CheckboxControl,{label:(0,Jt.__)("Open in new tab"),checked:c,onChange:N=>t({opensInNewTab:N})})}),!!i&&p&&m&&d?.id&&e.kind==="post-type"&&b&&(0,Ho.jsx)(jo.Button,{variant:"secondary",onClick:()=>{b({postId:d.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Jt.__)("Edit")}),S&&(0,Ho.jsx)(jo.Button,{variant:"secondary",href:T,target:"_blank",icon:$1,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Jt.__)("View")})]}),(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Jt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!x,children:(0,Ho.jsx)(jo.TextareaControl,{label:(0,Jt.__)("Description"),value:l||"",onChange:N=>{t({description:N})},help:(0,Jt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Jt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!x,children:(0,Ho.jsx)(jo.TextControl,{label:(0,Jt.__)("Rel attribute"),value:s||"",onChange:N=>{t({rel:N})},autoComplete:"off",help:(0,Jt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function qC(){return(0,Jt.__)("This link is invalid and will not appear on your site. Please update the link.")}function c6e({type:e,kind:t}){let r=s6e(e,t);return(0,Jt.sprintf)((0,Jt.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var LM=a(I(),1),Uoe=a(Xo(),1),RM=a(y(),1);function dy({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,LM.__)("Invalid"):(0,LM.__)("Draft");return(0,RM.jsx)("div",{className:C("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,RM.jsx)("span",{children:`${(0,Uoe.decodeEntities)(e)} (${n})`.trim()})})}var Goe=a(F(),1),Woe=a(B(),1);function fy(e){return(0,Goe.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:n}=t(Woe.store),i=r(),l=n(e,"core/navigation")[0];return i===l||o(l,!0)},[e])}var ZC=a(H(),1),hy=e=>{let[t,r]=(0,ZC.useState)(!1);return(0,ZC.useEffect)(()=>{let{ownerDocument:o}=e.current;function n(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return o.addEventListener("dragstart",n),o.addEventListener("dragend",i),o.addEventListener("dragenter",l),()=>{o.removeEventListener("dragstart",n),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",l)}},[e]),t};function gy(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,o=r.getSelection(),n=t.createRange();n.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(n)}var Zoe=a(y(),1),u6e=["core/navigation-link","core/navigation-submenu"];function KC({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:o,removeBlock:n}=(0,qoe.useDispatch)($oe.store),i=u6e?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=Ui({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let p=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),r(null)},m=f=>h=>{f&&o(f,h)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),r(f)};return(0,Zoe.jsx)(Iu,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{p()},onChange:f=>{let{isEntityLink:h,attributes:g}=iy(f,m(t?.clientId),t?.attributes);h?c(g):u(),r(null)}})}var YC=a(O(),1),Koe=a(I(),1),Yoe=a(B(),1);var vy=a(y(),1),{useBlockDisplayTitle:p6e}=U(Yoe.privateApis),m6e=(0,Koe.__)("Switch to '%s'");function Qoe({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,isManageMenusButtonDisabled:c}){let u=p6e({clientId:e,context:"list-view"});return(0,vy.jsxs)(YC.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,vy.jsx)(YC.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,vy.jsx)(jg,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,actionLabel:m6e,isManageMenusButtonDisabled:c})]})}var xn=a(y(),1),d6e=(0,tm.__)("Switch to '%s'"),{PrivateListView:f6e,PrivateBlockContext:h6e,useListViewPanelState:g6e,useBlockDisplayTitle:v6e}=U(rm.privateApis),Xoe=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:n,expandRevision:i})=>{let l=(0,QC.useSelect)(p=>!!p(rm.store).getBlockCount(e),[e]),{openListViewContentPanel:s}=U((0,QC.useDispatch)(rm.store)),{navigationMenu:c}=Fg(t);if(t&&o)return(0,xn.jsx)(OC,{onCreateNew:n,isNotice:!0});if(r)return(0,xn.jsx)(by.Spinner,{});let u=c?(0,tm.sprintf)((0,tm.__)("Structure for Navigation Menu: %s"),c?.title||(0,tm.__)("Untitled menu")):(0,tm.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,xn.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!l&&(0,xn.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,tm.__)("This Navigation Menu is empty.")}),(0,xn.jsx)(f6e,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:koe,additionalBlockContent:KC,onSelect:s},`${e}-${i}`)]})},b6e=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:i,onSelectClassicMenu:l,onSelectNavigationMenu:s,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:p}=(0,Joe.useContext)(h6e),m=v6e({clientId:t,context:"list-view"}),d=p,{isOpened:f,expandRevision:h,handleToggle:g}=g6e(t);return d?(0,xn.jsx)(rm.InspectorControls,{group:"list",children:(0,xn.jsxs)(by.PanelBody,{title:m,opened:f,onToggle:g,children:[u==="default"&&(0,xn.jsx)(jg,{currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:d6e,isManageMenusButtonDisabled:c}),(0,xn.jsx)(Xoe,{...e,expandRevision:h})]})}):(0,xn.jsx)(rm.InspectorControls,{group:"list",children:(0,xn.jsxs)(by.PanelBody,{title:null,children:[(0,xn.jsx)(Qoe,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,xn.jsx)(Xoe,{...e,expandRevision:h})]})})},XC=b6e;var MM=a(y(),1);function JC({id:e,children:t}){return(0,MM.jsx)(vi,{children:(0,MM.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var eae=a(oe(),1),eS=a(I(),1);var tae=a(y(),1);function rae({id:e}){let[t]=(0,eae.useEntityProp)("postType","wp_navigation","title"),r=(0,eS.sprintf)((0,eS.__)('Navigation Menu: "%s"'),t);return(0,tae.jsx)(JC,{id:e,children:r})}var AM=a(F(),1),oae=a(oe(),1);function yy(){let e=(0,AM.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,AM.select)(oae.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===Cc:!1}var _e=a(y(),1),{isNavigationPostEditorKey:y6e}=U(Je.privateApis);function _6e({clientId:e}){let{insertBlock:t}=(0,Ns.useDispatch)(Je.store),{getBlockCount:r}=(0,Ns.useSelect)(Je.store),o=(0,mr.useCallback)(()=>{let n=r(e),i=(0,aae.createBlock)(Fi.name,{kind:Fi.attributes.kind,type:Fi.attributes.type});t(i,n,e)},[e,t,r]);return(0,_e.jsx)(Je.BlockControls,{children:(0,_e.jsx)(Jr.ToolbarGroup,{children:(0,_e.jsx)(Jr.ToolbarButton,{name:"add-page",icon:ru,onClick:o,children:(0,At.__)("Add page")})})})}function x6e({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:p}){let[m,d]=(0,mr.useState)(),[f,h]=(0,mr.useState)(),[g,v]=(0,mr.useState)(),[b,_]=(0,mr.useState)(),k=(0,Ns.useSelect)(()=>yy(),[]);(0,mr.useEffect)(()=>{dM(u.current,h,d);let S=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');S&&(n.color||l.color)&&dM(S,_,v)},[n.color,l.color,u]);let x=(0,Je.__experimentalUseMultipleOriginColorsAndGradients)();if(!x.hasColorsOrGradients)return null;let w=[{colorValue:e.color,label:(0,At.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,At.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return w.push({colorValue:n.color,label:p||k?(0,At.__)("Submenu text"):(0,At.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:p||k?(0,At.__)("Submenu background"):(0,At.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}),(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(Je.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:w,panelId:c,...x,gradients:[],disableCustomGradients:!0}),(0,_e.jsx)(Je.ContrastChecker,{backgroundColor:m,textColor:f}),(0,_e.jsx)(Je.ContrastChecker,{backgroundColor:g,textColor:b})]})}function k6e({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:p,overlayTextColor:m,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{submenuVisibility:g,overlayMenu:v,overlay:b,showSubmenuIcon:_,templateLock:k,layout:{justifyContent:x,orientation:w="horizontal",flexWrap:S="wrap"}={},hasIcon:T,icon:N="handle"}=e,D=e.ref,L=(0,mr.useCallback)(or=>{t({ref:or})},[t]),P=`navigationMenu/${D}`,E=(0,Je.useHasRecursion)(P),{isPreviewMode:M,onNavigateToEntityRecord:z,currentTheme:j,editorDisabledResponsive:q,hasSelectedStyleState:G}=(0,Ns.useSelect)(or=>{let{getSettings:nl,hasSelectedStyleState:eu}=U(or(Je.store)),Us=nl();return{isPreviewMode:Us.isPreviewMode,onNavigateToEntityRecord:Us?.onNavigateToEntityRecord,currentTheme:or(om.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!Us?.[y6e],hasSelectedStyleState:eu(r)}},[r]),W=M?!1:E,V=(0,Je.useBlockEditingMode)(),{records:Q}=(0,om.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[Y,re]=vC({name:"block-library/core/navigation/status"}),[J,ie]=vC({name:"block-library/core/navigation/classic-menu-conversion"}),[ee,te]=vC({name:"block-library/core/navigation/permissions/update"}),{create:de,status:we,error:le,value:me,isPending:xe,isSuccess:ae,isError:pe}=moe(r),se=async()=>{await de("")},{hasUncontrolledInnerBlocks:Ne,uncontrolledInnerBlocks:Ie,isInnerBlockSelected:X,innerBlocks:Ce}=hoe(r),{replaceInnerBlocks:ue,selectBlock:ct,__unstableMarkNextChangeAsNotPersistent:he}=(0,Ns.useDispatch)(Je.store);(0,mr.useEffect)(()=>{w==="horizontal"&&g==="always"&&(he(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[w,g,t,he]);let ze=(0,mr.useRef)(!1),Ct=(0,Ns.useSelect)(or=>{if(Ce.some(Vm=>Vm.name==="core/navigation-submenu"))return!0;let eu=Ce.find(Vm=>Vm.name==="core/page-list");if(!eu)return ze.current=!1,!1;if(ze.current)return!0;let{getBlocks:Us}=or(Je.store);return Us(eu.clientId).length>0?(ze.current=!0,!0):!1},[Ce]),{records:Ae}=(0,om.useEntityRecords)("postType","wp_template_part",{per_page:-1}),Io=Ae?.some(or=>or.area===Cc)??!1,[Do,Lo]=(0,mr.useState)(!1),[bo,qo]=(0,mr.useState)(!1),{hasResolvedNavigationMenus:Xa,isNavigationMenuResolved:ne,isNavigationMenuMissing:Ve,canUserUpdateNavigationMenu:$e,hasResolvedCanUserUpdateNavigationMenu:Lt,canUserDeleteNavigationMenu:tt,hasResolvedCanUserDeleteNavigationMenu:kr,canUserCreateNavigationMenus:Ja,isResolvingCanUserCreateNavigationMenus:ci,hasResolvedCanUserCreateNavigationMenus:rt}=Fg(D),wa=Xa&&Ve,{convert:Lm,status:Ln,error:ol}=Qre(de),tp=Ln===DC,Hs=(0,mr.useCallback)((or,nl={focusNavigationBlock:!1})=>{let{focusNavigationBlock:eu}=nl;L(or),eu&&ct(r)},[ct,r,L]),Ul=!Ve&&ne,Jc=Ne&&!Ul,{getNavigationFallbackId:_1}=U((0,Ns.useSelect)(om.store)),De=D||Jc?null:_1();(0,mr.useEffect)(()=>{D||Jc||!De||(he(),L(De))},[D,L,Jc,De,he]);let bt=(0,mr.useRef)(),sr=(0,Ns.useSelect)(()=>yy(),[]),wr=sr?"div":"nav",$r=!D&&!xe&&!tp&&Xa&&Q?.length===0&&!Ne,en=!Xa||xe||tp||!!(D&&!Ul&&!tp),ui=e.style?.typography?.textDecoration,Rm=(0,Ns.useSelect)(or=>or(Je.store).__unstableHasActiveBlockOverlayActive(r),[r]),rh=(0,mr.useRef)(!1);(0,mr.useEffect)(()=>{sr&&(v!=="never"&&t({overlayMenu:"never"}),!rh.current&&!D&&(rh.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,sr,v,D,t]);let al=v!=="never"&&!q,pi=(0,Je.useBlockProps)({ref:bt,className:C(n,{"items-justified-right":x==="right","items-justified-space-between":x==="space-between","items-justified-left":x==="left","items-justified-center":x==="center","is-vertical":w==="vertical","no-wrap":S==="nowrap","is-responsive":al,"has-text-color":!!s.color||!!s?.class,[(0,Je.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Je.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${ui}`]:ui,"block-editor-block-content-overlay":Rm},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),oh=async or=>Lm(or.id,or.name,"draft"),Mm=or=>{Hs(or)};(0,mr.useEffect)(()=>{re(),xe&&(0,tS.speak)((0,At.__)("Creating Navigation Menu.")),ae&&(Hs(me?.id,{focusNavigationBlock:!0}),Y((0,At.__)("Navigation Menu successfully created."))),pe&&Y((0,At.__)("Failed to create Navigation Menu."))},[we,le,me?.id,pe,ae,xe,Hs,re,Y]),(0,mr.useEffect)(()=>{ie(),Ln===DC&&(0,tS.speak)((0,At.__)("Classic menu importing.")),Ln===_M&&(J((0,At.__)("Classic menu imported successfully.")),Hs(me?.id,{focusNavigationBlock:!0})),Ln===NC&&J((0,At.__)("Classic menu import failed."))},[Ln,ol,ie,J,me?.id,Hs]),(0,mr.useEffect)(()=>{!o&&!X&&te(),(o||X)&&(D&&!wa&&Lt&&!$e&&ee((0,At.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!D&&rt&&!Ja&&ee((0,At.__)("You do not have permission to create Navigation Menus.")))},[o,X,$e,Lt,Ja,rt,D,te,ee,wa]);let $2=Ja||$e,js=C("wp-block-navigation__overlay-menu-preview",{open:bo}),mi=!_&&g!=="click"&&g!=="always"?(0,At.__)('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.'):"",x1=(0,mr.useRef)(!0);(0,mr.useEffect)(()=>{!x1.current&&mi&&(0,tS.speak)(mi),x1.current=!1},[mi]);let t9=(0,nae.useInstanceId)(gre,"overlay-menu-preview"),r9=Z(),k1=(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(Je.InspectorControls,{children:Ct&&(0,_e.jsx)(Jr.__experimentalToolsPanel,{label:(0,At.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:r9,children:Ct&&(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,At.__)("Submenus")}),(0,_e.jsx)(Jr.__experimentalToolsPanelItem,{hasValue:()=>g!=="hover",label:(0,At.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,_e.jsxs)(Jr.__experimentalToggleGroupControl,{label:(0,At.__)("Submenu Visibility"),value:g,onChange:or=>{let nl={submenuVisibility:or};or==="always"?nl.showSubmenuIcon=!1:(or==="click"||g==="always")&&(nl.showSubmenuIcon=!0),t(nl)},isBlock:!0,children:[(0,_e.jsx)(Jr.__experimentalToggleGroupControlOption,{value:"hover",label:(0,At.__)("Hover")}),(0,_e.jsx)(Jr.__experimentalToggleGroupControlOption,{value:"click",label:(0,At.__)("Click")}),w==="vertical"&&(0,_e.jsx)(Jr.__experimentalToggleGroupControlOption,{value:"always",label:(0,At.__)("Always")})]})}),(0,_e.jsx)(Jr.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,At.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:g==="click"||g==="always",isShownByDefault:!0,children:(0,_e.jsx)(Jr.ToggleControl,{checked:_,onChange:or=>{t({showSubmenuIcon:or})},disabled:g==="click"||g==="always",label:(0,At.__)("Show arrow")})}),mi&&(0,_e.jsx)(Jr.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:mi})]})})}),!sr&&(0,_e.jsx)(Je.InspectorControls,{children:(0,_e.jsx)(Wre,{overlayMenu:v,overlay:b,setAttributes:t,onNavigateToEntityRecord:z,overlayMenuPreview:bo,setOverlayMenuPreview:qo,hasIcon:T,icon:N,overlayMenuPreviewClasses:js,overlayMenuPreviewId:t9,isResponsive:al,currentTheme:j,hasOverlays:Io})}),!G&&(0,_e.jsx)(Je.InspectorControls,{group:"color",children:(0,_e.jsx)(x6e,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:m,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:p,clientId:r,navRef:bt,hasCustomOverlay:!!b})})]}),Am=`${r}-desc`,zm=v==="always",ah=!$2||!Xa;if(Jc&&!xe)return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(XC,{clientId:r,createNavigationMenuIsSuccess:ae,createNavigationMenuIsError:pe,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:ah,onCreateNew:se,onSelectClassicMenu:oh,onSelectNavigationMenu:Mm,isLoading:en,blockEditingMode:V}),V==="default"&&k1,(0,_e.jsxs)(wr,{...pi,"aria-describedby":$r?void 0:Am,children:[(0,_e.jsx)(JC,{id:Am,children:(0,At.__)("Unsaved Navigation Menu.")}),(0,_e.jsx)(cM,{id:r,onToggle:Lo,isOpen:Do,hasIcon:T,icon:N,isResponsive:al,isHiddenByDefault:zm,overlayBackgroundColor:u,overlayTextColor:m,overlay:b,onNavigateToEntityRecord:z,children:(0,_e.jsx)(ure,{createNavigationMenu:de,blocks:Ie,hasSelection:o||X})})]})]});if(D&&Ve)return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(XC,{clientId:r,createNavigationMenuIsSuccess:ae,createNavigationMenuIsError:pe,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:ah,onCreateNew:se,onSelectClassicMenu:oh,onSelectNavigationMenu:Mm,isLoading:en,blockEditingMode:V}),(0,_e.jsx)(wr,{...pi,children:(0,_e.jsx)(OC,{onCreateNew:se})})]});if(Ul&&W)return(0,_e.jsx)("div",{...pi,children:(0,_e.jsx)(Je.Warning,{children:(0,At.__)("Block cannot be rendered inside itself.")})});let o9=f||$te;return $r&&f?(0,_e.jsx)(wr,{...pi,children:(0,_e.jsx)(o9,{isSelected:o,currentMenuId:D,clientId:r,canUserCreateNavigationMenus:Ja,isResolvingCanUserCreateNavigationMenus:ci,onSelectNavigationMenu:Mm,onSelectClassicMenu:oh,onCreateEmpty:se})}):(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(XC,{clientId:r,createNavigationMenuIsSuccess:ae,createNavigationMenuIsError:pe,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:ah,onCreateNew:se,onSelectClassicMenu:oh,onSelectNavigationMenu:Mm,isLoading:en,blockEditingMode:V}),V==="default"&&k1,(0,_e.jsx)(om.EntityProvider,{kind:"postType",type:"wp_navigation",id:D,children:(0,_e.jsxs)(Je.RecursionProvider,{uniqueId:P,children:[V==="contentOnly"&&Ul&&(0,_e.jsx)(_6e,{clientId:r}),V==="default"&&Ul&&(0,_e.jsxs)(Je.InspectorControls,{group:"advanced",children:[Lt&&$e&&(0,_e.jsx)(ore,{}),kr&&tt&&(0,_e.jsx)(dre,{onDelete:()=>{ue(r,[]),Y((0,At.__)("Navigation Menu successfully deleted."))}}),(0,_e.jsx)(yoe,{disabled:ah,className:"wp-block-navigation-manage-menus-button"})]}),(0,_e.jsxs)(wr,{...pi,"aria-describedby":!$r&&!en?Am:void 0,children:[en&&!zm&&(0,_e.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,_e.jsx)(Jr.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!en||zm)&&(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(rae,{id:Am}),(0,_e.jsx)(cM,{id:r,onToggle:Lo,hasIcon:T,icon:N,isOpen:Do,isResponsive:al,isHiddenByDefault:zm,overlayBackgroundColor:u,overlayTextColor:m,overlay:b,onNavigateToEntityRecord:z,children:Ul&&(0,_e.jsx)(Xte,{clientId:r,hasCustomPlaceholder:!!f,templateLock:k,orientation:w})})]})]})]})})]})}var iae=(0,Je.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(k6e);var lae=a(B(),1),sae=a(y(),1);function cae({attributes:e}){if(!e.ref)return(0,sae.jsx)(lae.InnerBlocks.Content,{})}var am=a(B(),1),t0=a(ge(),1);var nm=a(y(),1),zM={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},r0=({navigationMenuId:e,...t})=>({...t,ref:e}),rS=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:r,...o}=e;return(t||r)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),o},oS=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},w6e={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"},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]}},supports:{align:["wide","full"],anchor:!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},save(){return(0,nm.jsx)(am.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:oS},C6e={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},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,nm.jsx)(am.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:r0},S6e={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,nm.jsx)(am.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,t0.compose)(r0,rS,oS)},T6e={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,nm.jsx)(am.InnerBlocks.Content,{})},migrate:(0,t0.compose)(r0,rS,Zt,oS),isEligible({style:e}){return e?.typography?.fontFamily}},P6e=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},B6e=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=zM[t];if(o&&r.startsWith(o)){let n=r.slice(o.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,r]}))}}},E6e=[w6e,C6e,S6e,T6e,{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,t0.compose)(r0,rS,Zt,P6e,oS),save(){return(0,nm.jsx)(am.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,nm.jsx)(am.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in zM){let r=e.style.typography[t];if(r&&r.startsWith(zM[t]))return!0}return!1},migrate:(0,t0.compose)(r0,rS,Zt,B6e)},{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,t0.compose)(r0,e=>{let{rgbTextColor:t,rgbBackgroundColor:r,...o}=e;return{...o,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,nm.jsx)(am.InnerBlocks.Content,{})}}],uae=E6e;var{name:fae}=uC,hae={icon:Jm,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,aS.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,aS.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,aS.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:iae,save:cae,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,pae.select)(mae.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,dae.decodeEntities)(t.title)},deprecated:uae},N6e=()=>R({name:fae,metadata:uC,settings:hae});var FM={};K(FM,{init:()=>O6e,metadata:()=>nS,name:()=>Sae,settings:()=>uS});var im=a(I(),1);var xae=a(B(),1),kae=a(vu(),1),wae=a($(),1);var nS={$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}},selectors:{states:{"-current":".wp-block-navigation .current-menu-item"}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var iS=a($(),1),_y=a(F(),1),xy=a(O(),1),lS=a(Ks(),1),Bl=a(I(),1),da=a(B(),1),sS=a(ur(),1),kn=a(H(),1);var cS=a(ge(),1);var dr=a(y(),1),D6e={name:"core/navigation-link"},L6e=["core/navigation-link","core/navigation-submenu"];function R6e(e){let t="";switch(e){case"post":t=(0,Bl.__)("Select post");break;case"page":t=(0,Bl.__)("Select page");break;case"category":t=(0,Bl.__)("Select category");break;case"tag":t=(0,Bl.__)("Select tag");break;default:t=(0,Bl.__)("Add link")}return t}function OM({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:p,url:m,description:d,kind:f,metadata:h}=e,{maxNestingLevel:g}=l,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:b,selectBlock:_}=(0,_y.useDispatch)(da.store),[k,x]=(0,kn.useState)(t&&!m),[w,S]=(0,kn.useState)(null),T=(0,kn.useRef)(null),N=hy(T),D=(0,Bl.__)("Add label\u2026"),L=(0,kn.useRef)(),P=(0,kn.useRef)(),E=(0,kn.useRef)(u===void 0),M=(0,kn.useRef)(!1),{isAtMaxNesting:z,isTopLevelLink:j,isParentOfSelectedBlock:q,hasChildren:G,parentBlockClientId:W,isSubmenu:V}=(0,_y.useSelect)(Ae=>{let{getBlockCount:Io,getBlockName:Do,getBlockRootClientId:Lo,hasSelectedInnerBlock:bo,getBlockParentsByBlockName:qo}=Ae(da.store),Xa=Lo(s),ne=Do(Xa),Ve=ne==="core/navigation",$e=Ve?Xa:qo(s,"core/navigation")[0],Lt=ne==="core/navigation-submenu"?Xa:$e;return{isAtMaxNesting:qo(s,L6e).length>=g,isTopLevelLink:Ve,isParentOfSelectedBlock:bo(s,!0),hasChildren:!!Io(s),parentBlockClientId:Lt,isSubmenu:ne==="core/navigation-submenu"}},[s,g]),Q=fy(s),{getBlocks:Y}=(0,_y.useSelect)(da.store),{hasUrlBinding:re,isBoundEntityAvailable:J,entityRecord:ie}=Ui({clientId:s,attributes:e}),ee=pf({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),[te,de]=df(f,p,c,Q),we=(0,kn.useCallback)(()=>{let Ae=Y(s);Ae.length===0&&(Ae=[(0,iS.createBlock)("core/navigation-link")],_(Ae[0].clientId));let Io=(0,iS.createBlock)("core/navigation-submenu",e,Ae);v(s,Io)},[Y,s,_,v,e]);(0,kn.useEffect)(()=>{E.current&&t&&_(W)},[]),(0,kn.useEffect)(()=>{G&&(b(),we())},[G,b,we]),(0,kn.useEffect)(()=>{if(!(!E.current||!m||!k)){if(E.current=!1,(0,sS.isURL)((0,sS.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))gy(L);else if(_(s,null),V){let Ae=Y(W);Ae.length===1&&Ae[0].clientId===s&&(M.current=!0)}}},[m,k,E,u]);function le(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)}let{textColor:me,customTextColor:xe,backgroundColor:ae,customBackgroundColor:pe}=nf(l,!j);function se(Ae){lS.isKeyboardEvent.primary(Ae,"k")&&(Ae.preventDefault(),Ae.stopPropagation(),x(!0))}let Ne=(0,cS.useInstanceId)(OM),Ie=re&&!J,X=Ie?(0,Bl.sprintf)("navigation-link-edit-%d-desc",Ne):void 0,Ce=(0,da.useBlockProps)({ref:(0,cS.useMergeRefs)([S,T]),className:C("wp-block-navigation-item",{"is-editing":t||q,"is-dragging-within":N,"has-link":!!m,"has-child":G,"has-text-color":!!me||!!xe,[(0,da.getColorClassName)("color",me)]:!!me,"has-background":!!ae||pe,[(0,da.getColorClassName)("background-color",ae)]:!!ae}),"aria-describedby":X,"aria-invalid":Ie,style:{color:!me&&xe,backgroundColor:!ae&&pe},onKeyDown:se}),ue=(0,da.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:D6e,directInsert:!0,renderAppender:!1}),ct=!m&&!(re&&J)||te||de||re&&!J;ct&&(Ce.onClick=()=>{x(!0)});let he=C("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":ct}),ze=R6e(p),Ct=qC();return(0,dr.jsxs)(dr.Fragment,{children:[(0,dr.jsx)(da.BlockControls,{children:(0,dr.jsxs)(xy.ToolbarGroup,{children:[(0,dr.jsx)(xy.ToolbarButton,{name:"link",icon:fi,title:(0,Bl.__)("Link"),shortcut:lS.displayShortcut.primary("k"),onClick:()=>{x(!0)}}),!z&&(0,dr.jsx)(xy.ToolbarButton,{name:"submenu",icon:Gm,title:(0,Bl.__)("Add submenu"),onClick:we})]})}),(0,dr.jsx)(da.InspectorControls,{group:"content",children:(0,dr.jsx)(my,{attributes:e,setAttributes:r,clientId:s})}),(0,dr.jsxs)("div",{...Ce,children:[Ie&&(0,dr.jsx)(vi,{id:X,children:Ct}),(0,dr.jsxs)("a",{className:he,children:[!m&&!h?.bindings?.url?(0,dr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,dr.jsx)("span",{children:ze})}):(0,dr.jsxs)(dr.Fragment,{children:[!te&&!de&&(0,dr.jsxs)(dr.Fragment,{children:[(0,dr.jsx)(da.RichText,{ref:L,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:Ae=>r({label:Ae}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>o((0,iS.createBlock)("core/navigation-link")),"aria-label":(0,Bl.__)("Navigation link text"),placeholder:D,withoutInteractiveFormatting:!0}),d&&(0,dr.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(te||de)&&(0,dr.jsx)(dy,{label:u,isInvalid:te,isDraft:de,className:"wp-block-navigation-link__label"})]}),k&&(0,dr.jsx)(Iu,{ref:P,clientId:s,link:e,entity:{entityRecord:ie,hasBinding:re,isEntityAvailable:J},onClose:()=>{if(x(!1),!m&&!re){i([]);return}if(M.current&&(M.current=!1,T.current?.nextElementSibling)){let Ae=T.current.nextElementSibling.querySelector(".block-editor-button-block-appender");Ae&&Ae.focus()}},anchor:w,onRemove:le,onChange:ee})]}),(0,dr.jsx)("div",{...ue})]})]})}var gae=a(B(),1),vae=a(y(),1);function bae(){return(0,vae.jsx)(gae.InnerBlocks.Content,{})}function M6e(e){switch(e){case"post":return dv;case"page":return ru;case"tag":return Tv;case"category":return lp;default:return LP}}function yae(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(n,i)=>n.type===i.type,o=e.variations.map(n=>({...n,...!n.icon&&{icon:M6e(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var fa=a($(),1),A6e={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,fa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,fa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,fa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,fa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,fa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,fa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,fa.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,fa.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,fa.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,fa.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,fa.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,fa.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,fa.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,fa.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:n})=>(0,fa.createBlock)("core/buttons",{},[(0,fa.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:n?"_blank":void 0})])}]},_ae=A6e;var Cae=a(y(),1),{fieldsKey:z6e,formKey:V6e}=U(wae.privateApis),{name:Sae}=nS,uS={icon:U1,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,im.sprintf)((0,im._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:OM,save:bae,example:{attributes:{label:(0,im._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,Cae.jsx)(xae.InnerBlocks.Content,{})}}],transforms:_ae};window.__experimentalContentOnlyInspectorFields&&(uS[z6e]=[{id:"label",label:(0,im.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,im.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],uS[V6e]={fields:["label","link"]});var O6e=()=>((0,kae.addFilter)("blocks.registerBlockType","core/navigation-link",yae),R({name:Sae,metadata:nS,settings:uS}));var jM={};K(jM,{init:()=>G6e,metadata:()=>pS,name:()=>Aae,settings:()=>vS});var wy=a(I(),1),Mae=a($(),1);var pS={$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"},isParentSubmenu:{type:"boolean",default:!0}},providesContext:{"core/isInsideSubmenu":"isParentSubmenu"},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","submenuVisibility","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 dS=a(F(),1),ky=a(O(),1),fS=a(Ks(),1),o0=a(I(),1),co=a(B(),1),hS=a(ur(),1),Is=a(H(),1);var Bae=a(Bh(),1),Eae=a($(),1),gS=a(ge(),1);var mS=a(O(),1),HM=a(y(),1),Tae=()=>(0,HM.jsx)(mS.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,HM.jsx)(mS.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Hr=a(y(),1),Pae=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function Nae({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u,kind:p,type:m,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,submenuVisibility:g}=i,b=(0,co.useBlockEditingMode)()!=="default"?!0:g==="click",{hasUrlBinding:_,isBoundEntityAvailable:k,entityRecord:x}=Ui({clientId:l,attributes:e}),w=pf({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:S,replaceBlock:T}=(0,dS.useDispatch)(co.store),[N,D]=(0,Is.useState)(!1),[L,P]=(0,Is.useState)(null),E=(0,Is.useRef)(null),M=hy(E),z=(0,o0.__)("Add text\u2026"),j=(0,Is.useRef)(),{parentCount:q,isParentOfSelectedBlock:G,isImmediateParentOfSelectedBlock:W,hasChildren:V,selectedBlockHasChildren:Q,onlyDescendantIsEmptyLink:Y}=(0,dS.useSelect)(ue=>{let{hasSelectedInnerBlock:ct,getSelectedBlockClientId:he,getBlockParentsByBlockName:ze,getBlock:Ct,getBlockCount:Ae,getBlockOrder:Io}=ue(co.store),Do,Lo=he(),bo=Io(Lo);if(bo?.length===1){let qo=Ct(bo[0]);Do=qo?.name==="core/navigation-link"&&!qo?.attributes?.label}return{parentCount:ze(l,"core/navigation-submenu").length,isParentOfSelectedBlock:ct(l,!0),isImmediateParentOfSelectedBlock:ct(l,!1),hasChildren:!!Ae(l),selectedBlockHasChildren:!!bo?.length,onlyDescendantIsEmptyLink:Do}},[l]),re=fy(l),J=(0,gS.usePrevious)(V),[ie,ee]=df(p,m,d,re);(0,Is.useEffect)(()=>{!b&&!c&&D(!0)},[]),(0,Is.useEffect)(()=>{t||D(!1)},[t]),(0,Is.useEffect)(()=>{N&&c&&(0,hS.isURL)((0,hS.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&gy(j)},[c]);let{textColor:te,customTextColor:de,backgroundColor:we,customBackgroundColor:le}=nf(i,q>0);function me(ue){fS.isKeyboardEvent.primary(ue,"k")&&(ue.preventDefault(),ue.stopPropagation(),D(!0))}let xe=(0,co.useBlockProps)({ref:(0,gS.useMergeRefs)([P,E]),className:C("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":M,"has-link":!!c,"has-child":V,"has-text-color":!!te||!!de,[(0,co.getColorClassName)("color",te)]:!!te,"has-background":!!we||le,[(0,co.getColorClassName)("background-color",we)]:!!we,"open-on-click":b,"open-always":g==="always"}),style:{color:!te&&de,backgroundColor:!we&&le},onKeyDown:me}),ae=nf(i,!0),pe=q>=h?Pae.filter(ue=>ue!=="core/navigation-submenu"):Pae,se=_C(ae),Ne=(0,co.useInnerBlocksProps)(se,{allowedBlocks:pe,defaultBlock:Fi,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||W&&!Q||V?co.InnerBlocks.ButtonBlockAppender:!1}),Ie=b?"button":"a";function X(){let ue=(0,Eae.createBlock)("core/navigation-link",e);T(l,ue)}(0,Is.useEffect)(()=>{!V&&J&&(S(),X())},[V,J]);let Ce=!Q||Y;return(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(co.BlockControls,{children:(0,Hr.jsxs)(ky.ToolbarGroup,{children:[!b&&(0,Hr.jsx)(ky.ToolbarButton,{name:"link",icon:fi,title:(0,o0.__)("Link"),shortcut:fS.displayShortcut.primary("k"),onClick:()=>{D(!0)}}),(0,Hr.jsx)(ky.ToolbarButton,{name:"revert",icon:QE,title:(0,o0.__)("Convert to Link"),onClick:X,className:"wp-block-navigation__submenu__revert",disabled:!Ce})]})}),(0,Hr.jsx)(co.InspectorControls,{group:"content",children:(0,Hr.jsx)(my,{attributes:e,setAttributes:r,clientId:l,isLinkEditable:!b})}),(0,Hr.jsxs)("div",{...xe,children:[(0,Hr.jsxs)(Ie,{className:"wp-block-navigation-item__content",children:[!ie&&!ee&&(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(co.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:ue=>r({label:ue}),onMerge:o,onReplace:n,"aria-label":(0,o0.__)("Navigation link text"),placeholder:z,withoutInteractiveFormatting:!0,onClick:()=>{!b&&!c&&D(!0)}}),u&&(0,Hr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(ie||ee)&&(0,Hr.jsx)(dy,{label:s,isInvalid:ie,isDraft:ee,className:"wp-block-navigation-item__label"}),!b&&N&&(0,Hr.jsx)(Iu,{clientId:l,link:e,entity:{entityRecord:x,hasBinding:_,isEntityAvailable:k},onClose:()=>{D(!1)},anchor:L,onRemove:()=>{r({url:""}),(0,Bae.speak)((0,o0.__)("Link removed."),"assertive")},onChange:w})]}),(f||b)&&(0,Hr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Hr.jsx)(Tae,{})}),(0,Hr.jsx)("div",{...Ne})]})]})}var Iae=a(B(),1),Dae=a(y(),1);function Lae(){return(0,Dae.jsx)(Iae.InnerBlocks.Content,{})}var ff=a($(),1),H6e={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,ff.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,ff.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,ff.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,ff.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,ff.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,ff.createBlock)("core/search")}]},Rae=H6e;var{fieldsKey:j6e,formKey:U6e}=U(Mae.privateApis),{name:Aae}=pS,vS={icon:({context:e})=>e==="list-view"?ru:Gm,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:Nae,example:{attributes:{label:(0,wy._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:Lae,transforms:Rae};window.__experimentalContentOnlyInspectorFields&&(vS[j6e]=[{id:"label",label:(0,wy.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,wy.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],vS[U6e]={fields:["label","link"]});var G6e=()=>R({name:Aae,metadata:pS,settings:vS});var GM={};K(GM,{init:()=>q6e,metadata:()=>bS,name:()=>Wae,settings:()=>$ae});var zae=a(I(),1),Vae=a(B(),1),UM=a(y(),1);function Oae(){return(0,UM.jsx)("div",{...(0,Vae.useBlockProps)(),children:(0,UM.jsx)("span",{children:(0,zae.__)("Page break")})})}var bS={$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:{customClassName:!1,className:!1,html:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1},editorStyle:"wp-block-nextpage-editor"};var Fae=a(H(),1),Hae=a(y(),1);function jae(){return(0,Hae.jsx)(Fae.RawHTML,{children:"<!--nextpage-->"})}var Uae=a($(),1),$6e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,Uae.createBlock)("core/nextpage",{})}}]},Gae=$6e;var{name:Wae}=bS,$ae={icon:rE,example:{},transforms:Gae,edit:Oae,save:jae},q6e=()=>R({name:Wae,metadata:bS,settings:$ae});var $M={};K($M,{init:()=>K6e,metadata:()=>yS,name:()=>Yae,settings:()=>Qae});var Kae=a(vu(),1);var a0=a(B(),1),Bc=a(O(),1),Du=a(I(),1);var wn=a(y(),1);function qae({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",l=o||(0,Du.__)("Close"),s=(0,a0.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=Z();return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)(a0.InspectorControls,{children:(0,wn.jsx)(Bc.__experimentalToolsPanel,{label:(0,Du.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,wn.jsx)(Bc.__experimentalToolsPanelItem,{label:(0,Du.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,wn.jsxs)(Bc.__experimentalToggleGroupControl,{label:(0,Du.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,children:[(0,wn.jsx)(Bc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,Du.__)("Icon")}),(0,wn.jsx)(Bc.__experimentalToggleGroupControlOption,{value:"text",label:(0,Du.__)("Text")}),(0,wn.jsx)(Bc.__experimentalToggleGroupControlOption,{value:"both",label:(0,Du.__)("Both")})]})})})}),(0,wn.jsxs)("button",{...s,type:"button","aria-label":i?void 0:(0,Du.__)("Close"),children:[n&&(0,wn.jsx)(on,{icon:Wm}),i&&(0,wn.jsx)(a0.RichText,{identifier:"text",value:l,onChange:u=>t({text:u}),tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var yS={$schema:"https://schemas.wp.org/trunk/block.json",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 _S=a(A(),1),WM=a(y(),1),Zae=(0,WM.jsx)(_S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WM.jsx)(_S.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:Yae}=yS,Qae={icon:Zae,edit:qae},K6e=()=>((0,Kae.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:yy()),R({name:Yae,metadata:yS,settings:Qae}));var ZM={};K(ZM,{init:()=>eTe,metadata:()=>xS,name:()=>ane,settings:()=>nne});var xS={$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 tne=a($(),1),lm=a(F(),1),wS=a(H(),1),sm=a(B(),1),rne=a(oe(),1),CS=a(I(),1);var Xae=a(F(),1),qM=new WeakMap;function Jae(){let e=(0,Xae.useRegistry)();if(!qM.has(e)){let t=new Map;qM.set(e,Q6e.bind(null,t))}return qM.get(e)}function Q6e(e,{name:t,blocks:r}){let o=[...r];for(;o.length;){let n=o.shift();for(let i of n.innerBlocks??[])o.unshift(i);n.name==="core/pattern"&&X6e(e,t,n.attributes.slug)}}function X6e(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),ene(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function ene(e,t,r=new Set,o=new Set){r.add(t),o.add(t);let n=e.get(t)??new Set;for(let i of n)if(r.has(i)){if(o.has(i))return!0}else if(ene(e,i,r,o))return!0;return o.delete(t),!1}var kS=a(y(),1),J6e=({attributes:e,clientId:t})=>{let r=(0,lm.useRegistry)(),o=(0,lm.useSelect)(g=>g(sm.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,lm.useSelect)(g=>g(rne.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,lm.useDispatch)(sm.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,lm.useSelect)(sm.store),[p,m]=(0,wS.useState)(!1),d=Jae();function f(g){return g.innerBlocks.find(v=>v.name==="core/template-part")&&(g.innerBlocks=g.innerBlocks.map(v=>(v.name==="core/template-part"&&v.attributes.theme===void 0&&(v.attributes.theme=n),v))),g.name==="core/template-part"&&g.attributes.theme===void 0&&(g.attributes.theme=n),g}(0,wS.useEffect)(()=>{if(!p&&o?.blocks){try{d(o)}catch{m(!0);return}window.queueMicrotask(()=>{let g=c(t),v=o.blocks.map(_=>(0,tne.cloneBlock)(f(_)));v.length===1&&o.categories?.length>0&&(v[0].attributes={...v[0].attributes,metadata:{...v[0].attributes.metadata,categories:o.categories,patternName:o.name,name:v[0].attributes.metadata.name||o.title}});let b=u(g);r.batch(()=>{s(),l(g,"default"),s(),i(t,v),s(),l(g,b)})})}},[t,p,o,s,i,u,l,c]);let h=(0,sm.useBlockProps)();return p?(0,kS.jsx)("div",{...h,children:(0,kS.jsx)(sm.Warning,{children:(0,CS.sprintf)((0,CS.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,kS.jsx)("div",{...h})},one=J6e;var{name:ane}=xS,nne={edit:one},eTe=()=>R({name:ane,metadata:xS,settings:nne});var XM={};K(XM,{init:()=>nTe,metadata:()=>SS,name:()=>hne,settings:()=>gne});var SS={$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}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility","core/isInsideSubmenu"],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 mne=a($(),1),Ua=a(B(),1),ja=a(O(),1),Ha=a(I(),1),Ec=a(H(),1),dne=a(oe(),1),PS=a(F(),1);var KM=a($(),1),ine=a(F(),1),lne=a(B(),1);function rTe(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,KM.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:Yg(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):o.push(r[n])}),o}function sne(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=sne(r.innerBlocks,t);if(o)return o}}return null}function oTe(e=[],t=null){let r=rTe(e);if(t){let n=sne(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let o=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let p=(0,KM.createBlock)("core/navigation-submenu",c,u);s[l]=p}})};return o(r),r}function cne({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:n,selectBlock:i}=(0,ine.useDispatch)(lne.store);return()=>{let l=oTe(t,o);n(e,l),i(r)}}var Sy=a(O(),1),YM=a(ge(),1),Cy=a(I(),1),hf=a(y(),1),QM=(0,Cy.__)("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 TS({onClick:e,onClose:t,disabled:r}){return(0,hf.jsxs)(Sy.Modal,{onRequestClose:t,title:(0,Cy.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,YM.useInstanceId)(TS,"wp-block-page-list-modal__description")},children:[(0,hf.jsx)("p",{id:(0,YM.useInstanceId)(TS,"wp-block-page-list-modal__description"),children:QM}),(0,hf.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,hf.jsx)(Sy.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,Cy.__)("Cancel")}),(0,hf.jsx)(Sy.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,Cy.__)("Edit")})]})]})}var Et=a(y(),1),une=100,pne=()=>{};function aTe({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:n,parentPageID:i}){if(!r)return(0,Et.jsx)("div",{...e,children:(0,Et.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,Et.jsx)(ja.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(ja.Notice,{status:"warning",isDismissible:!1,children:(0,Ha.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(ja.Notice,{status:"info",isDismissible:!1,children:(0,Ha.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(Ua.Warning,{children:(0,Ha.sprintf)((0,Ha.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(ja.Notice,{status:"warning",isDismissible:!1,children:(0,Ha.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,Et.jsx)("ul",{...t})}function fne({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:n}=r,[i,l]=(0,Ec.useState)(!1),s=(0,Ec.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=Z(),{records:p,hasResolved:m}=(0,dne.useEntityRecords)("postType","page",{per_page:une,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&p?.length>0&&p?.length<=une,f=(0,Ec.useMemo)(()=>p===null?new Map:p.sort((D,L)=>D.menu_order===L.menu_order?D.title.rendered.localeCompare(L.title.rendered):D.menu_order-L.menu_order).reduce((D,L)=>{let{parent:P}=L;return D.has(P)?D.get(P).push(L):D.set(P,[L]),D},new Map),[p]),h=(0,Ua.useBlockProps)({className:C("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Ua.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Ua.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),g=(0,Ec.useMemo)(function N(D=0,L=0){let P=f.get(D);return P?.length?P.reduce((E,M)=>{let z=f.has(M.id),j={value:M.id,label:"\u2014 ".repeat(L)+M.title.rendered,rawName:M.title.rendered};return E.push(j),z&&E.push(...N(M.id,L+1)),E},[]):[]},[f]),v=(0,Ec.useMemo)(function N(D=n){let L=f.get(D);return L?.length?L.reduce((P,E)=>{let M=f.has(E.id),z={id:E.id,label:E.title?.rendered?.trim()!==""?E.title?.rendered:(0,Ha.__)("(no title)"),title:E.title?.rendered?.trim()!==""?E.title?.rendered:(0,Ha.__)("(no title)"),link:E.url,hasChildren:M},j=null,q=N(E.id);return j=(0,mne.createBlock)("core/page-list-item",z,q),P.push(j),P},[]):[]},[f,n]),{hasSelectedChild:b,parentClientId:_,hasDraggedChild:k,isChildOfNavigation:x}=(0,PS.useSelect)(N=>{let{getBlockParentsByBlockName:D,hasSelectedInnerBlock:L,hasDraggedInnerBlock:P}=N(Ua.store),E=D(t,"core/navigation",!0);return{isChildOfNavigation:E.length>0,hasSelectedChild:L(t,!0),hasDraggedChild:P(t,!0),parentClientId:E[0]}},[t]),w=cne({clientId:t,pages:p,parentClientId:_,parentPageID:n}),S=(0,Ua.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:x?!1:"all",onInput:pne,onChange:pne,value:v}),{selectBlock:T}=(0,PS.useDispatch)(Ua.store);return(0,Ec.useEffect)(()=>{(b||k)&&(s(),T(_))},[b,k,_,T,s]),(0,Et.jsxs)(Et.Fragment,{children:[(g.length>0||d)&&(0,Et.jsx)(Ua.InspectorControls,{children:(0,Et.jsxs)(ja.__experimentalToolsPanel,{label:(0,Ha.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:u,children:[g.length>0&&(0,Et.jsx)(ja.__experimentalToolsPanelItem,{label:(0,Ha.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,Et.jsx)(ja.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Ha.__)("Parent"),value:n,options:g,onChange:N=>o({parentPageID:N??0}),help:(0,Ha.__)("Choose a page to show only its subpages.")})}),d&&(0,Et.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,Et.jsx)("p",{children:QM}),(0,Et.jsx)(ja.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!m,onClick:w,children:(0,Ha.__)("Edit")})]})]})}),d&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(Ua.BlockControls,{group:"other",children:(0,Et.jsx)(ja.ToolbarButton,{title:(0,Ha.__)("Edit"),onClick:s,children:(0,Ha.__)("Edit")})}),i&&(0,Et.jsx)(TS,{onClick:w,onClose:c,disabled:!m})]}),(0,Et.jsx)(aTe,{blockProps:h,innerBlocksProps:S,hasResolvedPages:m,blockList:v,pages:p,parentPageID:n})]})}var{name:hne}=SS,gne={icon:oE,example:{},edit:fne},nTe=()=>R({name:hne,metadata:SS,settings:gne});var oA={};K(oA,{init:()=>sTe,metadata:()=>BS,name:()=>yne,settings:()=>_ne});var BS={$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","submenuVisibility"],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 NS=a(B(),1),vne=a(F(),1),tA=a(oe(),1),rA=a(Ca(),1);var ES=a(O(),1),JM=a(y(),1),eA=()=>(0,JM.jsx)(ES.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,JM.jsx)(ES.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Cn=a(y(),1);function lTe(){return(0,vne.useSelect)(e=>{if(!e(tA.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(tA.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function bne({context:e,attributes:t}){let{id:r,label:o,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=lTe(),u=e.submenuVisibility,p=u==="click",m=nf(e,!0),d=_C(m),f=(0,NS.useBlockProps)(d,{className:"wp-block-pages-list__item"}),h=(0,NS.useInnerBlocksProps)(f);return(0,Cn.jsxs)("li",{className:C("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":p,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&p?(0,Cn.jsxs)(Cn.Fragment,{children:[(0,Cn.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,rA.safeHTML)(o)}}),(0,Cn.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Cn.jsx)(eA,{})})]}):(0,Cn.jsx)("a",{className:C("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,dangerouslySetInnerHTML:{__html:(0,rA.safeHTML)(l)}}),i&&(0,Cn.jsxs)(Cn.Fragment,{children:[!p&&e.showSubmenuIcon&&(0,Cn.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,Cn.jsx)(eA,{})}),(0,Cn.jsx)("ul",{...h})]})]},r)}var{name:yne}=BS,_ne={__experimentalLabel:({label:e})=>e,icon:ru,example:{},edit:bne},sTe=()=>R({name:yne,metadata:BS,settings:_ne});var cA={};K(cA,{init:()=>bTe,metadata:()=>c0,name:()=>zS,settings:()=>AS});var MS=a(I(),1);var Fne=a($(),1);var xne=a(H(),1),To=a(B(),1),aA=a(I(),1),Nc=a(y(),1),n0={className:!1},nA={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"}},IS=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:o,customFontSize:n,...i}=e;return{...i,style:t}},i0=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:Gut,...Ty}=nA,cTe=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:nA,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=C({"has-drop-cap":t===((0,aA.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Nc.jsx)("p",{...To.useBlockProps.save({className:i,dir:n}),children:(0,Nc.jsx)(To.RichText.Content,{value:r})})},migrate:i0},{supports:n0,attributes:{...Ty,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:i0,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=C({"has-drop-cap":t===((0,aA.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Nc.jsx)("p",{...To.useBlockProps.save({className:i,dir:n}),children:(0,Nc.jsx)(To.RichText.Content,{value:r})})}},{supports:n0,attributes:{...Ty,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return IS(i0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:p}=e,m=(0,To.getColorClassName)("color",i),d=(0,To.getColorClassName)("background-color",n),f=(0,To.getFontSizeClass)(c),h=C({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:s,fontSize:f?void 0:u};return(0,Nc.jsx)(To.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:p})}},{supports:n0,attributes:{...Ty,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return IS(i0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:p}=e,m=(0,To.getColorClassName)("color",i),d=(0,To.getColorClassName)("background-color",n),f=(0,To.getFontSizeClass)(c),h=C({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":o,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,Nc.jsx)(To.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:p})}},{supports:n0,attributes:{...Ty,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return IS(i0(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:p}=e,m=(0,To.getColorClassName)("color",l),d=(0,To.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=C({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:s,color:m?void 0:c,fontSize:f?void 0:p,textAlign:r};return(0,Nc.jsx)(To.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:o})}},{supports:n0,attributes:{...Ty,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=C({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,Nc.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:o})},migrate(e){return IS(i0({...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:n0,attributes:{...nA,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Nc.jsx)(xne.RawHTML,{children:e.content})},migrate:e=>e}],kne=cTe;var Jn=a(I(),1),s0=a(O(),1),Ga=a(B(),1),Lne=a(F(),1),Rne=a($(),1);var wne=a(H(),1),Cne=a(ge(),1),Sne=a(es(),1),Tne=a(Ks(),1),l0=a(F(),1),iA=a(B(),1),Lu=a($(),1);var{subscribeOwnedListener:uTe}=U(Sne.privateApis);function Pne(e){let{batch:t}=(0,l0.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:n}=(0,l0.useDispatch)(iA.store),{getBlockRootClientId:i,getBlockIndex:l,getBlockOrder:s,getBlockName:c,getBlock:u,canInsertBlockType:p}=(0,l0.useSelect)(iA.store),m=(0,wne.useRef)(e);return m.current=e,(0,Cne.useRefEffect)(d=>{function f(h){if(h.defaultPrevented||h.keyCode!==Tne.ENTER)return;let{content:g,clientId:v}=m.current;if(g.length)return;let b=i(v);if(!(0,Lu.hasBlockSupport)(c(b),"__experimentalOnEnter",!1))return;let _=s(b),k=_.indexOf(v);if(k===_.length-1){let P=b;for(;!p(c(v),i(P));)P=i(P);typeof P=="string"&&(h.preventDefault(),r([v],b,i(P),l(P)+1));return}let x=(0,Lu.getDefaultBlockName)(),w=c(b),S=i(b);if(!p(x,S)||!p(w,S))return;h.preventDefault();let T=u(b),N=(0,Lu.cloneBlock)({...T,innerBlocks:T.innerBlocks.slice(0,k)}),D=(0,Lu.createBlock)(x),L=(0,Lu.cloneBlock)({...T,innerBlocks:T.innerBlocks.slice(k+1)});t(()=>{o(b,[N,D,L]),n(D.clientId)})}return uTe(d,"keydown",f,!0)},[])}var Bne=a(ge(),1),DS=a(H(),1),Ene=a(vd(),1),Nne=a(F(),1),Ine=a(B(),1);function Dne(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,Nne.useDispatch)(Ine.store),n=(0,Bne.useEvent)(()=>{(0,Ene.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,DS.useRef)();(0,DS.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var $i=a(y(),1);function pTe({direction:e,setDirection:t}){return(0,Jn.isRTL)()&&(0,$i.jsx)(s0.ToolbarButton,{icon:XP,title:(0,Jn._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function lA(e){return e===((0,Jn.isRTL)()?"left":"right")||e==="center"}function mTe({clientId:e,attributes:t,setAttributes:r,name:o}){let[n]=(0,Ga.useSettings)("typography.dropCap"),i=(0,Lne.useSelect)(m=>{let{hasSelectedStyleState:d}=U(m(Ga.store));return d(e)},[e]);if(!n||i)return null;let{style:l,dropCap:s}=t,c=l?.typography?.textAlign,u;lA(c)?u=(0,Jn.__)("Not available for aligned text."):s?u=(0,Jn.__)("Showing large initial letter."):u=(0,Jn.__)("Show a large initial letter.");let p=(0,Rne.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,$i.jsx)(Ga.InspectorControls,{group:"typography",children:(0,$i.jsx)(s0.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Jn.__)("Drop cap"),isShownByDefault:p,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,$i.jsx)(s0.ToggleControl,{label:(0,Jn.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:u,disabled:lA(c)})})})}function dTe({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:p,placeholder:m,style:d}=e,f=d?.typography?.textAlign;Dne(e.align,d,n);let h=(0,Ga.useBlockProps)({ref:Pne({clientId:i,content:c}),className:C({"has-drop-cap":lA(f)?!1:p}),style:{direction:u}}),g=(0,Ga.useBlockEditingMode)();return(0,$i.jsxs)($i.Fragment,{children:[g==="default"&&(0,$i.jsx)(Ga.BlockControls,{group:"block",children:(0,$i.jsx)(pTe,{direction:u,setDirection:v=>n({direction:v})})}),l&&(0,$i.jsx)(mTe,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,$i.jsx)(Ga.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:v=>n({content:v}),onMerge:t,onReplace:r,onRemove:o,"aria-label":Ga.RichText.isEmpty(c)?(0,Jn.__)("Empty block; start writing or type forward slash to choose a block"):(0,Jn.__)("Block: Paragraph"),"data-empty":Ga.RichText.isEmpty(c),placeholder:m||(0,Jn.__)("Type / to choose a block"),"data-custom-placeholder":m?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var Mne=dTe;var c0={$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,editableRoot:!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,textColumns:!0,textIndent:!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}},selectors:{root:"p",typography:{textIndent:".wp-block-paragraph + .wp-block-paragraph"}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var LS=a(B(),1),Ane=a(I(),1),sA=a(y(),1);function zne({attributes:e}){let{content:t,dropCap:r,direction:o,style:n}=e,i=n?.typography?.textAlign,l=C({"has-drop-cap":i===((0,Ane.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,sA.jsx)("p",{...LS.useBlockProps.save({className:l,dir:o}),children:(0,sA.jsx)(LS.RichText.Content,{value:t})})}var RS=a($(),1);var{name:Vne}=c0,hTe={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,RS.getBlockAttributes)(Vne,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,RS.createBlock)(Vne,t)}}]},One=hTe;var{fieldsKey:gTe,formKey:vTe}=U(Fne.privateApis),{name:zS}=c0,AS={icon:nE,example:{attributes:{content:(0,MS.__)("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"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){if(r)return r;let{content:o}=e;return!o||o.length===0?(0,MS.__)("Empty"):o}},transforms:One,deprecated:kne,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Mne,save:zne};window.__experimentalContentOnlyInspectorFields&&(AS[gTe]=[{id:"content",label:(0,MS.__)("Content"),type:"text",Edit:"rich-text"}],AS[vTe]={fields:["content"]});var bTe=()=>R({name:zS,metadata:c0,settings:AS});var _A={};K(_A,{init:()=>i8e,metadata:()=>VS,name:()=>yie,settings:()=>_ie});var VS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/playlist",title:"Playlist",category:"media",description:"Embed a simple playlist.",keywords:["music","sound"],textdomain:"default",allowedBlocks:["core/playlist-track"],attributes:{type:{type:"string",default:"audio"},order:{type:"string",default:"asc"},showTracklist:{type:"boolean",default:!0},showImages:{type:"boolean",default:!0},showPlayButtonArtwork:{type:"boolean",default:!1},showArtists:{type:"boolean",default:!0},showNumbers:{type:"boolean",default:!0},showTrackLength:{type:"boolean",default:!0},waveformStyle:{type:"string",enum:["bars","mirror","line","blocks","dots","seekbar"],default:"bars"},waveformColor:{type:"string"},waveformGradient:{type:"string"},waveformBackgroundColor:{type:"string"},waveformBackgroundGradient:{type:"string"},caption:{type:"string"}},providesContext:{showArtists:"showArtists",showImages:"showImages"},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:!0,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var Go=a(H(),1),Nr=a(B(),1),vr=a(O(),1),Ny=a(F(),1),hie=a(Sr(),1),mt=a(I(),1);var yA=a($(),1),gie=a(Mr(),1);var Ic=a(H(),1),HS=a(ge(),1),Ey=a(I(),1);function Xne(e){let t=-1/0;for(let r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return t}function u0(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _Te(e){if(typeof e!="string"||e==="")return!1;try{let t=new URL(e,"http://localhost/");return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function Uo(e,t=0,r=1){return Math.max(t,Math.min(e,r))}function xTe(e){return e===void 0?void 0:e==="true"}function Hne(e){if(typeof e=="string"&&e.trim().startsWith("["))try{return JSON.parse(e)}catch{}return e}function Jne(e){let t={},r=(i,l=i)=>{let s=xTe(e.dataset[l]);s!==void 0&&(t[i]=s)},o=(i,l=i,s=!1)=>{let c=e.dataset[l];c&&(t[i]=s?parseFloat(c):parseInt(c,10))},n=(i,l=i)=>{let s=e.dataset[l];if(s)try{t[i]=JSON.parse(s)}catch(c){console.warn(`[WaveformPlayer] Invalid ${l} JSON:`,c)}};if(e.dataset.src&&(t.url=e.dataset.src),e.dataset.url&&(t.url=e.dataset.url),o("height"),o("samples"),e.dataset.preload&&(t.preload=e.dataset.preload),e.dataset.audioMode&&(t.audioMode=e.dataset.audioMode),e.dataset.style&&(t.waveformStyle=e.dataset.style),e.dataset.waveformStyle&&(t.waveformStyle=e.dataset.waveformStyle),e.dataset.waveformGradient&&(t.waveformGradient=e.dataset.waveformGradient),o("barWidth"),o("barSpacing"),o("barRadius"),e.dataset.buttonAlign&&(t.buttonAlign=e.dataset.buttonAlign),e.dataset.layout&&(t.layout=e.dataset.layout),e.dataset.buttonStyle&&(t.buttonStyle=e.dataset.buttonStyle),e.dataset.buttonSize){let i=e.dataset.buttonSize;t.buttonSize=/^\d+(\.\d+)?$/.test(i.trim())?parseFloat(i):i}return e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=Hne(e.dataset.waveformColor)),e.dataset.progressColor&&(t.progressColor=Hne(e.dataset.progressColor)),e.dataset.color&&(t.waveformColor=e.dataset.color),e.dataset.theme&&(t.colorPreset=e.dataset.theme),r("autoplay"),r("showControls"),r("showInfo"),r("showTime"),r("showHoverTime"),r("seekHandle"),r("showBPM","showBpm"),o("bpm"),r("singlePlay"),r("playOnSeek"),e.dataset.title&&(t.title=e.dataset.title),e.dataset.artist&&(t.artist=e.dataset.artist),e.dataset.album&&(t.album=e.dataset.album),e.dataset.artwork&&(t.artwork=e.dataset.artwork),e.dataset.waveform&&(t.waveform=e.dataset.waveform),n("markers"),o("playbackRate","playbackRate",!0),r("showPlaybackSpeed"),n("playbackRates"),r("enableMediaSession"),r("showMarkers"),r("accessibleSeek"),e.dataset.seekLabel&&(t.seekLabel=e.dataset.seekLabel),e.dataset.seekValueText&&(t.seekValueText=e.dataset.seekValueText),e.dataset.errorText&&(t.errorText=e.dataset.errorText),e.dataset.playPauseLabel&&(t.playPauseLabel=e.dataset.playPauseLabel),e.dataset.speedLabel&&(t.speedLabel=e.dataset.speedLabel),e.dataset.artworkAlt&&(t.artworkAlt=e.dataset.artworkAlt),e.dataset.unknownTrackText&&(t.unknownTrackText=e.dataset.unknownTrackText),e.dataset.playIcon&&(t.playIcon=e.dataset.playIcon),e.dataset.pauseIcon&&(t.pauseIcon=e.dataset.pauseIcon),t}function kTe(e,...t){let r=0;return e.replace(/%(?:(\d+)\$)?s/g,(o,n)=>{let i=n?Number(n)-1:r++;return t[i]??o})}function Ru(e){if(!e||isNaN(e)||e<0)return"0:00";let t=Math.floor(e/3600),r=Math.floor(e%3600/60),o=Math.floor(e%60);return t>0?`${t}:${r.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${r}:${o.toString().padStart(2,"0")}`}var wTe=0;function CTe(e){let t=e||"audio",r=5381;for(let o=0;o<t.length;o++)r=(r<<5)+r+t.charCodeAt(o)|0;return`wp_${(r>>>0).toString(36)}_${(wTe++).toString(36)}`}function eie(e){if(!e)return"Audio";let t=e.split("/");return t[t.length-1].split(".")[0].replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function STe(e){let t=typeof e=="string"?e.match(/\d+/g):null;if(!t||t.length<3)return null;let[r,o,n]=t.map(Number);return(r*299+o*587+n*114)/1e3}function jne(...e){let t={};for(let r of e)for(let o in r)r[o]!==null&&r[o]!==void 0&&(t[o]=r[o]);return t}function TTe(e,t){let r;return function(...o){let n=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(n,t)}}function OS(e,t){if(e.length===t)return e;if(e.length===0||t===0)return[];let r=[];if(t>e.length){let o=(e.length-1)/(t-1);for(let n=0;n<t;n++){let i=n*o,l=Math.floor(i),s=Math.ceil(i),c=i-l;if(s>=e.length)r.push(e[e.length-1]);else if(l===s)r.push(e[l]);else{let u=e[l]*(1-c)+e[s]*c;r.push(u)}}}else{let o=e.length/t;for(let n=0;n<t;n++){let i=Math.floor(n*o),l=Math.floor((n+1)*o),s=0,c=0;for(let u=i;u<=l&&u<e.length;u++)e[u]>s&&(s=e[u]),c++;if(c===0){let u=Math.min(Math.round(n*o),e.length-1);s=e[u]}r.push(s)}}return r}function Ds(e,t,r,o){if(!Array.isArray(t))return t;if(t.length<2)return t[0];let n=r.width,i=r.height,l=o&&o.waveformGradient,[s,c,u,p]=l==="horizontal"?[0,0,n,0]:l==="diagonal"?[0,0,n,i]:[0,0,0,i];try{let m=e.createLinearGradient(s,c,u,p);return t.forEach((d,f)=>m.addColorStop(f/(t.length-1),d)),m}catch{return t[0]}}function p0(e,t,r,o,n,i){if((Array.isArray(i)?i.some(l=>l>0):i>0)&&typeof e.roundRect=="function"){let l=Math.min(o/2,Math.abs(n)/2),s=c=>Uo(c,0,l);e.beginPath(),e.roundRect(t,r,o,n,Array.isArray(i)?i.map(s):s(i)),e.fill()}else e.fillRect(t,r,o,n)}function tie(e,t){return(e.barRadius||0)*t}function PTe(e,t){let r=tie(e,t);return[r,r,0,0]}function Une(e,t,r,o,n){let i=n/2;e.beginPath(),e.moveTo(t,o-i),e.lineTo(r-i,o-i),e.arc(r-i,o,i,-Math.PI/2,Math.PI/2),e.lineTo(t,o+i),e.arc(t,o,i,Math.PI/2,-Math.PI/2),e.closePath()}function uA(e,t,r,o,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=OS(r,c),p=t.height,m=o*t.width,d=PTe(n,i),f=Ds(e,n.color,t,n),h=Ds(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=f;for(let g=0;g<u.length;g++){let v=g*(l+s);if(v+l>t.width)break;let b=u[g]*p*.9,_=p-b;p0(e,v,_,l,b,d)}e.save(),e.beginPath(),e.rect(0,0,m,p),e.clip(),e.fillStyle=h;for(let g=0;g<u.length;g++){let v=g*(l+s);if(v>m)break;let b=u[g]*p*.9,_=p-b;p0(e,v,_,l,b,d)}e.restore()}function BTe(e,t,r,o,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=OS(r,c),p=t.height,m=p/2,d=o*t.width,f=tie(n,i),h=[f,f,0,0],g=[0,0,f,f],v=Ds(e,n.color,t,n),b=Ds(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=v;for(let _=0;_<u.length;_++){let k=_*(l+s);if(k+l>t.width)break;let x=u[_]*p*.45;p0(e,k,m-x,l,x,h),p0(e,k,m,l,x,g)}e.save(),e.beginPath(),e.rect(0,0,d,p),e.clip(),e.fillStyle=b;for(let _=0;_<u.length;_++){let k=_*(l+s);if(k>d)break;let x=u[_]*p*.45;p0(e,k,m-x,l,x,h),p0(e,k,m,l,x,g)}e.restore()}function ETe(e,t,r,o,n){let i=t.width,l=t.height,s=l/2,c=l*.35;e.clearRect(0,0,i,l);let u=(p,m,d=1,f=!1)=>{let h=Ds(e,p,t,n),g=Array.isArray(p)?p[p.length-1]:p;f&&(e.shadowBlur=12,e.shadowColor=g),e.strokeStyle=h,e.lineWidth=m,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,s);let v=[],b=Math.floor(r.length*d);for(let _=0;_<b;_++){let k=_/(r.length-1)*i,x=r[_],w=Math.sin(_*.1)*x,S=s+w*c;v.push({x:k,y:S})}for(let _=0;_<v.length-1;_++){let k=v[_].x+(v[_+1].x-v[_].x)*.5,x=v[_].y,w=v[_+1].x-(v[_+1].x-v[_].x)*.5,S=v[_+1].y;e.bezierCurveTo(k,x,w,S,v[_+1].x,v[_+1].y)}e.stroke(),f&&(e.shadowBlur=0)};e.strokeStyle="rgba(255, 255, 255, 0.03)",e.lineWidth=.5,e.beginPath(),e.moveTo(0,s),e.lineTo(i,s),e.stroke();for(let p=0;p<=10;p++){let m=i/10*p;e.beginPath(),e.moveTo(m,0),e.lineTo(m,l),e.stroke()}u(n.color,2,1,!1),o>0&&u(n.progressColor,3,o,!0)}function Gne(e,t,r,o,n){let i=window.devicePixelRatio||1,l=(n.barWidth||3)*i,s=(n.barSpacing||1)*i,c=Math.floor(t.width/(l+s)),u=OS(r,c),p=t.height,m=4*i,d=2*i,f=o*t.width,h=p/2,g=Ds(e,n.color,t,n),v=Ds(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let b=0;b<u.length;b++){let _=b*(l+s);if(_+l>t.width)break;let k=u[b]*p*.9,x=Math.floor(k/(m+d));e.fillStyle=_<f?v:g;for(let w=0;w<x;w++){let S=w*(m+d);e.fillRect(_,h-S-m,l,m),w>0&&e.fillRect(_,h+S,l,m)}}}function Wne(e,t,r,o,n){let i=window.devicePixelRatio||1,l=(n.barWidth||2)*i,s=(n.barSpacing||3)*i,c=Math.floor(t.width/(l+s)),u=OS(r,c),p=t.height,m=Math.max(1.5*i,l/2),d=o*t.width,f=p/2,h=Ds(e,n.color,t,n),g=Ds(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let v=0;v<u.length;v++){let b=v*(l+s)+l/2;if(b>t.width)break;let _=u[v]*p*.9;e.fillStyle=b<d?g:h,e.beginPath(),e.arc(b,f-_/2,m,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(b,f+_/2,m,0,Math.PI*2),e.fill()}}function NTe(e,t,r,o,n){let i=t.width,l=t.height,s=l/2,c=4,u=c/2,p=!!n.seekActive;if(e.clearRect(0,0,i,l),e.fillStyle=Ds(e,n.color,t,n)||"rgba(255, 255, 255, 0.2)",Une(e,u,i,s,c),e.fill(),o>0){let m=Math.max(u*2,o*i);e.save(),e.globalAlpha=n.seekHandle&&!p?.7:1,e.fillStyle=Ds(e,n.progressColor,t,n)||"rgba(255, 255, 255, 0.9)",Une(e,u,m,s,c),e.fill(),e.restore()}}var ITe={bars:uA,bar:uA,mirror:BTe,line:ETe,blocks:Gne,block:Gne,dots:Wne,dot:Wne,seekbar:NTe};function DTe(e,t,r,o,n){(ITe[n.waveformStyle]||uA)(e,t,r,o,n)}function LTe(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=RTe(t,r);if(o.length<2)return 120;let n=[];for(let c=1;c<o.length;c++)n.push((o[c]-o[c-1])/r);let i={};n.forEach(c=>{let u=60/c,p=Math.round(u/3)*3;p>60&&p<200&&(i[p]=(i[p]||0)+1)});let l=0,s=120;for(let[c,u]of Object.entries(i))u>l&&(l=u,s=parseInt(c));return s<70&&i[s*2]?s*=2:s>160&&i[Math.round(s/2)]&&(s=Math.round(s/2)),s-1}catch(t){return console.warn("[WaveformPlayer] BPM detection failed:",t),null}}function RTe(e,t){let r=[],o=0;for(let n=0;n<e.length-2048;n+=1024){let i=0;for(let c=n;c<n+2048;c++)i+=e[c]*e[c];i=i/2048;let l=i-o,s=o*1.8+.01;if(l>s&&i>.01){let c=r[r.length-1]||0,u=t*.15;n-c>u&&r.push(n)}o=i*.8+o*.2}return r}function MTe(e,t=1800){let r=e.length/t,o=e.numberOfChannels,n=[];for(let l=0;l<o;l++){let s=e.getChannelData(l);for(let c=0;c<t;c++){let u=~~(c*r),p=~~(u+r),m=0,d=0;for(let h=u;h<p;h++){let g=s[h];g>d&&(d=g),g<m&&(m=g)}let f=Math.max(Math.abs(d),Math.abs(m));(l===0||f>n[c])&&(n[c]=f)}}let i=Xne(n);return i>0?n.map(l=>l/i):n}async function $ne(e,t=1800,r=!1){let o;try{let n=window.AudioContext||window.webkitAudioContext;o=new n;let i=await(await fetch(e)).arrayBuffer(),l=await o.decodeAudioData(i),s=MTe(l,t);s=zTe(s);let c=null;return r&&(c=LTe(l)),{peaks:s,bpm:c}}finally{o&&o.close()}}function ATe(e=1800){let t=[];for(let r=0;r<e;r++){let o=Math.random()*.5+.3,n=Math.sin(r/e*Math.PI*4)*.2;t.push(Uo(o+n,.1,1))}return t}function zTe(e,t=.95){let r=Xne(e);if(r===0||r>t)return e;let o=t/r;return e.map(n=>n*o)}function qne(e){let t=document.documentElement,r=document.body;return t.classList.contains(e)||t.classList.contains(`${e}-mode`)||t.classList.contains(`theme-${e}`)||t.getAttribute("data-theme")===e||t.getAttribute("data-color-scheme")===e||r.classList.contains(e)||r.classList.contains(`${e}-mode`)||r.getAttribute("data-theme")===e}function pA(){if(qne("dark"))return"dark";if(qne("light"))return"light";try{let e=getComputedStyle(document.body).backgroundColor,t=STe(e);if(t!==null){if(t>128)return"light";if(t<128)return"dark"}}catch{}if(window.matchMedia){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}var Py={dark:{waveformColor:"rgba(255, 255, 255, 0.3)",progressColor:"rgba(255, 255, 255, 0.9)"},light:{waveformColor:"rgba(0, 0, 0, 0.2)",progressColor:"rgba(0, 0, 0, 0.8)"}};function Zne(e){if(e&&Py[e])return Py[e];let t=pA();return Py[t]}var Kne={url:"",height:64,samples:1800,preload:"metadata",audioMode:"self",playbackRate:1,showPlaybackSpeed:!1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],buttonAlign:"auto",layout:"default",buttonStyle:"circle",buttonSize:null,waveformStyle:"mirror",barWidth:2,barSpacing:0,barRadius:1,waveformGradient:"vertical",colorPreset:null,waveformColor:null,progressColor:null,autoplay:!1,showControls:!0,showInfo:!0,showTime:!0,showHoverTime:!1,seekHandle:!1,showBPM:!1,bpm:null,singlePlay:!0,playOnSeek:!0,enableMediaSession:!0,markers:[],showMarkers:!0,accessibleSeek:!0,seekLabel:null,seekValueText:null,title:null,artist:null,artwork:null,album:"",errorText:"Unable to load audio",playPauseLabel:"Play/Pause",speedLabel:"Playback speed",artworkAlt:"Album artwork",unknownTrackText:"Unknown Track",playIcon:'<svg viewBox="0 0 24 24" width="16" height="16"><path d="M8 5v14l11-7z"/></svg>',pauseIcon:'<svg viewBox="0 0 24 24" width="16" height="16"><path d="M6 4h4v16H6zM14 4h4v16h-4z"/></svg>',onLoad:null,onPlay:null,onPause:null,onEnd:null,onError:null,onTimeUpdate:null,onNextTrack:null,onPreviousTrack:null},VTe={bars:{barWidth:3,barSpacing:1},mirror:{barWidth:2,barSpacing:2},line:{barWidth:2,barSpacing:0},blocks:{barWidth:4,barSpacing:2},dots:{barWidth:3,barSpacing:3},seekbar:{barWidth:1,barSpacing:0}},OTe="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" fill="#71717a" fill-opacity="0.15"/><g fill="none" stroke="#a1a1aa" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="17" r="2.2"/><circle cx="17" cy="15" r="2.2"/><path d="M10.2 17V7l9-1.6v9"/></g></svg>'),Yne=5,Qne=10,FTe='button, a[href], input, [role="slider"]',By=class ha{static instances=new Map;static currentlyPlaying=null;constructor(t,r={}){if(this.container=typeof t=="string"?document.querySelector(t):t,!this.container)throw new Error("[WaveformPlayer] Container element not found");let o=Jne(this.container),n={...r};n.style&&!n.waveformStyle&&(n.waveformStyle=n.style),n.src&&!n.url&&(n.url=n.src),this.options=jne(Kne,o,n);let i=Zne(this.options.colorPreset);this._autoTheme=this.options.colorPreset==null||!Py[this.options.colorPreset],this._presetKeys=[],this._scheme=this.options.colorPreset&&Py[this.options.colorPreset]?this.options.colorPreset:pA();for(let[s,c]of Object.entries(i))(this.options[s]===null||this.options[s]===void 0)&&(this.options[s]=c,this._presetKeys.push(s));let l=VTe[this.options.waveformStyle];l&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=l.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=l.barSpacing)),this.audio=null,this.canvas=null,this.ctx=null,this.waveformData=[],this.progress=0,this._activeMarkerIndex=-1,this._markerLabelTimer=null,this.isPlaying=!1,this.isLoading=!1,this.hasError=!1,this.updateTimer=null,this.resizeObserver=null,this._ac=new AbortController,this.id=this.container.id||CTe(this.options.url),ha.instances.set(this.id,this),ha._watchTheme(),this.init(),setTimeout(()=>{this._emit("waveformplayer:ready",{player:this,url:this.options.url})},100)}_emit(t,r,o=!1){let n=new CustomEvent(t,{bubbles:!0,cancelable:o,detail:r});return this.container.dispatchEvent(n),n}_requestSeek(t){this._emit("waveformplayer:request-seek",{...this._buildTrackDetail(),percent:t},!0).defaultPrevented||(this.progress=t,this.drawWaveform?.())}init(){this.createDOM(),this.createAudio(),this.initPlaybackSpeed(),this.initKeyboardControls(),this.initSeekControl(),this.bindEvents(),this.setupResizeObserver(),requestAnimationFrame(()=>{this.resizeCanvas(),this.options.url&&this.load(this.options.url).then(()=>{this.options.autoplay&&this.play()?.catch(()=>{})}).catch(t=>{console.error("[WaveformPlayer] Failed to load audio:",t)})})}createDOM(){this.container.innerHTML="",this.container.className="waveform-player";let t=this.options.buttonAlign;t==="auto"&&(this.options.waveformStyle==="bars"?t="bottom":t="center"),this.options.layout==="preview"&&this.container.classList.add("waveform-layout-preview"),this.container.classList.toggle("waveform-theme-light",this._scheme==="light");let r=this.options.showControls?`
        <button class="waveform-btn${this.options.buttonStyle==="minimal"?" waveform-btn-minimal":""}" aria-label="${u0(this.options.playPauseLabel)}"${this.options.buttonSize!=null?` style="--wfp-btn-size: ${typeof this.options.buttonSize=="number"?`${this.options.buttonSize}px`:this.options.buttonSize};"`:""}>
          <span class="waveform-icon-play">${this.options.playIcon}</span>
          <span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span>
        </button>
        `:"",o=this.options.showInfo?`
      <div class="waveform-info">
        ${this.options.artwork?`
          <img class="waveform-artwork" src="${this.options.artwork}" alt="${u0(this.options.artworkAlt)}" style="
            width: 40px;
            height: 40px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
          ">
        `:""}
        <div class="waveform-text">
          <span class="waveform-title"></span>
          ${this.options.artist?`<span class="waveform-artist">${this.options.artist}</span>`:""}
        </div>
        <div class="waveform-meta" style="display: flex; align-items: center; gap: 1rem;">
          ${this.options.showBPM?`
            <span class="waveform-bpm" style="display: none;">
              <span class="bpm-value">--</span> BPM
            </span>
          `:""}
          ${this.options.showPlaybackSpeed?`
            <div class="waveform-speed">
              <button class="speed-btn" aria-label="${u0(this.options.speedLabel)}" aria-haspopup="menu" aria-expanded="false">
                <span class="speed-value">1x</span>
              </button>
              <div class="speed-menu" role="menu" aria-label="${u0(this.options.speedLabel)}" style="display: none;">
                ${this.options.playbackRates.map(n=>`<button class="speed-option" role="menuitemradio" tabindex="-1" aria-checked="false" data-rate="${n}">${n}x</button>`).join("")}
              </div>
            </div>
          `:""}
          ${this.options.showTime?`
            <span class="waveform-time">
              <span class="time-current">0:00</span> / <span class="time-total">0:00</span>
            </span>
          `:""}
        </div>
      </div>
        `:"";this.container.innerHTML=`
  <div class="waveform-player-inner">
    <div class="waveform-body">
      <div class="waveform-track waveform-align-${t}">
        ${r}
        
        <div class="waveform-container">
          <canvas></canvas>
          <div class="waveform-markers"></div>
          <div class="waveform-loading" style="display:none;"></div>
          <div class="waveform-error" style="display:none;" role="alert">
            <span class="waveform-error-text">${u0(this.options.errorText)}</span>
          </div>
        </div>
      </div>
      
      ${o}
    </div>
  </div>
`,this.playBtn=this.container.querySelector(".waveform-btn"),this.canvas=this.container.querySelector("canvas"),this.ctx=this.canvas.getContext("2d"),this.titleEl=this.container.querySelector(".waveform-title"),this.artistEl=this.container.querySelector(".waveform-artist"),this.artworkEl=this.container.querySelector(".waveform-artwork"),this.bindArtworkFallback(this.artworkEl),this.currentTimeEl=this.container.querySelector(".time-current"),this.totalTimeEl=this.container.querySelector(".time-total"),this.bpmEl=this.container.querySelector(".waveform-bpm"),this.bpmValueEl=this.container.querySelector(".bpm-value"),this.loadingEl=this.container.querySelector(".waveform-loading"),this.errorEl=this.container.querySelector(".waveform-error"),this.markersContainer=this.container.querySelector(".waveform-markers"),this.speedBtn=this.container.querySelector(".speed-btn"),this.speedMenu=this.container.querySelector(".speed-menu"),this.resizeCanvas(),this.updateBPMDisplay()}bindArtworkFallback(t){t&&t.addEventListener("error",()=>{t.src.startsWith("data:")||(t.src=OTe)},{signal:this._ac.signal})}createArtworkElement(){let t=document.createElement("img");return t.className="waveform-artwork",t.style.width="40px",t.style.height="40px",t.style.borderRadius="4px",t.style.objectFit="cover",t.style.flexShrink="0",this.bindArtworkFallback(t),t}createArtistElement(){let t=document.createElement("span");return t.className="waveform-artist",t}syncArtist(t){if(this.options.artist=t||null,!!this.options.showInfo){if(!t){this.artistEl?.remove(),this.artistEl=null;return}if(!this.artistEl){let r=this.container.querySelector(".waveform-title");if(!r)return;this.artistEl=this.createArtistElement(),r.after(this.artistEl)}this.artistEl.textContent=t,this.artistEl.style.display=""}}syncArtwork(t,r=""){if(this.options.artwork=t||null,this.options.artworkAlt=r||"",!!this.options.showInfo){if(!t){this.artworkEl?.remove(),this.artworkEl=null;return}if(!this.artworkEl){let o=this.container.querySelector(".waveform-text");if(!o)return;this.artworkEl=this.createArtworkElement(),o.before(this.artworkEl)}this.artworkEl.src=t,this.artworkEl.alt=r||""}}createAudio(){if(this.options.audioMode==="external"){this.audio=null;return}this.audio=new Audio,this.audio.preload=this.options.preload||"metadata",this.audio.crossOrigin="anonymous"}initPlaybackSpeed(){this.audio&&this.options.playbackRate&&this.options.playbackRate!==1&&(this.audio.playbackRate=this.options.playbackRate),this.options.showPlaybackSpeed&&this.initSpeedControls()}initSpeedControls(){let t=this.container.querySelector(".speed-btn"),r=this.container.querySelector(".speed-menu");if(!t||!r)return;let o=()=>Array.from(r.querySelectorAll(".speed-option")),n=()=>r.style.display!=="none",i=c=>{if(r.style.display=c?"block":"none",t.setAttribute("aria-expanded",c?"true":"false"),c){let u=o();(u.find(p=>p.getAttribute("aria-checked")==="true")||u[0])?.focus()}},l=c=>{let u=o();u.length&&u[(c+u.length)%u.length].focus()},s=c=>{this.setPlaybackRate(parseFloat(c.dataset.rate)),i(!1),t.focus()};t.addEventListener("click",c=>{c.stopPropagation(),i(!n())},{signal:this._ac.signal}),document.addEventListener("click",()=>i(!1),{signal:this._ac.signal}),r.addEventListener("click",c=>{c.stopPropagation();let u=c.target.closest(".speed-option");u&&s(u)},{signal:this._ac.signal}),t.closest(".waveform-speed")?.addEventListener("keydown",c=>{let u=o(),p=u.indexOf(document.activeElement);if(!n()){(c.key==="ArrowDown"||c.key==="ArrowUp")&&document.activeElement===t&&(c.preventDefault(),i(!0));return}switch(c.key){case"ArrowDown":c.preventDefault(),l(p<0?0:p+1);break;case"ArrowUp":c.preventDefault(),l(p<0?u.length-1:p-1);break;case"Home":c.preventDefault(),l(0);break;case"End":c.preventDefault(),l(u.length-1);break;case"Escape":c.preventDefault(),i(!1),t.focus();break;case"Tab":i(!1);break}},{signal:this._ac.signal}),this.updateSpeedUI()}initKeyboardControls(){this.container.setAttribute("tabindex","-1"),this.container.addEventListener("click",t=>{t.target.closest(FTe)||(ha.getAllInstances().forEach(r=>{r!==this&&r.container.setAttribute("tabindex","-1")}),this.container.setAttribute("tabindex","0"),this.container.focus())},{signal:this._ac.signal}),this.container.addEventListener("keydown",t=>{if(document.activeElement!==this.container)return;let r=t.key,o=!!this.audio,n=o?this.audio.currentTime:0;if(o&&r>="0"&&r<="9"){t.preventDefault(),this.seekToPercent(parseInt(r)/10);return}let i={" ":()=>this.togglePlay()};o&&(i.ArrowLeft=()=>this.seekTo(Uo(n-5,0,this.audio.duration)),i.ArrowRight=()=>this.seekTo(Uo(n+5,0,this.audio.duration)),i.ArrowUp=()=>this.setVolume(Uo(this.audio.volume+.1)),i.ArrowDown=()=>this.setVolume(Uo(this.audio.volume-.1)),i.m=i.M=()=>this.audio.muted=!this.audio.muted),i[r]&&(t.preventDefault(),i[r]())},{signal:this._ac.signal})}initSeekControl(){this.options.accessibleSeek&&(this.seekEl=this.container.querySelector(".waveform-container"),this.seekEl&&(this.seekEl.setAttribute("role","slider"),this.seekEl.setAttribute("tabindex","0"),this.seekEl.setAttribute("aria-valuemin","0"),this.applySeekLabel(),this.updateSeekAccessibility(),this.seekEl.addEventListener("keydown",t=>{if(t.key===" "||t.key==="Spacebar"){t.preventDefault(),t.stopPropagation(),this.togglePlay();return}let r=this.getSeekDuration();if(!r)return;let o=this.getSeekCurrentTime(),n;switch(t.key){case"ArrowLeft":case"ArrowDown":n=o-Yne;break;case"ArrowRight":case"ArrowUp":n=o+Yne;break;case"PageDown":n=o-Qne;break;case"PageUp":n=o+Qne;break;case"Home":n=0;break;case"End":n=r;break;default:return}t.preventDefault(),t.stopPropagation(),this.seekToSeconds(n)},{signal:this._ac.signal})))}getSeekDuration(){return this.options.audioMode==="external"?this._extDuration||0:this.audio&&Number.isFinite(this.audio.duration)?this.audio.duration:0}getSeekCurrentTime(){return this.options.audioMode==="external"?this.progress*(this._extDuration||0):this.audio&&Number.isFinite(this.audio.currentTime)?this.audio.currentTime:0}seekToSeconds(t){let r=this.getSeekDuration();if(!r)return;let o=Uo(t,0,r);if(this.options.audioMode==="external"){this._requestSeek(o/r),this.updateSeekAccessibility();return}this.seekTo(o)}applySeekLabel(t=this.options.title){if(!this.seekEl)return;let r=this.options.seekLabel||t||"Seek";this.seekEl.setAttribute("aria-label",r)}updateSeekAccessibility(){if(!this.seekEl)return;let t=this.getSeekDuration(),r=Math.min(this.getSeekCurrentTime(),t);this.seekEl.setAttribute("aria-valuemax",String(Math.round(t))),this.seekEl.setAttribute("aria-valuenow",String(Math.round(r))),this.seekEl.setAttribute("aria-valuetext",kTe(this.options.seekValueText||"%1$s of %2$s",Ru(r),Ru(t)))}initMediaSession(){if(!("mediaSession"in navigator)||!this.options.enableMediaSession||!this.audio)return;this._applyMediaMetadata(),navigator.mediaSession.setActionHandler("play",()=>this.play()),navigator.mediaSession.setActionHandler("pause",()=>this.pause()),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.seekTo(Uo(this.audio.currentTime-10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Uo(this.audio.currentTime+10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekto",o=>{o.seekTime!==null&&this.seekTo(o.seekTime)});let t=this.options.onNextTrack,r=this.options.onPreviousTrack;try{navigator.mediaSession.setActionHandler("nexttrack",typeof t=="function"?()=>t(this):null)}catch{}try{navigator.mediaSession.setActionHandler("previoustrack",typeof r=="function"?()=>r(this):null)}catch{}}_applyMediaMetadata(){!("mediaSession"in navigator)||!this.options.enableMediaSession||(navigator.mediaSession.metadata=new MediaMetadata({title:this.options.title||this.options.unknownTrackText,artist:this.options.artist||"",album:this.options.album||"",artwork:this.options.artwork?[{src:this.options.artwork,sizes:"512x512",type:"image/jpeg"}]:[]}))}_updateMediaSession(t){if(!(!("mediaSession"in navigator)||!this.options.enableMediaSession||!this.audio))try{t==="playing"&&this.initMediaSession(),navigator.mediaSession.playbackState=t;let r=this.audio.duration;navigator.mediaSession.setPositionState&&r&&isFinite(r)&&navigator.mediaSession.setPositionState({duration:r,playbackRate:this.audio.playbackRate||1,position:Uo(this.audio.currentTime,0,r)})}catch{}}bindEvents(){this.playBtn&&this.playBtn.addEventListener("click",()=>this.togglePlay()),this.audio&&(this.audio.addEventListener("loadstart",()=>this.setLoading(!0)),this.audio.addEventListener("loadedmetadata",()=>this.onMetadataLoaded()),this.audio.addEventListener("canplay",()=>this.setLoading(!1)),this.audio.addEventListener("play",()=>this.onPlay()),this.audio.addEventListener("pause",()=>this.onPause()),this.audio.addEventListener("ended",()=>this.onEnded()),this.audio.addEventListener("error",r=>this.onError(r))),this.canvas.addEventListener("click",r=>this.handleCanvasClick(r)),this._dragging=!1,this._seekHover=!1,this._handleNear=!1,this.canvas.addEventListener("pointerenter",()=>{this._seekHover=!0,this.drawWaveform(),this._updateSeekHandle()}),this.canvas.addEventListener("pointerleave",()=>{this._seekHover=!1,this._handleNear=!1,this._dragging||this._hideHoverTip(),this.drawWaveform(),this._updateSeekHandle()}),this.canvas.addEventListener("pointerdown",r=>{if(!(r.pointerType==="mouse"&&r.button!==0)){this._dragging=!0;try{this.canvas.setPointerCapture(r.pointerId)}catch{}this._scrubTo(r.clientX)}}),this.canvas.addEventListener("pointermove",r=>{if(this._dragging){this._scrubTo(r.clientX);return}let o=this.canvas.getBoundingClientRect();o.width&&(this._handleNear=Math.abs(r.clientX-o.left-this.progress*o.width)<=10,this._updateSeekHandle())});let t=r=>{if(this._dragging){this._dragging=!1,this._suppressClick=!0;try{this.canvas.releasePointerCapture(r.pointerId)}catch{}this._seekFromPointer(r.clientX),!this._seekHover&&!this.options.showHoverTime&&this._hideHoverTip(),this._updateSeekHandle()}};this.canvas.addEventListener("pointerup",t),this.canvas.addEventListener("pointercancel",t),this.setupHoverTime(),this.setupSeekHandle(),this.resizeHandler=TTe(()=>this.resizeCanvas(),100),window.addEventListener("resize",this.resizeHandler)}setupResizeObserver(){"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(()=>{this.resizeCanvas()}),this.canvas?.parentElement&&this.resizeObserver.observe(this.canvas.parentElement))}async load(t){try{this.setLoading(!0),this.progress=0,this.hasError=!1,this.audio&&(this.audio.src=t,await new Promise((o,n)=>{let i=()=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),o()},l=s=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),n(s)};this.audio.addEventListener("loadedmetadata",i),this.audio.addEventListener("error",l)}));let r=this.options.title||eie(t);if(this.titleEl&&(this.titleEl.textContent=r),this.applySeekLabel(r),this.options.waveform)this.setWaveformData(this.options.waveform);else try{let o=await $ne(t,this.options.samples,this.options.showBPM);this.waveformData=o.peaks,o.bpm&&(this.detectedBPM=o.bpm,this.updateBPMDisplay())}catch(o){console.warn("[WaveformPlayer] Using placeholder waveform:",o),this.waveformData=ATe(this.options.samples)}this.drawWaveform(),this.renderMarkers(),this.options.onLoad&&this.options.onLoad(this)}catch(r){this.onError(r)}finally{this.setLoading(!1)}}async loadTrack(t,r=null,o=null,n={}){let i=Object.prototype.hasOwnProperty.call(n,"artwork"),l=Object.prototype.hasOwnProperty.call(n,"artworkAlt");this.isPlaying&&this.pause(),this.audio&&(this.audio.src="",this.audio.load()),this.hasError=!1,this.errorEl&&(this.errorEl.style.display="none"),this.canvas&&(this.canvas.style.opacity="1"),this.playBtn&&(this.playBtn.disabled=!1),this.progress=0,this.waveformData=[],this.options=jne(this.options,{url:t,title:r===null?this.options.title:r,artist:o===null?this.options.artist:o,...n}),i&&(this.options.artwork=n.artwork||null),l?this.options.artworkAlt=n.artworkAlt||"":i&&(this.options.artworkAlt=this.options.artwork?Kne.artworkAlt:""),n.preload&&this.audio&&(this.audio.preload=n.preload),o!==null&&this.syncArtist(o),(i||l)&&this.syncArtwork(i?n.artwork:this.options.artwork,l?n.artworkAlt:this.options.artworkAlt),this.options.markers=n.markers||[],this.options.waveform=n.waveform||null,await this.load(t),n.autoplay!==!1&&this.play()?.catch(()=>{})}setWaveformData(t){if(typeof t=="string"&&t.trim().endsWith(".json")){fetch(t.trim()).then(r=>r.json()).then(r=>{this.waveformData=Array.isArray(r)?r:r.peaks||[],r.markers&&!this.options.markers?.length&&(this.options.markers=r.markers,this.renderMarkers()),this.drawWaveform()}).catch(()=>{});return}if(typeof t=="string")try{let r=JSON.parse(t);this.waveformData=Array.isArray(r)?r:[]}catch{this.waveformData=t.split(",").map(Number)}else this.waveformData=Array.isArray(t)?t:[];this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||DTe(this.ctx,this.canvas,this.waveformData,this.progress,{...this.options,waveformStyle:this.options.waveformStyle||"bars",color:this.options.waveformColor,progressColor:this.options.progressColor,seekActive:this._seekHover||this._dragging})}resizeCanvas(){if(!this.canvas||this.isDestroying)return;let t=window.devicePixelRatio||1,r=this.canvas.parentElement.getBoundingClientRect();this.canvas.width=r.width*t,this.canvas.height=this.options.height*t,this.canvas.parentElement.style.height=this.options.height+"px",this.drawWaveform()}renderMarkers(){if(!this.markersContainer||(this.markersContainer.innerHTML="",this._activeMarkerIndex=-1,clearTimeout(this._markerLabelTimer),!this.options.showMarkers||!this.options.markers?.length))return;let t=this.getSeekDuration();t&&this.options.markers.forEach((r,o)=>{if(r.time>t){console.warn(`[WaveformPlayer] Marker "${r.label}" at ${r.time}s exceeds audio duration of ${t}s`);return}let n=r.time/t*100,i=document.createElement("button");i.className="waveform-marker",i.style.left=`${n}%`,i.style.backgroundColor=r.color||"rgba(255, 255, 255, 0.5)",i.setAttribute("aria-label",r.label),i.setAttribute("data-time",r.time);let l=document.createElement("span");l.className="waveform-marker-tooltip",l.textContent=r.label,i.appendChild(l),i.addEventListener("click",s=>{s.stopPropagation(),this.seekTo(r.time),this.options.playOnSeek&&!this.isPlaying&&this.play()}),this.markersContainer.appendChild(i)})}setActiveMarker(t){this.markersContainer&&this.markersContainer.querySelectorAll(".waveform-marker").forEach((r,o)=>r.classList.toggle("active",o===t))}updateActiveMarker(){if(!this.markersContainer)return;let t=this.markersContainer.querySelectorAll(".waveform-marker");if(!t.length)return;let r=this.getSeekDuration(),o=r?this.progress*r:0,n=-1,i=-1/0;t.forEach((l,s)=>{let c=parseFloat(l.getAttribute("data-time"));Number.isFinite(c)&&c<=o+.05&&c>i&&(i=c,n=s)}),n!==this._activeMarkerIndex&&(this._activeMarkerIndex=n,this.setActiveMarker(n),clearTimeout(this._markerLabelTimer),t.forEach((l,s)=>l.classList.toggle("show-label",s===n)),n>=0&&(this._markerLabelTimer=setTimeout(()=>{this.markersContainer?.querySelectorAll(".waveform-marker").forEach(l=>l.classList.remove("show-label"))},2500)))}setupHoverTime(){if(!this.seekEl)return;let t=document.createElement("div");t.className="waveform-hover-time",t.setAttribute("aria-hidden","true"),this.seekEl.appendChild(t),this.hoverTimeEl=t,this.options.showHoverTime&&(this.seekEl.addEventListener("pointermove",r=>{this._dragging||this._updateHoverTip(r.clientX)}),this.seekEl.addEventListener("pointerleave",()=>{this._dragging||this._hideHoverTip()}))}_updateHoverTip(t){let r=this.hoverTimeEl;if(!r)return;let o=this.getSeekDuration();if(!o){r.style.opacity="0";return}let n=this.canvas.getBoundingClientRect(),i=Uo((t-n.left)/n.width);r.textContent=Ru(i*o),r.style.left=i*100+"%",r.style.opacity="1"}_hideHoverTip(){this.hoverTimeEl&&(this.hoverTimeEl.style.opacity="0")}_scrubTo(t){let r=this.canvas.getBoundingClientRect();if(!r.width)return;this.progress=Uo((t-r.left)/r.width),this.drawWaveform(),this._updateSeekHandle();let o=this.getSeekDuration();o&&this.currentTimeEl?(this.currentTimeEl.textContent=Ru(this.progress*o),this._hideHoverTip()):this._updateHoverTip(t)}setupSeekHandle(){if(!this.options.seekHandle||this.options.waveformStyle!=="seekbar"||!this.seekEl)return;let t=document.createElement("div");t.className="waveform-seek-handle",t.setAttribute("aria-hidden","true"),this.seekEl.appendChild(t),this.seekHandleEl=t}_updateSeekHandle(){let t=this.seekHandleEl;t&&(t.style.left=this.progress*100+"%",t.classList.toggle("is-visible",this._seekHover||this._dragging),t.classList.toggle("is-active",this._dragging||this._handleNear))}handleCanvasClick(t){if(this._suppressClick){this._suppressClick=!1;return}this._seekFromPointer(t.clientX)}_seekFromPointer(t){let r=this.canvas.getBoundingClientRect();if(!r.width)return;let o=Uo((t-r.left)/r.width);if(this.options.audioMode==="external"){this._requestSeek(o);return}!this.audio||!this.audio.duration||this.seekToPercent(o)}setLoading(t){this.isLoading=t,this.loadingEl&&(this.loadingEl.style.display=t?"block":"none"),this.seekEl&&this.seekEl.setAttribute("aria-busy",t?"true":"false")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=Ru(this.audio.duration)),this.renderMarkers(),this.updateSeekAccessibility())}setPlayButtonState(t){if(!this.playBtn)return;this.playBtn.classList.toggle("playing",t);let r=this.playBtn.querySelector(".waveform-icon-play"),o=this.playBtn.querySelector(".waveform-icon-pause");r&&(r.style.display=t?"none":"flex"),o&&(o.style.display=t?"flex":"none")}onPlay(){this.isDestroying||(this.isPlaying=!0,this.setPlayButtonState(!0),this.startSmoothUpdate(),this._updateMediaSession("playing"),this._emit("waveformplayer:play",{player:this,url:this.options.url}),this.options.onPlay&&this.options.onPlay(this))}onPause(){this.isDestroying||(this.isPlaying=!1,this.setPlayButtonState(!1),this.stopSmoothUpdate(),this._updateMediaSession("paused"),this._emit("waveformplayer:pause",{player:this,url:this.options.url}),this.options.onPause&&this.options.onPause(this))}onEnded(){if(this.isDestroying)return;let t=this.audio.duration;this.progress=0,this.audio.currentTime=0,this.drawWaveform(),this.currentTimeEl&&(this.currentTimeEl.textContent="0:00"),this._emit("waveformplayer:ended",{player:this,url:this.options.url,currentTime:t,duration:t}),this.onPause(),this.options.onEnd&&this.options.onEnd(this)}onError(t){this.isDestroying||(console.error("[WaveformPlayer] Audio error:",t),this.hasError=!0,this.setLoading(!1),this.errorEl&&(this.errorEl.style.display="flex"),this.canvas&&(this.canvas.style.opacity="0.2"),this.playBtn&&(this.playBtn.disabled=!0),this.options.onError&&this.options.onError(t,this))}startSmoothUpdate(){this.stopSmoothUpdate();let t=()=>{this.isPlaying&&this.audio&&this.audio.duration&&(this.updateProgress(),this.updateTimer=requestAnimationFrame(t))};this.updateTimer=requestAnimationFrame(t)}stopSmoothUpdate(){this.updateTimer&&(cancelAnimationFrame(this.updateTimer),this.updateTimer=null)}updateProgress(){if(!this.audio||!this.audio.duration||this._dragging)return;let t=this.audio.currentTime/this.audio.duration;Math.abs(t-this.progress)>.001&&(this.progress=t,this.drawWaveform(),this._updateSeekHandle()),this.currentTimeEl&&(this.currentTimeEl.textContent=Ru(this.audio.currentTime)),this._emit("waveformplayer:timeupdate",{player:this,currentTime:this.audio.currentTime,duration:this.audio.duration,progress:this.progress,url:this.options.url}),this.options.onTimeUpdate&&this.options.onTimeUpdate(this.audio.currentTime,this.audio.duration,this),this.updateActiveMarker(),this.updateSeekAccessibility()}updateBPMDisplay(){let t=this.options.bpm||this.detectedBPM;this.bpmEl&&this.bpmValueEl&&t&&(this.bpmValueEl.textContent=Math.round(t),this.bpmEl.style.display="inline-flex")}refreshTheme(){if(!this._autoTheme)return;this._scheme=pA();let t=Zne(this.options.colorPreset);for(let r of this._presetKeys||[])r in t&&(this.options[r]=t[r]);this._applyThemeColors()}_applyThemeColors(){this.container.classList.toggle("waveform-theme-light",this._scheme==="light"),this.canvas&&this.drawWaveform()}static _watchTheme(){if(ha._themeWatch||typeof document>"u")return;let t=()=>requestAnimationFrame(()=>{ha.instances.forEach(i=>{try{i.refreshTheme()}catch{}})}),r={attributes:!0,attributeFilter:["class","data-theme","data-color-scheme","style"]},o=new MutationObserver(t);o.observe(document.documentElement,r),document.body&&o.observe(document.body,r);let n=null;try{n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",t)}catch{}ha._themeWatch={obs:o,mq:n,refresh:t}}updateSpeedUI(){if(!this.audio)return;let t=this.container.querySelector(".speed-value");if(t){let r=this.audio.playbackRate;t.textContent=r===1?"1x":`${r}x`}this.container.querySelectorAll(".speed-option").forEach(r=>{let o=parseFloat(r.dataset.rate)===this.audio.playbackRate;r.classList.toggle("active",o),r.setAttribute("aria-checked",o?"true":"false")})}play(){if(this.options.singlePlay&&ha.currentlyPlaying&&ha.currentlyPlaying!==this&&ha.currentlyPlaying.pause(),this.options.audioMode==="external"){this._emit("waveformplayer:request-play",this._buildTrackDetail(),!0).defaultPrevented||(ha.currentlyPlaying=this);return}return ha.currentlyPlaying=this,this.audio.play()}pause(){if(ha.currentlyPlaying===this&&(ha.currentlyPlaying=null),this.options.audioMode==="external"){this._emit("waveformplayer:request-pause",this._buildTrackDetail(),!0);return}this.audio.pause()}_buildTrackDetail(){return{url:this.options.url,title:this.options.title,artist:this.options.artist,artwork:this.options.artwork,markers:this.options.markers,waveform:this.options.waveform,id:this.id,player:this}}setPlayingState(t){let r=this.isPlaying;this.isPlaying=!!t,this.setPlayButtonState(this.isPlaying),this.isPlaying&&!r?(this.startSmoothUpdate?.(),this._emit("waveformplayer:play",{player:this,url:this.options.url}),this.options.onPlay&&this.options.onPlay(this)):!this.isPlaying&&r&&(this.stopSmoothUpdate?.(),this._emit("waveformplayer:pause",{player:this,url:this.options.url}),this.options.onPause&&this.options.onPause(this))}setProgress(t,r){!r||r<=0||(this.progress=Uo(t/r),this.currentTimeEl&&(this.currentTimeEl.textContent=Ru(t)),this._extDuration=r,this.totalTimeEl&&(!this.totalTimeEl.dataset._extSet||this.totalTimeEl.dataset._extDur!==String(r))&&(this.totalTimeEl.textContent=Ru(r),this.totalTimeEl.dataset._extSet="1",this.totalTimeEl.dataset._extDur=String(r)),this.drawWaveform?.(),this.updateActiveMarker(),this._emit("waveformplayer:timeupdate",{player:this,currentTime:t,duration:r,progress:this.progress,url:this.options.url}),this.options.onTimeUpdate&&this.options.onTimeUpdate(t,r,this),this.progress>=1?this._extEnded||(this._extEnded=!0,this._emit("waveformplayer:ended",{player:this,url:this.options.url,currentTime:r,duration:r}),this.options.onEnd&&this.options.onEnd(this)):this._extEnded=!1,this.updateSeekAccessibility())}togglePlay(){this.isPlaying?this.pause():this.play()}seekTo(t){this.audio&&this.audio.duration&&(this.audio.currentTime=Uo(t,0,this.audio.duration),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Uo(t),this.updateProgress())}setVolume(t){let r=Number(t);this.audio&&Number.isFinite(r)&&(this.audio.volume=Uo(r))}setPlaybackRate(t){if(!this.audio)return;let r=Uo(t,.5,2);this.audio.playbackRate=r,this.options.playbackRate=r,this.updateSpeedUI()}destroy(){this.isDestroying=!0,this._emit("waveformplayer:destroy",{player:this,url:this.options.url}),this.pause(),this.stopSmoothUpdate(),clearTimeout(this._markerLabelTimer),this._ac?.abort(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),ha.instances.delete(this.id),ha.currentlyPlaying===this&&(ha.currentlyPlaying=null),this.audio&&(this.audio.pause(),this.audio.src="",this.audio.load(),this.audio=null),this.container.innerHTML="",this.canvas=null,this.ctx=null,this.playBtn=null,this.waveformData=[]}static getInstance(t){if(typeof t=="string"){let r=this.instances.get(t);if(r)return r;let o=document.getElementById(t);if(o)return Array.from(this.instances.values()).find(n=>n.container===o)}if(t instanceof HTMLElement)return Array.from(this.instances.values()).find(r=>r.container===t)}static getAllInstances(){return Array.from(this.instances.values())}static destroyAll(){this.instances.forEach(t=>t.destroy()),this.instances.clear()}static async generateWaveformData(t,r=1800){try{return(await $ne(t,r)).peaks}catch(o){throw console.error("[WaveformPlayer] Failed to generate waveform:",o),o}}static getPeaksUrl(t){if(!t)return;let r=t.replace(/\.(mp3|wav|ogg|flac|m4a|aac)(\?[^#]*)?(#.*)?$/i,".json$2$3");return r===t?void 0:r}};By.utils={formatTime:Ru,extractTitleFromUrl:eie,escapeHtml:u0,isSafeHref:_Te,parseDataAttributes:Jne};var dA=()=>typeof window<"u"&&typeof document<"u";function mA(){dA()&&document.querySelectorAll("[data-waveform-player]").forEach(e=>{if(e.dataset.waveformInitialized!=="true")try{new By(e),e.dataset.waveformInitialized="true"}catch(t){console.error("[WaveformPlayer] Failed to initialize:",t,e)}})}dA()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",mA):mA());By.init=mA;dA()&&(window.WaveformPlayer=By);var rie=By;var HTe=100,jTe="Seek";function nie(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function iie(e){let t=e?.trim().match(/^[\w-]+-gradient\((.*)\)$/i);if(!t)return[];let r=[],o=0,n="";for(let i of t[1]){if(i==="("?++o:i===")"&&--o,i===","&&o===0){r.push(n.trim()),n="";continue}n+=i}return n.trim()&&r.push(n.trim()),r}function UTe(e){let t=e.match(/^([\w-]+)\(/);if(!t||!["color","color-mix","hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba","var"].includes(t[1].toLowerCase()))return;let o=0,n=!1;for(let i=0;i<e.length;i++){let l=e[i];if(l==="("?(n=!0,++o):l===")"&&--o,n&&o===0)return e.slice(0,i+1)}}function GTe(e){let t=UTe(e);if(t)return t;let[r]=e.split(/\s+/);if(Er(r).isValid())return r}function WTe(e){let r=iie(e)[0],o=r?.match(/^(-?\d+(?:\.\d+)?)deg$/i);if(o){let s=(Number(o[1])%360+360)%360;return s===90||s===270?"horizontal":s===0||s===180?"vertical":"diagonal"}if(!r?.startsWith("to "))return;let n=r.toLowerCase().replace(/^to\s+/,""),i=n.includes("left")||n.includes("right"),l=n.includes("top")||n.includes("bottom");if(i&&l)return"diagonal";if(i)return"horizontal";if(l)return"vertical"}function $Te(e,t){if(!t||Er(t).isValid())return t;let r=e.ownerDocument.createElement("span");if(r.style.color=t,!r.style.color)return t;e.appendChild(r);let o=nie(r).color;return r.remove(),o&&Er(o).isValid()?o:t}function fA(e,t){let r=qTe(t)?.map(o=>$Te(e,o)).filter(o=>Er(o).isValid());return r?.length>1?r:void 0}function oie(e,t){return Array.isArray(e)?e.map(r=>Er(r).alpha(t).toRgbString()):Er(e).alpha(t).toRgbString()}function lie(e){return Array.isArray(e)?e[e.length-1]:e}function qTe(e){let t=iie(e).map(GTe).filter(Boolean);return t.length>1?t:void 0}function aie(e){return Array.isArray(e)?JSON.stringify(e):e}function ZTe(e,t,r,o){let n=r||nie(e).color,i=fA(e,o),l=i||t||n,s=oie(l,.3),c=oie(l,.6),u=i?WTe(o):void 0;return{textColor:n,waveformColor:s,progressColor:c,...u&&{waveformGradient:u}}}function KTe({url:e,title:t,artist:r,artwork:o,waveformColor:n,progressColor:i,waveformGradient:l,buttonColor:s,seekLabel:c,seekValueText:u,height:p=HTe,waveformStyle:m="bars"}){let d=document.createElement("div");return d.setAttribute("data-waveform-player",""),d.setAttribute("data-url",e),d.setAttribute("data-height",String(p)),d.setAttribute("data-waveform-style",m),d.setAttribute("data-waveform-color",aie(n)),d.setAttribute("data-progress-color",aie(i)),l&&d.setAttribute("data-waveform-gradient",l),d.setAttribute("data-button-color",s),d.setAttribute("data-seek-label",sie(c)),u&&d.setAttribute("data-seek-value-text",u),d.setAttribute("data-text-color",s),d.setAttribute("data-text-secondary-color",s),t&&d.setAttribute("data-title",t),r&&d.setAttribute("data-artist",r),o&&d.setAttribute("data-artwork",o),d}function hA(e,{backgroundColor:t,backgroundGradient:r,textColor:o,playButtonColor:n,playButtonGradient:i}={}){let l=e.querySelector(".waveform-container"),s=e.querySelector(".waveform-btn"),c=lie(fA(e,i)||n);c?e.style.setProperty("--wfp-button-color",c):e.style.removeProperty("--wfp-button-color"),o?(e.style.setProperty("--wfp-text-color",o),e.style.setProperty("--wfp-text-secondary-color",o)):(e.style.removeProperty("--wfp-text-color"),e.style.removeProperty("--wfp-text-secondary-color")),s&&(i?s.style.background=i:s.style.removeProperty("background")),l&&(r?l.style.background=r:t?(l.style.removeProperty("background"),l.style.backgroundColor=t):(l.style.removeProperty("background"),l.style.removeProperty("background-color")))}function YTe(e,t){let o=Er(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function QTe(e,{play:t="Play",pause:r="Pause"}={}){let o=e.querySelector(".waveform-btn");if(!o)return;o.setAttribute("aria-label",t);let n=()=>o.setAttribute("aria-label",r),i=()=>o.setAttribute("aria-label",t);return e.addEventListener("waveformplayer:play",n),e.addEventListener("waveformplayer:pause",i),e.addEventListener("waveformplayer:ended",i),()=>{e.removeEventListener("waveformplayer:play",n),e.removeEventListener("waveformplayer:pause",i),e.removeEventListener("waveformplayer:ended",i)}}function sie(e){return e||jTe}function cie(e,t){let r=sie(t);e.options.seekLabel=r,e.applySeekLabel?.(r);let o=e?.container?.querySelector(".waveform-container");o&&o.setAttribute("aria-label",r)}function FS(e,t){if(!t){e.classList.remove("has-play-button-artwork"),e.style.removeProperty("--wp--playlist--play-button-artwork");return}e.classList.add("has-play-button-artwork"),e.style.setProperty("--wp--playlist--play-button-artwork",`url(${JSON.stringify(t)})`)}function XTe(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function uie(e,{src:t,title:r,artist:o,image:n,imageAlt:i,waveformColor:l,waveformGradient:s,textColor:c,backgroundColor:u,backgroundGradient:p,autoPlay:m,onEnded:d,labels:f,waveformStyle:h,showPlayButtonArtwork:g=!1}){let v=g?void 0:n,{textColor:b,waveformColor:_,progressColor:k,waveformGradient:x}=ZTe(e,l,c,s),w=fA(e,s),S=lie(w||l),T=KTe({url:t,title:r,artist:o,artwork:v,waveformColor:_,progressColor:k,waveformGradient:x,buttonColor:b,seekLabel:r||f?.seek,seekValueText:f?.seekValueText,waveformStyle:h});e.appendChild(T);let N=new rie(T);N.artworkEl&&(N.artworkEl.alt=i||""),hA(T,{backgroundColor:u,backgroundGradient:p,textColor:b,playButtonColor:g?void 0:S,playButtonGradient:g?void 0:s});let D,L={ready:()=>{YTe(T,S||b),g&&FS(T,n),D=QTe(T,f),m&&N.play()?.catch(XTe)},ended:()=>d?.()};return T.addEventListener("waveformplayer:ready",L.ready),T.addEventListener("waveformplayer:ended",L.ended),{instance:N,container:T,destroy:()=>{D?.(),T.removeEventListener("waveformplayer:ready",L.ready),T.removeEventListener("waveformplayer:ended",L.ended),N.destroy(),T.remove()}}}var pie=a(y(),1);function JTe(e,{title:t,artist:r,image:o,imageAlt:n},i){let{instance:l,container:s}=e,c=i?void 0:o;l.titleEl&&(l.titleEl.textContent=t??""),cie(l,t||(0,Ey.__)("Seek")),typeof l.syncArtist=="function"?l.syncArtist(r||""):l.artistEl&&(l.artistEl.textContent=r??"",l.artistEl.style.display=r?"":"none"),typeof l.syncArtwork=="function"?l.syncArtwork(c||null,c&&n||""):l.artworkEl&&c&&(l.artworkEl.src=c,l.artworkEl.alt=n||""),i&&FS(s,o)}function mie({src:e,title:t,artist:r,image:o,imageAlt:n,color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u,waveformStyle:p,onEnded:m,showPlayButtonArtwork:d=!1}){let f=(0,HS.useEvent)(m),h=(0,Ic.useRef)(),g=!!e,v=(0,Ic.useRef)({src:e,title:t,artist:r,image:o,imageAlt:n}),b=(0,Ic.useRef)({color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u});(0,Ic.useEffect)(()=>{v.current={src:e,title:t,artist:r,image:o,imageAlt:n}},[e,t,r,o,n]),(0,Ic.useEffect)(()=>{b.current={color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u}},[i,l,s,c,u]),(0,Ic.useEffect)(()=>{h.current?.container&&hA(h.current.container,{backgroundColor:s,backgroundGradient:c,textColor:u,playButtonColor:d?void 0:i,playButtonGradient:d?void 0:l})},[s,c,i,l,d,u]);let _=(0,HS.useRefEffect)(k=>{if(!g)return;let x=!1,w;function S(){if(x)return;let N=uie(k,{src:v.current.src,title:v.current.title,artist:v.current.artist,image:v.current.image,imageAlt:v.current.imageAlt,waveformColor:b.current.color,waveformGradient:b.current.gradient,backgroundColor:b.current.backgroundColor,backgroundGradient:b.current.backgroundGradient,textColor:b.current.textColor,waveformStyle:p,labels:{seek:(0,Ey.__)("Seek"),seekValueText:(0,Ey._x)("%1$s of %2$s","audio current time of total duration")},onEnded:()=>f?.(),showPlayButtonArtwork:d});h.current=N;let{destroy:D}=N;w=D}let T=setTimeout(S,100);return()=>{x=!0,clearTimeout(T),h.current=void 0,w?.()}},[f,g,p,i,l,u,d]);return(0,Ic.useEffect)(()=>{if(h.current?.instance){let k=h.current;k&&JTe(k,{title:t,artist:r,image:o,imageAlt:n},d)}},[t,r,o,n,d]),(0,Ic.useEffect)(()=>{if(e&&h.current?.instance){let k=h.current.instance.isPlaying;h.current.instance.loadTrack(e,v.current.title,v.current.artist,{artwork:d?void 0:v.current.image,artworkAlt:d?"":v.current.imageAlt}).then(()=>{d&&h.current?.container&&FS(h.current.container,v.current.image),k||h.current?.instance.pause()})}},[e,d]),(0,pie.jsx)("div",{ref:_,className:"wp-block-playlist__waveform-player"})}var die=a(H(),1),jS=(0,die.createContext)({currentTrackClientId:null,setCurrentTrackClientId:()=>{},addTracks:void 0});var gA=a(I(),1);function vA(e){let t=e?.src??e?.url;return t?.endsWith("/images/media/audio.svg")?{image:"",imageAlt:""}:{image:t,imageAlt:t?e?.alt||e?.alt_text||"":void 0}}function US(e){return{id:e.id||e.url,src:e.url,title:e.title,artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,gA.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,gA.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,...vA(e?.image)}}var We=a(y(),1),bA=["audio"],e8e=/\.(aac|aif|aiff|flac|m4a|m4b|mp3|oga|ogg|opus|wav|weba)$/i,GS="bars",t8e="[object FileList]",r8e=[{label:(0,mt._x)("Bars","waveform style option"),value:"bars"},{label:(0,mt._x)("Mirror","waveform style option"),value:"mirror"},{label:(0,mt._x)("Line","waveform style option"),value:"line"},{label:(0,mt._x)("Blocks","waveform style option"),value:"blocks"},{label:(0,mt._x)("Dots","waveform style option"),value:"dots"},{label:(0,mt._x)("Seekbar","waveform style option"),value:"seekbar"}];function o8e(e){return Object.prototype.toString.call(e)==="[object File]"||typeof File<"u"&&e instanceof File}function a8e(e){return e.type?e.type.startsWith("audio/"):e8e.test(e.name)}function fie(e){return e.id??e.src??e.blob}var n8e=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:n})=>{let{order:i,showTracklist:l,showNumbers:s,showImages:c,showPlayButtonArtwork:u,showArtists:p,showTrackLength:m,waveformStyle:d=GS,waveformColor:f,waveformGradient:h,waveformBackgroundColor:g,waveformBackgroundGradient:v}=e,b=(0,Nr.useBlockProps)(),_=`${n}-waveform`,{replaceInnerBlocks:k,selectBlock:x}=(0,Ny.useDispatch)(Nr.store),{createErrorNotice:w}=(0,Ny.useDispatch)(hie.store),S=Z(),T=(0,Nr.__experimentalUseMultipleOriginColorsAndGradients)(),N=(0,Go.useMemo)(()=>T.colors.flatMap(X=>X?.colors??[]),[T.colors]),D=(0,Go.useMemo)(()=>T.gradients.flatMap(X=>X?.gradients??[]),[T.gradients]),L=N.length>0||!T.disableCustomColors,P=D.length>0||!T.disableCustomGradients,E=h,M=v,z,j,q=(0,Go.useCallback)(X=>{w(X,{type:"snackbar"})},[w]),[G,W]=(0,Go.useState)(null),{innerBlockTracks:V}=(0,Ny.useSelect)(X=>{let{getBlock:Ce}=X(Nr.store);return{innerBlockTracks:Ce(n)?.innerBlocks??[]}},[n]),Q=(0,Go.useMemo)(()=>V.filter(X=>!!X.attributes.src||!!X.attributes.blob),[V]),Y=(0,Go.useMemo)(()=>Q.map(X=>({...X.attributes,clientId:X.clientId})),[Q]);(0,Go.useEffect)(()=>{if(Q.length===0){G!==null&&W(null);return}Q.some(Ce=>Ce.clientId===G)||W(Q[0].clientId)},[G,W,Q]);let re=(0,Go.useCallback)(X=>{if(!X)return[];let Ce=[X];Object.prototype.toString.call(X)===t8e?Ce=Array.from(X):Array.isArray(X)&&(Ce=X);let ue=!1,ct=Ce.map(he=>{if(o8e(he))return a8e(he)?(0,yA.createBlock)("core/playlist-track",{blob:(0,gie.createBlobURL)(he),title:he.name}):(ue=!0,null);let ze=US(he);return ze.src?(0,yA.createBlock)("core/playlist-track",ze):null}).filter(Boolean);return ue&&q((0,mt.__)("Only audio files can be added to a playlist.")),ct},[q]),J=(0,Go.useCallback)(X=>{let Ce=re(X);Ce.length!==0&&(W(Ce[0]?.clientId??null),k(n,Ce))},[n,re,k,W]),ie=(0,Go.useCallback)(X=>{let Ce=new Set(Q.map(he=>fie(he.attributes)).filter(Boolean)),ue=re(X).filter(he=>!Ce.has(fie(he.attributes)));if(ue.length===0)return;let ct=[...Q,...ue];W(ue[0].clientId),k(n,ct),x(ue[0].clientId)},[n,re,k,x,W,Q]),ee=(0,Go.useMemo)(()=>({currentTrackClientId:G,setCurrentTrackClientId:W,addTracks:ie}),[G,ie,W]),te=Y.find(X=>X.clientId===G)??Y[0],de=(0,Go.useCallback)(()=>{let X=Y.findIndex(ue=>ue.clientId===G),Ce=Y[X+1]||Y[0];Ce?.clientId&&W(Ce.clientId)},[G,W,Y]),we=(0,Go.useCallback)(X=>{let Ce=[...V].sort((ue,ct)=>{let he=ue.attributes.title||"",ze=ct.attributes.title||"";return X==="asc"?he.localeCompare(ze):ze.localeCompare(he)});k(n,Ce),W(Ce[0]?.clientId??null),t({order:X})},[n,V,k,t,W]);function le(X){return Ce=>{t({[X]:Ce})}}let me=(0,Go.useCallback)(X=>{t({waveformStyle:X===GS?void 0:X})},[t]);function xe(X){if(!(X!==void 0)&&z==="gradient"){z=void 0;return}z="color",t({waveformColor:X,waveformGradient:void 0})}function ae(X){if(!(X!==void 0)&&z==="color"){z=void 0;return}z="gradient",t({waveformGradient:X,waveformColor:void 0})}function pe(X){if(!(X!==void 0)&&j==="gradient"){j=void 0;return}j="color",t({waveformBackgroundColor:X,waveformBackgroundGradient:void 0})}function se(X){if(!(X!==void 0)&&j==="color"){j=void 0;return}j="gradient",t({waveformBackgroundGradient:X,waveformBackgroundColor:void 0})}let Ne=[];(L||P)&&Ne.push({colorValue:L?f:void 0,gradientValue:P?E:void 0,label:(0,mt.__)("Waveform & Play button"),onColorChange:L?xe:void 0,onGradientChange:P?ae:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformColor:void 0,waveformGradient:void 0})},{colorValue:L?g:void 0,gradientValue:P?M:void 0,label:(0,mt.__)("Waveform background"),onColorChange:L?pe:void 0,onGradientChange:P?se:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})});let Ie=(0,Nr.useInnerBlocksProps)(b,{__experimentalAppenderTagName:"li",renderAppender:!1});return Y.length===0?(0,We.jsx)("div",{...b,className:C("is-placeholder",b.className),children:(0,We.jsx)(Nr.MediaPlaceholder,{icon:(0,We.jsx)(Nr.BlockIcon,{icon:sv}),labels:{title:(0,mt.__)("Playlist"),instructions:(0,mt.__)("Upload an audio file or pick one from your media library.")},onSelect:J,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:bA,onError:q})}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(Nr.BlockControls,{group:"other",children:(0,We.jsx)(Nr.MediaReplaceFlow,{name:(0,mt.__)("Add"),onSelect:ie,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:bA,onError:q})}),(0,We.jsx)(Nr.InspectorControls,{children:(0,We.jsxs)(vr.__experimentalToolsPanel,{label:(0,mt.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,showPlayButtonArtwork:!1,order:"asc"})},dropdownMenuProps:S,children:[(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show tracklist"),onChange:le("showTracklist"),checked:l})}),l&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show artist name in tracklist"),isShownByDefault:!0,hasValue:()=>p!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show artist name in tracklist"),onChange:le("showArtists"),checked:p})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show track numbers in tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show track numbers in tracklist"),onChange:le("showNumbers"),checked:s})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show track duration in tracklist"),isShownByDefault:!0,hasValue:()=>m!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show track duration in tracklist"),onChange:le("showTrackLength"),checked:m})})]}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show tracklist images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show tracklist images"),onChange:le("showImages"),checked:c})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show track image on play button"),isShownByDefault:!0,hasValue:()=>u===!0,onDeselect:()=>t({showPlayButtonArtwork:!1}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show track image on play button"),onChange:le("showPlayButtonArtwork"),checked:u===!0})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,We.jsx)(vr.SelectControl,{label:(0,mt.__)("Order"),value:i,options:[{label:(0,mt.__)("Descending"),value:"desc"},{label:(0,mt.__)("Ascending"),value:"asc"}],onChange:X=>we(X)})})]})}),(0,We.jsx)(Nr.InspectorControls,{group:"styles",children:(0,We.jsxs)(vr.__experimentalToolsPanel,{label:(0,mt.__)("Waveform"),resetAll:()=>{t({waveformStyle:void 0,waveformColor:void 0,waveformGradient:void 0,waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})},panelId:_,dropdownMenuProps:S,children:[Ne.length>0&&(0,We.jsx)("div",{className:"wp-block-playlist__waveform-color-controls",children:(0,We.jsx)(Nr.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:Ne,panelId:_,...T})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Shape"),isShownByDefault:!0,hasValue:()=>d!==GS,onDeselect:()=>me(GS),panelId:_,children:(0,We.jsx)(vr.SelectControl,{label:(0,mt.__)("Shape"),value:d,options:r8e,onChange:me})})]})}),(0,We.jsxs)("figure",{...b,children:[(0,We.jsx)(Nr.MediaPlaceholder,{onSelect:ie,accept:"audio/*",multiple:!0,handleUpload:!1,disableMediaButtons:!0,allowedTypes:bA,onError:q}),(0,We.jsx)(vr.Disabled,{isDisabled:!r,children:(0,We.jsx)(mie,{src:te?.src,title:te?.title,artist:te?.artist,image:te?.image,imageAlt:te?.imageAlt,waveformStyle:d,color:f,gradient:E,backgroundColor:g,backgroundGradient:M,onEnded:de,showPlayButtonArtwork:u===!0})}),(0,We.jsx)("ol",{className:C("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!l,"wp-block-playlist__tracklist-show-numbers":s,"wp-block-playlist__tracklist-length-is-hidden":!m}),children:(0,We.jsx)(jS.Provider,{value:ee,children:Ie.children})}),(0,We.jsx)(Mo,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,mt.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},vie=n8e;var Mu=a(B(),1),Iy=a(y(),1);function bie({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:n,showTrackLength:i}=e,l=Mu.useBlockProps.save(),s=Mu.useInnerBlocksProps.save(l);return(0,Iy.jsxs)("figure",{...s,children:[(0,Iy.jsx)("ol",{className:C("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!o,"wp-block-playlist__tracklist-artist-is-hidden":!n,"wp-block-playlist__tracklist-length-is-hidden":!i,"wp-block-playlist__tracklist-show-numbers":r}),children:s.children}),!Mu.RichText.isEmpty(t)&&(0,Iy.jsx)(Mu.RichText.Content,{tagName:"figcaption",className:(0,Mu.__experimentalGetElementClassName)("caption"),value:t})]})}var{name:yie}=VS,_ie={icon:sv,edit:vie,save:bie},i8e=()=>R({name:yie,metadata:VS,settings:_ie});var xA={};K(xA,{init:()=>u8e,metadata:()=>WS,name:()=>Sie,settings:()=>Tie});var WS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/playlist-track",title:"Playlist track",category:"media",parent:["core/playlist"],description:"Playlist track.",keywords:["music","sound"],textdomain:"default",usesContext:["showArtists","showImages"],attributes:{blob:{type:"string",role:"local"},id:{type:"number"},src:{type:"string"},type:{type:"string",default:"audio"},album:{type:"string"},artist:{type:"string"},image:{type:"string"},imageAlt:{type:"string"},length:{type:"string"},title:{type:"string"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var xie=a(Mr(),1),cm=a(H(),1),eo=a(B(),1),Wa=a(O(),1);var kie=a(F(),1),wie=a(Sr(),1),jr=a(I(),1);var qS=a(Ca(),1);var at=a(y(),1),$S=["audio"],s8e=["image"],c8e=({attributes:e,setAttributes:t,context:r,clientId:o,isSelected:n})=>{let{id:i,src:l,album:s,artist:c,image:u,imageAlt:p,length:m,title:d}=e,[f,h]=(0,cm.useState)(e.blob),g=r?.showArtists,v=r?.showImages??!0,b=(0,cm.useRef)(),_=(0,eo.useBlockProps)(),{currentTrackClientId:k,setCurrentTrackClientId:x,addTracks:w}=(0,cm.useContext)(jS),{createErrorNotice:S}=(0,kie.useDispatch)(wie.store);function T(E){S(E,{type:"snackbar"})}let N=!!l||!!f;(0,cm.useEffect)(()=>{n&&N&&k!==o&&x(o)},[n,N,o,k,x]),Ws({url:f,allowedTypes:$S,onChange:D,onError:T});function D(E){if(!E||!E.url){t({blob:void 0,id:void 0,artist:void 0,album:void 0,image:void 0,imageAlt:void 0,length:void 0,title:void 0,url:void 0}),h();return}if((0,xie.isBlobURL)(E.url)){h(E.url);return}t({blob:void 0,...US(E)}),h()}function L(E){t(vA(E))}function P(){t({image:void 0,imageAlt:void 0}),b.current.focus()}return N?(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(eo.BlockControls,{group:"other",children:(0,at.jsx)(eo.MediaReplaceFlow,{name:(0,jr.__)("Replace"),onSelect:D,accept:"audio/*",mediaId:i,mediaURL:l,allowedTypes:$S,onError:T,variant:"toolbar"})}),!!w&&(0,at.jsx)(eo.BlockControls,{group:"block",children:(0,at.jsx)(eo.MediaReplaceFlow,{name:(0,jr.__)("Add"),onSelect:w,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:$S,onError:T,variant:"toolbar"})}),(0,at.jsx)(eo.InspectorControls,{children:(0,at.jsxs)(Wa.PanelBody,{title:(0,jr.__)("Settings"),children:[(0,at.jsx)(Wa.TextControl,{label:(0,jr.__)("Artist"),value:c?(0,qS.__unstableStripHTML)(c):"",onChange:E=>{t({artist:E})}}),(0,at.jsx)(Wa.TextControl,{label:(0,jr.__)("Album"),value:s?(0,qS.__unstableStripHTML)(s):"",onChange:E=>{t({album:E})}}),(0,at.jsx)(Wa.TextControl,{label:(0,jr.__)("Title"),value:d?(0,qS.__unstableStripHTML)(d):"",onChange:E=>{t({title:E})}}),(0,at.jsx)(eo.MediaUploadCheck,{children:(0,at.jsxs)(Wa.BaseControl,{children:[(0,at.jsx)(Wa.BaseControl.VisualLabel,{children:(0,jr.__)("Track image")}),(0,at.jsxs)("div",{className:"editor-video-poster-control",children:[!!u&&(0,at.jsx)("img",{src:u,alt:(0,jr.__)("Preview of the track image")}),(0,at.jsx)(eo.MediaUpload,{title:(0,jr.__)("Select image"),onSelect:L,allowedTypes:s8e,render:({open:E})=>(0,at.jsx)(Wa.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:E,ref:b,children:u?(0,jr.__)("Replace"):(0,jr.__)("Select")})}),!!u&&(0,at.jsx)(Wa.Button,{__next40pxDefaultSize:!0,onClick:P,variant:"tertiary",children:(0,jr.__)("Remove")})]})]})}),!!u&&(0,at.jsx)(Wa.TextareaControl,{label:(0,jr.__)("Alternative text"),value:p||"",onChange:E=>t({imageAlt:E}),help:(0,at.jsx)(cu,{openInNewTab:!0,href:(0,jr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,jr.__)("Describe the purpose of the image.")})})]})}),(0,at.jsxs)("li",{..._,children:[!!f&&(0,at.jsx)(Wa.Spinner,{}),(0,at.jsxs)("button",{className:"wp-block-playlist-track__button",onClick:()=>x(o),"aria-current":k===o?"true":"false",children:[v&&!!u&&(0,at.jsx)("img",{className:"wp-block-playlist-track__image",src:u,alt:p||""}),(0,at.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,at.jsx)(eo.PlainText,{tagName:"span",className:"wp-block-playlist-track__title",value:d,placeholder:(0,jr.__)("Add title"),onChange:E=>{t({title:E})},__experimentalVersion:2}),g&&(0,at.jsx)(eo.PlainText,{tagName:"span",className:"wp-block-playlist-track__artist",value:c,placeholder:(0,jr.__)("Add artist"),onChange:E=>t({artist:E}),__experimentalVersion:2})]}),(0,at.jsxs)("span",{className:"wp-block-playlist-track__length",children:[m&&(0,at.jsx)("span",{className:"screen-reader-text",children:(0,jr.__)("Duration:")}),m]}),(0,at.jsx)("span",{className:"screen-reader-text",children:(0,jr.__)("Play")})]})]})]}):(0,at.jsx)("div",{..._,children:(0,at.jsx)(eo.MediaPlaceholder,{icon:(0,at.jsx)(eo.BlockIcon,{icon:tu}),labels:{title:(0,jr.__)("Track"),instructions:(0,jr.__)("Upload an audio file or pick one from your media library.")},onSelect:D,accept:"audio/*",allowedTypes:$S,value:e,onError:T})})},Cie=c8e;var{name:Sie}=WS,Tie={icon:tu,edit:Cie},u8e=()=>R({name:Sie,metadata:WS,settings:Tie});var wA={};K(wA,{init:()=>g8e,metadata:()=>ZS,name:()=>Mie,settings:()=>Aie});var Rie=a(I(),1);var ZS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author (deprecated)",category:"theme",description:"This block is deprecated. Please use the Avatar block, the Author Name block, and the Author Biography block instead.",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:{inserter:!1,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 Sn=a(B(),1),Dr=a(O(),1),Iie=a(ge(),1),KS=a(oe(),1),vf=a(F(),1),YS=a(H(),1),kA=a(Xo(),1),Ir=a(I(),1),Die=a($(),1);var gf=a($(),1),Bie=a(I(),1),Eie=a(B(),1);var{cleanEmptyObject:Pie}=U(Eie.privateApis);function Nie(e,t){let{avatarSize:r,byline:o,showAvatar:n,showBio:i,isLink:l,linkTarget:s,textAlign:c,style:u,...p}=e,m=n&&t.some(g=>g.name==="core/avatar"),d=o&&t.some(g=>g.name==="core/paragraph"),f=t.some(g=>g.name==="core/post-author-name"),h=i&&t.some(g=>g.name==="core/post-author-biography");return(0,gf.createBlock)("core/group",{...p,style:Pie({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[m&&(0,gf.createBlock)("core/avatar",{size:r,style:Pie({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,gf.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[d&&(0,gf.createBlock)("core/paragraph",{content:o,placeholder:(0,Bie.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,gf.createBlock)("core/post-author-name",{isLink:l,linkTarget:s,style:{typography:{fontSize:"1em",textAlign:c}}}),h&&(0,gf.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var dt=a(y(),1),{InspectorControlsLastItem:m8e}=U(Sn.privateApis),d8e={who:"authors",per_page:100,_fields:"id,name",context:"view"};function f8e({value:e,onChange:t}){let[r,o]=(0,YS.useState)(""),{authors:n,isLoading:i}=(0,vf.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(KS.store),p={...d8e};return r&&(p.search=r,p.search_columns=["name"]),{authors:c(p),isLoading:u("getUsers",[p])}},[r]),l=(0,YS.useMemo)(()=>{let s=(n??[]).map(p=>({value:p.id,label:(0,kA.decodeEntities)(p.name)})),c=s.findIndex(p=>e?.id===p.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,kA.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Ir.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,dt.jsx)(Dr.ComboboxControl,{label:(0,Ir.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,Iie.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function h8e({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:n,setAttributes:i,clientId:l}){let s=Number.isFinite(o),c=Z(),u=Lv(),{authorDetails:p,canAssignAuthor:m,supportsAuthor:d}=(0,vf.useSelect)(M=>{let{getEditedEntityRecord:z,getUser:j,getPostType:q}=M(KS.store),G=z("postType",t,r),W=G?.author;return{authorDetails:W?j(W,{context:"view"}):null,supportsAuthor:q(t)?.supports?.author??!1,canAssignAuthor:!!G?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,vf.useSelect)(M=>M(Die.store).getBlockTypes(),[]),{editEntityRecord:h}=(0,vf.useDispatch)(KS.store),{replaceBlock:g}=(0,vf.useDispatch)(Sn.store),{textAlign:v,showAvatar:b,showBio:_,byline:k,isLink:x,linkTarget:w,avatarSize:S}=n,T=[],N=p?.name||(0,Ir.__)("Post Author");p?.avatar_urls&&Object.keys(p.avatar_urls).forEach(M=>{T.push({value:M,label:`${M} x ${M}`})});let D=(0,Sn.useBlockProps)({className:C({[`has-text-align-${v}`]:v})}),L=M=>{h("postType",t,r,{author:M})},P=!!r&&!s&&m;if(!d&&t!==void 0)return(0,dt.jsx)("div",{...D,children:(0,Ir.sprintf)((0,Ir.__)("This post type (%s) does not support the author."),t)});function E(){g(l,Nie(n,f))}return(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Sn.InspectorControls,{children:(0,dt.jsxs)(Dr.__experimentalToolsPanel,{label:(0,Ir.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[P&&(0,dt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,dt.jsx)(f8e,{value:p,onChange:L})}),(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Ir.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!b,onDeselect:()=>i({showAvatar:!0}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Ir.__)("Show avatar"),checked:b,onChange:()=>i({showAvatar:!b})})}),b&&(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Ir.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>S!==48,onDeselect:()=>i({avatarSize:48}),children:(0,dt.jsx)(Dr.SelectControl,{label:(0,Ir.__)("Avatar size"),value:S,options:T,onChange:M=>{i({avatarSize:Number(M)})}})}),(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Ir.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>i({showBio:void 0}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Ir.__)("Show bio"),checked:!!_,onChange:()=>i({showBio:!_})})}),(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Ir.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>i({isLink:!1}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Ir.__)("Link author name to author page"),checked:x,onChange:()=>i({isLink:!x})})}),x&&(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Ir.__)("Link target"),isShownByDefault:!0,hasValue:()=>w!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Ir.__)("Open in new tab"),onChange:M=>i({linkTarget:M?"_blank":"_self"}),checked:w==="_blank"})})]})}),f.some(M=>M.name==="core/group")&&(0,dt.jsx)(m8e,{children:(0,dt.jsxs)(Dr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,dt.jsx)(Dr.__experimentalText,{as:"p",children:(0,Ir.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,dt.jsx)(Dr.Button,{variant:"primary",onClick:E,__next40pxDefaultSize:!0,children:(0,Ir.__)("Recreate")})]})}),(0,dt.jsx)(Sn.BlockControls,{group:"block",children:(0,dt.jsx)(Sn.AlignmentControl,{value:v,onChange:M=>{i({textAlign:M})}})}),(0,dt.jsxs)("div",{...D,children:[b&&(0,dt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,dt.jsx)("img",{width:S,src:p?.avatar_urls?.[S]||u,alt:p?.name||(0,Ir.__)("Default Avatar")})}),(0,dt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!Sn.RichText.isEmpty(k)||e)&&(0,dt.jsx)(Sn.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Ir.__)("Post author byline text"),placeholder:(0,Ir.__)("Write byline\u2026"),value:k,onChange:M=>i({byline:M})}),(0,dt.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,dt.jsx)("a",{href:"#post-author-pseudo-link",onClick:M=>M.preventDefault(),children:N}):N}),_&&(0,dt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:p?.description}})]})]})]})}var Lie=h8e;var{name:Mie}=ZS,Aie={icon:td,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,Rie.__)("Posted by")}},edit:Lie},g8e=()=>R({name:Mie,metadata:ZS,settings:Aie});var CA={};K(CA,{init:()=>x8e,metadata:()=>QS,name:()=>Uie,settings:()=>Gie});var QS={$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:{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,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-post-author-name"};var XS=a(B(),1),zie=a(F(),1),Dc=a(I(),1),Vie=a(oe(),1),um=a(O(),1);var qi=a(y(),1);function b8e(e){wt(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:n,postId:i}}=e,{authorName:l,supportsAuthor:s}=(0,zie.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:g}=d(Vie.store),v=f("postType",n,i)?.author;return{authorName:v?h(v):null,supportsAuthor:g(n)?.supports?.author??!1}},[n,i]),c=(0,XS.useBlockProps)(),u=l?.name||(0,Dc.__)("Author Name"),p=t?(0,qi.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,m=Z();return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(XS.InspectorControls,{children:(0,qi.jsxs)(um.__experimentalToolsPanel,{label:(0,Dc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:m,children:[(0,qi.jsx)(um.__experimentalToolsPanelItem,{label:(0,Dc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,qi.jsx)(um.ToggleControl,{label:(0,Dc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,qi.jsx)(um.__experimentalToolsPanelItem,{label:(0,Dc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,qi.jsx)(um.ToggleControl,{label:(0,Dc.__)("Open in new tab"),onChange:d=>o({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,qi.jsx)("div",{...c,children:!s&&n!==void 0?(0,Dc.sprintf)((0,Dc.__)("This post type (%s) does not support the author."),n):p})]})}var Oie=b8e;var y8e={attributes:{isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,html:!1,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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Fie=[y8e];var Hie=a($(),1),_8e={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Hie.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},jie=_8e;var{name:Uie}=QS,Gie={icon:td,transforms:jie,edit:Oie,deprecated:Fie},x8e=()=>R({name:Uie,metadata:QS,settings:Gie});var SA={};K(SA,{init:()=>S8e,metadata:()=>JS,name:()=>Qie,settings:()=>Xie});var JS={$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",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,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-post-author-biography"};var Wie=a(B(),1),$ie=a(F(),1),qie=a(I(),1),Zie=a(oe(),1);var Dy=a(y(),1);function w8e(e){wt(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,$ie.useSelect)(l=>{let{getEditedEntityRecord:s,getUser:c}=l(Zie.store),u=s("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,Wie.useBlockProps)(),i=o?.description||(0,qie.__)("Author Biography");return(0,Dy.jsx)(Dy.Fragment,{children:(0,Dy.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var Kie=w8e;var C8e={attributes:{textAlign:{type:"string"}},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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Yie=[C8e];var{name:Qie}=JS,Xie={icon:td,edit:Kie,deprecated:Yie},S8e=()=>R({name:Qie,metadata:JS,settings:Xie});var TA={};K(TA,{init:()=>B8e,metadata:()=>e6,name:()=>ole,settings:()=>ale});var e6={$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 Ly=a(I(),1),m0=a(O(),1),Jie=a(H(),1);var t6=a(B(),1),bf=a(y(),1),P8e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function ele({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,Jie.useState)(e),n=(0,t6.useBlockProps)(),i=(0,t6.useInnerBlocksProps)(n,{template:P8e});return e?(0,bf.jsx)("div",{...i}):(0,bf.jsx)("div",{...n,children:(0,bf.jsxs)(m0.Placeholder,{icon:W9,label:(0,Ly._x)("Post Comment","block title"),instructions:(0,Ly.__)("To show a comment, input the comment ID."),children:[(0,bf.jsx)(m0.TextControl,{value:e,onChange:l=>o(parseInt(l))}),(0,bf.jsx)(m0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,Ly.__)("Save")})]})})}var r6=a(B(),1),tle=a(y(),1);function rle(){let e=r6.useBlockProps.save(),t=r6.useInnerBlocksProps.save(e);return(0,tle.jsx)("div",{...t})}var{name:ole}=e6,ale={icon:H1,edit:ele,save:rle},B8e=()=>R({name:ole,metadata:e6,settings:ale});var PA={};K(PA,{init:()=>D8e,metadata:()=>o6,name:()=>dle,settings:()=>fle});var o6={$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",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,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},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var nle=a(B(),1),a6=a(H(),1),ile=a(hb(),1),lle=a(ur(),1),sle=a(y(),1);function cle({context:e}){let{postId:t}=e,[r,o]=(0,a6.useState)(),n=(0,nle.useBlockProps)();(0,a6.useEffect)(()=>{if(!t)return;let s=t;(0,ile.default)({path:(0,lle.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{s===t&&o(c.headers.get("X-WP-Total"))})},[t]);let i=t&&r!==void 0,l={...n.style,textDecoration:i?n.style?.textDecoration:void 0};return(0,sle.jsx)("div",{...n,style:l,children:i?r:"0"})}var ule=a($(),1),N8e={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,ule.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},ple=N8e;var I8e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},mle=[I8e];var{name:dle}=o6,fle={icon:cv,edit:cle,transforms:ple,deprecated:mle},D8e=()=>R({name:dle,metadata:o6,settings:fle});var EA={};K(EA,{init:()=>M8e,metadata:()=>n6,name:()=>ble,settings:()=>yle});var n6={$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",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,textAlign:!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:{style:{typography:{textAlign:"center"}}}}};var hle=a(B(),1),gle=a(ge(),1),i6=a(I(),1);var Ry=a(y(),1);function BA({context:e}){let{postId:t,postType:r}=e,o=(0,gle.useInstanceId)(BA),n=(0,i6.sprintf)("comments-form-edit-%d-desc",o),i=(0,hle.useBlockProps)({"aria-describedby":n});return(0,Ry.jsxs)("div",{...i,children:[(0,Ry.jsx)(_w,{postId:t,postType:r}),(0,Ry.jsx)(vi,{id:n,children:(0,i6.__)("Comments form disabled in editor.")})]})}var R8e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,heading:!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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},vle=[R8e];var{name:ble}=n6,yle={icon:kE,edit:BA,deprecated:vle},M8e=()=>R({name:ble,metadata:n6,settings:yle});var NA={};K(NA,{init:()=>F8e,metadata:()=>l6,name:()=>Ele,settings:()=>Nle});var l6={$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"],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,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-post-comments-link"};var _le=a(B(),1),c6=a(H(),1),xle=a(F(),1),kle=a(hb(),1),wle=a(ur(),1),yf=a(I(),1),Cle=a(oe(),1),s6=a(y(),1);function z8e({context:e}){let{postType:t,postId:r}=e,[o,n]=(0,c6.useState)(),i=(0,_le.useBlockProps)();(0,c6.useEffect)(()=>{if(!r)return;let c=r;(0,kle.default)({path:(0,wle.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let l=(0,xle.useSelect)(c=>c(Cle.store).getEditedEntityRecord("postType",t,r),[t,r]),s;if(o!==void 0){let c=parseInt(o);c===0?s=(0,yf.__)("No comments"):s=(0,yf.sprintf)((0,yf._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,s6.jsx)("div",{...i,children:l?.link&&s!==void 0?(0,s6.jsx)("a",{href:l?.link+"#comments",onClick:c=>c.preventDefault(),children:s}):(0,s6.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,yf.__)("No comments")})})}var Sle=z8e;var Tle=a($(),1),V8e={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Tle.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Ple=V8e;var O8e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{link:!0,text:!1,__experimentalDefaultControls:{background:!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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Ble=[O8e];var{name:Ele}=l6,Nle={edit:Sle,icon:cv,transforms:Ple,deprecated:Ble},F8e=()=>R({name:Ele,metadata:l6,settings:Nle});var IA={};K(IA,{init:()=>K8e,metadata:()=>u6,name:()=>Mle,settings:()=>Ale});var u6={$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,gradient:!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 _f=a(I(),1),uo=a(B(),1),Ile=a($(),1),d0=a(oe(),1),Dle=a(F(),1),Lle=a(H(),1);var fr=a(y(),1),{HTMLElementControl:j8e}=U(uo.privateApis);function U8e({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:n,tagName:i="div"}){let[,,l]=(0,d0.useEntityProp)("postType",o,"content",n),s=(0,uo.useBlockProps)({className:t}),c=(0,Lle.useMemo)(()=>l?.raw?(0,Ile.parse)(l.raw):[],[l?.raw]),u=(0,uo.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,fr.jsx)("div",{...u}):l?.protected?(0,fr.jsx)(i,{...s,children:(0,fr.jsx)(uo.Warning,{children:(0,_f.__)("This content is password protected.")})}):(0,fr.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function G8e({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[n,i,l]=(0,d0.useEntityBlockEditor)("postType",r,{id:o}),c=!!(0,Dle.useSelect)(m=>m(d0.store).getEntityRecord("postType",r,o),[r,o])?.content?.raw||n?.length,u=[["core/paragraph"]],p=(0,uo.useInnerBlocksProps)((0,uo.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,fr.jsx)(t,{...p})}function W8e(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:n,tagName:i}=e,l=Zk("postType",r,o);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,fr.jsx)(G8e,{...e}):(0,fr.jsx)(U8e,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:r,postId:o,tagName:i})}function $8e({layoutClassNames:e}){let t=(0,uo.useBlockProps)({className:e});return(0,fr.jsxs)("div",{...t,children:[(0,fr.jsx)("p",{children:(0,_f.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,fr.jsx)("p",{children:(0,_f.__)("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,fr.jsx)("p",{children:(0,_f.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function q8e(){let e=(0,uo.useBlockProps)();return(0,fr.jsx)("div",{...e,children:(0,fr.jsx)(uo.Warning,{children:(0,_f.__)("Block cannot be rendered inside itself.")})})}function Z8e({tagName:e,onSelectTagName:t,clientId:r}){return(0,fr.jsx)(uo.InspectorControls,{group:"advanced",children:(0,fr.jsx)(j8e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,_f.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function Rle({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,uo.useHasRecursion)(l);return l&&s&&c?(0,fr.jsx)(q8e,{}):(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(Z8e,{tagName:t,onSelectTagName:p=>{r({tagName:p})},clientId:o}),(0,fr.jsx)(uo.RecursionProvider,{uniqueId:l,children:l&&s?(0,fr.jsx)(W8e,{context:e,parentLayout:i,layoutClassNames:n}):(0,fr.jsx)($8e,{layoutClassNames:n})})]})}var{name:Mle}=u6,Ale={icon:TE,edit:Rle},K8e=()=>R({name:Mle,metadata:u6,settings:Ale});var DA={};K(DA,{init:()=>o7e,metadata:()=>p6,name:()=>Ule,settings:()=>Gle});var p6={$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"},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,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}}}};var zle=a(oe(),1),f0=a(H(),1),xf=a(Bw(),1),ei=a(B(),1),Zi=a(O(),1),Tn=a(I(),1);var Vle=a(Ks(),1),My=a(F(),1),Ole=a($(),1);var Po=a(y(),1);function Fle(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:n,name:i}=e;wt(e);let{datetime:l,format:s,isLink:c}=t,u=(0,ei.useBlockProps)(),p=Z(),[m,d]=(0,f0.useState)(null),f=(0,f0.useMemo)(()=>({anchor:m}),[m]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,My.useDispatch)(ei.store);(0,f0.useEffect)(()=>{l===void 0&&(h(),n({datetime:new Date}))},[l]);let g=Number.isFinite(o),v=(0,xf.getSettings)(),{postType:b,siteFormat:_=v.formats.date,siteTimeFormat:k=v.formats.time}=(0,My.useSelect)(N=>{let{getPostType:D,getEntityRecord:L}=N(zle.store),P=L("root","site");return{siteFormat:P?.date_format,siteTimeFormat:P?.time_format,postType:r?D(r):null}},[r]),x=(0,My.useSelect)(N=>N(Ole.store).getActiveBlockVariation(i,t)?.name,[i,t]),w=(0,ei.useBlockEditingMode)(),S=l||new Date,T=(0,Po.jsx)("time",{dateTime:(0,xf.dateI18n)("c",S),ref:d,children:s==="human-diff"?(0,xf.humanTimeDiff)(S):(0,xf.dateI18n)(s||_,S)});return c&&l&&(T=(0,Po.jsx)("a",{href:"#post-date-pseudo-link",onClick:N=>N.preventDefault(),children:T})),(0,Po.jsxs)(Po.Fragment,{children:[(w==="default"||!g)&&x!=="post-date-modified"&&(!g||!x)&&(0,Po.jsx)(ei.BlockControls,{group:"block",children:(0,Po.jsx)(Zi.ToolbarGroup,{children:(0,Po.jsx)(Zi.Dropdown,{popoverProps:f,renderContent:({onClose:N})=>(0,Po.jsx)(ei.__experimentalPublishDateTimePicker,{title:x==="post-date"?(0,Tn.__)("Publish Date"):(0,Tn.__)("Date"),currentDate:l,onChange:D=>n({datetime:D}),is12Hour:Q8e(k),onClose:N,dateOrder:(0,Tn._x)("dmy","date order")}),renderToggle:({isOpen:N,onToggle:D})=>{let L=P=>{!N&&P.keyCode===Vle.DOWN&&(P.preventDefault(),D())};return(0,Po.jsx)(Zi.ToolbarButton,{"aria-expanded":N,icon:ed,title:(0,Tn.__)("Change Date"),onClick:D,onKeyDown:L})}})})}),(0,Po.jsx)(ei.InspectorControls,{children:(0,Po.jsxs)(Zi.__experimentalToolsPanel,{label:(0,Tn.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:p,children:[(0,Po.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Tn.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,Po.jsx)(ei.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:N=>n({format:N})})}),(0,Po.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:b?.labels?.singular_name?(0,Tn.sprintf)((0,Tn.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Tn.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,Po.jsx)(Zi.ToggleControl,{label:b?.labels?.singular_name?(0,Tn.sprintf)((0,Tn.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Tn.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,Po.jsx)("div",{...u,children:T})]})}function Q8e(e){return/(?:^|[^\\])[aAgh]/.test(e)}var X8e={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},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}}},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},J8e={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}},...o},...n},...i}){return ve({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...o},...n},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},e7e={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,...o}){if(t==="date"||t==="modified")return t==="modified"&&(e=C(e,"wp-block-post-date__modified-date")),ve({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},t7e={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(e){return ve(Zt(e))},isEligible({style:e}){return e?.typography?.fontFamily}},Hle=[X8e,J8e,e7e,t7e];var Ay=a(I(),1),r7e=[{name:"post-date",title:(0,Ay.__)("Post Date"),description:(0,Ay.__)("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,Ay.__)("Modified Date"),description:(0,Ay.__)("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"}],jle=r7e;var{name:Ule}=p6,Gle={icon:mv,edit:Fle,deprecated:Hle,variations:jle},o7e=()=>R({name:Ule,metadata:p6,settings:Gle});var RA={};K(RA,{init:()=>l7e,metadata:()=>m6,name:()=>Qle,settings:()=>Xle});var m6={$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:{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,textAlign:!0,textColumns:!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 d6=a(oe(),1),$le=a(H(),1),Au=a(B(),1),zu=a(O(),1),Pn=a(I(),1),qle=a(F(),1);var po=a(y(),1),Wle="\u2026";function Zle(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}=e;wt(e);let u=Number.isFinite(c),p=Zk("postType",s,l),[m,d,{rendered:f,protected:h}={}]=(0,d6.useEntityProp)("postType",s,"excerpt",l),g=Z(),v=(0,qle.useSelect)(P=>s==="page"?!0:!!P(d6.store).getPostType(s)?.supports?.excerpt,[s]),b=p&&!u&&v,_=(0,Au.useBlockProps)(),k=(0,Pn._x)("words","Word count type. Do not translate!"),x=(0,$le.useMemo)(()=>{if(!f)return"";let P=new window.DOMParser().parseFromString(f,"text/html");return P.body.textContent||P.body.innerText||""},[f]);if(!s||!l)return(0,po.jsx)("div",{..._,children:(0,po.jsx)("p",{children:(0,Pn.__)("This block will display the excerpt.")})});if(h&&!p)return(0,po.jsx)("div",{..._,children:(0,po.jsx)(Au.Warning,{children:(0,Pn.__)("The content is currently protected and does not have the available excerpt.")})});let w=(0,po.jsx)(Au.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Pn.__)("\u201CRead more\u201D link text"),placeholder:(0,Pn.__)('Add "read more" link text'),value:t,onChange:P=>n({moreText:P}),withoutInteractiveFormatting:!0}),S=C("wp-block-post-excerpt__excerpt",{"is-inline":!r}),T=(m||x).trim(),N="";if(k==="words")N=T.split(/\s+/,o).join(" ");else if(k==="characters_excluding_spaces"){let P=T.split("",o).join(""),E=P.length-P.replaceAll(" ","").length;N=T.split("",o+E).join("")}else k==="characters_including_spaces"&&(N=T.split("",o).join(""));let D=N!==T,L=b?(0,po.jsx)(Au.RichText,{className:S,"aria-label":(0,Pn.__)("Excerpt text"),value:i?T:(D?N+Wle:T)||(0,Pn.__)("No excerpt found"),onChange:d,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,po.jsx)("p",{className:S,children:D?N+Wle:T||(0,Pn.__)("No excerpt found")});return(0,po.jsxs)(po.Fragment,{children:[(0,po.jsx)(Au.InspectorControls,{children:(0,po.jsxs)(zu.__experimentalToolsPanel,{label:(0,Pn.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:g,children:[(0,po.jsx)(zu.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Pn.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,po.jsx)(zu.ToggleControl,{label:(0,Pn.__)("Show link on new line"),checked:r,onChange:P=>n({showMoreOnNewLine:P})})}),(0,po.jsx)(zu.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,Pn.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,po.jsx)(zu.RangeControl,{label:(0,Pn.__)("Max number of words"),value:o,onChange:P=>{n({excerptLength:P})},min:"10",max:"100"})})]})}),(0,po.jsxs)("div",{..._,children:[L,!r&&" ",r?(0,po.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:w}):w]})]})}var LA=a($(),1),n7e={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,LA.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,LA.createBlock)("core/post-content")}]},Kle=n7e;var i7e={attributes:{textAlign:{type:"string"},moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},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,textColumns:!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:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Yle=[i7e];var{name:Qle}=m6,Xle={icon:BE,transforms:Kle,edit:Zle,deprecated:Yle},l7e=()=>R({name:Qle,metadata:m6,settings:Xle});var AA={};K(AA,{init:()=>y7e,metadata:()=>f6,name:()=>mse,settings:()=>dse});var f6={$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:{dimensions:".wp-block-post-featured-image img",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 sse=a(Mr(),1),zy=a(oe(),1),Vy=a(F(),1),Bo=a(O(),1),Lr=a(B(),1),hm=a(H(),1),$a=a(I(),1);var cse=a(Sr(),1);var pm=a(I(),1),Jle=a(O(),1),h6=a(B(),1);var ese=a(y(),1),{DimensionsTool:c7e}=U(h6.privateApis),u7e="cover",p7e=["aspectRatio","width","height","scale"],m7e=[{value:"cover",label:(0,pm._x)("Cover","Scale option for Image dimension control"),help:(0,pm.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,pm._x)("Contain","Scale option for Image dimension control"),help:(0,pm.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,pm._x)("Fill","Scale option for Image dimension control"),help:(0,pm.__)("Image will be stretched and distorted to completely fill the space.")}],d7e=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:n=!1})=>{let{style:i}=t,l=Uh(o),s=Ci({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"aspectRatio"}),c=Ci({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"width"}),u=Ci({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"height"}),p=Ci({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"scale",styleKey:"objectFit"}),[m]=(0,h6.useSettings)("spacing.units"),d=(0,Jle.__experimentalUseCustomUnits)({availableUnits:m||["px","%","vw","em","rem"]});return(0,ese.jsx)(c7e,{panelId:e,value:{aspectRatio:s,width:c,height:u,scale:p},onChange:h=>{let g={...h,width:!h.width&&h.height?"auto":h.width};r(Gh({style:i,selectedState:o,hasSelectedStyleState:n,nextDimensions:g,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:p7e}))},defaultScale:u7e,defaultAspectRatio:"auto",scaleOptions:m7e,unitsOptions:d},l)},tse=d7e;var v6=a(O(),1),dm=a(B(),1),rse=a(ge(),1),g6=a(I(),1),mm=a(y(),1),f7e=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,dm.__experimentalUseGradient)(),c=(0,dm.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,mm.jsxs)(mm.Fragment,{children:[(0,mm.jsx)(dm.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:l,label:(0,g6.__)("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,mm.jsx)(v6.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,g6.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,mm.jsx)(v6.RangeControl,{label:(0,g6.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0})})]}):null},ose=(0,rse.compose)([(0,dm.withColors)({overlayColor:"background-color"})])(f7e);var fm=a(B(),1),nse=a(ge(),1);function ase(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var ise=a(y(),1),h7e=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:n}=(0,fm.__experimentalUseGradient)(),i=(0,fm.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,fm.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!r?null:(0,ise.jsx)("span",{"aria-hidden":"true",className:C("wp-block-post-featured-image__overlay",ase(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[o]:o},l.className),style:s})},MA=(0,nse.compose)([(0,fm.withColors)({overlayColor:"background-color"})])(h7e);var Ye=a(y(),1),lse=["image"],{isDefaultBlockStyleState:g7e,ResolutionTool:v7e}=U(Lr.privateApis),h0=e=>e!=null&&e!=="",use="full";function b7e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,Vy.useSelect)(i=>{let{getSettings:l}=i(Lr.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Ye.jsx)(v7e,{value:t,defaultValue:use,options:n,onChange:r})}function pse({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:p,scale:m,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:g}=t,[v,b]=(0,hm.useState)(),[_,k]=(0,zy.useEntityProp)("postType",n,"featured_media",o),[x]=(0,zy.useEntityProp)("postType",n,"content",o),w=(0,hm.useMemo)(()=>{if(_)return _;if(!g)return;let te=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(x);return te?.groups?.attrs&&JSON.parse(te.groups.attrs)?.id},[_,g,x]),{media:S,postType:T,postPermalink:N,selectedStyleState:D}=(0,Vy.useSelect)(te=>{let{getEntityRecord:de,getPostType:we,getEditedEntityRecord:le}=te(zy.store),{getSelectedBlockStyleState:me}=U(te(Lr.store));return{media:w&&de("postType","attachment",w,{context:"view"}),postType:n&&we(n),postPermalink:le("postType",n,o)?.link,selectedStyleState:me(e)}},[e,w,n,o]),L=!g7e(D),P=S?.media_details?.sizes?.[d]?.source_url||S?.source_url,E=(0,Lr.useBlockProps)({className:C({"is-transient":v})}),M=(0,Lr.__experimentalUseBorderProps)(t),z=(0,Lr.__experimentalGetShadowClassesAndStyles)(t),j=(0,Lr.useBlockEditingMode)(),q=te=>(0,Ye.jsx)(Bo.Placeholder,{className:C("block-editor-media-placeholder",M.className),withIllustration:!0,style:{aspectRatio:c,height:h0(u)?u:h0(p)&&"auto",width:h0(p)?p:!!c&&"100%",...M.style,...z.style},children:te}),G=te=>{te?.id&&k(te.id),te?.url&&(0,sse.isBlobURL)(te.url)&&b(te.url)},W=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),k(0)};(0,hm.useEffect)(()=>{P&&v&&b()},[P,v]);let{createErrorNotice:V}=(0,Vy.useDispatch)(cse.store),Q=te=>{V(te,{type:"snackbar"}),b()},Y=Z(),re=j==="default"&&(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(Lr.InspectorControls,{group:"color",children:(0,Ye.jsx)(ose,{attributes:t,setAttributes:r,clientId:e})}),(0,Ye.jsx)(Lr.InspectorControls,{group:"dimensions",resetAllFilter:te=>Wh({attributes:te,selectedState:D,hasSelectedStyleState:L,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,Ye.jsx)(tse,{clientId:e,attributes:t,setAttributes:r,media:S,selectedStyleState:D,hasSelectedStyleState:L})}),(w||l||!o)&&(0,Ye.jsx)(Lr.InspectorControls,{children:(0,Ye.jsxs)(Bo.__experimentalToolsPanel,{label:(0,$a.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:use})},dropdownMenuProps:Y,children:[(0,Ye.jsx)(Bo.__experimentalToolsPanelItem,{label:T?.labels?.singular_name?(0,$a.sprintf)((0,$a.__)("Link to %s"),T.labels.singular_name):(0,$a.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,Ye.jsx)(Bo.ToggleControl,{label:(0,$a.__)("Make image a link"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,Ye.jsx)(Bo.__experimentalToolsPanelItem,{label:(0,$a.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ye.jsx)(Bo.ToggleControl,{label:(0,$a.__)("Open in new tab"),onChange:te=>r({linkTarget:te?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,Ye.jsx)(Bo.__experimentalToolsPanelItem,{label:(0,$a.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,Ye.jsx)(Bo.TextControl,{label:(0,$a.__)("Link relation"),help:(0,hm.createInterpolateElement)((0,$a.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ye.jsx)(Bo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:te=>r({rel:te})})}),!!S&&(0,Ye.jsx)(b7e,{image:S,value:d,onChange:te=>r({sizeSlug:te})})]})})]}),J;if(!w&&(l||!o))return(0,Ye.jsxs)(Ye.Fragment,{children:[re,(0,Ye.jsxs)("div",{...E,children:[s?(0,Ye.jsx)("a",{href:N,target:h,children:q()}):q(),(0,Ye.jsx)(MA,{attributes:t,setAttributes:r,clientId:e})]})]});let ie=(0,$a.__)("Add a featured image"),ee={...M.style,...z.style,aspectRatio:c,height:h0(u)?u:h0(p)&&"auto",width:h0(p)?p:!!c&&"100%",objectFit:!!(u||c)&&m};return!w&&!v?J=(0,Ye.jsx)(Lr.MediaPlaceholder,{onSelect:G,accept:"image/*",allowedTypes:lse,onError:Q,placeholder:q,mediaLibraryButton:({open:te})=>(0,Ye.jsx)(Bo.Button,{__next40pxDefaultSize:!0,icon:ou,variant:"primary",label:ie,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{te()}})}):J=!S&&!v?q():(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("img",{className:M.className,src:v||P,alt:S&&S?.alt_text?(0,$a.sprintf)((0,$a.__)("Featured image: %s"),S.alt_text):(0,$a.__)("Featured image"),style:ee}),v&&(0,Ye.jsx)(Bo.Spinner,{})]}),(0,Ye.jsxs)(Ye.Fragment,{children:[!v&&re,!!S&&!l&&(0,Ye.jsx)(Lr.BlockControls,{group:"other",children:(0,Ye.jsx)(Lr.MediaReplaceFlow,{mediaId:w,mediaURL:P,allowedTypes:lse,accept:"image/*",onSelect:G,onError:Q,onReset:W})}),(0,Ye.jsxs)("figure",{...E,children:[s?(0,Ye.jsx)("a",{href:N,target:h,children:J}):J,(0,Ye.jsx)(MA,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:mse}=f6,dse={icon:NE,edit:pse},y7e=()=>R({name:mse,metadata:f6,settings:dse});var zA={};K(zA,{init:()=>k7e,metadata:()=>b6,name:()=>xse,settings:()=>kse});var _se=a(I(),1);var b6={$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:{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,textAlign:!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 ga=a(O(),1),kf=a(B(),1),br=a(I(),1),fse=a(F(),1),hse=a(oe(),1);var Rr=a(y(),1);function gse({context:{postType:e},attributes:{type:t,label:r,showTitle:o,linkLabel:n,arrow:i,taxonomy:l},setAttributes:s}){let c=t==="next",u=c?(0,br.__)("Next"):(0,br.__)("Previous"),m={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];o&&(u=c?(0,br.__)("Next: "):(0,br.__)("Previous: "));let d=c?(0,br.__)("Next post"):(0,br.__)("Previous post"),f=(0,kf.useBlockProps)(),h=(0,fse.useSelect)(b=>{let{getTaxonomies:_}=b(hse.store);return _({type:e,per_page:-1})},[e]),g=()=>{let b={label:(0,br.__)("Unfiltered"),value:""},_=(h??[]).filter(({visibility:k})=>!!k?.publicly_queryable).map(k=>({value:k.slug,label:k.name}));return[b,..._]},v=Z();return(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(kf.InspectorControls,{children:(0,Rr.jsxs)(ga.__experimentalToolsPanel,{label:(0,br.__)("Settings"),resetAll:()=>{s({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:v,children:[(0,Rr.jsx)(ga.__experimentalToolsPanelItem,{label:(0,br.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>s({showTitle:!1}),children:(0,Rr.jsx)(ga.ToggleControl,{label:(0,br.__)("Display the title as a link"),help:(0,br.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>s({showTitle:!o})})}),o&&(0,Rr.jsx)(ga.__experimentalToolsPanelItem,{label:(0,br.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>s({linkLabel:!1}),children:(0,Rr.jsx)(ga.ToggleControl,{label:(0,br.__)("Include the label as part of the link"),checked:!!n,onChange:()=>s({linkLabel:!n})})}),(0,Rr.jsx)(ga.__experimentalToolsPanelItem,{label:(0,br.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>s({arrow:"none"}),children:(0,Rr.jsxs)(ga.__experimentalToggleGroupControl,{label:(0,br.__)("Arrow"),value:i,onChange:b=>{s({arrow:b})},help:(0,br.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Rr.jsx)(ga.__experimentalToggleGroupControlOption,{value:"none",label:(0,br._x)("None","Arrow option for Next/Previous link")}),(0,Rr.jsx)(ga.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,br._x)("Arrow","Arrow option for Next/Previous link")}),(0,Rr.jsx)(ga.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,br._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Rr.jsx)(kf.InspectorControls,{group:"advanced",children:(0,Rr.jsx)(ga.SelectControl,{label:(0,br.__)("Filter by taxonomy"),value:l,options:g(),onChange:b=>s({taxonomy:b}),help:(0,br.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Rr.jsxs)("div",{...f,children:[!c&&m&&(0,Rr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:m}),(0,Rr.jsx)(kf.RichText,{tagName:"a",identifier:"label","aria-label":d,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:b=>s({label:b})}),o&&(0,Rr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:b=>b.preventDefault(),children:(0,br.__)("An example title")}),c&&m&&(0,Rr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:m})]})]})}var wf=a(I(),1);var vse=[{name:"post-previous",title:(0,wf.__)("Previous Post"),description:(0,wf.__)("Displays the post link that precedes the current post."),icon:zE,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,wf.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,wf.__)("Next Post"),description:(0,wf.__)("Displays the post link that follows the current post."),icon:XB,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,wf.__)("Next post"),arrow:"arrow"}}}];vse.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var bse=vse;var x7e={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:""}},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,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},yse=[x7e];var{name:xse}=b6,kse={edit:gse,variations:bse,deprecated:yse,example:{attributes:{label:(0,_se.__)("Next post"),arrow:"arrow"}}},k7e=()=>R({name:xse,metadata:b6,settings:kse});var VA={};K(VA,{init:()=>B7e,metadata:()=>y6,name:()=>Ese,settings:()=>Nse});var y6={$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","postId"],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 g0=a(H(),1),wse=a(F(),1),Oy=a(I(),1),El=a(B(),1),_6=a(O(),1),Cse=a(oe(),1);var qa=a(y(),1),C7e=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function S7e({classList:e}){let t=(0,El.useInnerBlocksProps)({className:C("wp-block-post",e)},{template:C7e,__unstableDisableLayoutClassNames:!0});return(0,qa.jsx)("li",{...t})}function T7e({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,El.__experimentalUseBlockPreview)({blocks:e,props:{className:C("wp-block-post",r)}}),l=()=>{n(t)};return(0,qa.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var P7e=(0,g0.memo)(T7e);function Sse({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:p,inherit:m,taxQuery:d,parents:f,pages:h,format:g,excludeCurrent:v,...b}={},templateSlug:_,previewPostType:k,postId:x},attributes:{layout:w},__unstableLayoutClassNames:S}){let{type:T,columnCount:N=3,minimumColumnWidth:D}=w||{},[L,P]=(0,g0.useState)(),{posts:E,blocks:M}=(0,wse.useSelect)(W=>{let{getEntityRecords:V,getTaxonomies:Q}=W(Cse.store),{getBlocks:Y}=W(El.store),re=m&&_?.startsWith("category-")&&V("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:_.replace("category-","")}),J=m&&_?.startsWith("tag-")&&V("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:_.replace("tag-","")}),ie={offset:o||0,order:i,orderby:l};if(d&&!m){let de=Q({type:n,per_page:-1,context:"view"}),we=(me,xe="")=>Object.entries(me||{}).reduce((ae,[pe,se])=>{let Ne=de?.find(({slug:Ie})=>Ie===pe);return Ne?.rest_base&&se?.length&&(ae[Ne.rest_base+xe]=se),ae},{}),le=we(d.include);d.exclude&&Object.assign(le,we(d.exclude,"_exclude")),Object.keys(le).length&&Object.assign(ie,le)}r&&(ie.per_page=r),s&&(ie.author=s),c&&(ie.search=c),u?.length&&(ie.exclude=u),f?.length&&(ie.parent=f),g?.length&&(ie.format=g),v&&x&&(ie.exclude?ie.exclude=[...ie.exclude,x]:ie.exclude=[x]),["exclude","only"].includes(p)&&(ie.sticky=p==="only"),["","ignore"].includes(p)&&(delete ie.sticky,ie.ignore_sticky=p==="ignore");let ee=n;return m&&(_?.startsWith("archive-")?(ie.postType=_.replace("archive-",""),ee=ie.postType):re?ie.categories=re[0]?.id:J?ie.tags=J[0]?.id:_?.startsWith("taxonomy-post_format")&&(ie.format=_.replace("taxonomy-post_format-post-format-",""))),{posts:V("postType",k||ee,{...ie,...b}),blocks:Y(t)}},[r,o,i,l,t,s,c,n,u,p,m,_,d,f,g,b,k]),z=(0,g0.useMemo)(()=>E?.map(W=>({postType:W.type,postId:W.id,classList:W.class_list??""})),[E]),j=(0,El.useBlockProps)({className:C(S,{[`columns-${N}`]:T==="grid"&&N,"has-native-responsive-grid":T==="grid"&&N&&D})});if(!E)return(0,qa.jsx)("p",{...j,children:(0,qa.jsx)(_6.Spinner,{})});if(!E.length)return(0,qa.jsxs)("p",{...j,children:[" ",(0,Oy.__)("No results found.")]});let q=W=>e({layout:{...w,...W}}),G=[{icon:ql,title:(0,Oy._x)("List view","Post template block display setting"),onClick:()=>q({type:"default"}),isActive:T==="default"||T==="constrained"},{icon:$l,title:(0,Oy._x)("Grid view","Post template block display setting"),onClick:()=>q({type:"grid",columnCount:N}),isActive:T==="grid"}];return(0,qa.jsxs)(qa.Fragment,{children:[(0,qa.jsx)(El.BlockControls,{children:(0,qa.jsx)(_6.ToolbarGroup,{controls:G})}),(0,qa.jsx)("ul",{...j,children:z&&z.map(W=>(0,qa.jsxs)(El.BlockContextProvider,{value:W,children:[W.postId===(L||z[0]?.postId)?(0,qa.jsx)(S7e,{classList:W.classList}):null,(0,qa.jsx)(P7e,{blocks:M,blockContextId:W.postId,classList:W.classList,setActiveBlockContextId:P,isHidden:W.postId===(L||z[0]?.postId)})]},W.postId))})]})}var Tse=a(B(),1),Pse=a(y(),1);function Bse(){return(0,Pse.jsx)(Tse.InnerBlocks.Content,{})}var{name:Ese}=y6,Nse={icon:Qm,edit:Sse,save:Bse},B7e=()=>R({name:Ese,metadata:y6,settings:Nse});var OA={};K(OA,{init:()=>L7e,metadata:()=>x6,name:()=>jse,settings:()=>Use});var Hse=a(vu(),1);var x6={$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"},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,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-post-terms"};var Vu=a(B(),1),k6=a($(),1),w6=a(O(),1),Mse=a(F(),1),Ase=a(Xo(),1),gm=a(I(),1),zse=a(oe(),1);var Ise=a(oe(),1),Dse=a(F(),1),N7e=[];function Lse({postId:e,term:t}){let{slug:r}=t;return(0,Dse.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:N7e,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=o(Ise.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 Za=a(y(),1),Rse=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function Vse({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:n,insertBlocksAfter:i}){let{term:l,separator:s,prefix:c,suffix:u}=e,{postId:p,postType:m}=r,d=(0,Mse.useSelect)(k=>{if(!l)return{};let{getTaxonomy:x}=k(zse.store),w=x(l);return w?.visibility?.publicly_queryable?w:{}},[l]),{postTerms:f,hasPostTerms:h,isLoading:g}=Lse({postId:p,term:d}),v=p&&m,b=(0,Vu.useBlockDisplayInformation)(t),_=(0,Vu.useBlockProps)({className:l&&`taxonomy-${l}`});return(0,Za.jsxs)(Za.Fragment,{children:[(0,Za.jsx)(Vu.InspectorControls,{group:"advanced",children:(0,Za.jsx)(w6.TextControl,{autoComplete:"off",label:(0,gm.__)("Separator"),value:s||"",onChange:k=>{n({separator:k})},help:(0,gm.__)("Enter character(s) used to separate terms.")})}),(0,Za.jsxs)("div",{..._,children:[g&&v&&(0,Za.jsx)(w6.Spinner,{}),!g&&(o||c)&&(0,Za.jsx)(Vu.RichText,{identifier:"prefix",allowedFormats:Rse,className:"wp-block-post-terms__prefix","aria-label":(0,gm.__)("Prefix"),placeholder:(0,gm.__)("Prefix")+" ",value:c,onChange:k=>n({prefix:k}),tagName:"span"}),(!v||!l)&&(0,Za.jsx)("span",{children:b.title}),v&&!g&&h&&f.map(k=>(0,Za.jsx)("a",{href:k.link,onClick:x=>x.preventDefault(),rel:"tag",children:(0,Ase.decodeEntities)(k.name)},k.id)).reduce((k,x)=>(0,Za.jsxs)(Za.Fragment,{children:[k,(0,Za.jsx)("span",{className:"wp-block-post-terms__separator",children:s||" "}),x]})),v&&!g&&!h&&(d?.labels?.no_terms||(0,gm.__)("Term items not found.")),!g&&(o||u)&&(0,Za.jsx)(Vu.RichText,{identifier:"suffix",allowedFormats:Rse,className:"wp-block-post-terms__suffix","aria-label":(0,gm.__)("Suffix"),placeholder:" "+(0,gm.__)("Suffix"),value:u,onChange:k=>n({suffix:k}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,k6.createBlock)((0,k6.getDefaultBlockName)()))})]})]})}var I7e={category:mh,post_tag:LE};function Ose(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:I7e[o.name]??mh}));return{...e,variations:r}}var D7e={attributes:{textAlign:{type:"string"},term:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Fse=[D7e];var{name:jse}=x6,Use={icon:mh,edit:Vse,deprecated:Fse},L7e=()=>((0,Hse.addFilter)("blocks.registerBlockType","core/template-part",Ose),R({name:jse,metadata:x6,settings:Use}));var FA={};K(FA,{init:()=>V7e,metadata:()=>C6,name:()=>Xse,settings:()=>Jse});var C6={$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:{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,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}}};var Ka=a(I(),1),$se=a(H(),1),S6=a(B(),1),v0=a(O(),1),qse=a($(),1),T6=a(oe(),1),Zse=a(Wse(),1);var Lc=a(y(),1);function M7e({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:n,averageReadingSpeed:i}=e,{postId:l,postType:s}=r,c=Z(),[u]=(0,T6.useEntityProp)("postType",s,"content",l),[p]=(0,T6.useEntityBlockEditor)("postType",s,{id:l}),m=(0,$se.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:p}):p?f=(0,qse.__unstableSerializeAndClean)(p):f=u;let h=(0,Ka._x)("words","Word count type. Do not translate!"),g=(0,Zse.count)(f||"",h);if(n==="time"){if(o){let b=Math.max(1,Math.round(g/i*1.2)),_=Math.max(1,Math.round(g/i*.8));_===b&&(b=b+1);let k=(0,Ka._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,Ka.sprintf)(k,_,b)}let v=Math.max(1,Math.round(g/i));return(0,Ka.sprintf)((0,Ka._n)("%s minute","%s minutes",v),v)}if(n==="words")return h==="words"?(0,Ka.sprintf)((0,Ka._n)("%s word","%s words",g),g.toLocaleString()):(0,Ka.sprintf)((0,Ka._n)("%s character","%s characters",g),g.toLocaleString())},[u,p,o,n,i]),d=(0,S6.useBlockProps)();return(0,Lc.jsxs)(Lc.Fragment,{children:[n==="time"&&(0,Lc.jsx)(S6.InspectorControls,{children:(0,Lc.jsx)(v0.__experimentalToolsPanel,{label:(0,Ka.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,Lc.jsx)(v0.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ka._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Lc.jsx)(v0.ToggleControl,{label:(0,Ka.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,Lc.jsx)("div",{...d,children:m})]})}var Kse=M7e;var Fy=a(I(),1);var A7e=[{name:"time-to-read",title:(0,Fy.__)("Time to Read"),description:(0,Fy.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:Iv,isDefault:!0},{name:"word-count",title:(0,Fy.__)("Word Count"),description:(0,Fy.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:eI}],Yse=A7e;var z7e={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,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}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Qse=[z7e];var{name:Xse}=C6,Jse={icon:Iv,edit:Kse,variations:Yse,example:{},deprecated:Qse},V7e=()=>R({name:Xse,metadata:C6,settings:Jse});var HA={};K(HA,{init:()=>j7e,metadata:()=>P6,name:()=>ace,settings:()=>nce});var P6={$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:{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"},placeholder:{type:"string"}},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,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-post-title"};var Yi=a(B(),1),Ki=a(O(),1),ti=a(I(),1),B6=a($(),1),Hy=a(oe(),1),ece=a(F(),1),tce=a(H(),1);var er=a(y(),1);function rce({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:n,placeholder:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:p}){let m=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,ece.useSelect)(T=>d?!1:T(Hy.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",g,v]=(0,Hy.useEntityProp)("postType",s,"title",c),[b]=(0,Hy.useEntityProp)("postType",s,"link",c),_=()=>{p((0,B6.createBlock)((0,B6.getDefaultBlockName)()))},k=(0,Yi.useBlockProps)(),x=(0,Yi.useBlockEditingMode)(),w=Z(),S=(0,er.jsx)(m,{...k,children:i||(0,ti.__)("Title")});return s&&c&&(S=f?(0,er.jsx)(Yi.PlainText,{tagName:m,placeholder:(0,ti.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...k}):(0,er.jsx)(m,{...k,dangerouslySetInnerHTML:{__html:v?.rendered||(0,ti.__)("(no title)")}})),r&&s&&c&&(S=f?(0,er.jsx)(m,{...k,children:(0,er.jsx)(Yi.PlainText,{tagName:"a",href:b,target:n,rel:o,placeholder:h.length?null:(0,ti.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,er.jsx)(m,{...k,children:(0,er.jsx)("a",{href:b,target:n,rel:o,onClick:T=>T.preventDefault(),dangerouslySetInnerHTML:{__html:v?.rendered||(0,ti.__)("(no title)")}})})),(0,er.jsxs)(er.Fragment,{children:[x==="default"&&(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(Yi.BlockControls,{group:"block",children:(0,er.jsx)(Yi.HeadingLevelDropdown,{value:e,options:t,onChange:T=>l({level:T})})}),(0,er.jsx)(Yi.InspectorControls,{children:(0,er.jsxs)(Ki.__experimentalToolsPanel,{label:(0,ti.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:w,children:[(0,er.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ti.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>l({isLink:!1}),children:(0,er.jsx)(Ki.ToggleControl,{label:(0,ti.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ti.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,er.jsx)(Ki.ToggleControl,{label:(0,ti.__)("Open in new tab"),onChange:T=>l({linkTarget:T?"_blank":"_self"}),checked:n==="_blank"})}),(0,er.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ti.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>l({rel:""}),children:(0,er.jsx)(Ki.TextControl,{label:(0,ti.__)("Link relation"),help:(0,tce.createInterpolateElement)((0,ti.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,er.jsx)(Ki.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:T=>l({rel:T})})})]})]})})]}),S]})}var F7e={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},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},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},H7e={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},oce=[F7e,H7e];var{name:ace}=P6,nce={icon:Zl,edit:rce,deprecated:oce},j7e=()=>R({name:ace,metadata:P6,settings:nce});var WA={};K(WA,{init:()=>q7e,metadata:()=>I6,name:()=>pce,settings:()=>L6});var GA=a(I(),1);var uce=a($(),1);var jA=a(I(),1),E6=a(B(),1),N6=a($(),1),ice=a(y(),1);function lce({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,E6.useBlockProps)({style:i});return(0,ice.jsx)(E6.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,jA.__)("Preformatted text"),placeholder:(0,jA.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,N6.createBlock)((0,N6.getDefaultBlockName)()))})}var I6={$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 D6=a(B(),1),UA=a(y(),1);function sce({attributes:e}){let{content:t}=e;return(0,UA.jsx)("pre",{...D6.useBlockProps.save(),children:(0,UA.jsx)(D6.RichText.Content,{value:t})})}var jy=a($(),1),G7e={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,jy.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,jy.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,jy.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,jy.createBlock)("core/verse",e)}]},cce=G7e;var{fieldsKey:W7e,formKey:$7e}=U(uce.privateApis),{name:pce}=I6,L6={icon:ME,example:{attributes:{content:(0,GA.__)(`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:cce,edit:lce,save:sce,merge(e,t){return{content:e.content+`

`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(L6[W7e]=[{id:"content",label:(0,GA.__)("Content"),type:"text",Edit:"rich-text"}],L6[$7e]={fields:["content"]});var q7e=()=>R({name:pce,metadata:I6,settings:L6});var $A={};K($A,{init:()=>i9e,metadata:()=>M6,name:()=>xce,settings:()=>A6});var Wy=a(I(),1);var _ce=a($(),1);var nt=a(B(),1),dce=a(F(),1);var Cf="is-style-solid-color";var Gt=a(y(),1),Uy={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 mce(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Sf(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var Z7e={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},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}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,n=!nt.RichText.isEmpty(r);return(0,Gt.jsx)("figure",{...nt.useBlockProps.save({className:C({[`has-text-align-${t}`]:t})}),children:(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(nt.RichText.Content,{tagName:"p",value:o}),n&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:ve},K7e={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"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!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,fontAppearance:!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"}}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,n=!nt.RichText.isEmpty(r);return(0,Gt.jsx)("figure",{...nt.useBlockProps.save({className:C({[`has-text-align-${t}`]:t})}),children:(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(nt.RichText.Content,{value:o,multiline:!0}),n&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return ve({value:Sf(e),...t})}},Y7e={attributes:{...Uy},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},save({attributes:e}){let{mainColor:t,customMainColor:r,customTextColor:o,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Cf),u,p;if(c){let h=(0,nt.getColorClassName)("background-color",t);u=C({"has-background":h||r,[h]:h}),p={backgroundColor:h?void 0:r}}else r&&(p={borderColor:r});let m=(0,nt.getColorClassName)("color",n),d=C({"has-text-color":n||o,[m]:m}),f=m?void 0:{color:o};return(0,Gt.jsx)("figure",{...nt.useBlockProps.save({className:u,style:p}),children:(0,Gt.jsxs)("blockquote",{className:d,style:f,children:[(0,Gt.jsx)(nt.RichText.Content,{value:i,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let l=t?.includes(Cf),s;return o&&(l?s={color:{background:o}}:s={border:{color:o}}),n&&s&&(s.color={...s.color,text:n}),ve({value:Sf(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},Q7e={attributes:{...Uy,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(Cf),p,m;if(u){let g=(0,nt.getColorClassName)("background-color",t);p=C({"has-background":g||r,[g]:g}),m={backgroundColor:g?void 0:r}}else r?m={borderColor:r}:t&&(m={borderColor:mce(c)});let d=(0,nt.getColorClassName)("color",o),f=(o||n)&&C("has-text-color",{[d]:d});return(0,Gt.jsx)("figure",{className:p,style:m,children:(0,Gt.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,Gt.jsx)(nt.RichText.Content,{value:i,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(Cf),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&o&&r){let u=mce(r);if(u)return{value:Sf(e),...l,className:t,style:{border:{color:u}}}}return ve({value:Sf(e),className:t,backgroundColor:s?o:void 0,borderColor:s?void 0:o,textAlign:s?"left":void 0,...l,style:c})}},X7e={attributes:Uy,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Cf),u,p;if(c)u=(0,nt.getColorClassName)("background-color",t),u||(p={backgroundColor:r});else if(r)p={borderColor:r};else if(t){let h=(0,dce.select)(nt.store).getSettings().colors??[];p={borderColor:(0,nt.getColorObjectByAttributeValues)(h,t).color}}let m=(0,nt.getColorClassName)("color",o),d=o||n?C("has-text-color",{[m]:m}):void 0;return(0,Gt.jsx)("figure",{className:u,style:p,children:(0,Gt.jsxs)("blockquote",{className:d,style:m?void 0:{color:n},children:[(0,Gt.jsx)(nt.RichText.Content,{value:i,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let l=t?.includes(Cf),s={};return o&&(l?s={color:{background:o}}:s={border:{color:o}}),n&&s&&(s.color={...s.color,text:n}),ve({value:Sf(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},J7e={attributes:{...Uy},save({attributes:e}){let{value:t,citation:r}=e;return(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(nt.RichText.Content,{value:t,multiline:!0}),!nt.RichText.isEmpty(r)&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:Sf(e),...t}}},e9e={attributes:{...Uy,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:r,align:o}=e;return(0,Gt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Gt.jsx)(nt.RichText.Content,{value:t,multiline:!0}),!nt.RichText.isEmpty(r)&&(0,Gt.jsx)(nt.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:Sf(e),...t}}},fce=[Z7e,K7e,Y7e,Q7e,X7e,J7e,e9e];var Gy=a(I(),1),b0=a(B(),1),R6=a($(),1);var hce="figure";var gce="blockquote";var Ou=a(y(),1);function t9e(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n}=e;wt(e);let{citation:i,value:l}=t,s=(0,b0.useBlockProps)(),c=!b0.RichText.isEmpty(i)||o;return(0,Ou.jsx)(Ou.Fragment,{children:(0,Ou.jsx)(hce,{...s,children:(0,Ou.jsxs)(gce,{children:[(0,Ou.jsx)(b0.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>r({value:u}),"aria-label":(0,Gy.__)("Pullquote text"),placeholder:(0,Gy.__)("Add quote")}),c&&(0,Ou.jsx)(b0.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,Gy.__)("Pullquote citation text"),placeholder:(0,Gy.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:()=>n((0,R6.createBlock)((0,R6.getDefaultBlockName)()))})]})})})}var vce=t9e;var M6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",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"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!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 y0=a(B(),1),_0=a(y(),1);function bce({attributes:e}){let{citation:t,value:r}=e,o=!y0.RichText.isEmpty(t);return(0,_0.jsx)("figure",{...y0.useBlockProps.save(),children:(0,_0.jsxs)("blockquote",{children:[(0,_0.jsx)(y0.RichText.Content,{tagName:"p",value:r}),o&&(0,_0.jsx)(y0.RichText.Content,{tagName:"cite",value:t})]})})}var Fu=a($(),1),x0=a(es(),1),o9e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Fu.createBlock)("core/pullquote",{value:(0,x0.toHTMLString)({value:(0,x0.join)(e.map(({content:t})=>(0,x0.create)({html:t})),`
`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Fu.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let r=[];return e&&r.push((0,Fu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,Fu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,Fu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Fu.createBlock)("core/heading",{content:t});let r=(0,Fu.createBlock)("core/heading",{content:e});return t?[r,(0,Fu.createBlock)("core/heading",{content:t})]:r}}]},yce=o9e;var{fieldsKey:a9e,formKey:n9e}=U(_ce.privateApis),{name:xce}=M6,A6={icon:UE,example:{attributes:{value:(0,Wy.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Wy.__)("Matt Mullenweg")}},transforms:yce,edit:vce,save:bce,deprecated:fce};window.__experimentalContentOnlyInspectorFields&&(A6[a9e]=[{id:"value",label:(0,Wy.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,Wy.__)("Citation"),type:"text",Edit:"rich-text"}],A6[n9e]={fields:["value","citation"]});var i9e=()=>R({name:xce,metadata:M6,settings:A6});var cz={};K(cz,{init:()=>z9e,metadata:()=>z6,name:()=>Que,settings:()=>Xue});var z6={$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:[],excludeCurrent:null}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug","postType"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"};var Aue=a(F(),1),zue=a(H(),1),Vue=a(B(),1);var Y6=a(F(),1),Iue=a(ge(),1),Qy=a(H(),1),Il=a(B(),1),Due=a(I(),1),Lue=a(oe(),1);var Dce=a(O(),1),H6=a(I(),1);var Rc=a(F(),1),Pf=a(H(),1),$y=a(oe(),1),V6=a(B(),1),kce=a(Xo(),1),Tf=a(I(),1),Hu=a($(),1),qy=e=>{let t=e?.reduce((r,o)=>{let{mapById:n,mapByName:i,names:l}=r;return n[o.id]=o,i[o.name]=o,l.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},s9e=(e,t)=>{let r=t.split("."),o=e;return r.forEach(n=>{o=o?.[n]}),o},qA=(e,t)=>(e||[]).map(r=>({...r,name:(0,kce.decodeEntities)(s9e(r,t))})),wce=()=>{let e=(0,Rc.useSelect)(n=>{let{getPostTypes:i}=n($y.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Pf.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,Pf.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),o=(0,Pf.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},O6=e=>{let t=(0,Rc.useSelect)(r=>{let{getTaxonomies:o,getPostType:n}=r($y.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,Pf.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Cce(e){return(0,Rc.useSelect)(t=>{let r=t($y.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function Sce(e){let t=(0,Rc.useSelect)(r=>!!r($y.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Pf.useMemo)(()=>{let r=[{label:(0,Tf.__)("Newest to oldest"),value:"date/desc"},{label:(0,Tf.__)("Oldest to newest"),value:"date/asc"},{label:(0,Tf.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Tf.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Tf.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Tf.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function Tce(e){return(0,Rc.useSelect)(t=>t(Hu.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function ri(e,t){return e?e.includes(t):!0}var Pce=(e,t)=>{let{query:{postType:r,inherit:o},namespace:n}=t,i=e.map(c=>(0,Hu.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:o},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function Bce(e,t){return(0,Rc.useSelect)(r=>{let o=r(Hu.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(V6.store),l=n(e);return i(`core/query/${o}`,l).length>0?`core/query/${o}`:"core/query"},[e,t])}function Ece(e){let{activeVariationName:t,blockVariations:r}=(0,Rc.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(Hu.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Pf.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 Nce=(e,t)=>(0,Rc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:n}=r(V6.store),i=o(e);return n(t,i)},[t,e]),F6=e=>(0,Rc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(V6.store);return r(e).some(n=>{let i=o(n),l=Object.is((0,Hu.getBlockSupport)(i,"interactivity"),!0),s=(0,Hu.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function Ice(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,o=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=n),t=o.includes(r),{isSingular:t,templateType:r}}var Zy=a(y(),1);function Lce({enhancedPagination:e,setAttributes:t,clientId:r}){let o=F6(r),n=(0,H6.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o&&(n=(0,H6.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,Zy.jsx)(Zy.Fragment,{children:(0,Zy.jsx)(Dce.ToggleControl,{label:(0,H6.__)("Reload full page"),help:n,checked:!e,disabled:o,onChange:i=>{t({enhancedPagination:!i})}})})}var ft=a(O(),1),JA=a(F(),1),ez=a(oe(),1),zt=a(I(),1),kue=a(ge(),1),G6=a(H(),1);var Rce=a(O(),1),k0=a(I(),1),Mce=a(y(),1),c9e=[{label:(0,k0.__)("Newest to oldest"),value:"date/desc"},{label:(0,k0.__)("Oldest to newest"),value:"date/asc"},{label:(0,k0.__)("A \u2192 Z"),value:"title/asc"},{label:(0,k0.__)("Z \u2192 A"),value:"title/desc"}];function u9e({order:e,orderBy:t,orderByOptions:r=c9e,onChange:o}){return(0,Mce.jsx)(Rce.SelectControl,{label:(0,k0.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,l]=n.split("/");o({order:l,orderBy:i})}})}var Ace=u9e;var zce=a(I(),1),Vce=a(O(),1),Oce=a(F(),1),Fce=a(oe(),1);var Hce=a(y(),1),p9e={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function m9e({value:e,onChange:t}){let r=(0,Oce.useSelect)(c=>{let{getUsers:u}=c(Fce.store);return u(p9e)},[]);if(!r)return null;let o=qy(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let p=o.mapById[u];return p&&c.push({id:u,value:p.name}),c},[]),l=(c,u)=>{let p=u?.id||c[u]?.id;if(p)return p},s=c=>{let u=Array.from(c.reduce((p,m)=>{let d=l(o.mapByName,m);return d&&p.add(d),p},new Set));t({author:u.join(",")})};return(0,Hce.jsx)(Vce.FormTokenField,{label:(0,zce.__)("Authors"),value:i,suggestions:o.names,onChange:s,help:""})}var jce=m9e;var Gce=a(I(),1),Wce=a(O(),1),ZA=a(F(),1),KA=a(oe(),1),ju=a(H(),1),$ce=a(ge(),1);var qce=a(y(),1),Bf=[],Uce={order:"asc",_fields:"id,title",context:"view"};function d9e({parents:e,postType:t,onChange:r}){let[o,n]=(0,ju.useState)(""),[i,l]=(0,ju.useState)(Bf),[s,c]=(0,ju.useState)(Bf),u=(0,$ce.useDebounce)(n,250),{searchResults:p,searchHasResolved:m}=(0,ZA.useSelect)(v=>{if(!o)return{searchResults:Bf,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=v(KA.store),k=["postType",t,{...Uce,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:b(...k),searchHasResolved:_("getEntityRecords",k)}},[o,t,e]),d=(0,ZA.useSelect)(v=>{if(!e?.length)return Bf;let{getEntityRecords:b}=v(KA.store);return b("postType",t,{...Uce,include:e,per_page:e.length})},[e,t]);(0,ju.useEffect)(()=>{if(e?.length||l(Bf),!d?.length)return;let v=qy(qA(d,"title.rendered")),b=e.reduce((_,k)=>{let x=v.mapById[k];return x&&_.push({id:k,value:x.name}),_},[]);l(b)},[e,d]);let f=(0,ju.useMemo)(()=>p?.length?qy(qA(p,"title.rendered")):Bf,[p]);(0,ju.useEffect)(()=>{m&&c(f.names)},[f.names,m]);let h=(v,b)=>{let _=b?.id||v?.[b]?.id;if(_)return _},g=v=>{let b=Array.from(v.reduce((_,k)=>{let x=h(f.mapByName,k);return x&&_.add(x),_},new Set));c(Bf),r({parents:b})};return(0,qce.jsx)(Wce.FormTokenField,{label:(0,Gce.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:g,help:""})}var Zce=d9e;var j6=a(O(),1),YA=a(F(),1),QA=a(oe(),1),Uu=a(H(),1),Qce=a(ge(),1),Xce=a(Xo(),1),U6=a(I(),1);var vm=a(y(),1),w0=[],Kce={order:"asc",_fields:"id,name",context:"view"},f9e=(e,t)=>{let r=t?.id||e?.find(n=>n.name===t)?.id;if(r)return r;let o=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===o)?.id};function Jce({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,n=O6(r);return n?.length?(0,vm.jsx)(j6.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=o?.include?.[i.slug]||[],s=o?.exclude?.[i.slug]||[],c=(u,p)=>{let m={...o?.[p],[i.slug]:u};u.length||delete m[i.slug];let d={...o,[p]:Object.keys(m).length?m:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,vm.jsxs)(Uu.Fragment,{children:[(0,vm.jsx)(Yce,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,vm.jsx)(Yce,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,U6.sprintf)((0,U6.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function Yce({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:n}){let[i,l]=(0,Uu.useState)(""),[s,c]=(0,Uu.useState)(w0),[u,p]=(0,Uu.useState)(w0),m=(0,Qce.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,YA.useSelect)(v=>{if(!i)return{searchResults:w0,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=v(QA.store),k=[...t,...r],x=["taxonomy",e.slug,{...Kce,search:i,orderby:"name",exclude:k,per_page:20}];return{searchResults:b(...x),searchHasResolved:_("getEntityRecords",x)}},[i,e.slug,t,r]),h=(0,YA.useSelect)(v=>{if(!t?.length)return w0;let{getEntityRecords:b}=v(QA.store);return b("taxonomy",e.slug,{...Kce,include:t,per_page:t.length})},[e.slug,t]);return(0,Uu.useEffect)(()=>{if(t?.length||c(w0),!h?.length)return;let v=t.reduce((b,_)=>{let k=h.find(x=>x.id===_);return k&&b.push({id:_,value:k.name}),b},[]);c(v)},[t,h]),(0,Uu.useEffect)(()=>{f&&p(d.map(v=>v.name))},[d,f]),(0,vm.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,vm.jsx)(j6.FormTokenField,{label:n,value:s,onInputChange:m,suggestions:u,displayTransform:Xce.decodeEntities,onChange:v=>{let b=new Set;for(let _ of v){let k=f9e(d,_);k&&b.add(k)}p(w0),o(Array.from(b))},help:""})})}var eue=a(O(),1),tue=a(F(),1),rue=a(oe(),1),Nl=a(I(),1),oue=a(y(),1),h9e=[{value:"aside",label:(0,Nl.__)("Aside")},{value:"audio",label:(0,Nl.__)("Audio")},{value:"chat",label:(0,Nl.__)("Chat")},{value:"gallery",label:(0,Nl.__)("Gallery")},{value:"image",label:(0,Nl.__)("Image")},{value:"link",label:(0,Nl.__)("Link")},{value:"quote",label:(0,Nl.__)("Quote")},{value:"standard",label:(0,Nl.__)("Standard")},{value:"status",label:(0,Nl.__)("Status")},{value:"video",label:(0,Nl.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function g9e(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function aue({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,tue.useSelect)(s=>({supportedFormats:s(rue.store).getThemeSupports().formats}),[]),n=h9e.filter(s=>o.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,oue.jsx)(eue.FormTokenField,{label:(0,Nl.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:g9e(s,n)})},help:"",__experimentalExpandOnFocus:!0})}var nue=a(O(),1),Ef=a(I(),1),iue=a(y(),1),v9e=[{label:(0,Ef.__)("Include"),value:""},{label:(0,Ef.__)("Ignore"),value:"ignore"},{label:(0,Ef.__)("Exclude"),value:"exclude"},{label:(0,Ef.__)("Only"),value:"only"}];function lue({value:e,onChange:t}){return(0,iue.jsx)(nue.SelectControl,{label:(0,Ef.__)("Sticky posts"),options:v9e,value:e,onChange:t,help:(0,Ef.__)("Sticky posts always appear first, regardless of their publish date.")})}var uue=a(O(),1),pue=a(I(),1),mue=a(y(),1),sue=1,cue=100,b9e=({perPage:e,offset:t=0,onChange:r})=>(0,mue.jsx)(uue.RangeControl,{label:(0,pue.__)("Items per page"),min:sue,max:cue,onChange:o=>{isNaN(o)||o<sue||o>cue||r({perPage:o,offset:t})},value:parseInt(e,10)}),due=b9e;var hue=a(O(),1),gue=a(I(),1),vue=a(y(),1),fue=0,y9e=100,_9e=({offset:e=0,onChange:t})=>(0,vue.jsx)(hue.__experimentalNumberControl,{label:(0,gue.__)("Offset"),value:e,min:fue,onChange:r=>{isNaN(r)||r<fue||r>y9e||t({offset:r})}}),bue=_9e;var yue=a(O(),1),XA=a(I(),1),_ue=a(y(),1),x9e=({pages:e,onChange:t})=>(0,_ue.jsx)(yue.__experimentalNumberControl,{label:(0,XA.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,XA.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),xue=x9e;var Ze=a(y(),1);function wue(e){let{attributes:t,setQuery:r,isSingular:o,shouldExcludeCurrentPost:n}=e,{query:i}=t,{order:l,orderBy:s,author:c,pages:u,postType:p,perPage:m,offset:d,sticky:f,inherit:h,taxQuery:g,parents:v,format:b,excludeCurrent:_}=i,k=Tce(t),x=p==="post",{postTypesTaxonomiesMap:w,postTypesSelectOptions:S,postTypeFormatSupportMap:T}=wce(),N=O6(p),D=Cce(p),L=X=>{let Ce={postType:X},ue=w[X];if(ue?.length&&g){let he=Io=>Object.entries(Io||{}).reduce((Do,[Lo,bo])=>(ue.includes(Lo)&&(Do[Lo]=bo),Do),{}),ze={},Ct=he(g.include);Object.keys(Ct).length&&(ze.include=Ct);let Ae=he(g.exclude);Object.keys(Ae).length&&(ze.exclude=Ae),Ce.taxQuery=Object.keys(ze).length?ze:void 0}X!=="post"&&(Ce.sticky=""),Ce.parents=[],T[X]||(Ce.format=[]),r(Ce)},[P,E]=(0,G6.useState)(i.search),M=(0,G6.useMemo)(()=>(0,kue.debounce)(X=>{r({search:X})},250),[r]),z=Sce(p),j=ri(k,"inherit"),q=!h&&ri(k,"postType"),G=(0,zt.__)("Post type"),W=(0,zt.__)("Select the type of content to display: posts, pages, or custom post types."),V=!h&&ri(k,"order"),Q=!h&&x&&ri(k,"sticky"),Y=j||q||V||Q,re=!!N?.length&&ri(k,"taxQuery"),J=ri(k,"author"),ie=ri(k,"search"),ee=ri(k,"parents")&&D,te=T[p],de=(0,JA.useSelect)(X=>{if(!te||!ri(k,"format"))return!1;let Ce=X(ez.store).getThemeSupports();return Ce.formats&&Ce.formats.length>0&&Ce.formats.some(ue=>ue!=="standard")},[k,te]),we=n&&ri(k,"excludeCurrent"),le=(0,JA.useSelect)(X=>X(ez.store).getPostType(p)?.labels.singular_name,[p]),me=re||J||ie||ee||de||we,xe=Z(),ae=ri(k,"postCount"),pe=ri(k,"offset"),se=ri(k,"pages"),Ne=ae||pe||se,Ie=o&&h;return(0,Ze.jsxs)(Ze.Fragment,{children:[Y&&(0,Ze.jsxs)(ft.__experimentalToolsPanel,{label:(0,zt.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:xe,children:[j&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!h,label:(0,zt.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Ze.jsxs)(ft.__experimentalVStack,{spacing:4,children:[(0,Ze.jsxs)(ft.__experimentalToggleGroupControl,{label:(0,zt.__)("Query type"),isBlock:!0,onChange:X=>{r({inherit:X==="default"})},help:h?(0,zt.__)("Display a list of posts or custom post types based on the current template."):(0,zt.__)("Display a list of posts or custom post types based on specific criteria."),value:h?"default":"custom",children:[(0,Ze.jsx)(ft.__experimentalToggleGroupControlOption,{value:"default",label:(0,zt.__)("Default")}),(0,Ze.jsx)(ft.__experimentalToggleGroupControlOption,{value:"custom",label:(0,zt.__)("Custom")})]}),Ie&&(0,Ze.jsx)(ft.Notice,{status:"warning",isDismissible:!1,children:(0,zt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),q&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>p!=="post",label:G,onDeselect:()=>L("post"),isShownByDefault:!0,children:S.length>2?(0,Ze.jsx)(ft.SelectControl,{options:S,value:p,label:G,onChange:L,help:W}):(0,Ze.jsx)(ft.__experimentalToggleGroupControl,{isBlock:!0,value:p,label:G,onChange:L,help:W,children:S.map(X=>(0,Ze.jsx)(ft.__experimentalToggleGroupControlOption,{value:X.value,label:X.label},X.value))})}),V&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>l!=="desc"||s!=="date",label:(0,zt.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Ze.jsx)(Ace,{order:l,orderBy:s,orderByOptions:z,onChange:r})}),Q&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,zt.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Ze.jsx)(lue,{value:f,onChange:X=>r({sticky:X})})})]}),!h&&Ne&&(0,Ze.jsxs)(ft.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,zt.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:xe,children:[(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Items per page"),hasValue:()=>m>0,children:(0,Ze.jsx)(due,{perPage:m,offset:d,onChange:r})}),(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Offset"),hasValue:()=>d>0,onDeselect:()=>r({offset:0}),children:(0,Ze.jsx)(bue,{offset:d,onChange:r})}),(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Max pages to show"),hasValue:()=>u>0,onDeselect:()=>r({pages:0}),children:(0,Ze.jsx)(xue,{pages:u,onChange:r})})]}),!h&&me&&(0,Ze.jsxs)(ft.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,zt.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[],excludeCurrent:null}),E("")},dropdownMenuProps:xe,children:[re&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some(X=>Object.values(X||{}).some(Ce=>!!Ce?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Ze.jsx)(Jce,{onChange:r,query:i})}),J&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,zt.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Ze.jsx)(jce,{value:c,onChange:r})}),ie&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!P,label:(0,zt.__)("Keyword"),onDeselect:()=>{r({search:""}),E("")},children:(0,Ze.jsx)(ft.TextControl,{label:(0,zt.__)("Keyword"),value:P,onChange:X=>{M(X),E(X)}})}),ee&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!v?.length,label:(0,zt.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Ze.jsx)(Zce,{parents:v,postType:p,onChange:r})}),de&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,zt.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Ze.jsx)(aue,{onChange:r,query:i})}),we&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Exclude"),hasValue:()=>_!==null,onDeselect:()=>r({excludeCurrent:null}),children:(0,Ze.jsx)(ft.ToggleControl,{label:(0,zt.__)("Exclude current"),help:(0,zt.sprintf)((0,zt.__)("Exclude the current %s from the query."),le),checked:!!_,onChange:X=>{r({excludeCurrent:!!X})}})})]})]})}var S0=a(O(),1),Ky=a(I(),1),W6=a(H(),1),Sue=a(F(),1),Tue=a(B(),1);var C0=a(y(),1),Cue="wp-block-query-enhanced-pagination-modal__description";function Pue({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[o,n]=(0,W6.useState)(!1),i=F6(e),{__unstableMarkNextChangeAsNotPersistent:l}=(0,Sue.useDispatch)(Tue.store);(0,W6.useEffect)(()=>{t&&i&&(l(),r({enhancedPagination:!1}),n(!0))},[t,i,r,l]);let s=()=>{n(!1)},c=(0,Ky.__)("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,Ky.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return o&&(0,C0.jsx)(S0.Modal,{title:(0,Ky.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Cue},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:s,children:(0,C0.jsxs)(S0.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,C0.jsx)("span",{id:Cue,children:c}),(0,C0.jsx)(S0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:s,children:(0,Ky.__)("OK")})]})})}var B0=a(O(),1),rz=a(I(),1),Nue=a(F(),1),Z6=a(B(),1);var T0=a(H(),1),Bue=a(F(),1),q6=a(O(),1),P0=a(B(),1),$6=a(I(),1);var Gu=a(y(),1);function Eue({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,Gu.jsx)(q6.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,$6.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,Gu.jsx)(tz,{clientId:e,attributes:t})})}function Yy(e,t){let r=Bce(e,t),o=Nce(e,r);return(0,T0.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function tz({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[n,i]=(0,T0.useState)(""),{replaceBlock:l,selectBlock:s}=(0,Bue.useDispatch)(P0.store),c=Yy(e,t),u=(0,T0.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),p=(0,T0.useMemo)(()=>Ob(c,n),[c,n]),m=(d,f)=>{let{newBlocks:h,queryClientIds:g}=Pce(f,t);l(e,h),g[0]&&s(g[0])};return(0,Gu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,Gu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,Gu.jsx)(q6.SearchControl,{onChange:i,value:n,label:(0,$6.__)("Search"),placeholder:(0,$6.__)("Search")})}),(0,Gu.jsx)(P0.BlockContextProvider,{value:u,children:(0,Gu.jsx)(P0.__experimentalBlockPatternsList,{blockPatterns:p,onClickPattern:m,showTitlesAsTooltip:r})})]})}var Nf=a(y(),1);function k9e({clientId:e,attributes:t,hasInnerBlocks:r}){if(!Yy(e,t).length)return null;let n=r?(0,rz.__)("Change design"):(0,rz.__)("Choose pattern");return(0,Nf.jsx)(Z6.BlockControls,{group:"other",children:(0,Nf.jsx)(B0.__experimentalDropdownContentWrapper,{children:(0,Nf.jsx)(B0.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Nf.jsx)(B0.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,Nf.jsx)(tz,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function K6(e){return(0,Nue.useSelect)(r=>{let{isLockedBlock:o}=U(r(Z6.store));return o(e.clientId)},[e.clientId])?null:(0,Nf.jsx)(k9e,{...e})}var Qi=a(y(),1),{HTMLElementControl:w9e}=U(Il.privateApis),C9e=3,S9e=[["core/post-template"]];function oz({attributes:e,setAttributes:t,clientId:r,context:o,name:n,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:p}={}}=e,{templateSlug:m,postType:d}=o,{isSingular:f,templateType:h}=Ice(m),{__unstableMarkNextChangeAsNotPersistent:g}=(0,Y6.useDispatch)(Il.store),v=(0,Iue.useInstanceId)(oz),b=(0,Il.useBlockProps)(),_=(0,Il.useInnerBlocksProps)(b,{template:S9e}),{postsPerPage:k}=(0,Y6.useSelect)(S=>{let{getSettings:T}=S(Il.store),{getEntityRecord:N,getEntityRecordEdits:D,canUser:L}=S(Lue.store),P=L("read",{kind:"root",name:"site"})?+N("root","site")?.posts_per_page:+T().postsPerPage;return{postsPerPage:+D("root","site")?.posts_per_page||P||C9e}},[]),x=f&&!p&&(s.postType===d||s.postType===h),w=(0,Qy.useCallback)(S=>t(T=>({query:{...T.query,...S}})),[t]);return(0,Qy.useEffect)(()=>{let S={};(p&&s.perPage!==k||!s.perPage&&k)&&(S.perPage=k),!x&&s.excludeCurrent!==null&&(S.excludeCurrent=null),Object.keys(S).length&&(g(),w(S))},[s.perPage,s.excludeCurrent,p,k,x,g,w]),(0,Qy.useEffect)(()=>{Number.isFinite(l)||(g(),t({queryId:v}))},[l,v,g,t]),(0,Qi.jsxs)(Qi.Fragment,{children:[i&&(0,Qi.jsx)(K6,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Qi.jsx)(Pue,{attributes:e,setAttributes:t,clientId:r}),(0,Qi.jsx)(Il.InspectorControls,{children:(0,Qi.jsx)(wue,{name:n,attributes:e,setQuery:w,setAttributes:t,clientId:r,isSingular:f,shouldExcludeCurrentPost:x})}),(0,Qi.jsxs)(Il.InspectorControls,{group:"advanced",children:[(0,Qi.jsx)(w9e,{tagName:u,onChange:S=>t({tagName:S}),clientId:r,options:[{label:(0,Due.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Qi.jsx)(Lce,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Qi.jsx)(u,{..._})]})}var X6=a(F(),1),J6=a($(),1),az=a(H(),1),If=a(B(),1),Xy=a(O(),1),Q6=a(I(),1),Rue=a(ge(),1);var Mc=a(y(),1);function Mue({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:n}){let[i,l]=(0,az.useState)(!1),[s,c]=(0,az.useState)(0),u=(0,Rue.useResizeObserver)(([_])=>{c(_.contentRect.width)}),m=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,X6.useSelect)(_=>{let{getActiveBlockVariation:k,getBlockType:x}=_(J6.store);return{blockType:x(r),activeBlockVariation:k(r,e)}},[r,e]),h=!!Yy(t,e).length,g=f?.icon?.src||f?.icon||d?.icon?.src,v=f?.title||d?.title,b=(0,If.useBlockProps)({ref:u});return i?(0,Mc.jsx)(T9e,{clientId:t,attributes:e,icon:g,label:v}):(0,Mc.jsxs)("div",{...b,children:[n&&(0,Mc.jsx)(K6,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Mc.jsxs)(Xy.Placeholder,{className:"block-editor-media-placeholder",icon:!m&&g,label:!m&&v,instructions:!m&&(0,Q6.__)("Choose a pattern for the query loop or start blank."),withIllustration:m,children:[!!h&&!m&&(0,Mc.jsx)(Xy.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Q6.__)("Choose")}),!m&&(0,Mc.jsx)(Xy.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,Q6.__)("Start blank")})]})]})}function T9e({clientId:e,attributes:t,icon:r,label:o}){let n=Ece(t),{replaceInnerBlocks:i}=(0,X6.useDispatch)(If.store),l=(0,If.useBlockProps)();return(0,Mc.jsx)("div",{...l,children:(0,Mc.jsx)(If.__experimentalBlockVariationPicker,{icon:r,label:o,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,J6.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var Df=a(y(),1),P9e=e=>{let{clientId:t,attributes:r}=e,[o,n]=(0,zue.useState)(!1),l=(0,Aue.useSelect)(s=>!!s(Vue.store).getBlocks(t).length,[t])?oz:Mue;return(0,Df.jsxs)(Df.Fragment,{children:[(0,Df.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),o&&(0,Df.jsx)(Eue,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},Oue=P9e;var eT=a(B(),1),Fue=a(y(),1);function Hue({attributes:{tagName:e="div"}}){let t=eT.useBlockProps.save(),r=eT.useInnerBlocksProps.save(t);return(0,Fue.jsx)(e,{...r})}var Jy=a(I(),1);var Ac=a(O(),1),Wu=a(y(),1),jue=(0,Wu.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Wu.jsx)(Ac.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Uue=(0,Wu.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Wu.jsx)(Ac.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),Gue=(0,Wu.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Wu.jsx)(Ac.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Wue=(0,Wu.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Wu.jsx)(Ac.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var nz=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],B9e=[{name:"title-date",title:(0,Jy.__)("Title & Date"),icon:jue,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],nz]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Jy.__)("Title & Excerpt"),icon:Uue,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,Jy.__)("Title, Date, & Excerpt"),icon:Gue,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],nz,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Jy.__)("Image, Date, & Title"),icon:Wue,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],nz,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],$ue=B9e;var tT=a($(),1),Ya=a(B(),1);var Lf=a(y(),1),{cleanEmptyObject:iz}=U(Ya.privateApis),lz=e=>{let{query:t}=e,{categoryIds:r,tagIds:o,taxQuery:n,...i}=t;return(r?.length||o?.length)&&(i.taxQuery={include:{category:r?.length?r:void 0,post_tag:o?.length?o:void 0}}),Object.keys(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},que=(e,t)=>{let{style:r,backgroundColor:o,gradient:n,textColor:i,...l}=e;if(!(o||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=iz({...r,color:void 0,elements:{...r.elements,link:void 0}})),E9e(t)){let u=t[0],m=r?.color||r?.elements?.link||u.attributes.style?iz({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,tT.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:n,textColor:i,style:m},u.innerBlocks);return[l,[d]]}let c=(0,tT.createBlock)("core/group",{backgroundColor:o,gradient:n,textColor:i,style:iz({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},E9e=(e=[])=>e.length===1&&e[0].name==="core/group",sz=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:o=null,...n}=t;return r||o?{...e,layout:{...n,contentSize:o,type:"constrained"}}:e},Zue=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Zue(r.innerBlocks));return t},Kue=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=Kue(r.innerBlocks,t))}),e),E0=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let n=Zue(t);if(!n)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,tT.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[o,Kue(t,c)]},N9e={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=lz(e),{layout:o,...n}=r,i={...n,displayLayout:r.layout};return E0(i,t)},save(){return(0,Lf.jsx)(Ya.InnerBlocks.Content,{})}},I9e={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=lz(e),[o,n]=que(r,t),i=sz(o);return E0(i,n)},save({attributes:{tagName:e="div"}}){let t=Ya.useBlockProps.save(),r=Ya.useInnerBlocksProps.save(t);return(0,Lf.jsx)(e,{...r})}},D9e={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:o,textColor:n}=e;return r||o||n||t?.color||t?.elements?.link},migrate(e,t){let[r,o]=que(e,t),n=sz(r);return E0(n,o)},save({attributes:{tagName:e="div"}}){let t=Ya.useBlockProps.save(),r=Ya.useInnerBlocksProps.save(t);return(0,Lf.jsx)(e,{...r})}},L9e={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=Ya.useBlockProps.save(),r=Ya.useInnerBlocksProps.save(t);return(0,Lf.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=sz(e);return E0(r,t)}},R9e={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=Ya.useBlockProps.save(),r=Ya.useInnerBlocksProps.save(t);return(0,Lf.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:E0},M9e={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=Ya.useBlockProps.save(),r=Ya.useInnerBlocksProps.save(t);return(0,Lf.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=lz(e);return E0(r,t)}},A9e=[M9e,R9e,L9e,D9e,I9e,N9e],Yue=A9e;var{name:Que}=z6,Xue={icon:Xm,edit:Oue,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,excludeCurrent:null}},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:Hue,variations:$ue,deprecated:Yue},z9e=()=>R({name:Que,metadata:z6,settings:Xue});var uz={};K(uz,{init:()=>F9e,metadata:()=>rT,name:()=>ipe,settings:()=>lpe});var npe=a(I(),1);var rT={$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 oT=a(B(),1),Jue=a(I(),1),epe=a(y(),1),O9e=[["core/paragraph",{placeholder:(0,Jue.__)("Add text or blocks that will display when a query returns no results.")}]];function tpe(){let e=(0,oT.useBlockProps)(),t=(0,oT.useInnerBlocksProps)(e,{template:O9e});return(0,epe.jsx)("div",{...t})}var rpe=a(B(),1),ope=a(y(),1);function ape(){return(0,ope.jsx)(rpe.InnerBlocks.Content,{})}var{name:ipe}=rT,lpe={icon:Xm,edit:tpe,save:ape,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,npe.__)("No posts were found.")}}]}},F9e=()=>R({name:ipe,metadata:rT,settings:lpe});var dz={};K(dz,{init:()=>G9e,metadata:()=>aT,name:()=>bpe,settings:()=>ype});var aT={$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 nT=a(I(),1),$u=a(B(),1),iT=a(F(),1),e2=a(O(),1),mpe=a(H(),1);var Rf=a(I(),1),N0=a(O(),1),I0=a(y(),1);function spe({value:e,onChange:t}){return(0,I0.jsxs)(N0.__experimentalToggleGroupControl,{label:(0,Rf.__)("Arrow"),value:e,onChange:t,help:(0,Rf.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,I0.jsx)(N0.__experimentalToggleGroupControlOption,{value:"none",label:(0,Rf._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,I0.jsx)(N0.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Rf._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,I0.jsx)(N0.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Rf._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var pz=a(I(),1),cpe=a(O(),1),upe=a(y(),1);function ppe({value:e,onChange:t}){return(0,upe.jsx)(cpe.ToggleControl,{label:(0,pz.__)("Show label text"),help:(0,pz.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Dl=a(y(),1),j9e=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function dpe({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let n=(0,iT.useSelect)(u=>{let{getBlocks:p}=u($u.store);return p(o)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,iT.useDispatch)($u.store),l=Z(),s=(0,$u.useBlockProps)(),c=(0,$u.useInnerBlocksProps)(s,{template:j9e});return(0,mpe.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,Dl.jsxs)(Dl.Fragment,{children:[n&&(0,Dl.jsx)($u.InspectorControls,{children:(0,Dl.jsxs)(e2.__experimentalToolsPanel,{label:(0,nT.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,Dl.jsx)(e2.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,nT.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Dl.jsx)(spe,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,Dl.jsx)(e2.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,nT.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,Dl.jsx)(ppe,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,Dl.jsx)("nav",{...c})]})}var fpe=a(B(),1),hpe=a(y(),1);function gpe(){return(0,hpe.jsx)(fpe.InnerBlocks.Content,{})}var lT=a(B(),1),mz=a(y(),1),U9e=[{save(){return(0,mz.jsx)("div",{...lT.useBlockProps.save(),children:(0,mz.jsx)(lT.InnerBlocks.Content,{})})}}],vpe=U9e;var{name:bpe}=aT,ype={icon:vv,edit:dpe,save:gpe,deprecated:vpe},G9e=()=>R({name:bpe,metadata:aT,settings:ype});var hz={};K(hz,{init:()=>q9e,metadata:()=>sT,name:()=>xpe,settings:()=>kpe});var sT={$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 fz=a(I(),1),cT=a(B(),1),t2=a(y(),1),$9e={none:"",arrow:"\u2192",chevron:"\xBB"};function _pe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=$9e[r];return(0,t2.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,cT.useBlockProps)(),children:[o&&(0,t2.jsx)(cT.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,fz.__)("Next page link"),placeholder:(0,fz.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,t2.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:xpe}=sT,kpe={icon:fv,edit:_pe},q9e=()=>R({name:xpe,metadata:sT,settings:kpe});var gz={};K(gz,{init:()=>Y9e,metadata:()=>uT,name:()=>Cpe,settings:()=>Spe});var uT={$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 o2=a(I(),1),pT=a(B(),1),D0=a(O(),1);var Xi=a(y(),1),r2=(e,t="a",r="")=>(0,Xi.jsx)(t,{className:`page-numbers ${r}`,children:e},e),K9e=e=>{let t=[];for(let r=1;r<=e;r++)t.push(r2(r));t.push(r2(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(r2(e+1+r));return t.push(r2("...","span","dots")),t.push(r2(e*2+3)),(0,Xi.jsx)(Xi.Fragment,{children:t})};function wpe({attributes:e,setAttributes:t}){let{midSize:r}=e,o=K9e(parseInt(r,10)),n=Z();return(0,Xi.jsxs)(Xi.Fragment,{children:[(0,Xi.jsx)(pT.InspectorControls,{children:(0,Xi.jsx)(D0.__experimentalToolsPanel,{label:(0,o2.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,Xi.jsx)(D0.__experimentalToolsPanelItem,{label:(0,o2.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,Xi.jsx)(D0.RangeControl,{label:(0,o2.__)("Number of links"),help:(0,o2.__)("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,pT.useBlockProps)(),children:o})]})}var{name:Cpe}=uT,Spe={icon:hv,edit:wpe,example:{}},Y9e=()=>R({name:Cpe,metadata:uT,settings:Spe});var bz={};K(bz,{init:()=>J9e,metadata:()=>mT,name:()=>Ppe,settings:()=>Bpe});var mT={$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 vz=a(I(),1),dT=a(B(),1),a2=a(y(),1),X9e={none:"",arrow:"\u2190",chevron:"\xAB"};function Tpe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=X9e[r];return(0,a2.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,dT.useBlockProps)(),children:[n&&(0,a2.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),o&&(0,a2.jsx)(dT.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,vz.__)("Previous page link"),placeholder:(0,vz.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:Ppe}=mT,Bpe={icon:gv,edit:Tpe},J9e=()=>R({name:Ppe,metadata:mT,settings:Bpe});var kz={};K(kz,{init:()=>aPe,metadata:()=>fT,name:()=>Ape,settings:()=>zpe});var fT={$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"},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,textAlign:!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 Ll=a(B(),1),Rl=a(O(),1),tr=a(I(),1);var yz=a(oe(),1),_z=a(F(),1);function Epe(){let e=(0,_z.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),p=c(),m=u()||(p==="wp_template"?s():null);return m?l(yz.store).getEditedEntityRecord("postType","wp_template",m)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o,n=!1,i;if(t)t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=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,_z.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(yz.store),p,m;if(r&&(p=c(r)?.labels?.singular_name),o){let d=s("taxonomy",r,{slug:o,per_page:1});d&&d[0]&&(m=d[0].name)}if(n&&(p="Author",i)){let d=u({slug:i});d&&d[0]&&(m=d[0].name)}return{archiveTypeLabel:p,archiveNameLabel:m}},[i,n,r,o])}var Npe=a(oe(),1),xz=a(F(),1);function Ipe(e){let t=(0,xz.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,xz.useSelect)(r=>{let{getPostType:o}=r(Npe.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var Nt=a(y(),1),tPe=["archive","search","post-type"];function Dpe(e){wt(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=Epe(),{postTypeLabel:p}=Ipe(s?.postType),m=Z(),d=r===0?"p":`h${r}`,f=(0,Ll.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!tPe.includes(t))return(0,Nt.jsx)("div",{...f,children:(0,Nt.jsx)(Ll.Warning,{children:(0,tr.__)("Provided type is not supported.")})});let h;if(t==="archive"){let g;c?n?u?g=(0,tr.sprintf)((0,tr._x)("%1$s: %2$s","archive label"),c,u):g=(0,tr.sprintf)((0,tr.__)("%s: Name"),c):u?g=u:g=(0,tr.sprintf)((0,tr.__)("%s name"),c):g=n?(0,tr.__)("Archive type: Name"):(0,tr.__)("Archive title"),h=(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Ll.InspectorControls,{children:(0,Nt.jsx)(Rl.__experimentalToolsPanel,{label:(0,tr.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:m,children:(0,Nt.jsx)(Rl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,tr.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Nt.jsx)(Rl.ToggleControl,{label:(0,tr.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,Nt.jsx)(d,{...f,children:g})]})}if(t==="search"&&(h=(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Ll.InspectorControls,{children:(0,Nt.jsx)(Rl.__experimentalToolsPanel,{label:(0,tr.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:m,children:(0,Nt.jsx)(Rl.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,tr.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,Nt.jsx)(Rl.ToggleControl,{label:(0,tr.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,Nt.jsx)(d,{...f,children:i?(0,tr.__)("Search results for: \u201Csearch term\u201D"):(0,tr.__)("Search results")})]})),t==="post-type"){let g;p?n?g=(0,tr.sprintf)((0,tr.__)('Post Type: "%s"'),p):g=p:g=n?(0,tr.__)("Post Type: Name"):(0,tr.__)("Name"),h=(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Ll.InspectorControls,{children:(0,Nt.jsx)(Rl.__experimentalToolsPanel,{label:(0,tr.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:m,children:(0,Nt.jsx)(Rl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,tr.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Nt.jsx)(Rl.ToggleControl,{label:(0,tr.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,Nt.jsx)(d,{...f,children:g})]})}return(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Ll.BlockControls,{group:"block",children:(0,Nt.jsx)(Ll.HeadingLevelDropdown,{value:r,options:o,onChange:g=>l({level:g})})}),h]})}var Mf=a(I(),1);var Lpe=[{isDefault:!0,name:"archive-title",title:(0,Mf.__)("Archive Title"),description:(0,Mf.__)("Display the archive title based on the queried object."),icon:Zl,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Mf.__)("Search Results Title"),description:(0,Mf.__)("Display the search results title based on the queried object."),icon:Zl,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Mf.__)("Post Type Label"),description:(0,Mf.__)("Display the post type label based on the queried object."),icon:Zl,attributes:{type:"post-type"},scope:["inserter"]}];Lpe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Rpe=Lpe;var rPe={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!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}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},oPe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Mpe=[rPe,oPe];var{name:Ape}=fT,zpe={icon:Zl,edit:Dpe,variations:Rpe,deprecated:Mpe},aPe=()=>R({name:Ape,metadata:fT,settings:zpe});var Sz={};K(Sz,{init:()=>iPe,metadata:()=>hT,name:()=>Fpe,settings:()=>Hpe});var hT={$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 gT=a(B(),1),vT=a(O(),1),L0=a(I(),1);var bm=a(O(),1),Af=a(y(),1),wz=(0,Af.jsx)(bm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Af.jsx)(bm.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),Cz=(0,Af.jsx)(bm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Af.jsx)(bm.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),Vpe=(0,Af.jsx)(bm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Af.jsx)(bm.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 Ls=a(y(),1);function Ope({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,gT.useBlockProps)(),n=()=>{switch(r){case"total-results":return wz;case"range-display":return Cz}},i=[{role:"menuitemradio",title:(0,L0.__)("Total results"),isActive:r==="total-results",icon:wz,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,L0.__)("Range display"),isActive:r==="range-display",icon:Cz,onClick:()=>{t({displayType:"range-display"})}}],l=(0,Ls.jsx)(gT.BlockControls,{children:(0,Ls.jsx)(vT.ToolbarGroup,{children:(0,Ls.jsx)(vT.ToolbarDropdownMenu,{icon:n(),label:(0,L0.__)("Change display type"),controls:i})})});return(0,Ls.jsxs)("div",{...o,children:[l,r==="total-results"?(0,Ls.jsx)(Ls.Fragment,{children:(0,L0.__)("12 results found")}):r==="range-display"?(0,Ls.jsx)(Ls.Fragment,{children:(0,L0.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Fpe}=hT,Hpe={icon:Vpe,edit:Ope},iPe=()=>R({name:Fpe,metadata:hT,settings:Hpe});var Pz={};K(Pz,{init:()=>vPe,metadata:()=>yT,name:()=>Ype,settings:()=>Qpe});var Tz=a(I(),1);var n2=a($(),1),mo=a(B(),1),va=a(y(),1),ym=e=>{let{value:t,...r}=e;return[{...r},t?(0,n2.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,n2.createBlock)("core/paragraph",{content:o})):(0,n2.createBlock)("core/paragraph")]},jpe=["left","right","center"],zf=(e,t)=>{let{align:r,...o}=e;return[jpe.includes(r)?{...o,textAlign:r}:e,t]},lPe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],sPe={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})=>jpe.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,va.jsxs)("blockquote",{...mo.useBlockProps.save({className:o}),children:[(0,va.jsx)(mo.InnerBlocks.Content,{}),!mo.RichText.isEmpty(r)&&(0,va.jsx)(mo.RichText.Content,{tagName:"cite",value:r})]})},migrate:zf},cPe={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:o}=e,n=C({[`has-text-align-${t}`]:t});return(0,va.jsxs)("blockquote",{...mo.useBlockProps.save({className:n}),children:[(0,va.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,va.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return zf(...ym(e))}},uPe={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 zf(...ym(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,va.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,va.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,va.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})}},pPe={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 zf(...lPe(...ym(r)))}return zf(...ym(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,va.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,va.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,va.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})}},mPe={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 zf(...ym(r))}return zf(...ym(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,va.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,va.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,va.jsx)(mo.RichText.Content,{tagName:"footer",value:o})]})}},Upe=[sPe,cPe,uPe,pPe,mPe];var i2=a(I(),1),zc=a(B(),1),Gpe=a(O(),1),bT=a(F(),1),Wpe=a(H(),1),$pe=a(vd(),1);var qu=a(y(),1),dPe=[["core/paragraph",{}]],fPe=(e,t)=>{let r=(0,bT.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n}=(0,bT.useDispatch)(zc.store);(0,Wpe.useEffect)(()=>{if(!e.value)return;let[i,l]=ym(e);(0,$pe.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),n(t,l)})},[e.value])};function qpe({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:n,isSelected:i}){let{textAlign:l,allowedBlocks:s}=e;fPe(e,o);let c=(0,zc.useBlockProps)({className:C(n,{[`has-text-align-${l}`]:l})}),u=(0,zc.useInnerBlocksProps)(c,{template:dPe,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:s});return(0,qu.jsxs)(qu.Fragment,{children:[(0,qu.jsx)(zc.BlockControls,{group:"block",children:(0,qu.jsx)(zc.AlignmentControl,{value:l,onChange:p=>{t({textAlign:p})}})}),(0,qu.jsxs)(Gpe.BlockQuotation,{...u,children:[u.children,(0,qu.jsx)(Mo,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:Dv,label:(0,i2.__)("Quote citation"),placeholder:(0,i2.__)("Add citation"),addLabel:(0,i2.__)("Add citation"),removeLabel:(0,i2.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var yT={$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,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 Vf=a(B(),1),l2=a(y(),1);function Zpe({attributes:e}){let{textAlign:t,citation:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,l2.jsxs)("blockquote",{...Vf.useBlockProps.save({className:o}),children:[(0,l2.jsx)(Vf.InnerBlocks.Content,{}),!Vf.RichText.isEmpty(r)&&(0,l2.jsx)(Vf.RichText.Content,{tagName:"cite",value:r})]})}var s2=a(B(),1),Ur=a($(),1),gPe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Ur.createBlock)("core/quote",{},[(0,Ur.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:n,style:i})=>(0,Ur.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:n,style:i},[(0,Ur.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Ur.createBlock)("core/quote",{},[(0,Ur.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Ur.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,Ur.createBlock)("core/quote",{},e.map(t=>(0,Ur.cloneSanitizedBlock)(t)))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every(({name:t})=>t==="core/paragraph"),transform:({align:e,citation:t,anchor:r,fontSize:o,style:n},i)=>{let l=i.map(({attributes:s})=>`${s.content}`).join("<br>");return(0,Ur.createBlock)("core/pullquote",{value:l,align:e,citation:t,anchor:r,fontSize:o,style:n})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Ur.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Ur.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Ur.createBlock)("core/verse",{content:r})}},{type:"block",blocks:["core/paragraph"],isMatch:({citation:e},t)=>{let r=t.innerBlocks;return r.length?r.every(o=>o.name==="core/paragraph"?!0:(0,Ur.switchToBlockType)(o,"core/paragraph")!==null):!s2.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Ur.switchToBlockType)(o,"core/paragraph")||[]);return s2.RichText.isEmpty(e)?r:[...r,(0,Ur.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Ur.createBlock)("core/group",{anchor:t},s2.RichText.isEmpty(e)?r:[...r,(0,Ur.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>s2.RichText.isEmpty(e)?t:[...t,(0,Ur.createBlock)("core/paragraph",{content:e})]},Kpe=gPe;var{name:Ype}=yT,Qpe={icon:KE,example:{attributes:{citation:(0,Tz.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Tz.__)("In quoting others, we cite ourselves.")}}]},transforms:Kpe,edit:qpe,save:Zpe,deprecated:Upe},vPe=()=>R({name:Ype,metadata:yT,settings:Qpe});var Bz={};K(Bz,{init:()=>NPe,metadata:()=>_T,name:()=>sme,settings:()=>cme});var nme=a(oe(),1),ime=a(F(),1),lme=a(Xo(),1);var _T={$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},customCSS:!1}};var u2=a(F(),1),p2=a(H(),1),R0=a(oe(),1),Vc=a(O(),1),c2=a(I(),1),Gr=a(B(),1),tme=a(Jpe(),1),rme=a($(),1);var yr=a(y(),1),{useLayoutClasses:yPe}=U(Gr.privateApis),{isOverridableBlock:_Pe}=U(tme.privateApis),xPe=["full","wide","left","right"],kPe=(e,t)=>{let r=(0,p2.useRef)();return(0,p2.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",l=e.some(s=>xPe.includes(s.attributes.align));o=i&&l?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function wPe(){let e=(0,Gr.useBlockProps)();return(0,yr.jsx)("div",{...e,children:(0,yr.jsx)(Gr.Warning,{children:(0,c2.__)("Block cannot be rendered inside itself.")})})}var eme=()=>{};function ome(e){let{ref:t}=e.attributes;return(0,Gr.useHasRecursion)(t)?(0,yr.jsx)(wPe,{}):(0,yr.jsx)(Gr.RecursionProvider,{uniqueId:t,children:(0,yr.jsx)(TPe,{...e})})}function CPe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:n}){let i=(0,u2.useSelect)(l=>!!l(R0.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,yr.jsxs)(yr.Fragment,{children:[i&&!!o&&(0,yr.jsx)(Gr.BlockControls,{group:"other",children:(0,yr.jsx)(Vc.ToolbarGroup,{children:(0,yr.jsx)(Vc.ToolbarButton,{onClick:o,children:(0,c2.__)("Edit original")})})}),t&&(0,yr.jsx)(Gr.BlockControls,{group:"other",children:(0,yr.jsx)(Vc.ToolbarGroup,{children:(0,yr.jsx)(Vc.ToolbarButton,{onClick:n,disabled:!r,children:(0,c2.__)("Reset")})})})]})}var SPe={};function TPe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:n}){let{record:i,hasResolved:l}=(0,R0.useEntityRecord)("postType","wp_block",t),[s]=(0,R0.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,u2.useDispatch)(Gr.store),{onNavigateToEntityRecord:p,hasPatternOverridesSource:m,supportedBlockTypesRaw:d}=(0,u2.useSelect)(S=>{let{getSettings:T}=S(Gr.store);return{onNavigateToEntityRecord:T().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,rme.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:T().__experimentalBlockBindingsSupportedAttributes||SPe}},[]),f=(0,p2.useMemo)(()=>{let S=Object.keys(d),T=N=>N.some(D=>S.includes(D.name)&&_Pe(D)?!0:T(D.innerBlocks));return m&&T(s)},[m,s,d]),{alignment:h,layout:g}=kPe(s,o),v=yPe({layout:g},e),b=(0,Gr.useBlockProps)({className:C("block-library-block__reusable-block-container",g&&v,{[`align${h}`]:h})}),_=(0,Gr.useInnerBlocksProps)(b,{layout:g,value:s,onInput:eme,onChange:eme,renderAppender:s?.length?void 0:Gr.InnerBlocks.ButtonBlockAppender}),k=()=>{p({postId:t,postType:"wp_block"})},x=()=>{r&&(u(),n({content:void 0}))},w=null;return c&&(w=(0,yr.jsx)(Gr.Warning,{children:(0,c2.__)("Block has been deleted or is unavailable.")})),l||(w=(0,yr.jsx)(Vc.Placeholder,{children:(0,yr.jsx)(Vc.Spinner,{})})),(0,yr.jsxs)(yr.Fragment,{children:[l&&!c&&(0,yr.jsx)(CPe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:p?k:void 0,resetContent:x}),w===null?(0,yr.jsx)("div",{..._}):(0,yr.jsx)("div",{...b,children:w})]})}var PPe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,BPe={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&&PPe(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let o={...t};for(let n in t)o[n]=t[n].values;return{...r,content:o}}return e}},EPe={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,o={};return Object.keys(t).forEach(n=>{o[n]=t[n]}),{...r,content:o}}},ame=[BPe,EPe];var{name:sme}=_T,cme={deprecated:ame,edit:ome,icon:kN,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,ime.select)(nme.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,lme.decodeEntities)(t.title)}},NPe=()=>R({name:sme,metadata:_T,settings:cme});var Ez={};K(Ez,{init:()=>DPe,metadata:()=>xT,name:()=>mme,settings:()=>dme});var pme=a(I(),1);var xT={$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 A0=a(B(),1),z0=a(O(),1),kT=a($(),1),M0=a(I(),1);var Oc=a(y(),1);function ume({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let n=(0,A0.useBlockProps)(),i=Z();return(0,Oc.jsxs)(Oc.Fragment,{children:[(0,Oc.jsx)(A0.InspectorControls,{children:(0,Oc.jsx)(z0.__experimentalToolsPanel,{label:(0,M0.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Oc.jsx)(z0.__experimentalToolsPanelItem,{label:(0,M0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Oc.jsx)(z0.ToggleControl,{label:(0,M0.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Oc.jsx)(A0.RichText,{identifier:"content",tagName:"a","aria-label":(0,M0.__)("\u201CRead more\u201D link text"),placeholder:(0,M0.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:()=>o((0,kT.createBlock)((0,kT.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:mme}=xT,dme={icon:fi,edit:ume,example:{attributes:{content:(0,pme.__)("Read more")}}},DPe=()=>R({name:mme,metadata:xT,settings:dme});var Nz={};K(Nz,{init:()=>APe,metadata:()=>wT,name:()=>bme,settings:()=>yme});var wT={$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 Of=a(B(),1),xt=a(O(),1),CT=a(H(),1);var Vt=a(I(),1),fme=a(ur(),1),hme=a(ap(),1),gme=a(ge(),1);var lt=a(y(),1),RPe=1,MPe=20;function vme({attributes:e,setAttributes:t,name:r}){let[o,n]=(0,CT.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:p,feedURL:m,itemsToShow:d,openInNewTab:f,rel:h}=e,g=Z();function v(D){return()=>{let L=e[D];t({[D]:!L})}}function b(D){D.preventDefault(),m&&(t({feedURL:(0,fme.prependHTTPS)(m)}),n(!1))}let{content:_,status:k,error:x}=(0,hme.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),w=(0,gme.useDisabled)(),S=(0,Of.useBlockProps)({ref:o?null:w}),T=(0,Vt.__)("RSS URL");if(o)return(0,lt.jsx)("div",{...S,children:(0,lt.jsx)(xt.Placeholder,{icon:bv,label:T,instructions:(0,Vt.__)("Display entries from any RSS or Atom feed."),children:(0,lt.jsxs)("form",{onSubmit:b,className:"wp-block-rss__placeholder-form",children:[(0,lt.jsx)(xt.__experimentalInputControl,{label:T,type:"url",hideLabelFromVision:!0,placeholder:(0,Vt.__)("Enter URL here\u2026"),value:m,onChange:D=>t({feedURL:D}),className:"wp-block-rss__placeholder-input"}),(0,lt.jsx)(xt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Vt.__)("Apply")})]})})});let N=[{icon:ed,title:(0,Vt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:ql,title:(0,Vt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:$l,title:(0,Vt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Of.BlockControls,{children:(0,lt.jsx)(xt.ToolbarGroup,{controls:N})}),(0,lt.jsx)(Of.InspectorControls,{children:(0,lt.jsxs)(xt.__experimentalToolsPanel,{label:(0,Vt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,lt.jsx)(xt.RangeControl,{label:(0,Vt.__)("Number of items"),value:d,onChange:D=>t({itemsToShow:D}),min:RPe,max:MPe,required:!0})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Display author"),checked:s,onChange:v("displayAuthor")})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Display date"),checked:c,onChange:v("displayDate")})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Display excerpt"),checked:u,onChange:v("displayExcerpt")})}),u&&(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Max number of words in excerpt"),hasValue:()=>p!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,lt.jsx)(xt.RangeControl,{label:(0,Vt.__)("Max number of words in excerpt"),value:p,onChange:D=>t({excerptLength:D}),min:10,max:100,required:!0})}),i==="grid"&&(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,lt.jsx)(xt.RangeControl,{label:(0,Vt.__)("Columns"),value:l,onChange:D=>t({columns:D}),min:2,max:6,required:!0})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Open links in new tab"),checked:f,onChange:D=>t({openInNewTab:D})})})]})}),(0,lt.jsx)(Of.InspectorControls,{group:"advanced",children:(0,lt.jsx)(xt.TextControl,{label:(0,Vt.__)("Link relation"),help:(0,CT.createInterpolateElement)((0,Vt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,lt.jsx)(xt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:D=>t({rel:D})})}),k==="loading"&&(0,lt.jsx)("div",{...S,children:(0,lt.jsx)(xt.Spinner,{})}),k==="error"&&(0,lt.jsx)("div",{...S,children:(0,lt.jsx)("p",{children:(0,Vt.sprintf)((0,Vt.__)("Error: %s"),x)})}),k==="success"&&(0,lt.jsx)(_o,{wrapperProps:S,html:_})]})}var{name:bme}=wT,yme={icon:bv,example:{attributes:{feedURL:"https://wordpress.org"}},edit:vme},APe=()=>R({name:bme,metadata:wT,settings:yme});var Az={};K(Az,{init:()=>HPe,metadata:()=>ST,name:()=>Eme,settings:()=>PT});var V0=a(I(),1);var Bme=a($(),1);var ST={$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:{}},tagName:{type:"string",default:""}},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",selectors:{color:".wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input",border:".wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper"}};var to=a(B(),1),TT=a(F(),1),m2=a(H(),1),nr=a(O(),1),wme=a(ge(),1);var It=a(I(),1),Cme=a(Ca(),1),Sme=a(Bh(),1);var Iz=50,Dz=350,Lz=220;function Rz(e){return e==="%"}var kt=a(y(),1),_me={"":(0,It.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,It.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,It.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},xme="4px",kme=[25,50,75,100];function Tme({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:p,align:m,buttonText:d,buttonPosition:f,buttonUseIcon:h,tagName:g,style:v}=t,b=(0,TT.useSelect)(ae=>{let{getBlockParentsByBlockName:pe,wasBlockJustInserted:se}=ae(to.store);return!!pe(i,"core/navigation")?.length&&se(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,TT.useDispatch)(to.store);(0,m2.useEffect)(()=>{b&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,b,r]);let k=v?.border?.radius,x=(0,to.__experimentalUseBorderProps)(t);typeof k=="number"&&(x={...x,style:{...x.style,borderRadius:`${k}px`}});let w=(0,to.__experimentalUseColorProps)(t),[S,T]=(0,to.useSettings)("typography.fluid","layout"),N=(0,to.getTypographyClassesAndStyles)(t,{typography:{fluid:S},layout:{wideSize:T?.wideSize}}),L=`wp-block-search__width-${(0,wme.useInstanceId)(nr.__experimentalUnitControl)}`,P=f==="button-inside",E=f==="button-outside",M=f==="no-button",z=f==="button-only",j=z&&!n,q=(0,m2.useRef)(),G=(0,m2.useRef)(),W=(0,nr.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":Iz,px:Dz}}),V=()=>C(e,P?"wp-block-search__button-inside":void 0,E?"wp-block-search__button-outside":void 0,M?"wp-block-search__no-button":void 0,z?"wp-block-search__button-only":void 0,!h&&!M?"wp-block-search__text-button":void 0,h&&!M?"wp-block-search__icon-button":void 0,j?"wp-block-search__searchfield-hidden":void 0),Q=[{label:(0,It.__)("Button outside"),value:"button-outside"},{label:(0,It.__)("Button inside"),value:"button-inside"},{label:(0,It.__)("No button"),value:"no-button"},{label:(0,It.__)("Button only"),value:"button-only"}],Y=()=>z?{}:{right:m!=="right",left:m==="right"},re=()=>{let ae=C("wp-block-search__input",M?w.className:void 0,P?void 0:x.className,N.className),pe={...M?w.style:{},...P?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style,...N.style,textDecoration:void 0};return(0,kt.jsx)("input",{type:"search",className:ae,style:pe,"aria-label":(0,It.__)("Optional placeholder text"),placeholder:c?void 0:(0,It.__)("Optional placeholder\u2026"),value:c,onChange:se=>r({placeholder:se.target.value}),ref:q})},J=()=>{let ae=C("wp-block-search__button",w.className,N.className,P?void 0:x.className,h?"has-icon":void 0,(0,to.__experimentalGetElementClassName)("button")),pe={...w.style,...N.style,...P?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style};return(0,kt.jsxs)(kt.Fragment,{children:[h&&(0,kt.jsx)("button",{type:"button",className:ae,style:pe,"aria-label":d?(0,Cme.__unstableStripHTML)(d):(0,It.__)("Search"),ref:G,children:(0,kt.jsx)(on,{icon:yv})}),!h&&(0,kt.jsx)(to.RichText,{identifier:"buttonText",className:ae,style:pe,"aria-label":(0,It.__)("Button text"),placeholder:(0,It.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:se=>r({buttonText:se})})]})},ie=Z(),ee=(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)(to.InspectorControls,{children:(0,kt.jsxs)(nr.__experimentalToolsPanel,{label:(0,It.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:ie,children:[(0,kt.jsx)(nr.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,It.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,kt.jsx)(nr.ToggleControl,{checked:s,label:(0,It.__)("Show label"),onChange:ae=>r({showLabel:ae})})}),(0,kt.jsx)(nr.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,It.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,kt.jsx)(nr.SelectControl,{value:f,label:(0,It.__)("Button position"),onChange:ae=>{r({buttonPosition:ae})},options:Q})}),f!=="no-button"&&(0,kt.jsx)(nr.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,It.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,kt.jsx)(nr.ToggleControl,{checked:h,label:(0,It.__)("Use button with icon"),onChange:ae=>r({buttonUseIcon:ae})})}),(0,kt.jsx)(nr.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,It.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,kt.jsxs)(nr.__experimentalVStack,{children:[(0,kt.jsx)(nr.__experimentalUnitControl,{label:(0,It.__)("Width"),id:L,min:Rz(p)?0:Lz,max:Rz(p)?100:void 0,step:1,onChange:ae=>{let pe=ae===""?void 0:parseInt(ae,10);r({width:pe})},onUnitChange:ae=>{r({width:ae==="%"?Iz:Dz,widthUnit:ae})},__unstableInputWidth:"80px",value:`${u}${p}`,units:W}),(0,kt.jsx)(nr.__experimentalToggleGroupControl,{label:(0,It.__)("Percentage Width"),value:kme.includes(u)&&p==="%"?u:void 0,hideLabelFromVision:!0,onChange:ae=>{r({width:ae,widthUnit:"%"})},isBlock:!0,children:kme.map(ae=>(0,kt.jsx)(nr.__experimentalToggleGroupControlOption,{value:ae,label:(0,It.sprintf)((0,It.__)("%d%%"),ae)},ae))})]})})]})}),(0,kt.jsx)(to.InspectorControls,{group:"advanced",children:(0,kt.jsx)(nr.SelectControl,{label:(0,It.__)("HTML element"),value:g??"",options:[{label:(0,It.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:ae=>{r({tagName:ae}),(0,Sme.speak)(_me[ae].replace(/[<>]/g,""))},help:_me[g??""]})})]}),te=ae=>ae!==void 0&&parseInt(ae,10)!==0,de=ae=>te(ae)?`calc(${ae} + ${xme})`:void 0,we=()=>{let ae=P?x.style:{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius};if(P){if(typeof k=="object"){let{borderTopLeftRadius:se,borderTopRightRadius:Ne,borderBottomLeftRadius:Ie,borderBottomRightRadius:X}=x.style;return{...ae,borderTopLeftRadius:de(se),borderTopRightRadius:de(Ne),borderBottomLeftRadius:de(Ie),borderBottomRightRadius:de(X)}}let pe=Number.isInteger(k)?`${k}px`:k;ae.borderRadius=`calc(${pe} + ${xme})`}return ae},le=(0,to.useBlockProps)({className:V(),style:{...N.style,textDecoration:void 0}}),me=C("wp-block-search__label",N.className);return(0,kt.jsxs)(kt.Fragment,{children:[ee,(0,kt.jsxs)(g==="search"?"search":"div",{...le,children:[s&&(0,kt.jsx)(to.RichText,{identifier:"label",className:me,"aria-label":(0,It.__)("Label text"),placeholder:(0,It.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ae=>r({label:ae}),style:N.style}),(0,kt.jsxs)(nr.ResizableBox,{size:{width:u===void 0?"auto":`${u}${p}`,height:"auto"},className:C("wp-block-search__inside-wrapper",P?x.className:void 0),style:we(),minWidth:Lz,enable:Y(),onResizeStart:(ae,pe,se)=>{r({width:parseInt(se.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(ae,pe,se,Ne)=>{r({width:parseInt(u+Ne.width,10)}),o(!0)},showHandle:n,children:[(P||E||z)&&(0,kt.jsxs)(kt.Fragment,{children:[re(),J()]}),M&&re()]})]})]})}var Mz=a(I(),1),VPe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,Mz.__)("Search"),label:(0,Mz.__)("Search")}}],Pme=VPe;var{fieldsKey:OPe,formKey:FPe}=U(Bme.privateApis),{name:Eme}=ST,PT={icon:yv,example:{attributes:{buttonText:(0,V0.__)("Search"),label:(0,V0.__)("Search")},viewportWidth:400},variations:Pme,edit:Tme};window.__experimentalContentOnlyInspectorFields&&(PT[OPe]=[{id:"label",label:(0,V0.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,V0.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,V0.__)("Placeholder"),type:"text",Edit:"rich-text"}],PT[FPe]={fields:["label","buttonText","placeholder"]});var HPe=()=>R({name:Eme,metadata:ST,settings:PT});var zz={};K(zz,{init:()=>$Pe,metadata:()=>ET,name:()=>Vme,settings:()=>Ome});var _m=a(B(),1),BT=a(O(),1),f2=a(I(),1);var d2=a(H(),1),Nme=a(ge(),1);function Ime(e,t,r){let[o,n]=(0,d2.useState)(!1),i=(0,Nme.usePrevious)(t);(0,d2.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,d2.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[o,t,i])}var Zu=a(y(),1),jPe=({tagName:e,setAttributes:t})=>(0,Zu.jsx)(BT.SelectControl,{label:(0,f2.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,f2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,f2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,f2.__)("The <div> element should only be used if the block is a design element with no semantic meaning.")});function Dme({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:n,tagName:i}=e,l=(0,_m.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;Ime(o,s,t);let u=(0,_m.getColorClassName)("color",r),p=C({"has-text-color":r||s,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className);return(0,Zu.jsxs)(Zu.Fragment,{children:[(0,Zu.jsx)(_m.InspectorControls,{group:"advanced",children:(0,Zu.jsx)(jPe,{tagName:i,setAttributes:t})}),(0,Zu.jsx)(i==="hr"?BT.HorizontalRule:i,{...(0,_m.useBlockProps)({className:p,style:c?{color:s,backgroundColor:s}:void 0})})]})}var ET={$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 O0=a(B(),1),Lme=a(y(),1);function Rme({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:n}=e,i=r?.color?.background,l=(0,O0.__experimentalGetColorClassesAndStyles)(e),s=(0,O0.getColorClassName)("color",t),c=C({"has-text-color":t||i,[s]:s,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,Lme.jsx)(n,{...O0.useBlockProps.save({className:c,style:u})})}var xm=a($(),1),GPe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,xm.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,xm.createBlock)("core/separator",e?.attributes??{}),(0,xm.createBlock)((0,xm.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,xm.createBlock)("core/spacer",{anchor:e||void 0})}]},Mme=GPe;var h2=a(B(),1),Ame=a(y(),1),WPe={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,h2.getColorClassName)("background-color",t),n=(0,h2.getColorClassName)("color",t),i=C({"has-text-color has-background":t||r,[o]:o,[n]:n}),l={backgroundColor:o?void 0:r,color:n?void 0:r};return(0,Ame.jsx)("hr",{...h2.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:r,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:r?{color:{background:r}}:void 0,tagName:"hr"}}},zme=[WPe];var{name:Vme}=ET,Ome={icon:cN,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Mme,edit:Dme,save:Rme,deprecated:zme},$Pe=()=>R({name:Vme,metadata:ET,settings:Ome});var Oz={};K(Oz,{init:()=>QPe,metadata:()=>MT,name:()=>Qme,settings:()=>Xme});var NT=a(I(),1),DT=a(B(),1),Fme=a(ge(),1),Hme=a(O(),1);var IT=a(y(),1);function Vz({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,Fme.useInstanceId)(Vz)}`;return(0,IT.jsx)("div",{...(0,DT.useBlockProps)(),children:(0,IT.jsx)(Hme.Placeholder,{icon:xv,label:(0,NT.__)("Shortcode"),children:(0,IT.jsx)(DT.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,NT.__)("Shortcode text"),placeholder:(0,NT.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var jme=a(H(),1),Ume=a(y(),1);function Gme({attributes:e}){return(0,Ume.jsx)(jme.RawHTML,{children:e.text})}var LT=a($me(),1),RT=a($(),1),Kme=a(Zme(),1),qPe=()=>(0,RT.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),ZPe=(e,t)=>{let r=e.trim(),o=(0,Kme.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},KPe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,LT.removep)((0,LT.autop)(t))}},priority:20}],get to(){return qPe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>ZPe(t,r)),transform:({text:t=""})=>(0,RT.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},Yme=KPe;var MT={$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,customCSS:!1,visibility:!1},editorStyle:"wp-block-shortcode-editor"};var{name:Qme}=MT,Xme={icon:xv,transforms:Yme,edit:Vz,save:Gme},QPe=()=>R({name:Qme,metadata:MT,settings:Xme});var Hz={};K(Hz,{init:()=>oBe,metadata:()=>AT,name:()=>ade,settings:()=>nde});var AT={$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 Fz=a(Mr(),1),Fc=a(H(),1),fo=a(I(),1),Dt=a(O(),1),Jme=a(ge(),1),ho=a(B(),1),km=a(F(),1),F0=a(oe(),1);var ede=a(Sr(),1);var je=a(y(),1),zT=["image"],{mediaEditKey:JPe,openMediaEditorModalKey:eBe}=U(ho.privateApis),tBe=({alt:e,attributes:{align:t,width:r,height:o,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:p,siteUrl:m,logoId:d,iconId:f,setIcon:h,canUserEdit:g})=>{let v=(0,Jme.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&v,[{naturalWidth:k,naturalHeight:x},w]=(0,Fc.useState)({}),S=(0,Fc.useRef)(),{toggleSelection:T,__unstableMarkNextChangeAsNotPersistent:N}=(0,km.useDispatch)(ho.store),D=Z(),P=(0,ho.useBlockEditingMode)()==="contentOnly",{imageEditing:E,maxWidth:M,title:z,editMediaEntity:j,openMediaEditorModal:q}=(0,km.useSelect)(Ie=>{let X=Ie(ho.store).getSettings();return{title:Ie(F0.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:X.imageEditing,maxWidth:X.maxWidth,editMediaEntity:X?.[JPe],openMediaEditorModal:X?.[eBe]}},[]);(0,Fc.useEffect)(()=>{l&&d!==f&&(N(),c({shouldSyncIcon:!1}))},[]);let G=({id:Ie})=>{typeof Ie=="number"&&u(Ie)};function W(){T(!1)}function V(){T(!0)}let Q=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("img",{className:"custom-logo",src:p,alt:e,onLoad:Ie=>{w({naturalWidth:Ie.target.naturalWidth,naturalHeight:Ie.target.naturalHeight})}}),(0,Fz.isBlobURL)(p)&&(0,je.jsx)(Dt.Spinner,{})]}),Y=Q;if(n&&(Y=(0,je.jsx)("a",{href:m,className:"custom-logo-link",rel:"home",title:z,onClick:Ie=>Ie.preventDefault(),children:Q})),!_||!k||!x)return(0,je.jsx)("div",{style:{width:r,height:o},children:Y});let re=120,J=r||re,ie=k/x,ee=J/ie,te=k<x?mc:Math.ceil(mc*ie),de=x<k?mc:Math.ceil(mc/ie),we=M*2.5,le=!1,me=!1;t==="center"?(le=!0,me=!0):(0,fo.isRTL)()?t==="left"?le=!0:me=!0:t==="right"?me=!0:le=!0;let xe=d&&k&&x&&E&&!!j,ae=!P,se=!window?.__experimentalUseCustomizerSiteLogoUrl?m+"/wp-admin/options-general.php":m+"/wp-admin/customize.php?autofocus[section]=title_tagline",Ne=(0,Fc.createInterpolateElement)((0,fo.__)("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,je.jsx)("a",{href:se,target:"_blank",rel:"noopener"})});return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(ho.InspectorControls,{children:(0,je.jsxs)(Dt.__experimentalToolsPanel,{label:(0,fo.__)("Settings"),dropdownMenuProps:D,children:[(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,fo.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,je.jsx)(Dt.RangeControl,{label:(0,fo.__)("Image width"),onChange:Ie=>c({width:Ie}),min:te,max:we,initialPosition:Math.min(re,we),value:r||"",disabled:!_})}),(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,fo.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,je.jsx)(Dt.ToggleControl,{label:(0,fo.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,fo.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,je.jsx)(Dt.ToggleControl,{label:(0,fo.__)("Open in new tab"),onChange:Ie=>c({linkTarget:Ie?"_blank":"_self"}),checked:i==="_blank"})}),g&&(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,fo.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,je.jsx)(Dt.ToggleControl,{label:(0,fo.__)("Use as Site Icon"),onChange:Ie=>{c({shouldSyncIcon:Ie}),h(Ie?d:void 0)},checked:!!l,help:Ne})})]})}),xe&&q&&ae&&(0,je.jsx)(ho.BlockControls,{group:"block",children:(0,je.jsx)(Dt.ToolbarButton,{ref:S,onClick:()=>q({id:d,onUpdate:G,onClose:()=>S.current?.focus()}),"aria-haspopup":"dialog",icon:Zm,label:(0,fo.__)("Crop")})}),(0,je.jsx)(Dt.ResizableBox,{size:{width:J,height:ee},showHandle:s&&ae,minWidth:te,maxWidth:we,minHeight:de,maxHeight:we/ie,lockAspectRatio:!0,enable:{top:!1,right:le,bottom:!0,left:me},onResizeStart:W,onResizeStop:(Ie,X,Ce,ue)=>{V(),c({width:parseInt(J+ue.width,10),height:parseInt(ee+ue.height,10)})},children:Y})]})};function tde({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:p,isRequestingMediaItem:m}=(0,km.useSelect)(V=>{let{canUser:Q,getEntityRecord:Y,getEditedEntityRecord:re}=V(F0.store),J=Q("update",{kind:"root",name:"site"}),ie=J?re("root","site"):void 0,ee=Y("root","__unstableBase"),te=J?ie?.site_logo:ee?.site_logo,de=ie?.site_icon,we=te&&V(F0.store).getEntityRecord("postType","attachment",te,{context:"view"}),le=!!te&&!V(F0.store).hasFinishedResolution("getEntityRecord",["postType","attachment",te,{context:"view"}]);return{siteLogoId:te,canUserEdit:J,url:ee?.home,mediaItemData:we,isRequestingMediaItem:le,siteIconId:de}},[]),{getSettings:d}=(0,km.useSelect)(ho.store),[f,h]=(0,Fc.useState)(),g=Z(),{editEntityRecord:v}=(0,km.useDispatch)(F0.store),b=(V,Q=!1)=>{(i||Q)&&_(V),v("root","site",void 0,{site_logo:V})},_=V=>v("root","site",void 0,{site_icon:V??null}),{alt_text:k,source_url:x}=p??{},w=V=>{if(i===void 0){let Q=!u;r({shouldSyncIcon:Q}),S(V,Q);return}S(V)},S=(V,Q=!1)=>{if(V){if(!V.id&&V.url){h(V.url),b(void 0);return}b(V.id,Q)}},T=()=>{b(null),r({width:void 0})},{createErrorNotice:N}=(0,km.useDispatch)(ede.store),D=V=>{N(V,{type:"snackbar"}),h()},L=V=>{d().mediaUpload({allowedTypes:zT,filesList:V,onFileChange([Q]){if((0,Fz.isBlobURL)(Q?.url)){h(Q.url);return}w(Q)},onError:D,multiple:!1})},P={mediaURL:x,name:x?(0,fo.__)("Replace"):(0,fo.__)("Choose logo"),onSelect:S,onError:D,onReset:T},E=s&&(0,je.jsx)(ho.BlockControls,{group:"other",children:(0,je.jsx)(ho.MediaReplaceFlow,{...P,allowedTypes:zT,variant:"toolbar"})}),M,z=l===void 0||m;z&&(M=(0,je.jsx)(Dt.Spinner,{})),(0,Fc.useEffect)(()=>{x&&f&&h()},[x,f]),(x||f)&&(M=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(tBe,{alt:k,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||x,setLogo:b,logoId:p?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,je.jsx)(Dt.DropZone,{onFilesDrop:L})]}));let j=V=>{let Q=C("block-editor-media-placeholder",t);return(0,je.jsx)(Dt.Placeholder,{className:Q,preview:M,withIllustration:!0,style:{width:n},children:V})},q=C(t,{"is-default-size":!n,"is-transient":f}),G=(0,ho.useBlockProps)({className:q}),W=(s||x)&&(0,je.jsx)(ho.InspectorControls,{children:(0,je.jsx)(Dt.__experimentalToolsPanel,{label:(0,fo.__)("Media"),dropdownMenuProps:g,children:s?(0,je.jsx)(Dt.__experimentalToolsPanelItem,{hasValue:()=>!!x,label:(0,fo.__)("Logo"),isShownByDefault:!0,children:(0,je.jsx)(y4,{mediaId:l,mediaUrl:x,filename:p?.media_details?.sizes?.full?.file||p?.slug,allowedTypes:zT,onSelect:S,onError:D,onReset:T,isUploading:!!f,emptyLabel:(0,fo.__)("Logo")})}):(0,je.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,je.jsx)(SR,{url:p?.source_url,filename:p?.media_details?.sizes?.full?.file||p?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,je.jsxs)("div",{...G,children:[E,W,(!!x||!!f)&&M,(z||!f&&!x&&!s)&&(0,je.jsx)(Dt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:z&&(0,je.jsx)("span",{className:"components-placeholder__preview",children:(0,je.jsx)(Dt.Spinner,{})})}),!z&&!f&&!x&&s&&(0,je.jsx)(ho.MediaPlaceholder,{onSelect:w,allowedTypes:zT,onError:D,placeholder:j,mediaLibraryButton:({open:V})=>(0,je.jsx)(Dt.Button,{__next40pxDefaultSize:!0,icon:ou,variant:"primary",label:(0,fo.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{V()}})})]})}var rde=a($(),1),rBe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,rde.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},ode=rBe;var{name:ade}=AT,nde={icon:hN,example:{},edit:tde,transforms:ode},oBe=()=>R({name:ade,metadata:AT,settings:nde});var Gz={};K(Gz,{init:()=>lBe,metadata:()=>VT,name:()=>cde,settings:()=>ude});var VT={$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:{level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},example:{viewportWidth:350,attributes:{style:{typography:{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,textAlign:!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 FT=a(F(),1),jz=a(oe(),1),wm=a(B(),1),OT=a(I(),1),HT=a($(),1);var Ku=a(y(),1);function ide(e){wt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i}=t,{canUserEdit:l,tagline:s}=(0,FT.useSelect)(f=>{let{canUser:h,getEntityRecord:g,getEditedEntityRecord:v}=f(jz.store),b=h("update",{kind:"root",name:"site"}),_=b?v("root","site"):{},k=g("root","__unstableBase");return{canUserEdit:b,tagline:b?_?.description:k?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,FT.useDispatch)(jz.store);function p(f){u("root","site",void 0,{description:f})}let m=(0,wm.useBlockProps)({className:!l&&!s&&"wp-block-site-tagline__placeholder"}),d=l?(0,Ku.jsx)(wm.RichText,{allowedFormats:[],onChange:p,"aria-label":(0,OT.__)("Site tagline text"),placeholder:(0,OT.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,HT.createBlock)((0,HT.getDefaultBlockName)())),...m}):(0,Ku.jsx)(c,{...m,children:s||(0,OT.__)("Site Tagline placeholder")});return(0,Ku.jsxs)(Ku.Fragment,{children:[(0,Ku.jsx)(wm.BlockControls,{group:"block",children:(0,Ku.jsx)(wm.HeadingLevelDropdown,{value:n,options:i,onChange:f=>r({level:f})})}),d]})}var jT=a(O(),1),Uz=a(y(),1),lde=(0,Uz.jsx)(jT.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,Uz.jsx)(jT.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var nBe={attributes:{textAlign:{type:"string"},level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!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}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},iBe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},sde=[nBe,iBe];var{name:cde}=VT,ude={icon:lde,edit:ide,deprecated:sde},lBe=()=>R({name:cde,metadata:VT,settings:ude});var qz={};K(qz,{init:()=>mBe,metadata:()=>UT,name:()=>hde,settings:()=>gde});var UT={$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]},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,textAlign:!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 GT=a(F(),1),Wz=a(oe(),1),Hc=a(I(),1),Ml=a(B(),1),Cm=a(O(),1),WT=a($(),1),$z=a(Xo(),1);var Wo=a(y(),1);function pde(e){wt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i,isLink:l,linkTarget:s}=t,{canUserEdit:c,title:u}=(0,GT.useSelect)(b=>{let{canUser:_,getEntityRecord:k,getEditedEntityRecord:x}=b(Wz.store),w=_("update",{kind:"root",name:"site"}),S=w?x("root","site"):{},T=k("root","__unstableBase");return{canUserEdit:w,title:w?S?.title:T?.name}},[]),{editEntityRecord:p}=(0,GT.useDispatch)(Wz.store),m=Z(),d=(0,Ml.useBlockEditingMode)();function f(b){p("root","site",void 0,{title:b.trim()})}let h=n===0?"p":`h${n}`,g=(0,Ml.useBlockProps)({className:!c&&!u&&"wp-block-site-title__placeholder"}),v=c?(0,Wo.jsx)(h,{...g,children:(0,Wo.jsx)(Ml.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,Hc.__)("Site title text"),placeholder:(0,Hc.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,WT.createBlock)((0,WT.getDefaultBlockName)()))})}):(0,Wo.jsx)(h,{...g,children:l?(0,Wo.jsx)("a",{href:"#site-title-pseudo-link",onClick:b=>b.preventDefault(),children:(0,$z.decodeEntities)(u)||(0,Hc.__)("Site Title placeholder")}):(0,Wo.jsx)("span",{children:(0,$z.decodeEntities)(u)||(0,Hc.__)("Site Title placeholder")})});return(0,Wo.jsxs)(Wo.Fragment,{children:[d==="default"&&(0,Wo.jsx)(Ml.BlockControls,{group:"block",children:(0,Wo.jsx)(Ml.HeadingLevelDropdown,{value:n,options:i,onChange:b=>r({level:b})})}),(0,Wo.jsx)(Ml.InspectorControls,{children:(0,Wo.jsxs)(Cm.__experimentalToolsPanel,{label:(0,Hc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:m,children:[(0,Wo.jsx)(Cm.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Hc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,Wo.jsx)(Cm.ToggleControl,{label:(0,Hc.__)("Make title link to home"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,Wo.jsx)(Cm.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,Hc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,Wo.jsx)(Cm.ToggleControl,{label:(0,Hc.__)("Open in new tab"),onChange:b=>r({linkTarget:b?"_blank":"_self"}),checked:s==="_blank"})})]})}),v]})}var cBe={attributes:{textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},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}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},uBe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},mde=[cBe,uBe];var dde=a($(),1),pBe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,dde.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},fde=pBe;var{name:hde}=UT,gde={icon:VB,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:pde,transforms:fde,deprecated:mde},mBe=()=>R({name:hde,metadata:UT,settings:gde});var GV={};K(GV,{init:()=>bBe,metadata:()=>H8,name:()=>vfe,settings:()=>j8});var UV=a(I(),1);var gfe=a($(),1);var H0=a(Ks(),1),F8=a(F(),1),Bn=a(B(),1),Ff=a(H(),1),go=a(O(),1),pfe=a(ge(),1),oi=a(I(),1);var mfe=a($(),1);var jV=a(I(),1);var $T=a(A(),1),Zz=a(y(),1),vde=()=>(0,Zz.jsx)($T.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Zz.jsx)($T.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 qT=a(A(),1),Kz=a(y(),1),bde=()=>(0,Kz.jsx)(qT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Kz.jsx)(qT.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var ZT=a(A(),1),Yz=a(y(),1),yde=()=>(0,Yz.jsx)(ZT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Yz.jsx)(ZT.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 KT=a(A(),1),Qz=a(y(),1),_de=()=>(0,Qz.jsx)(KT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Qz.jsx)(KT.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 YT=a(A(),1),Xz=a(y(),1),g2=()=>(0,Xz.jsx)(YT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Xz.jsx)(YT.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 QT=a(A(),1),Jz=a(y(),1),xde=()=>(0,Jz.jsx)(QT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Jz.jsx)(QT.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 XT=a(A(),1),eV=a(y(),1),kde=()=>(0,eV.jsx)(XT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eV.jsx)(XT.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 JT=a(A(),1),tV=a(y(),1),wde=()=>(0,tV.jsx)(JT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tV.jsx)(JT.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 e8=a(A(),1),rV=a(y(),1),Cde=()=>(0,rV.jsx)(e8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rV.jsx)(e8.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 t8=a(A(),1),oV=a(y(),1),Sde=()=>(0,oV.jsx)(t8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oV.jsx)(t8.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 r8=a(A(),1),aV=a(y(),1),Tde=()=>(0,aV.jsx)(r8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aV.jsx)(r8.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 o8=a(A(),1),nV=a(y(),1),Pde=()=>(0,nV.jsx)(o8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nV.jsx)(o8.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 a8=a(A(),1),iV=a(y(),1),Bde=()=>(0,iV.jsx)(a8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iV.jsx)(a8.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 n8=a(A(),1),lV=a(y(),1),Ede=()=>(0,lV.jsx)(n8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lV.jsx)(n8.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 i8=a(A(),1),sV=a(y(),1),Nde=()=>(0,sV.jsx)(i8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sV.jsx)(i8.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 l8=a(A(),1),cV=a(y(),1),Ide=()=>(0,cV.jsx)(l8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cV.jsx)(l8.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 s8=a(A(),1),uV=a(y(),1),Dde=()=>(0,uV.jsx)(s8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uV.jsx)(s8.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 c8=a(A(),1),pV=a(y(),1),Lde=()=>(0,pV.jsx)(c8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pV.jsx)(c8.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 u8=a(A(),1),mV=a(y(),1),Rde=()=>(0,mV.jsx)(u8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mV.jsx)(u8.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 p8=a(A(),1),dV=a(y(),1),Mde=()=>(0,dV.jsx)(p8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dV.jsx)(p8.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 m8=a(A(),1),fV=a(y(),1),Ade=()=>(0,fV.jsx)(m8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fV.jsx)(m8.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 d8=a(A(),1),hV=a(y(),1),zde=()=>(0,hV.jsx)(d8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hV.jsx)(d8.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 f8=a(A(),1),gV=a(y(),1),Vde=()=>(0,gV.jsx)(f8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gV.jsx)(f8.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 h8=a(A(),1),vV=a(y(),1),Ode=()=>(0,vV.jsx)(h8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vV.jsx)(h8.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 g8=a(A(),1),bV=a(y(),1),Fde=()=>(0,bV.jsx)(g8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bV.jsx)(g8.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 v8=a(A(),1),yV=a(y(),1),Hde=()=>(0,yV.jsx)(v8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yV.jsx)(v8.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 b8=a(A(),1),_V=a(y(),1),jde=()=>(0,_V.jsx)(b8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_V.jsx)(b8.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 y8=a(A(),1),xV=a(y(),1),Ude=()=>(0,xV.jsx)(y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xV.jsx)(y8.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 _8=a(A(),1),kV=a(y(),1),Gde=()=>(0,kV.jsx)(_8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kV.jsx)(_8.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 x8=a(A(),1),wV=a(y(),1),Wde=()=>(0,wV.jsx)(x8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wV.jsx)(x8.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 k8=a(A(),1),CV=a(y(),1),$de=()=>(0,CV.jsx)(k8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CV.jsx)(k8.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 w8=a(A(),1),SV=a(y(),1),qde=()=>(0,SV.jsx)(w8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SV.jsx)(w8.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 C8=a(A(),1),TV=a(y(),1),Zde=()=>(0,TV.jsx)(C8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TV.jsx)(C8.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 S8=a(A(),1),PV=a(y(),1),Kde=()=>(0,PV.jsx)(S8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PV.jsx)(S8.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 T8=a(A(),1),BV=a(y(),1),Yde=()=>(0,BV.jsx)(T8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BV.jsx)(T8.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 P8=a(A(),1),EV=a(y(),1),Qde=()=>(0,EV.jsx)(P8.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,EV.jsx)(P8.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 B8=a(A(),1),NV=a(y(),1),Xde=()=>(0,NV.jsx)(B8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NV.jsx)(B8.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 E8=a(A(),1),IV=a(y(),1),Jde=()=>(0,IV.jsx)(E8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IV.jsx)(E8.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 N8=a(A(),1),DV=a(y(),1),efe=()=>(0,DV.jsx)(N8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DV.jsx)(N8.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 I8=a(A(),1),LV=a(y(),1),tfe=()=>(0,LV.jsx)(I8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LV.jsx)(I8.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 D8=a(A(),1),RV=a(y(),1),rfe=()=>(0,RV.jsx)(D8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RV.jsx)(D8.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 L8=a(A(),1),MV=a(y(),1),ofe=()=>(0,MV.jsx)(L8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MV.jsx)(L8.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 R8=a(A(),1),AV=a(y(),1),afe=()=>(0,AV.jsx)(R8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AV.jsx)(R8.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 M8=a(A(),1),zV=a(y(),1),nfe=()=>(0,zV.jsx)(M8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zV.jsx)(M8.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 A8=a(A(),1),VV=a(y(),1),ife=()=>(0,VV.jsx)(A8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,VV.jsx)(A8.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 z8=a(A(),1),OV=a(y(),1),lfe=()=>(0,OV.jsx)(z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OV.jsx)(z8.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 V8=a(A(),1),FV=a(y(),1),sfe=()=>(0,FV.jsx)(V8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FV.jsx)(V8.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 O8=a(A(),1),HV=a(y(),1),cfe=()=>(0,HV.jsx)(O8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HV.jsx)(O8.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 ufe(e){return e?.name?{icon:e?.icon??g2,label:e?.title??(0,jV.__)("Social Icon")}:{icon:g2,label:(0,jV.__)("Social Icon")}}var rr=a(y(),1),dBe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:n})=>{let{removeBlock:i}=(0,F8.useDispatch)(Bn.store);return(0,rr.jsx)(Bn.URLPopover,{anchor:o,"aria-label":(0,oi.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,rr.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),o?.focus()},children:(0,rr.jsx)("div",{className:"block-editor-url-input",children:(0,rr.jsx)(Bn.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,oi.__)("Enter social link"),label:(0,oi.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![H0.BACKSPACE,H0.DELETE].includes(l.keyCode)||i(n)},suffix:(0,rr.jsx)(go.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,rr.jsx)(go.Button,{icon:PB,label:(0,oi.__)("Apply"),type:"submit",size:"small"})})})})})})},fBe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,p=Z(),{showLabels:m,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:g}=t,[v,b]=(0,Ff.useState)(!1),_=C("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}),[k,x]=(0,Ff.useState)(null),w=(0,Bn.useBlockEditingMode)()==="contentOnly",{activeVariation:S}=(0,F8.useSelect)(E=>{let{getActiveBlockVariation:M}=E(mfe.store);return{activeVariation:M(i,e)}},[i,e]),{icon:T,label:N}=ufe(S),D=c.trim()===""?N:c,L=(0,Ff.useRef)(),P=(0,Bn.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,pfe.useMergeRefs)([x,L]),onClick:()=>b(!0),onKeyDown:E=>{E.keyCode===H0.ENTER&&(E.preventDefault(),b(!0))}});return(0,rr.jsxs)(rr.Fragment,{children:[w&&m&&(0,rr.jsx)(Bn.BlockControls,{group:"other",children:(0,rr.jsx)(go.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:E,onToggle:M})=>(0,rr.jsx)(go.ToolbarButton,{onClick:M,"aria-haspopup":"true","aria-expanded":E,children:(0,oi.__)("Text")}),renderContent:()=>(0,rr.jsx)(go.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,oi.__)("Text"),help:(0,oi.__)("Provide a text label or use the default."),value:c,onChange:E=>o({label:E}),placeholder:N})})}),(0,rr.jsx)(Bn.InspectorControls,{children:(0,rr.jsx)(go.__experimentalToolsPanel,{label:(0,oi.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:p,children:(0,rr.jsx)(go.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,oi.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,rr.jsx)(go.TextControl,{label:(0,oi.__)("Text"),help:(0,oi.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:E=>o({label:E}),placeholder:N})})})}),(0,rr.jsx)(Bn.InspectorControls,{group:"advanced",children:(0,rr.jsx)(go.TextControl,{label:(0,oi.__)("Link relation"),help:(0,Ff.createInterpolateElement)((0,oi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,rr.jsx)(go.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:E=>o({rel:E})})}),(0,rr.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:g},children:[(0,rr.jsxs)("button",{"aria-haspopup":"dialog",...P,role:"button",children:[(0,rr.jsx)(go.Icon,{icon:T}),(0,rr.jsx)("span",{className:C("wp-block-social-link-label",{"screen-reader-text":!m}),children:D})]}),r&&v&&(0,rr.jsx)(dBe,{url:l,setAttributes:o,setPopover:b,popoverAnchor:k,clientId:n})]})]})},dfe=fBe;var H8={$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 Fe=a(I(),1);var ffe=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Fe._x)("WordPress","social link block variation name"),icon:ife},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Fe._x)("500px","social link block variation name"),icon:Ede},{name:"amazon",attributes:{service:"amazon"},title:(0,Fe._x)("Amazon","social link block variation name"),icon:vde},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Fe._x)("Bandcamp","social link block variation name"),icon:bde},{name:"behance",attributes:{service:"behance"},title:(0,Fe._x)("Behance","social link block variation name"),icon:yde},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Fe._x)("Bluesky","social link block variation name"),icon:_de},{name:"chain",attributes:{service:"chain"},title:(0,Fe._x)("Link","social link block variation name"),icon:g2},{name:"codepen",attributes:{service:"codepen"},title:(0,Fe._x)("CodePen","social link block variation name"),icon:xde},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Fe._x)("DeviantArt","social link block variation name"),icon:kde},{name:"discord",attributes:{service:"discord"},title:(0,Fe._x)("Discord","social link block variation name"),icon:wde},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Fe._x)("Dribbble","social link block variation name"),icon:Cde},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Fe._x)("Dropbox","social link block variation name"),icon:Sde},{name:"etsy",attributes:{service:"etsy"},title:(0,Fe._x)("Etsy","social link block variation name"),icon:Tde},{name:"facebook",attributes:{service:"facebook"},title:(0,Fe._x)("Facebook","social link block variation name"),icon:Pde},{name:"feed",attributes:{service:"feed"},title:(0,Fe._x)("RSS Feed","social link block variation name"),icon:Bde},{name:"flickr",attributes:{service:"flickr"},title:(0,Fe._x)("Flickr","social link block variation name"),icon:Nde},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Fe._x)("Foursquare","social link block variation name"),icon:Ide},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Fe._x)("Goodreads","social link block variation name"),icon:Dde},{name:"google",attributes:{service:"google"},title:(0,Fe._x)("Google","social link block variation name"),icon:Lde},{name:"github",attributes:{service:"github"},title:(0,Fe._x)("GitHub","social link block variation name"),icon:Rde},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Fe._x)("Gravatar","social link block variation name"),icon:Mde},{name:"instagram",attributes:{service:"instagram"},title:(0,Fe._x)("Instagram","social link block variation name"),icon:Ade},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Fe._x)("Last.fm","social link block variation name"),icon:zde},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Fe._x)("LinkedIn","social link block variation name"),icon:Vde},{name:"mail",attributes:{service:"mail"},title:(0,Fe._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:Ode},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Fe._x)("Mastodon","social link block variation name"),icon:Fde},{name:"meetup",attributes:{service:"meetup"},title:(0,Fe._x)("Meetup","social link block variation name"),icon:Hde},{name:"medium",attributes:{service:"medium"},title:(0,Fe._x)("Medium","social link block variation name"),icon:jde},{name:"patreon",attributes:{service:"patreon"},title:(0,Fe._x)("Patreon","social link block variation name"),icon:Ude},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Fe._x)("Pinterest","social link block variation name"),icon:Gde},{name:"pocket",attributes:{service:"pocket"},title:(0,Fe._x)("Pocket","social link block variation name"),icon:Wde},{name:"reddit",attributes:{service:"reddit"},title:(0,Fe._x)("Reddit","social link block variation name"),icon:$de},{name:"skype",attributes:{service:"skype"},title:(0,Fe._x)("Skype","social link block variation name"),icon:qde,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Fe._x)("Snapchat","social link block variation name"),icon:Zde},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Fe._x)("SoundCloud","social link block variation name"),icon:Kde},{name:"spotify",attributes:{service:"spotify"},title:(0,Fe._x)("Spotify","social link block variation name"),icon:Yde},{name:"telegram",attributes:{service:"telegram"},title:(0,Fe._x)("Telegram","social link block variation name"),icon:Qde},{name:"threads",attributes:{service:"threads"},title:(0,Fe._x)("Threads","social link block variation name"),icon:Xde},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Fe._x)("TikTok","social link block variation name"),icon:Jde},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Fe._x)("Tumblr","social link block variation name"),icon:efe},{name:"twitch",attributes:{service:"twitch"},title:(0,Fe._x)("Twitch","social link block variation name"),icon:tfe},{name:"twitter",attributes:{service:"twitter"},title:(0,Fe._x)("Twitter","social link block variation name"),icon:rfe},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Fe._x)("Vimeo","social link block variation name"),icon:ofe},{name:"vk",attributes:{service:"vk"},title:(0,Fe._x)("VK","social link block variation name"),icon:afe},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Fe._x)("WhatsApp","social link block variation name"),icon:nfe},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Fe._x)("X","social link block variation name"),icon:lfe},{name:"yelp",attributes:{service:"yelp"},title:(0,Fe._x)("Yelp","social link block variation name"),icon:sfe},{name:"youtube",attributes:{service:"youtube"},title:(0,Fe._x)("YouTube","social link block variation name"),icon:cfe}];ffe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var hfe=ffe;var{fieldsKey:gBe,formKey:vBe}=U(gfe.privateApis),{name:vfe}=H8,j8={icon:_v,edit:dfe,variations:hfe};window.__experimentalContentOnlyInspectorFields&&(j8[gBe]=[{id:"link",label:(0,UV.__)("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,UV.__)("Label"),type:"text"}],j8[vBe]={fields:["link","label"]});var bBe=()=>R({name:vfe,metadata:H8,settings:j8});var $V={};K($V,{init:()=>SBe,metadata:()=>G8,name:()=>Cfe,settings:()=>Sfe});var U8=a(B(),1),WV=a(y(),1),yBe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",o=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(o,"").trim()},i=t?.match(o)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),n},_Be=[{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:yBe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:n}}=e,i=C(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,WV.jsx)("ul",{...U8.useBlockProps.save({className:i,style:l}),children:(0,WV.jsx)(U8.InnerBlocks.Content,{})})}}],bfe=_Be;var yfe=a(H(),1),Eo=a(B(),1),Rs=a(O(),1),En=a(I(),1),_fe=a(F(),1);var ba=a(y(),1),xBe=[{label:(0,En.__)("Default"),value:""},{label:(0,En.__)("Small"),value:"has-small-icon-size"},{label:(0,En.__)("Normal"),value:"has-normal-icon-size"},{label:(0,En.__)("Large"),value:"has-large-icon-size"},{label:(0,En.__)("Huge"),value:"has-huge-icon-size"}];function kBe(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:p,openInNewTab:m,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:g,hasSelectedStyleState:v}=(0,_fe.useSelect)(L=>{let{getBlockCount:P,hasSelectedInnerBlock:E,hasSelectedStyleState:M}=U(L(Eo.store));return{hasSocialIcons:P(t)>0,hasSelectedChild:E(t),hasSelectedStyleState:M(t)}},[t]),b=i||g,_=r.className?.includes("is-style-logos-only"),k=Z();(0,yfe.useEffect)(()=>{if(_){let L;return l(P=>(L={iconBackgroundColor:P.iconBackgroundColor,iconBackgroundColorValue:P.iconBackgroundColorValue,customIconBackgroundColor:P.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...L})}},[_,l]);let x=C(f,{"has-visible-labels":d,"has-icon-color":n.color||p,"has-icon-background-color":o.color||u}),w=(0,Eo.useBlockProps)({className:x}),S=(0,Eo.useInnerBlocksProps)(w,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||b?Eo.InnerBlocks.ButtonBlockAppender:void 0}),T=[{value:n.color||p,onChange:L=>{c(L),l({iconColorValue:L})},label:(0,En.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];_||T.push({value:o.color||u,onChange:L=>{s(L),l({iconBackgroundColorValue:L})},label:(0,En.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let N=(0,Eo.__experimentalUseMultipleOriginColorsAndGradients)(),D=N.hasColorsOrGradients&&!v;return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsx)(Eo.InspectorControls,{children:(0,ba.jsxs)(Rs.__experimentalToolsPanel,{label:(0,En.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:k,children:[(0,ba.jsx)(Rs.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,En.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,ba.jsx)(Rs.SelectControl,{label:(0,En.__)("Icon size"),onChange:L=>{l({size:L===""?void 0:L})},value:f??"",options:xBe})}),(0,ba.jsx)(Rs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,En.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,ba.jsx)(Rs.ToggleControl,{label:(0,En.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,ba.jsx)(Rs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,En.__)("Open links in new tab"),hasValue:()=>!!m,onDeselect:()=>l({openInNewTab:!1}),children:(0,ba.jsx)(Rs.ToggleControl,{label:(0,En.__)("Open links in new tab"),checked:m,onChange:()=>l({openInNewTab:!m})})})]})}),D&&(0,ba.jsxs)(Eo.InspectorControls,{group:"color",children:[T.map(({onChange:L,label:P,value:E,resetAllFilter:M})=>(0,ba.jsx)(Eo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:E,label:P,onColorChange:L,isShownByDefault:!0,resetAllFilter:M,enableAlpha:!0,clearable:!0}],panelId:t,...N},`social-links-color-${P}`)),!_&&(0,ba.jsx)(Eo.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})]}),(0,ba.jsx)("ul",{...S})]})}var wBe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},xfe=(0,Eo.withColors)(wBe)(kBe);var G8={$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 W8=a(B(),1),kfe=a(y(),1);function wfe(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:n}}=e,i=C(n,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),l=W8.useBlockProps.save({className:i}),s=W8.useInnerBlocksProps.save(l);return(0,kfe.jsx)("ul",{...s})}var{name:Cfe}=G8,Sfe={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:_v,edit:xfe,save:wfe,deprecated:bfe},SBe=()=>R({name:Cfe,metadata:G8,settings:Sfe});var qV={};K(qV,{init:()=>DBe,metadata:()=>q8,name:()=>Ofe,settings:()=>Ffe});var Tfe=a(B(),1),Pfe=a(y(),1),TBe=[{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,Pfe.jsx)("div",{...Tfe.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],Bfe=TBe;var ya=a(B(),1),Lfe=a(O(),1),U0=a(H(),1),$8=a(F(),1);var j0=a(I(),1),jc=a(B(),1),Al=a(O(),1),Nfe=a(ge(),1);var v2=0;var ai=a(y(),1),{useSpacingSizes:PBe}=U(jc.privateApis);function Efe({label:e,onChange:t,isResizing:r,value:o=""}){let n=(0,Nfe.useInstanceId)(Al.__experimentalUnitControl,"block-spacer-height-input"),i=PBe(),[l]=(0,jc.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,Al.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,p]=(0,Al.__experimentalParseQuantityAndUnitFromRawValue)(o),m=(0,jc.isValueSpacingPreset)(o)?o:[u,r?"px":p].join("");return(0,ai.jsx)(ai.Fragment,{children:i?.length<2?(0,ai.jsx)(Al.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:v2,onChange:t,value:m,units:c,label:e}):(0,ai.jsx)("div",{className:"tools-panel-item-spacing",children:(0,ai.jsx)(jc.__experimentalSpacingSizesControl,{values:{all:m},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function Ife({setAttributes:e,orientation:t,height:r,width:o,isResizing:n}){let i=Z();return(0,ai.jsx)(jc.InspectorControls,{children:(0,ai.jsxs)(Al.__experimentalToolsPanel,{label:(0,j0.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,ai.jsx)(Al.__experimentalToolsPanelItem,{label:(0,j0.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,ai.jsx)(Efe,{label:(0,j0.__)("Width"),value:o,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,ai.jsx)(Al.__experimentalToolsPanelItem,{label:(0,j0.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,ai.jsx)(Efe,{label:(0,j0.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:n})})]})})}var zl=a(y(),1),{useSpacingSizes:BBe}=U(ya.privateApis),Dfe=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=p=>e==="horizontal"?p.clientWidth:p.clientHeight,u=p=>`${c(p)}px`;return(0,zl.jsx)(Lfe.ResizableBox,{className:C("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(p,m,d)=>{let f=u(d);t(f),r(f)},onResize:(p,m,d)=>{r(u(d)),i||l(!0)},onResizeStop:(p,m,d)=>{let f=c(d);o(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},EBe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,$8.useSelect)(re=>re(ya.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:p,default:{type:m}={}}=i||{},d=p==="flex"||!p&&m==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:g,style:v={}}=e,{layout:b={}}=v,{selfStretch:_,flexSize:k}=b,x=BBe(),[w,S]=(0,U0.useState)(!1),[T,N]=(0,U0.useState)(null),[D,L]=(0,U0.useState)(null),P=()=>o(!1),E=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:M}=(0,$8.useDispatch)(ya.store),z=re=>{E(),d&&r({style:{...v,layout:{...b,flexSize:re,selfStretch:"fixed"}}}),r({height:re}),N(null)},j=re=>{E(),d&&r({style:{...v,layout:{...b,flexSize:re,selfStretch:"fixed"}}}),r({width:re}),L(null)},q=()=>{if(!d)return T||(0,ya.getSpacingPresetCssVar)(h)||void 0},G=()=>{if(!d)return D||(0,ya.getSpacingPresetCssVar)(g)||void 0},W=f==="horizontal"?D||k:T||k,V={height:f==="horizontal"?24:q(),width:f==="horizontal"?G():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?W:void 0,flexGrow:d&&w?0:void 0},Q=re=>re==="horizontal"?(0,zl.jsx)(Dfe,{minWidth:v2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:re,onResizeStart:P,onResize:L,onResizeStop:j,isSelected:t,isResizing:w,setIsResizing:S}):(0,zl.jsx)(zl.Fragment,{children:(0,zl.jsx)(Dfe,{minHeight:v2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:re,onResizeStart:P,onResize:N,onResizeStop:z,isSelected:t,isResizing:w,setIsResizing:S})});(0,U0.useEffect)(()=>{let re=J=>{M(),r(J)};if(d&&_!=="fill"&&_!=="fit"&&k===void 0)if(f==="horizontal"){let J=(0,ya.getCustomValueFromPreset)(g,x)||(0,ya.getCustomValueFromPreset)(h,x)||"100px";re({width:"0px",style:{...v,layout:{...b,flexSize:J,selfStretch:"fixed"}}})}else{let J=(0,ya.getCustomValueFromPreset)(h,x)||(0,ya.getCustomValueFromPreset)(g,x)||"100px";re({height:"0px",style:{...v,layout:{...b,flexSize:J,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?re(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||k)&&re({...f==="horizontal"?{width:k}:{height:k},style:{...v,layout:{...b,flexSize:void 0,selfStretch:void 0}}})},[v,k,h,f,d,b,_,r,x,g,M]);let Y=(0,ya.useBlockEditingMode)();return(0,zl.jsxs)(zl.Fragment,{children:[(0,zl.jsx)("div",{...(0,ya.useBlockProps)({style:V,className:C(l,{"custom-sizes-disabled":s})}),children:Y==="default"&&Q(f)}),!d&&(0,zl.jsx)(Ife,{setAttributes:r,height:T||h,width:D||g,orientation:f,isResizing:w})]})},Rfe=EBe;var q8={$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 Mfe=a($(),1),IBe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,Mfe.createBlock)("core/separator",{anchor:e||void 0})}]},Afe=IBe;var b2=a(B(),1),zfe=a(y(),1);function Vfe({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:n}={}}=o||{},i=n==="fill"||n==="fit"?void 0:t;return(0,zfe.jsx)("div",{...b2.useBlockProps.save({style:{height:(0,b2.getSpacingPresetCssVar)(i),width:(0,b2.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:Ofe}=q8,Ffe={icon:tN,transforms:Afe,edit:Rfe,save:Vfe,deprecated:Bfe},DBe=()=>R({name:Ofe,metadata:q8,settings:Ffe});var YV={};K(YV,{init:()=>MBe,metadata:()=>t7,name:()=>Qfe,settings:()=>Xfe});var $fe=a(I(),1),Hf=a(B(),1),X8=a(F(),1),qfe=a(H(),1);var Q8=a(B(),1),$0=a(O(),1),Y8=a(I(),1),Gfe=a(F(),1);var KV=a(I(),1),K8=a(B(),1),y2=a(O(),1),Ufe=a(F(),1);var Hfe=a(I(),1),jfe=a($(),1),ZV=a(B(),1),Z8=a(F(),1);function G0(e){let t=(0,Z8.useRegistry)(),{insertBlock:r,removeBlock:o,moveBlocksToPosition:n,updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:l}=(0,Z8.useDispatch)(ZV.store),s=()=>{let{getBlocks:m,getBlockAttributes:d}=t.select(ZV.store),f=e?d(e):void 0,h=e?m(e).find(g=>g.name==="core/tab-panels"):void 0;return{tabPanelsClientId:h?.clientId??null,tabPanelBlocks:h?.innerBlocks??[],activeIndex:f?.editorActiveTabIndex??f?.activeTabIndex??0}};return{insertTab:m=>{let{tabPanelsClientId:d,tabPanelBlocks:f}=s();if(!d)return;let h=m??f.length;r((0,jfe.createBlock)("core/tab-panel",{label:(0,Hfe.__)("Tab")}),h,d,!1),l(),i(e,{editorActiveTabIndex:h})},removeTab:m=>{let{tabPanelBlocks:d,activeIndex:f}=s(),h=d.length;if(h<=1)return;let g=m??f,v=d[g];if(!v)return;let b=g>=h-1?h-2:g;l(),i(e,{editorActiveTabIndex:b}),o(v.clientId,!1)},moveTab:m=>{let{tabPanelsClientId:d,tabPanelBlocks:f,activeIndex:h}=s();if(!d)return;let g=h+m,v=f[h];!v||g<0||g>=f.length||(l(),i(e,{editorActiveTabIndex:g}),n([v.clientId],d,d,g))}}}var W0=a(y(),1);function Sm({tabsClientId:e}){let{insertTab:t,removeTab:r}=G0(e),o=(0,Ufe.useSelect)(n=>e?(n(K8.store).getBlocks(e).find(l=>l.name==="core/tab-panels")?.innerBlocks.length??0)<=1:!0,[e]);return(0,W0.jsx)(K8.BlockControls,{group:"other",children:(0,W0.jsxs)(y2.ToolbarGroup,{children:[(0,W0.jsx)(y2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>t(),text:(0,KV.__)("Add tab")}),(0,W0.jsx)(y2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>r(),text:(0,KV.__)("Remove tab"),disabled:o})]})})}var Uc=a(y(),1);function Wfe({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,Gfe.useDispatch)(Q8.store),n=Z();return(0,Uc.jsxs)(Uc.Fragment,{children:[(0,Uc.jsx)(Sm,{tabsClientId:e}),(0,Uc.jsx)(Q8.InspectorControls,{children:(0,Uc.jsx)($0.__experimentalToolsPanel,{label:(0,Y8.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,Uc.jsx)($0.__experimentalToolsPanelItem,{label:(0,Y8.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,Uc.jsx)($0.CheckboxControl,{label:(0,Y8.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var J8=a(y(),1),LBe=[["core/paragraph",{placeholder:(0,$fe.__)("Type / to choose a block")}]];function Zfe({clientId:e,isSelected:t}){let{activeTabIndex:r,editorActiveTabIndex:o,blockIndex:n,hasInnerBlocksSelected:i,tabsClientId:l}=(0,X8.useSelect)(g=>{let{getBlockRootClientId:v,getBlockIndex:b,hasSelectedInnerBlock:_,getBlockAttributes:k}=g(Hf.store),x=v(e),w=v(x),S=k(w)??{},T=b(e),N=_(e,!0);return{activeTabIndex:S.activeTabIndex,editorActiveTabIndex:S.editorActiveTabIndex,blockIndex:T,hasInnerBlocksSelected:N,tabsClientId:w}},[e]),s=o??r,{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,X8.useDispatch)(Hf.store);(0,qfe.useEffect)(()=>{(t||i)&&l&&s!==n&&(u(),c(l,{editorActiveTabIndex:n}))},[t,i,l,s,n,c,u]);let p=s===n,m=r===n,d=t||i||p,f=(0,Hf.useBlockProps)({hidden:!d,tabIndex:d?0:-1}),h=(0,Hf.useInnerBlocksProps)(f,{template:LBe});return(0,J8.jsxs)("section",{...h,children:[(0,J8.jsx)(Wfe,{tabsClientId:l,blockIndex:n,isDefaultTab:m}),d&&h.children]})}var e7=a(B(),1),Kfe=a(y(),1);function Yfe(){let e=e7.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=e7.useInnerBlocksProps.save(e);return(0,Kfe.jsx)("section",{...t})}var t7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tab-panel",title:"Tab Panel",description:"Content for a tab in a tabbed interface.",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tab-panels"],usesContext:["core/tabs-id"],supports:{anchor:!0,html:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,spacing:{blockGap:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0}},visibility:!1},providesContext:{"core/tab-label":"label"},style:"wp-block-tab-panel"};var{name:Qfe}=t7,Xfe={icon:TN,edit:Zfe,save:Yfe},MBe=()=>R({name:Qfe,metadata:t7,settings:Xfe});var XV={};K(XV,{init:()=>VBe,metadata:()=>o7,name:()=>ohe,settings:()=>ahe});var q0=a(B(),1),Jfe=a(F(),1),QV=a(I(),1);var jf=a(y(),1),ABe=[["core/tab-panel",{label:(0,QV.__)("Tab")}],["core/tab-panel",{label:(0,QV.__)("Tab")}]];function ehe({clientId:e}){let t=(0,q0.useBlockProps)(),r=(0,q0.useInnerBlocksProps)(t,{template:ABe,templateLock:!1,renderAppender:!1}),o=(0,Jfe.useSelect)(n=>n(q0.store).getBlockRootClientId(e),[e]);return(0,jf.jsxs)(jf.Fragment,{children:[(0,jf.jsx)(Sm,{tabsClientId:o}),(0,jf.jsx)("div",{...r})]})}var r7=a(B(),1),the=a(y(),1);function rhe(){let e=r7.useBlockProps.save(),t=r7.useInnerBlocksProps.save(e);return(0,the.jsx)("div",{...t})}var o7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tab-panels",title:"Tab Panels",description:"Container for tab panel content in a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tab-panel"],supports:{html:!1,visibility:!1,lock:!1,color:{background:!0,text:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var{name:ohe}=o7,ahe={icon:j1,edit:ehe,save:rhe},VBe=()=>R({name:ohe,metadata:o7,settings:ahe});var sO={};K(sO,{init:()=>tEe,metadata:()=>a7,name:()=>vhe,settings:()=>bhe});var Gc=a(I(),1);var ir=a(B(),1),st=a(y(),1),nhe={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},JV={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"}},OBe={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:JV}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:JV}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:JV}}}},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:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,ir.__experimentalGetColorClassesAndStyles)(e),c=(0,ir.__experimentalGetBorderClassesAndStyles)(e),u=C(s.className,c.className,{"has-fixed-layout":t}),p=!ir.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,st.jsx)(h,{children:f.map(({cells:g},v)=>(0,st.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x,colspan:w,rowspan:S},T)=>{let N=C({[`has-text-align-${x}`]:x});return(0,st.jsx)(ir.RichText.Content,{className:N||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0,colSpan:w,rowSpan:S},T)})},v))})};return(0,st.jsxs)("figure",{...ir.useBlockProps.save(),children:[(0,st.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,st.jsx)(m,{type:"head",rows:r}),(0,st.jsx)(m,{type:"body",rows:o}),(0,st.jsx)(m,{type:"foot",rows:n})]}),p&&(0,st.jsx)(ir.RichText.Content,{tagName:"figcaption",value:i,className:(0,ir.__experimentalGetElementClassName)("caption")})]})}},eO={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"}},FBe={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:eO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:eO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:eO}}}},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:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,ir.__experimentalGetColorClassesAndStyles)(e),c=(0,ir.__experimentalGetBorderClassesAndStyles)(e),u=C(s.className,c.className,{"has-fixed-layout":t}),p=!ir.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,st.jsx)(h,{children:f.map(({cells:g},v)=>(0,st.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x},w)=>{let S=C({[`has-text-align-${x}`]:x});return(0,st.jsx)(ir.RichText.Content,{className:S||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0},w)})},v))})};return(0,st.jsxs)("figure",{...ir.useBlockProps.save(),children:[(0,st.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,st.jsx)(m,{type:"head",rows:r}),(0,st.jsx)(m,{type:"body",rows:o}),(0,st.jsx)(m,{type:"foot",rows:n})]}),p&&(0,st.jsx)(ir.RichText.Content,{tagName:"figcaption",value:i})]})}},tO={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"}},HBe={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:tO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:tO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:tO}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i,caption:l}=e;if(!r.length&&!o.length&&!n.length)return null;let c=(0,ir.getColorClassName)("background-color",i),u=C(c,{"has-fixed-layout":t,"has-background":!!c}),p=!ir.RichText.isEmpty(l),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,st.jsx)(h,{children:f.map(({cells:g},v)=>(0,st.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x},w)=>{let S=C({[`has-text-align-${x}`]:x});return(0,st.jsx)(ir.RichText.Content,{className:S||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0},w)})},v))})};return(0,st.jsxs)("figure",{...ir.useBlockProps.save(),children:[(0,st.jsxs)("table",{className:u===""?void 0:u,children:[(0,st.jsx)(m,{type:"head",rows:r}),(0,st.jsx)(m,{type:"body",rows:o}),(0,st.jsx)(m,{type:"foot",rows:n})]}),p&&(0,st.jsx)(ir.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in nhe&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:nhe[e.backgroundColor]}}})},rO={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},jBe={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:rO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:rO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:rO}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,ir.getColorClassName)("background-color",i),c=C(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:p,rows:m})=>{if(!m.length)return null;let d=`t${p}`;return(0,st.jsx)(d,{children:m.map(({cells:f},h)=>(0,st.jsx)("tr",{children:f.map(({content:g,tag:v,scope:b},_)=>(0,st.jsx)(ir.RichText.Content,{tagName:v,value:g,scope:v==="th"?b:void 0},_))},h))})};return(0,st.jsxs)("table",{className:c,children:[(0,st.jsx)(u,{type:"head",rows:r}),(0,st.jsx)(u,{type:"body",rows:o}),(0,st.jsx)(u,{type:"foot",rows:n})]})}},ihe=[OBe,FBe,HBe,jBe];var ni=a(H(),1),No=a(B(),1),Tt=a(I(),1),ro=a(O(),1);var UBe=["align"];function lhe({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function GBe(e){if(!Tm(e.head))return e.head[0];if(!Tm(e.body))return e.body[0];if(!Tm(e.foot))return e.foot[0]}function she(e,t,r){let{sectionName:o,rowIndex:n,columnIndex:i}=t;return e[o]?.[n]?.cells?.[i]?.[r]}function oO(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((p,m)=>WBe({sectionName:l,columnIndex:m,rowIndex:u},t)?r(p):p)})]))}function WBe(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 aO(e,{sectionName:t,rowIndex:r,columnCount:o}){let n=GBe(e),i=o===void 0?n?.cells?.length:o;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(([p])=>UBe.includes(p))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function che(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,n)=>n!==r)}}function uhe(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,n])=>Tm(n)?[o,n]:[o,n.map(i=>mhe(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function phe(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,n])=>Tm(n)?[o,n]:[o,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function nO(e,t){if(!Tm(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return aO(e,{sectionName:t,rowIndex:0,columnCount:r})}function Tm(e){return!e||!e.length||e.every(mhe)}function mhe(e){return!(e.cells&&e.cells.length)}var vt=a(y(),1),$Be=[{icon:A9,title:(0,Tt.__)("Align column left"),align:"left"},{icon:R9,title:(0,Tt.__)("Align column center"),align:"center"},{icon:F9,title:(0,Tt.__)("Align column right"),align:"right"}],qBe={head:(0,Tt.__)("Header cell text"),body:(0,Tt.__)("Body cell text"),foot:(0,Tt.__)("Footer cell text")},ZBe={head:(0,Tt._x)("Header label","table header"),foot:(0,Tt._x)("Footer label","table footer")};function KBe({name:e,...t}){let r=`t${e}`;return(0,vt.jsx)(r,{...t})}function YBe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,ni.useState)(2),[u,p]=(0,ni.useState)(2),[m,d]=(0,ni.useState)(),f=(0,No.__experimentalUseColorProps)(e),h=(0,No.__experimentalUseBorderProps)(e),g=(0,No.useBlockEditingMode)(),v=(0,ni.useRef)(),[b,_]=(0,ni.useState)(!1),k=Z();function x(ee){p(ee)}function w(ee){c(ee)}function S(ee){ee.preventDefault(),t(lhe({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function T(){t({hasFixedLayout:!n})}let N=(0,ni.useCallback)(function(ee){m&&t(te=>oO(te,m,de=>({...de,content:ee})))},[m,t]);function D(ee){if(!m)return;let te={type:"column",columnIndex:m.columnIndex},de=oO(e,te,we=>({...we,align:ee}));t(de)}function L(){if(m)return she(e,m,"align")}function P(){t(nO(e,"head"))}function E(){t(nO(e,"foot"))}function M(ee){if(!m)return;let{sectionName:te,rowIndex:de}=m,we=de+ee;t(aO(e,{sectionName:te,rowIndex:we})),d({sectionName:te,rowIndex:we,columnIndex:0,type:"cell"})}function z(){M(0)}function j(){M(1)}function q(){if(!m)return;let{sectionName:ee,rowIndex:te}=m;d(),t(che(e,{sectionName:ee,rowIndex:te}))}function G(ee=0){if(!m)return;let{columnIndex:te}=m,de=te+ee;t(uhe(e,{columnIndex:de})),d({rowIndex:0,columnIndex:de,type:"cell"})}function W(){G(0)}function V(){G(1)}function Q(){if(!m)return;let{sectionName:ee,columnIndex:te}=m;d(),t(phe(e,{sectionName:ee,columnIndex:te}))}(0,ni.useEffect)(()=>{o||d()},[o]),(0,ni.useEffect)(()=>{b&&(v?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[b]);let Y=["head","body","foot"].filter(ee=>!Tm(e[ee])),re=[{icon:AN,title:(0,Tt.__)("Insert row before"),isDisabled:!m,onClick:z},{icon:RN,title:(0,Tt.__)("Insert row after"),isDisabled:!m,onClick:j},{icon:VN,title:(0,Tt.__)("Delete row"),isDisabled:!m,onClick:q},{icon:NN,title:(0,Tt.__)("Insert column before"),isDisabled:!m,onClick:W},{icon:BN,title:(0,Tt.__)("Insert column after"),isDisabled:!m,onClick:V},{icon:DN,title:(0,Tt.__)("Delete column"),isDisabled:!m,onClick:Q}],J=Y.map(ee=>(0,vt.jsx)(KBe,{name:ee,children:e[ee].map(({cells:te},de)=>(0,vt.jsx)("tr",{children:te.map((we,le)=>{let me=m?.sectionName===ee&&m?.rowIndex===de&&m?.columnIndex===le;return(0,vt.jsx)(QBe,{name:ee,rowIndex:de,columnIndex:le,onChange:me?N:void 0,setSelectedCell:d,...we},le)})},de))},ee)),ie=!Y.length;return(0,vt.jsxs)("figure",{...(0,No.useBlockProps)({ref:v}),children:[!ie&&g==="default"&&(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(No.BlockControls,{group:"block",children:(0,vt.jsx)(No.AlignmentControl,{label:(0,Tt.__)("Change column alignment"),alignmentControls:$Be,value:L(),onChange:ee=>D(ee)})}),(0,vt.jsx)(No.BlockControls,{group:"other",children:(0,vt.jsx)(ro.ToolbarDropdownMenu,{icon:FN,label:(0,Tt.__)("Edit table"),controls:re})})]}),(0,vt.jsx)(No.InspectorControls,{children:(0,vt.jsxs)(ro.__experimentalToolsPanel,{label:(0,Tt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:k,children:[(0,vt.jsx)(ro.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,Tt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,vt.jsx)(ro.ToggleControl,{label:(0,Tt.__)("Fixed width table cells"),checked:!!n,onChange:T})}),!ie&&(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(ro.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,Tt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,vt.jsx)(ro.ToggleControl,{label:(0,Tt.__)("Header section"),checked:!!(i&&i.length),onChange:P})}),(0,vt.jsx)(ro.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,Tt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,vt.jsx)(ro.ToggleControl,{label:(0,Tt.__)("Footer section"),checked:!!(l&&l.length),onChange:E})})]})]})}),!ie&&(0,vt.jsx)("table",{className:C(f.className,h.className,{"has-fixed-layout":n,"has-individual-borders":(0,ro.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:J}),ie?(0,vt.jsx)(ro.Placeholder,{label:(0,Tt.__)("Table"),icon:(0,vt.jsx)(No.BlockIcon,{icon:M1,showColors:!0}),instructions:(0,Tt.__)("Insert a table for sharing data."),children:(0,vt.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:S,children:[(0,vt.jsx)(ro.TextControl,{type:"number",label:(0,Tt.__)("Column count"),value:u,onChange:x,min:"1",className:"blocks-table__placeholder-input"}),(0,vt.jsx)(ro.TextControl,{type:"number",label:(0,Tt.__)("Row count"),value:s,onChange:w,min:"1",className:"blocks-table__placeholder-input"}),(0,vt.jsx)(ro.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Tt.__)("Create Table")})]})}):(0,vt.jsx)(Mo,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,Tt.__)("Table caption text"),showToolbarButton:o&&g==="default"})]})}var QBe=(0,ni.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:n,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:p}){return(0,vt.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:n,className:C({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,vt.jsx)(No.RichText,{identifier:`${t}.${i}.cells.${l}.content`,value:c,onChange:u,onFocus:()=>{p({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":qBe[t],placeholder:ZBe[t]})})}),dhe=YBe;var a7={$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 Vl=a(B(),1),Ms=a(y(),1);function fhe({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,Vl.__experimentalGetColorClassesAndStyles)(e),c=(0,Vl.__experimentalGetBorderClassesAndStyles)(e),u=C(s.className,c.className,{"has-fixed-layout":t}),p=!Vl.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,Ms.jsx)(h,{children:f.map(({cells:g},v)=>(0,Ms.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x,colspan:w,rowspan:S},T)=>{let N=C({[`has-text-align-${x}`]:x});return(0,Ms.jsx)(Vl.RichText.Content,{className:N||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0,colSpan:w,rowSpan:S},T)})},v))})};return(0,Ms.jsxs)("figure",{...Vl.useBlockProps.save(),children:[(0,Ms.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Ms.jsx)(m,{type:"head",rows:r}),(0,Ms.jsx)(m,{type:"body",rows:o}),(0,Ms.jsx)(m,{type:"foot",rows:n})]}),p&&(0,Ms.jsx)(Vl.RichText.Content,{tagName:"figcaption",value:i,className:(0,Vl.__experimentalGetElementClassName)("caption")})]})}var hhe=a($(),1);function iO(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var lO=({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"]}}}}),JBe=e=>({table:{children:{thead:{allowEmpty:!0,children:lO(e)},tfoot:{allowEmpty:!0,children:lO(e)},tbody:{allowEmpty:!0,children:lO(e)}}}}),eEe={from:[{type:"raw",selector:"table",schema:JBe,transform:e=>{let t=Array.from(e.children).reduce((r,o)=>{if(!o.children.length)return r;let n=o.nodeName.toLowerCase().slice(1),i=Array.from(o.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,p)=>{let m=iO(p.getAttribute("rowspan")),d=iO(p.getAttribute("colspan")),{textAlign:f}=p.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:p.nodeName.toLowerCase(),content:p.innerHTML,rowspan:m,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[n]=i,r},{});return(0,hhe.createBlock)("core/table",t)}}]},ghe=eEe;var{name:vhe}=a7,bhe={icon:M1,example:{attributes:{head:[{cells:[{content:(0,Gc.__)("Version"),tag:"th"},{content:(0,Gc.__)("Jazz Musician"),tag:"th"},{content:(0,Gc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Gc.__)("Jaco Pastorius"),tag:"td"},{content:(0,Gc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Gc.__)("Betty Carter"),tag:"td"},{content:(0,Gc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Gc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Gc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:ghe,edit:dhe,save:fhe,deprecated:ihe},tEe=()=>R({name:vhe,metadata:a7,settings:bhe});var uO={};K(uO,{init:()=>nEe,metadata:()=>n7,name:()=>Ihe,settings:()=>Dhe});var Yu=a(I(),1);var n7={$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 As=a(B(),1),She=a($(),1),$o=a(O(),1),k2=a(F(),1),The=a(H(),1),Wt=a(I(),1),Phe=a(ge(),1),Bhe=a(Sr(),1);var Wc=a(y(),1),yhe="wp-block-table-of-contents__entry";function Z0({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,Wc.jsx)(Wc.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,Wc.jsx)("a",{className:yhe,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,Wc.jsx)("span",{className:yhe,children:l}),u=o?"ol":"ul";return(0,Wc.jsxs)("li",{children:[c,n.children?(0,Wc.jsx)(u,{children:(0,Wc.jsx)(Z0,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}function _2(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let n=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:_2(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}var _he=a(xQ(),1),xhe=a(F(),1),khe=a(Ca(),1),whe=a(H(),1),x2=a(ur(),1),i7=a(B(),1);function oEe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:n,getClientIdsOfDescendants:i}=e(i7.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[p=""]=n("core/post-content"),m=i(p),d=1;if(s&&c){let v=m.indexOf(t);for(let[b,_]of m.entries()){if(b>=v)break;o(_)==="core/nextpage"&&d++}}let f=[],h=1,g=null;typeof l=="string"&&(g=s?(0,x2.addQueryArgs)(l,{page:h}):l);for(let v of m){let b=o(v);if(b==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(g=(0,x2.addQueryArgs)((0,x2.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&b==="core/heading"){let _=r(v);if(u&&_.level>u)continue;let k=typeof g=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,khe.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:k?`${g}#${_.anchor}`:null})}}return f}function aEe(e,t,r){let{getBlockAttributes:o}=e(i7.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(i7.store),l=o(r);if(l===null)return;let s=oEe(e,r);(0,_he.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:s})})}function Che(e){let t=(0,xhe.useRegistry)();(0,whe.useEffect)(()=>t.subscribe(()=>aEe(t.select,t.dispatch,e)),[t,e])}var lr=a(y(),1);function cO({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:n,setAttributes:i}){Che(n);let l=(0,As.useBlockProps)(),s=(0,Phe.useInstanceId)(cO,"table-of-contents"),{createWarningNotice:c}=(0,k2.useDispatch)(Bhe.store),u=b=>{b.preventDefault(),c((0,Wt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},p=(0,k2.useSelect)(b=>{let{getBlockRootClientId:_,canInsertBlockType:k}=b(As.store),x=_(n);return k("core/list",x)},[n]),{replaceBlocks:m}=(0,k2.useDispatch)(As.store),d=Z(),f=_2(e),h=(0,lr.jsxs)(As.BlockControls,{children:[(0,lr.jsxs)($o.ToolbarGroup,{children:[(0,lr.jsx)($o.ToolbarButton,{icon:(0,Wt.isRTL)()?Z1:K1,title:(0,Wt.__)("Unordered"),description:(0,Wt.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:o===!1}),(0,lr.jsx)($o.ToolbarButton,{icon:(0,Wt.isRTL)()?Y1:ll,title:(0,Wt.__)("Ordered"),description:(0,Wt.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:o===!0})]}),p&&(0,lr.jsx)($o.ToolbarGroup,{children:(0,lr.jsx)($o.ToolbarButton,{onClick:()=>m(n,(0,She.createBlock)("core/list",{ordered:o,values:(0,The.renderToString)((0,lr.jsx)(Z0,{nestedHeadingList:f,ordered:o}))})),children:(0,Wt.__)("Convert to static list")})})]}),g=(0,lr.jsx)(As.InspectorControls,{children:(0,lr.jsxs)($o.__experimentalToolsPanel,{label:(0,Wt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,lr.jsx)($o.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Wt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,lr.jsx)($o.ToggleControl,{label:(0,Wt.__)("Only include current page"),checked:t,onChange:b=>i({onlyIncludeCurrentPage:b}),help:t?(0,Wt.__)("Only including headings from the current page (if the post is paginated)."):(0,Wt.__)("Include headings from all pages (if the post is paginated).")})}),(0,lr.jsx)($o.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Wt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,lr.jsx)($o.SelectControl,{label:(0,Wt.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Wt.__)("All levels")},{value:"1",label:(0,Wt.__)("Heading 1")},{value:"2",label:(0,Wt.__)("Heading 2")},{value:"3",label:(0,Wt.__)("Heading 3")},{value:"4",label:(0,Wt.__)("Heading 4")},{value:"5",label:(0,Wt.__)("Heading 5")},{value:"6",label:(0,Wt.__)("Heading 6")}],onChange:b=>i({maxLevel:b?parseInt(b):void 0}),help:r?(0,Wt.__)("Only include headings up to and including this level."):(0,Wt.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)("div",{...l,children:(0,lr.jsx)($o.Placeholder,{icon:(0,lr.jsx)(As.BlockIcon,{icon:Sv}),label:(0,Wt.__)("Table of Contents"),instructions:(0,Wt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)("nav",{...l,children:(0,lr.jsx)(o?"ol":"ul",{children:(0,lr.jsx)(Z0,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:o})})}),h,g]})}var Ehe=a(B(),1);var l7=a(y(),1);function Nhe({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,l7.jsx)("nav",{...Ehe.useBlockProps.save(),children:(0,l7.jsx)(r,{children:(0,l7.jsx)(Z0,{nestedHeadingList:_2(e),ordered:t})})})}var{name:Ihe}=n7,Dhe={icon:Sv,edit:cO,save:Nhe,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Yu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Yu.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Yu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Yu.__)("Subheading")}}],attributes:{headings:[{content:(0,Yu.__)("Heading"),level:2},{content:(0,Yu.__)("Subheading"),level:3},{content:(0,Yu.__)("Heading"),level:2},{content:(0,Yu.__)("Subheading"),level:3}]}}},nEe=()=>R({name:Ihe,metadata:n7,settings:Dhe});var dO={};K(dO,{init:()=>cEe,metadata:()=>c7,name:()=>zhe,settings:()=>Vhe});var Y0=a(I(),1),Qa=a(B(),1),Q0=a(O(),1),Uf=a(F(),1),Gf=a(H(),1);var K0=a(I(),1),s7=a(B(),1),pO=a(O(),1);var Lhe=a(F(),1);var w2=a(y(),1);function Rhe({tabsClientId:e}){let{moveTab:t}=G0(e),{tabCount:r,activeIndex:o}=(0,Lhe.useSelect)(n=>{if(!e)return{tabCount:0,activeIndex:0};let{getBlocks:i,getBlockAttributes:l}=n(s7.store),s=l(e);return{tabCount:i(e).find(u=>u.name==="core/tab-panels")?.innerBlocks.length??0,activeIndex:s?.editorActiveTabIndex??s?.activeTabIndex??0}},[e]);return(0,w2.jsxs)(s7.BlockControls,{group:"parent",children:[(0,w2.jsx)(pO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,K0.isRTL)()?lh:S_,label:(0,K0.__)("Move tab before"),onClick:()=>t(-1),disabled:o<=0,accessibleWhenDisabled:!0}),(0,w2.jsx)(pO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,K0.isRTL)()?S_:lh,label:(0,K0.__)("Move tab after"),onClick:()=>t(1),disabled:o>=r-1,accessibleWhenDisabled:!0})]})}var ii=a(y(),1),iEe=[];function lEe({attributes:e,clientId:t,setAttributes:r,__unstableLayoutClassNames:o}){let{ariaLabel:n}=e,i=(0,Qa.__experimentalUseColorProps)(e),l=(0,Qa.__experimentalUseBorderProps)(e),s=(0,Qa.__experimentalGetSpacingClassesAndStyles)(e),c=Z(),{tabsClientId:u,tabPanels:p,editorActiveTabIndex:m,activeTabIndex:d}=(0,Uf.useSelect)(z=>{let{getBlockRootClientId:j,getBlockAttributes:q,getBlocks:G}=z(Qa.store),W=j(t),V=q(W),Q=G(W)?.find(Y=>Y.name==="core/tab-panels");return{tabsClientId:W,tabPanels:Q?.innerBlocks??iEe,editorActiveTabIndex:V?.editorActiveTabIndex,activeTabIndex:V?.activeTabIndex??0}},[t]),f=(0,Uf.useRegistry)(),{isBlockSelected:h,hasSelectedInnerBlock:g}=(0,Uf.useSelect)(Qa.store),{updateBlockAttributes:v,selectBlock:b,__unstableMarkNextChangeAsNotPersistent:_}=(0,Uf.useDispatch)(Qa.store),{insertTab:k,removeTab:x}=G0(u),w=m??d,S=(0,Gf.useMemo)(()=>p.map(z=>({label:z.attributes.label||"",clientId:z.clientId})),[p]);function T(z){u&&z!==w&&f.batch(()=>{b(t),_(),v(u,{editorActiveTabIndex:z})})}function N(z,j){let q=S[z];q?.clientId&&v(q.clientId,{label:j})}let D=(0,Gf.useRef)(),L=(0,Gf.useRef)(S.length);(0,Gf.useEffect)(()=>{let z=L.current;if(L.current=S.length,!D.current||S.length===z||!h(u)&&!g(u,!0))return;(q=>{window.requestAnimationFrame(()=>{let G=D.current?.querySelectorAll("button")?.[q];(G?.querySelector("[contenteditable]")??G)?.focus()})})(w)},[w,g,h,u,S.length]);let P=(0,Qa.useBlockProps)({role:"tablist",ref:D,className:o}),E=C(i.className,l.className),M={...i.style,...l.style,...s.style};return(0,ii.jsxs)(ii.Fragment,{children:[(0,ii.jsx)(Qa.InspectorControls,{group:"settings",children:(0,ii.jsx)(Q0.__experimentalToolsPanel,{label:(0,Y0.__)("Settings"),resetAll:()=>r({ariaLabel:void 0}),dropdownMenuProps:c,children:(0,ii.jsx)(Q0.__experimentalToolsPanelItem,{label:(0,Y0.__)("Label"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>r({ariaLabel:void 0}),children:(0,ii.jsx)(Q0.TextControl,{label:(0,Y0.__)("Label"),help:(0,Y0.__)("Briefly describe this tab section for screen reader users. Examples: Event information, Product details, and Account settings."),value:n||"",onChange:z=>r({ariaLabel:z||void 0})})})})}),(0,ii.jsx)(Rhe,{tabsClientId:u}),(0,ii.jsx)(Sm,{tabsClientId:u}),(0,ii.jsx)("div",{...P,children:S.map((z,j)=>(0,ii.jsx)("button",{type:"button",role:"tab","aria-selected":j===w,className:E||void 0,style:M,tabIndex:-1,onFocus:()=>{T(j)},children:(0,ii.jsx)(Qa.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,Y0.__)("Tab title"),value:z.label,onChange:G=>N(j,G),__unstableOnSplitAtEnd:()=>k(j+1),onRemove:()=>x(j)})},z.clientId||j))})]})}var Mhe=lEe;var $c=a(B(),1),mO=a(y(),1);function Ahe({attributes:e}){let{tabs:t}=e,r=$c.useBlockProps.save({role:"tablist"}),o=(0,$c.__experimentalGetColorClassesAndStyles)(e),n=(0,$c.__experimentalGetBorderClassesAndStyles)(e),i=(0,$c.__experimentalGetSpacingClassesAndStyles)(e),l=C(o.className,n.className),s={...o.style,...n.style,...i.style};return(0,mO.jsx)("div",{...r,children:t.map((c,u)=>(0,mO.jsx)($c.RichText.Content,{className:l||void 0,style:s,tagName:"button",value:c.label,type:"button",role:"tab"},u))})}var c7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tab-list",title:"Tab List",description:"Display the tab buttons for a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],usesContext:["core/tabs-list"],attributes:{tabs:{type:"array",source:"query",selector:"button",query:{label:{type:"rich-text",source:"rich-text",role:"content"}},default:[]}},supports:{html:!1,ariaLabel:!0,visibility:!1,lock:!1,color:{background:!0,text:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0},layout:{default:{type:"flex",flexWrap:"wrap"},allowVerticalAlignment:!1,allowOrientation:!1,allowWrap:!1},spacing:{padding:!0,blockGap:!0,__experimentalSkipSerialization:["padding"],__experimentalDefaultControls:{padding:!0,blockGap:!0}}},selectors:{border:".wp-block-tab-list button",color:{background:".wp-block-tab-list button",text:".wp-block-tab-list button"},spacing:{padding:".wp-block-tab-list button"}},style:"wp-block-tab-list",editorStyle:"wp-block-tab-list-editor"};var{name:zhe}=c7,Vhe={icon:CN,edit:Mhe,save:Ahe},cEe=()=>R({name:zhe,metadata:c7,settings:Vhe});var fO={};K(fO,{init:()=>fEe,metadata:()=>f7,name:()=>Ghe,settings:()=>Whe});var Wf=a(I(),1);var p7=a(B(),1);var u7=a(B(),1),C2=a(F(),1),Ohe=a(H(),1),uEe=[];function Fhe(e){let{tabPanels:t,tabListClientId:r}=(0,C2.useSelect)(l=>{let{getBlocks:s}=l(u7.store),c=s(e),u=c.find(m=>m.name==="core/tab-panels"),p=c.find(m=>m.name==="core/tab-list");return{tabPanels:u?.innerBlocks??uEe,tabListClientId:p?.clientId??null}},[e]),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,C2.useDispatch)(u7.store),{getBlockAttributes:i}=(0,C2.useSelect)(u7.store);(0,Ohe.useEffect)(()=>{if(!r)return;let l=t.map(c=>({label:c.attributes.label||""})),s=i(r)?.tabs??[];JSON.stringify(l)!==JSON.stringify(s)&&(n(),o(r,{tabs:l}))},[t,r,i,o,n])}var m7=a(y(),1),pEe=[["core/tab-list"],["core/tab-panels"]];function mEe({clientId:e}){Fhe(e);let t=(0,p7.useBlockProps)(),r=(0,p7.useInnerBlocksProps)(t,{__experimentalCaptureToolbars:!0,template:pEe,templateLock:"all",renderAppender:!1});return(0,m7.jsxs)("div",{...r,children:[(0,m7.jsx)(Sm,{tabsClientId:e}),r.children]})}var Hhe=mEe;var d7=a(B(),1),jhe=a(y(),1);function Uhe(){let e=d7.useBlockProps.save(),t=d7.useInnerBlocksProps.save(e);return(0,jhe.jsx)("div",{...t})}var f7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",category:"design",textdomain:"default",allowedBlocks:["core/tab-list","core/tab-panels"],attributes:{activeTabIndex:{type:"number",default:0},editorActiveTabIndex:{type:"number",role:"local"}},supports:{align:!0,anchor:!0,color:{text:!0,background:!0,__experimentalDefaultControls:{text:!0,background:!0}},layout:{allowEditing:!1},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0}},usesContext:["core/tabs-list","core/tabs-id"],style:"wp-block-tabs",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:Ghe}=f7,Whe={icon:jN,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,Wf.__)("Tab 1")},{label:(0,Wf.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,Wf.sprintf)((0,Wf.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Wf.__)("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.")}}]}))}]},edit:Hhe,save:Uhe},fEe=()=>R({name:Ghe,metadata:f7,settings:Whe});var gO={};K(gO,{init:()=>_Ee,metadata:()=>h7,name:()=>ege,settings:()=>tge});var hO=a($(),1),hEe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,hO.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,hO.createBlock)("core/categories")}]},$he=hEe;var h7={$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 $t=a(O(),1),Khe=a(F(),1),Nn=a(I(),1),X0=a(B(),1),Yhe=a(oe(),1),Qhe=a(ap(),1),Xhe=a(ge(),1);var _r=a(y(),1),vEe=1,bEe=100,qhe=.1,Zhe=100;function yEe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:n,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,X0.useSettings)("spacing.units"),u=Z(),p=(0,$t.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),m=(0,Khe.useSelect)(x=>x(Yhe.store).getTaxonomies({per_page:-1}),[]),d=()=>{let x={label:(0,Nn.__)("- Select -"),value:"",disabled:!0},w=(m??[]).filter(S=>!!S.show_cloud).map(S=>({value:S.slug,label:S.name}));return[x,...w]},f=(x,w)=>{let[S,T]=(0,$t.__experimentalParseQuantityAndUnitFromRawValue)(w);if(!Number.isFinite(S))return;let N={[x]:w};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([D,L])=>{let[P,E]=(0,$t.__experimentalParseQuantityAndUnitFromRawValue)(L);D!==x&&E!==T&&(N[D]=`${P}${T}`)}),t(N)},h=(0,_r.jsx)(X0.InspectorControls,{children:(0,_r.jsxs)($t.__experimentalToolsPanel,{label:(0,Nn.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Nn.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,_r.jsx)($t.SelectControl,{label:(0,Nn.__)("Taxonomy"),options:d(),value:o,onChange:x=>t({taxonomy:x})})}),(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,Nn.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,_r.jsxs)($t.Flex,{gap:4,children:[(0,_r.jsx)($t.FlexItem,{isBlock:!0,children:(0,_r.jsx)($t.__experimentalUnitControl,{label:(0,Nn.__)("Smallest size"),value:l,onChange:x=>{f("smallestFontSize",x)},units:p,min:qhe,max:Zhe})}),(0,_r.jsx)($t.FlexItem,{isBlock:!0,children:(0,_r.jsx)($t.__experimentalUnitControl,{label:(0,Nn.__)("Largest size"),value:s,onChange:x=>{f("largestFontSize",x)},units:p,min:qhe,max:Zhe})})]})}),(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Nn.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,_r.jsx)($t.RangeControl,{label:(0,Nn.__)("Number of tags"),value:i,onChange:x=>t({numberOfTags:x}),min:vEe,max:bEe,required:!0})}),(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,Nn.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,_r.jsx)($t.ToggleControl,{label:(0,Nn.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:g,status:v,error:b}=(0,Qhe.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,Xhe.useDisabled)(),k=(0,X0.useBlockProps)({ref:_});return(0,_r.jsxs)(_r.Fragment,{children:[h,v==="loading"&&(0,_r.jsx)("div",{...k,children:(0,_r.jsx)($t.Spinner,{})}),v==="error"&&(0,_r.jsx)("div",{...k,children:(0,_r.jsx)("p",{children:(0,Nn.sprintf)((0,Nn.__)("Error: %s"),b)})}),v==="success"&&(0,_r.jsx)(_o,{wrapperProps:k,html:g})]})}var Jhe=yEe;var{name:ege}=h7,tge={icon:Tv,example:{},edit:Jhe,transforms:$he},_Ee=()=>R({name:ege,metadata:h7,settings:tge});var xO={};K(xO,{init:()=>BEe,metadata:()=>g7,name:()=>Fge,settings:()=>Hge});var zge=a(oe(),1),Vge=a(F(),1);var _O=a(vu(),1),Oge=a(Xo(),1);var g7={$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 Ege=a($(),1),n1=a(F(),1),vo=a(B(),1),Kc=a(O(),1),el=a(I(),1),E2=a(oe(),1),Nge=a(H(),1),Ige=a(Sr(),1);var Bm=a(I(),1),qf=a(O(),1),lge=a(H(),1),sge=a(F(),1),cge=a(oe(),1);var J0=a(F(),1),v7=a(oe(),1),rge=a(B(),1),oge=a(H(),1),age=a($(),1),vO=a(I(),1);function e1(e,t){let{templateParts:r,isResolving:o}=(0,J0.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(v7.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,oge.useMemo)(()=>r?r.filter(i=>yn(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function t1(e,t){return(0,J0.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(rge.store),l=n(t);return i(o,l)},[e,t])}function b7(e,t){let{saveEntityRecord:r}=(0,J0.useDispatch)(v7.store);return async(o=[],n=(0,vO.__)("Untitled Template Part"))=>{let i=yC(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,age.serialize)(o),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function y7(e){return(0,J0.useSelect)(t=>{let r=t(v7.store).getCurrentTheme()?.default_template_part_areas||[],o=r.find(i=>i.area===e),n=r.find(i=>i.area==="uncategorized");return{icon:o?.icon||n?.icon,label:o?.label||(0,vO.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var nge=a(H(),1),Pm=a(I(),1),zs=a(O(),1),Qu=a(y(),1);function ige({areaLabel:e,onClose:t,onSubmit:r}){let[o,n]=(0,nge.useState)(""),i=l=>{l.preventDefault(),r(o)};return(0,Qu.jsx)(zs.Modal,{title:(0,Pm.sprintf)((0,Pm.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Qu.jsx)("form",{onSubmit:i,children:(0,Qu.jsxs)(zs.__experimentalVStack,{spacing:"5",children:[(0,Qu.jsx)(zs.TextControl,{label:(0,Pm.__)("Name"),value:o,onChange:n,placeholder:(0,Pm.__)("Custom Template Part")}),(0,Qu.jsxs)(zs.__experimentalHStack,{justify:"right",children:[(0,Qu.jsx)(zs.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,Pm.__)("Cancel")}),(0,Qu.jsx)(zs.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,Pm.__)("Create")})]})]})})})}var $f=a(y(),1);function uge({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:n}){let{templateParts:i,isResolving:l}=e1(e,r),s=t1(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,sge.useSelect)(h=>{let{getCurrentTheme:g,canUser:v}=h(cge.store);return{isBlockBasedTheme:g()?.is_block_theme,canCreateTemplatePart:v("create",{kind:"postType",name:"wp_template_part"})}},[]),[p,m]=(0,lge.useState)(!1),d=y7(e),f=b7(e,n);return(0,$f.jsxs)(qf.Placeholder,{icon:Xg(d.icon),label:d.label,instructions:c?(0,Bm.sprintf)((0,Bm.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,Bm.sprintf)((0,Bm.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,$f.jsx)(qf.Spinner,{}),!l&&!!(i.length||s.length)&&(0,$f.jsx)(qf.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Bm.__)("Choose")}),!l&&c&&u&&(0,$f.jsx)(qf.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{m(!0)},children:(0,Bm.__)("Start blank")}),p&&(0,$f.jsx)(ige,{areaLabel:d.label,onClose:()=>m(!1),onSubmit:h=>{f([],h)}})]})}var S2=a(H(),1),Em=a(I(),1),dge=a(Sr(),1),fge=a(F(),1),hge=a(B(),1),_7=a(O(),1);var pge=a($(),1);function mge(e){return{name:yn(e.theme,e.slug),title:e.title.rendered,blocks:(0,pge.parse)(e.content.raw),templatePart:e}}var qc=a(y(),1);function gge({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:n}){let[i,l]=(0,S2.useState)(""),{templateParts:s}=e1(o,r),c=(0,S2.useMemo)(()=>{let g=s.map(v=>mge(v));return Ob(g,i)},[s,i]),u=t1(o,n),p=(0,S2.useMemo)(()=>Ob(u,i),[u,i]),{createSuccessNotice:m}=(0,fge.useDispatch)(dge.store),d=g=>{e({slug:g.slug,theme:g.theme,area:void 0}),m((0,Em.sprintf)((0,Em.__)('Template Part "%s" inserted.'),g.title?.rendered||g.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!p.length;return(0,qc.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,qc.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,qc.jsx)(_7.SearchControl,{onChange:l,value:i,label:(0,Em.__)("Search"),placeholder:(0,Em.__)("Search")})}),f&&(0,qc.jsxs)("div",{children:[(0,qc.jsx)("h2",{children:(0,Em.__)("Existing template parts")}),(0,qc.jsx)(hge.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:g=>{d(g.templatePart)}})]}),!f&&!h&&(0,qc.jsx)(_7.__experimentalHStack,{alignment:"center",children:(0,qc.jsx)("p",{children:(0,Em.__)("No results found.")})})]})}var P2=a(oe(),1),x7=a(O(),1),o1=a(I(),1),kge=a(F(),1),wge=a(B(),1);var Zc=a(I(),1),T2=a(H(),1),r1=a(F(),1),Ji=a(O(),1),yO=a(oe(),1),_ge=a(Sr(),1);var li=a($(),1);function vge(e){if(e.id_base!=="block"){let o;return e._embedded.about[0].is_multi?o={idBase:e.id_base,instance:e.instance}:o={id:e.id},bge((0,li.createBlock)("core/legacy-widget",o))}let t=(0,li.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,li.createBlock)((0,li.getGroupingBlockName)(),void 0,bO(r.innerBlocks)):r.innerBlocks.length>0?(0,li.cloneBlock)(r,void 0,bO(r.innerBlocks)):r}function bge(e){let t=(0,li.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let o=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!o&&!n});if(t.length)return(0,li.switchToBlockType)(e,t[0].name)}function bO(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?bge(t):(0,li.createBlock)(t.name,t.attributes,bO(t.innerBlocks))).filter(t=>!!t)}var Xu=a(y(),1),yge={per_page:-1,_fields:"id,name,description,status,widgets"};function xge({area:e,setAttributes:t}){let[r,o]=(0,T2.useState)(""),[n,i]=(0,T2.useState)(!1),l=(0,r1.useRegistry)(),{sidebars:s,hasResolved:c}=(0,r1.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:g}=f(yO.store);return{sidebars:h(yge),hasResolved:g("getSidebars",[yge])}},[]),{createErrorNotice:u}=(0,r1.useDispatch)(_ge.store),p=b7(e,t),m=(0,T2.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,Zc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Xu.jsx)(Ji.__experimentalSpacer,{marginBottom:"0"});if(c&&!m.length)return null;async function d(f){if(f.preventDefault(),n||!r)return;i(!0);let h=m.find(({value:k})=>k===r),{getWidgets:g}=l.resolveSelect(yO.store),v=await g({sidebar:h.value,_embed:"about"}),b=new Set,_=v.flatMap(k=>{let x=vge(k);return x||(b.add(k.id_base),[])});await p(_,(0,Zc.sprintf)((0,Zc.__)("Widget area: %s"),h.label)),b.size&&u((0,Zc.sprintf)((0,Zc.__)("Unable to import the following widgets: %s."),Array.from(b).join(", ")),{type:"snackbar"}),i(!1)}return(0,Xu.jsx)(Ji.__experimentalSpacer,{marginBottom:"4",children:(0,Xu.jsxs)(Ji.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Xu.jsx)(Ji.FlexBlock,{children:(0,Xu.jsx)(Ji.SelectControl,{label:(0,Zc.__)("Import widget area"),value:r,options:m,onChange:f=>o(f),disabled:!m.length})}),(0,Xu.jsx)(Ji.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Xu.jsx)(Ji.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,Zc._x)("Import","button label")})})]})})}var Vs=a(y(),1),{HTMLElementControl:kEe}=U(wge.privateApis);function Cge({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,P2.useEntityProp)("postType","wp_template_part","area",o),[u,p]=(0,P2.useEntityProp)("postType","wp_template_part","title",o),d=(0,kge.useSelect)(f=>f(P2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,Vs.jsxs)(Vs.Fragment,{children:[r&&(0,Vs.jsxs)(Vs.Fragment,{children:[(0,Vs.jsx)(x7.TextControl,{label:(0,o1.__)("Title"),value:u,onChange:f=>{p(f)},onFocus:f=>f.target.select()}),(0,Vs.jsx)(x7.SelectControl,{label:(0,o1.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,Vs.jsx)(kEe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,o1.sprintf)((0,o1.__)("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,Vs.jsx)(xge,{area:s,setAttributes:t})]})}var a1=a(oe(),1),si=a(B(),1),B2=a(F(),1),Sge=a(H(),1),Tge=a($(),1),k7=a(y(),1);function wEe(e){if((0,si.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return si.InnerBlocks.ButtonBlockAppender}function Pge(e){let t=(0,B2.useSelect)(o=>{let{getSettings:n}=o(si.store);return n()?.supportsLayout},[]),[r]=(0,si.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function CEe({postId:e,layout:t,tagName:r,blockProps:o}){(0,si.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,B2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(a1.store),p=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:p.blocks,content:p.content}},[e]),l=(0,Sge.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,Tge.parse)(n))},[e,i,n]),s=(0,si.useInnerBlocksProps)(o,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:Pge(t)});return(0,k7.jsx)(r,{...s})}function SEe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let i=(0,B2.useSelect)(d=>d(si.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,a1.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,si.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:wEe(t),layout:Pge(r)}),m=(0,si.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,k7.jsx)(o,{...u,...m})}function Bge({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,B2.useSelect)(c=>({canViewTemplatePart:!!c(a1.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(a1.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,k7.jsx)(l?SEe:CEe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}):null}var qt=a(y(),1),Dge=["header","footer","navigation-overlay"];function TEe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=e1(t,r),l=!!i.length;return e&&l&&Dge.includes(t)?(0,qt.jsx)(Kc.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,el.__)("Replace")}):null}function PEe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let n=t1(e,t);return r&&!!n.length&&Dge.includes(e)?(0,qt.jsx)(Kc.PanelBody,{title:(0,el.__)("Design"),children:(0,qt.jsx)(vo.__experimentalBlockPatternsList,{label:(0,el.__)("Templates"),blockPatterns:n,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function Lge({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,n1.useDispatch)(Ige.store),{editEntityRecord:n}=(0,n1.useDispatch)(E2.store),i=(0,n1.useSelect)(E=>E(E2.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,p=yn(s,l),m=(0,vo.useHasRecursion)(p),[d,f]=(0,Nge.useState)(!1),{isResolved:h,hasInnerBlocks:g,isMissing:v,area:b,onNavigateToEntityRecord:_,title:k,canUserEdit:x,canUserEditBlock:w}=(0,n1.useSelect)(E=>{let{getEditedEntityRecord:M,hasFinishedResolution:z}=E(E2.store),{getBlockCount:j,getSettings:q,canEditBlock:G}=E(vo.store),W=["postType","wp_template_part",p],V=p?M(...W):null,Q=V?.area||e.area,Y=p?z("getEditedEntityRecord",W):!1,re=Y?E(E2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:p}):!1;return{hasInnerBlocks:j(r)>0,isResolved:Y,isMissing:Y&&(!V||Object.keys(V).length===0),area:Q,onNavigateToEntityRecord:q().onNavigateToEntityRecord,title:V?.title,canUserEdit:!!re,canUserEditBlock:G(r)}},[p,e.area,r]),S=y7(b),T=(0,vo.useBlockProps)(),N=!l,D=!N&&!v&&h,L=c||S.tagName,P=async E=>{await n("postType","wp_template_part",p,{blocks:E.blocks,content:(0,Ege.serialize)(E.blocks)}),o((0,el.sprintf)((0,el.__)('Template Part "%s" updated.'),k||l),{type:"snackbar"})};return!g&&(l&&!s||l&&v)?(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(vo.Warning,{children:(0,el.sprintf)((0,el.__)("Template part has been deleted or is unavailable: %s"),l)})}):D&&m?(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(vo.Warning,{children:(0,el.__)("Block cannot be rendered inside itself.")})}):(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsxs)(vo.RecursionProvider,{uniqueId:p,children:[D&&_&&x&&(0,qt.jsx)(vo.BlockControls,{group:"other",children:(0,qt.jsx)(Kc.ToolbarButton,{onClick:()=>{_({postId:p,postType:"wp_template_part"})},children:(0,el.__)("Edit original")})}),x&&(0,qt.jsx)(vo.InspectorControls,{group:"advanced",children:(0,qt.jsx)(Cge,{tagName:c,setAttributes:t,isEntityAvailable:D,templatePartId:p,defaultWrapper:S.tagName,hasInnerBlocks:g,clientId:r})}),N&&(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(uge,{area:e.area,templatePartId:p,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,qt.jsx)(vo.BlockSettingsMenuControls,{children:({selectedClientIds:E})=>!w||!(E.length===1&&r===E[0])?null:(0,qt.jsx)(TEe,{isEntityAvailable:D,area:b,clientId:r,templatePartId:p,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f})}),(0,qt.jsx)(vo.InspectorControls,{group:"settings",children:(0,qt.jsx)(PEe,{area:b,clientId:r,isEntityAvailable:D,onSelect:E=>P(E)})}),D&&(0,qt.jsx)(Bge,{tagName:L,blockProps:T,postId:p,hasInnerBlocks:g,layout:u}),!N&&!h&&(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(Kc.Spinner,{})})]}),d&&(0,qt.jsx)(Kc.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,el.sprintf)((0,el.__)("Choose a %s"),S.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,qt.jsx)(gge,{templatePartId:p,clientId:r,area:b,setAttributes:t,onClose:()=>f(!1)})})]})}var Rge=a(oe(),1),Mge=a(F(),1);function Age(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:p}=(0,Mge.select)(Rge.store),m=p("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return m?.slug?m.slug===i.slug:m?.area===i.area},o=e.variations.map(n=>({...n,...!n.isActive&&{isActive:r},...typeof n.icon=="string"&&{icon:Xg(n.icon)}}));return{...e,variations:o}}return e}var{name:Fge}=g7,Hge={icon:kv,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,Vge.select)(zge.store),n=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,Oge.decodeEntities)(n.title)||_re(n.slug||"")},edit:Lge},BEe=()=>{(0,_O.addFilter)("blocks.registerBlockType","core/template-part",Age);let e=["core/post-template","core/post-content"];return(0,_O.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(n(o)?.name===l||i(o,l).length)return!1;return!0}),R({name:Fge,metadata:g7,settings:Hge})};var SO={};K(SO,{init:()=>IEe,metadata:()=>w7,name:()=>Kge,settings:()=>Yge});var w7={$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 Zf=a(I(),1),C7=a(B(),1),qge=a(O(),1);var Ol=a(O(),1),Os=a(y(),1),kO=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.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"})}),jge=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.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"})}),Uge=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.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"})}),Gge=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.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"})}),Wge=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.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 N2=a(oe(),1),wO=a(F(),1);function $ge(e,t){let[r]=(0,N2.useEntityProp)("taxonomy",t,"count",e),o=NEe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":o}}function NEe(){let t=(0,wO.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(N2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,wO.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(N2.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].count||""},[r,o])}var Nm=a(y(),1),CO={none:{label:(0,Zf.__)("No brackets"),icon:kO},round:{label:(0,Zf.__)("Round brackets"),icon:jge,before:"(",after:")"},square:{label:(0,Zf.__)("Square brackets"),icon:Uge,before:"[",after:"]"},curly:{label:(0,Zf.__)("Curly brackets"),icon:Gge,before:"{",after:"}"},angle:{label:(0,Zf.__)("Angle brackets"),icon:Wge,before:"<",after:">"}};function Zge({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:n}=e,l=$ge(r,o)?.termCount||0,s=(0,C7.useBlockProps)(),c=Object.entries(CO).map(([p,{label:m,icon:d}])=>({role:"menuitemradio",title:m,isActive:n===p,icon:d,onClick:()=>{t({bracketType:p})}})),u=(p,m)=>{let{before:d="",after:f=""}=CO[m]||{};return`${d}${p}${f}`};return(0,Nm.jsxs)(Nm.Fragment,{children:[(0,Nm.jsx)(C7.BlockControls,{group:"block",children:(0,Nm.jsx)(qge.ToolbarDropdownMenu,{icon:CO[n]?.icon??kO,label:(0,Zf.__)("Change bracket type"),controls:c})}),(0,Nm.jsx)("div",{...s,children:u(l,n)})]})}var{name:Kge}=w7,Yge={icon:GN,example:{},edit:Zge},IEe=()=>R({name:Kge,metadata:w7,settings:Yge});var PO={};K(PO,{init:()=>MEe,metadata:()=>S7,name:()=>r0e,settings:()=>o0e});var S7={$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"],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,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}}}};var Xge=a(I(),1),Jge=a(B(),1);var I2=a(oe(),1),TO=a(F(),1);function Qge(e,t){let[r,o,n]=(0,I2.useEntityProp)("taxonomy",t,"description",e),i=LEe(),l=!!(e&&t);return{hasContext:l,setDescription:o,termDescription:l?n?.rendered||r||"":i}}function LEe(){let t=(0,TO.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(I2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,TO.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(I2.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].description||""},[r,o])}var Im=a(y(),1);function e0e({context:{termId:e,taxonomy:t}}){let{termDescription:r}=Qge(e,t),o=(0,Jge.useBlockProps)();return(0,Im.jsx)(Im.Fragment,{children:(0,Im.jsx)("div",{...o,children:r?(0,Im.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,Im.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Im.jsx)("span",{children:(0,Xge.__)("Term Description")})})})})}var REe={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{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},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},t0e=[REe];var{name:r0e}=S7,o0e={icon:$N,edit:e0e,example:{},deprecated:t0e},MEe=()=>R({name:r0e,metadata:S7,settings:o0e});var BO={};K(BO,{init:()=>OEe,metadata:()=>T7,name:()=>s0e,settings:()=>c0e});var T7={$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:{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,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:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var D2=a(I(),1),Dm=a(B(),1),i1=a(O(),1),n0e=a(Xo(),1);var P7=a(oe(),1),B7=a(F(),1);function a0e(e,t){let r=(0,B7.useSelect)(i=>!e||!t?null:i(P7.store).getEntityRecord("taxonomy",t,e),[e,t]),o=zEe(),n=!!(e&&t);return{hasContext:n,term:n?r:o}}function zEe(){let t=(0,B7.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(P7.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,B7.useSelect)(n=>{if(!r||!o)return null;let{getEntityRecords:i}=n(P7.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]?l[0]:null},[r,o])}var tl=a(y(),1);function i0e({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{level:n=0,isLink:i,levelOptions:l}=e,{term:s}=a0e(r,o),c=s?.name?(0,n0e.decodeEntities)(s.name):(0,D2.__)("Term Name"),u=(0,Dm.useBlockProps)(),p=Z(),m=n===0?"p":`h${n}`,d=c;return i&&(d=(0,tl.jsx)("a",{href:"#term-name-pseudo-link",onClick:f=>f.preventDefault(),children:c})),(0,tl.jsxs)(tl.Fragment,{children:[(0,tl.jsx)(Dm.BlockControls,{group:"block",children:(0,tl.jsx)(Dm.HeadingLevelDropdown,{value:n,options:l,onChange:f=>{t({level:f})}})}),(0,tl.jsx)(Dm.InspectorControls,{children:(0,tl.jsx)(i1.__experimentalToolsPanel,{label:(0,D2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,tl.jsx)(i1.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,D2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,tl.jsx)(i1.ToggleControl,{label:(0,D2.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,tl.jsx)(m,{...u,children:d})]})}var VEe={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}}},migrate:ve,isEligible(e){return!!e.textAlign},save:()=>null},l0e=[VEe];var{name:s0e}=T7,c0e={icon:qN,example:{},edit:i0e,deprecated:l0e},OEe=()=>R({name:s0e,metadata:T7,settings:c0e});var RO={};K(RO,{init:()=>qEe,metadata:()=>E7,name:()=>Y0e,settings:()=>Q0e});var E7={$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 j0e=a(F(),1),U0e=a(B(),1);var O0e=a(H(),1),D7=a(B(),1);var Fs=a(I(),1),Yc=a(O(),1),z0e=a(B(),1);var u0e=a(oe(),1),p0e=a(F(),1),m0e=a(H(),1);function N7(){let e=(0,p0e.useSelect)(t=>t(u0e.store).getTaxonomies({per_page:-1}),[]);return(0,m0e.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var d0e=a(O(),1);var f0e=a(y(),1);function h0e({value:e,onChange:t,...r}){let n=N7().map(i=>({label:i.name,value:i.slug}));return(0,f0e.jsx)(d0e.SelectControl,{options:n,value:e,onChange:t,...r})}var L2=a(I(),1),g0e=a(O(),1),v0e=a(y(),1);function b0e({orderBy:e,order:t,onChange:r,...o}){return(0,v0e.jsx)(g0e.SelectControl,{options:[{label:(0,L2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,L2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,L2.__)("Count, high to low"),value:"count/desc"},{label:(0,L2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");r(i,l)},...o})}var y0e=a(O(),1),_0e=a(y(),1);function x0e({value:e,onChange:t,...r}){return(0,_0e.jsx)(y0e.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var k0e=a(O(),1),w0e=a(y(),1);function C0e({value:e,onChange:t,...r}){return(0,w0e.jsx)(k0e.ToggleControl,{checked:e,onChange:t,...r})}var M2=a(O(),1),R2=a(I(),1),A2=a(y(),1);function S0e({value:e,onChange:t,label:r}){return(0,A2.jsxs)(M2.__experimentalToggleGroupControl,{label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,R2.__)("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,R2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,A2.jsx)(M2.__experimentalToggleGroupControlOption,{value:"default",label:(0,R2.__)("Default")}),(0,A2.jsx)(M2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,R2.__)("Custom")})]})}var T0e=a(I(),1),P0e=a(O(),1),B0e=a(y(),1);function E0e({value:e,onChange:t,...r}){return(0,B0e.jsx)(P0e.RangeControl,{value:e,min:0,max:100,onChange:t,help:(0,T0e.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var N0e=a(I(),1),I7=a(B(),1);var EO=a(y(),1),{HTMLElementControl:HEe}=U(I7.privateApis);function I0e({TagName:e,setAttributes:t,clientId:r}){return(0,EO.jsx)(I7.InspectorControls,{group:"advanced",children:(0,EO.jsx)(HEe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,N0e.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var L0e=a(O(),1),NO=a(F(),1),IO=a(oe(),1),Ju=a(H(),1),R0e=a(ge(),1),DO=a(Xo(),1),M0e=a(y(),1),Kf=[],D0e={order:"asc",_fields:"id,name",context:"view"};function A0e({value:e,taxonomy:t,onChange:r,...o}){let[n,i]=(0,Ju.useState)(""),[l,s]=(0,Ju.useState)(Kf),[c,u]=(0,Ju.useState)(Kf),p=(0,R0e.useDebounce)(i,250),{searchResults:m,searchHasResolved:d}=(0,NO.useSelect)(b=>{if(!n)return{searchResults:Kf,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:k}=b(IO.store),x=["taxonomy",t,{...D0e,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...x),searchHasResolved:k("getEntityRecords",x)}},[n,t,e]),f=(0,NO.useSelect)(b=>{if(!e?.length)return Kf;let{getEntityRecords:_}=b(IO.store);return _("taxonomy",t,{...D0e,include:e,per_page:e.length})},[e,t]);(0,Ju.useEffect)(()=>{if(e?.length||s(Kf),!f?.length)return;let b=e.reduce((_,k)=>{let x=f.find(w=>w.id===k);return x&&_.push({id:k,value:(0,DO.decodeEntities)(x.name)}),_},[]);s(b)},[e,f]);let h=(0,Ju.useMemo)(()=>{if(!m?.length)return{names:Kf,mapByName:{}};let b=[],_={};return m.forEach(k=>{let x=(0,DO.decodeEntities)(k.name);b.push(x),_[x]=k}),{names:b,mapByName:_}},[m]);(0,Ju.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let g=(b,_)=>_?.id||b?.[_]?.id;return(0,M0e.jsx)(L0e.FormTokenField,{value:l,onInputChange:p,suggestions:c,onChange:b=>{let _=Array.from(b.reduce((k,x)=>{let w=g(h.mapByName,x);return w&&k.add(w),k},new Set));u(Kf),r(_)},help:"",...o})}var Wr=a(y(),1);function V0e({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:p,inherit:m,showNested:d,perPage:f,include:h}=i,g=Z(),b=N7().find(M=>M.slug===s)?.hierarchical,_=!!m,k=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),x=b,w=!!h?.length,S=(0,Fs.__)("Query type"),T=(0,Fs.__)("Taxonomy"),N=(0,Fs.__)("Order by"),D=(0,Fs.__)("Show empty terms"),L=(0,Fs.__)("Show nested terms"),P=(0,Fs.__)("Max terms"),E=(0,Fs.__)("Selected terms");return(0,Wr.jsxs)(Wr.Fragment,{children:[(0,Wr.jsx)(z0e.InspectorControls,{children:(0,Wr.jsxs)(Yc.__experimentalToolsPanel,{label:(0,Fs.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:g,children:[k&&(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>m!==!1,label:S,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Wr.jsx)(S0e,{label:S,value:m,onChange:t})}),!_&&(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:T,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Wr.jsx)(h0e,{label:T,value:s,onChange:M=>t({taxonomy:M,include:[]})})}),(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:N,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Wr.jsx)(b0e,{label:N,orderBy:c,order:u,onChange:(M,z)=>{t({orderBy:M,order:z})},disabled:w,help:w?(0,Fs.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:E,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Wr.jsx)(A0e,{label:E,taxonomy:s,value:h,onChange:M=>t({include:M})})}),(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>p!==!0,label:D,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Wr.jsx)(x0e,{label:D,value:p,onChange:M=>t({hideEmpty:M})})}),x&&(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:L,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Wr.jsx)(C0e,{label:L,value:d,onChange:M=>t({showNested:M}),disabled:w,help:w?(0,Fs.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Wr.jsx)(Yc.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:P,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Wr.jsx)(E0e,{label:P,value:f,onChange:M=>t({perPage:M})})})]})}),(0,Wr.jsx)(I0e,{TagName:l,setAttributes:r,clientId:o})]})}var Yf=a(y(),1),jEe=[["core/term-template"]];function F0e({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:n}=e,i=(0,D7.useBlockProps)(),l=(0,D7.useInnerBlocksProps)(i,{template:jEe}),s=(0,O0e.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,Yf.jsxs)(Yf.Fragment,{children:[(0,Yf.jsx)(V0e,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,Yf.jsx)(n,{...l})]})}var L7=a(F(),1),R7=a($(),1),l1=a(B(),1),LO=a(y(),1);function H0e({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:n,scopeVariations:i}=(0,L7.useSelect)(p=>{let{getActiveBlockVariation:m,getBlockType:d,getBlockVariations:f}=p(R7.store);return{blockType:d(r),activeBlockVariation:m(r,e),scopeVariations:f(r,"block")}},[r,e]),l=n?.icon?.src||n?.icon||o?.icon?.src,s=n?.title||o?.title,{replaceInnerBlocks:c}=(0,L7.useDispatch)(l1.store),u=(0,l1.useBlockProps)();return(0,LO.jsx)("div",{...u,children:(0,LO.jsx)(l1.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:p=>{p.innerBlocks&&c(t,(0,R7.createBlocksFromInnerBlocksTemplate)(p.innerBlocks),!1)}})})}var G0e=a(y(),1),UEe=e=>{let r=(0,j0e.useSelect)(o=>!!o(U0e.store).getBlocks(e.clientId).length,[e.clientId])?F0e:H0e;return(0,G0e.jsx)(r,{...e})},W0e=UEe;var M7=a(B(),1),$0e=a(y(),1);function q0e({attributes:{tagName:e="div"}}){let t=M7.useBlockProps.save(),r=M7.useInnerBlocksProps.save(t);return(0,$0e.jsx)(e,{...r})}var z2=a(I(),1),s1=a(O(),1),V2=a(y(),1),GEe=(0,V2.jsx)(s1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,V2.jsx)(s1.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"})}),WEe=(0,V2.jsx)(s1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,V2.jsx)(s1.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"})}),Z0e=["core/term-name",{isLink:!0}],$Ee=[{name:"name",title:(0,z2.__)("Name"),description:(0,z2.__)("Display the terms' names."),attributes:{},icon:GEe,scope:["block"],innerBlocks:[["core/term-template",{},[Z0e]]]},{name:"name-count",title:(0,z2.__)("Name & Count"),description:(0,z2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:WEe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[Z0e,["core/term-count"]]]]]]}],K0e=$Ee;var{name:Y0e}=E7,Q0e={icon:Xm,edit:W0e,save:q0e,example:{},variations:K0e},qEe=()=>R({name:Y0e,metadata:E7,settings:Q0e});var MO={};K(MO,{init:()=>JEe,metadata:()=>A7,name:()=>n1e,settings:()=>i1e});var A7={$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 X0e=a(O(),1);var c1=a(H(),1),J0e=a(F(),1),O2=a(I(),1),Fl=a(B(),1),e1e=a(oe(),1),_a=a(y(),1),KEe=[["core/term-name"]];function YEe({classList:e}){let t=(0,Fl.useInnerBlocksProps)({className:C("wp-block-term",e)},{template:KEe,__unstableDisableLayoutClassNames:!0});return(0,_a.jsx)("li",{...t})}function QEe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,Fl.__experimentalUseBlockPreview)({blocks:e,props:{className:C("wp-block-term",r)}}),l=()=>{n(t)};return(0,_a.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var XEe=(0,c1.memo)(QEe);function t1e({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:p}){let{type:m,columnCount:d=3}=t||{},[f,h]=(0,c1.useState)(),g={hide_empty:l,order:n,orderby:i,per_page:c||-1};!s&&!u?.length&&(g.parent=0),u?.length&&(g.include=u,g.orderby="include",g.order="asc");let{records:v}=(0,e1e.useEntityRecords)("taxonomy",o,g),b=(0,J0e.useSelect)(w=>w(Fl.store).getBlocks(e),[e]),_=(0,Fl.useBlockProps)({className:p}),k=(0,c1.useMemo)(()=>v?.map(w=>({taxonomy:o,termId:w.id,classList:`term-${w.id}`,termData:w})),[v,o]);if(!v)return(0,_a.jsx)("ul",{..._,children:(0,_a.jsx)("li",{className:"wp-block-term term-loading",children:(0,_a.jsx)("div",{className:"term-loading-placeholder"})})});if(!v.length)return(0,_a.jsxs)("p",{..._,children:[" ",(0,O2.__)("No terms found.")]});let x=w=>r(S=>({layout:{...S.layout,...w}}));return(0,_a.jsxs)(_a.Fragment,{children:[(0,_a.jsx)(Fl.BlockControls,{children:(0,_a.jsx)(X0e.ToolbarGroup,{controls:[{icon:ql,title:(0,O2._x)("List view","Term template block display setting"),onClick:()=>x({type:"default"}),isActive:m==="default"||m==="constrained"},{icon:$l,title:(0,O2._x)("Grid view","Term template block display setting"),onClick:()=>x({type:"grid",columnCount:d}),isActive:m==="grid"}]})}),(0,_a.jsx)("ul",{..._,children:k?.map(w=>(0,_a.jsxs)(Fl.BlockContextProvider,{value:w,children:[w.termId===(f||k[0]?.termId)?(0,_a.jsx)(YEe,{classList:w.classList}):null,(0,_a.jsx)(XEe,{blocks:b,blockContextId:w.termId,classList:w.classList,setActiveBlockContextId:h,isHidden:w.termId===(f||k[0]?.termId)})]},w.termId))})]})}var r1e=a(B(),1),o1e=a(y(),1);function a1e(){return(0,o1e.jsx)(r1e.InnerBlocks.Content,{})}var{name:n1e}=A7,i1e={icon:Qm,edit:t1e,save:a1e,example:{}},JEe=()=>R({name:n1e,metadata:A7,settings:i1e});var AO={};K(AO,{init:()=>rNe,metadata:()=>V7,name:()=>p1e,settings:()=>m1e});var u1=a(I(),1),z7=a(O(),1),Qc=a(B(),1),l1e=a(vd(),1),rl=a(y(),1);function s1e({attributes:e,setAttributes:t}){let{width:r,content:o,columns:n}=e;return(0,l1e.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,rl.jsxs)(rl.Fragment,{children:[(0,rl.jsx)(Qc.BlockControls,{children:(0,rl.jsx)(Qc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,rl.jsx)(Qc.InspectorControls,{children:(0,rl.jsx)(z7.PanelBody,{children:(0,rl.jsx)(z7.RangeControl,{label:(0,u1.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,rl.jsx)("div",{...(0,Qc.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,rl.jsx)("div",{className:"wp-block-column",children:(0,rl.jsx)(Qc.RichText,{tagName:"p",value:o?.[l]?.children,onChange:s=>{t({content:[...o.slice(0,l),{children:s},...o.slice(l+1)]})},"aria-label":(0,u1.sprintf)((0,u1.__)("Column %d text"),l+1),placeholder:(0,u1.__)("New Column")})},`column-${l}`))})]})}var V7={$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 F7=a(B(),1),O7=a(y(),1);function c1e({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,O7.jsx)("div",{...F7.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((n,i)=>(0,O7.jsx)("div",{className:"wp-block-column",children:(0,O7.jsx)(F7.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var H7=a($(),1),tNe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,H7.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:n})=>(0,H7.createBlock)("core/column",{},[(0,H7.createBlock)("core/paragraph",{content:n})])))}]},u1e=tNe;var{name:p1e}=V7,m1e={transforms:u1e,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:s1e,save:c1e},rNe=()=>R({name:p1e,metadata:V7,settings:m1e});var HO={};K(HO,{init:()=>uNe,metadata:()=>G7,name:()=>y1e,settings:()=>$7});var FO=a(I(),1);var b1e=a($(),1);var Qf=a(B(),1);var p1=a(y(),1),oNe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,p1.jsx)(Qf.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:ve},aNe={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,o=C({[`has-text-align-${t}`]:t});return(0,p1.jsx)("pre",{...Qf.useBlockProps.save({className:o}),children:(0,p1.jsx)(Qf.RichText.Content,{value:r})})},migrate(e){return ve(Zt(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},nNe={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},color:{gradients:!0,link:!0},dimensions:{minHeight:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0},spacing:{margin:!0,padding:!0},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,p1.jsx)("pre",{...Qf.useBlockProps.save({className:o}),children:(0,p1.jsx)(Qf.RichText.Content,{value:r})})},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},d1e=[nNe,aNe,oNe];var zO=a(I(),1),j7=a(B(),1),U7=a($(),1);var f1e=a(y(),1);function h1e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:n,insertBlocksAfter:i,style:l}=e,{content:s}=t;wt(e);let c=(0,j7.useBlockProps)({style:l});return(0,f1e.jsx)(j7.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{r({content:u})},"aria-label":(0,zO.__)("Poetry text"),placeholder:(0,zO.__)("Write poetry\u2026"),onRemove:n,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>i((0,U7.createBlock)((0,U7.getDefaultBlockName)()))})}var G7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Poetry",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem","verse","stanza","song","lyrics"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,textAlign:!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 W7=a(B(),1),VO=a(y(),1);function g1e({attributes:e}){let{content:t}=e;return(0,VO.jsx)("pre",{...W7.useBlockProps.save(),children:(0,VO.jsx)(W7.RichText.Content,{value:t})})}var OO=a($(),1),lNe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,OO.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,OO.createBlock)("core/paragraph",e)}]},v1e=lNe;var{fieldsKey:sNe,formKey:cNe}=U(b1e.privateApis),{name:y1e}=G7,$7={icon:Dv,example:{attributes:{content:(0,FO.__)(`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:v1e,deprecated:d1e,merge(e,t){return{content:e.content+`

`+t.content}},edit:h1e,save:g1e};window.__experimentalContentOnlyInspectorFields&&($7[sNe]=[{id:"content",label:(0,FO.__)("Content"),type:"text",Edit:"rich-text"}],$7[cNe]={fields:["content"]});var uNe=()=>R({name:y1e,metadata:G7,settings:$7});var GO={};K(GO,{init:()=>PNe,metadata:()=>m1,name:()=>z1e,settings:()=>Y7});var K7=a(I(),1);var A1e=a($(),1);var F2=a(B(),1);var m1={$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"},width:{type:"number"},height:{type:"number"},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 _1e=a(y(),1);function d1({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,_1e.jsx)("track",{...o},r??o.src)})}var f1=a(y(),1),{attributes:mNe}=m1,dNe={attributes:mNe,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:p}=e;return(0,f1.jsxs)("figure",{...F2.useBlockProps.save(),children:[c&&(0,f1.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,f1.jsx)(d1,{tracks:p})}),!F2.RichText.isEmpty(r)&&(0,f1.jsx)(F2.RichText.Content,{tagName:"figcaption",value:r})]})}},fNe=[dNe],x1e=fNe;var E1e=a(Mr(),1),v1=a(O(),1),Dn=a(B(),1),Jf=a(H(),1),j2=a(I(),1),N1e=a(F(),1);var I1e=a(Sr(),1),D1e=a(ur(),1);var oo=a(I(),1),In=a(O(),1),H2=a(H(),1),xa=a(y(),1),hNe=[{value:"auto",label:(0,oo.__)("Auto")},{value:"metadata",label:(0,oo.__)("Metadata")},{value:"none",label:(0,oo._x)("None","Preload value")}],gNe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,oo.__)("Autoplay may cause usability issues for some users."),u=(0,H2.useCallback)(d=>d?c:null,[]),p=(0,H2.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")}},[]),m=(0,H2.useCallback)(d=>{e({preload:d})},[]);return(0,xa.jsxs)(xa.Fragment,{children:[(0,xa.jsx)(In.__experimentalToolsPanelItem,{label:(0,oo.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,xa.jsx)(In.ToggleControl,{label:(0,oo.__)("Autoplay"),onChange:p.autoplay,checked:!!r,help:u})}),(0,xa.jsx)(In.__experimentalToolsPanelItem,{label:(0,oo.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,xa.jsx)(In.ToggleControl,{label:(0,oo.__)("Loop"),onChange:p.loop,checked:!!n})}),(0,xa.jsx)(In.__experimentalToolsPanelItem,{label:(0,oo.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,xa.jsx)(In.ToggleControl,{label:(0,oo.__)("Muted"),onChange:p.muted,checked:!!i,disabled:r,help:r?(0,oo.__)("Muted because of Autoplay."):null})}),(0,xa.jsx)(In.__experimentalToolsPanelItem,{label:(0,oo.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,xa.jsx)(In.ToggleControl,{label:(0,oo.__)("Playback controls"),onChange:p.controls,checked:!!o})}),(0,xa.jsx)(In.__experimentalToolsPanelItem,{label:(0,oo.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,xa.jsx)(In.ToggleControl,{label:(0,oo.__)("Play inline"),onChange:p.playsInline,checked:!!l,disabled:r,help:r?(0,oo.__)("Play inline enabled because of Autoplay."):(0,oo.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,xa.jsx)(In.__experimentalToolsPanelItem,{label:(0,oo.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,xa.jsx)(In.SelectControl,{label:(0,oo.__)("Preload"),value:s,onChange:m,options:hNe,hideCancelButton:!0})})]})},k1e=gNe;var Ot=a(I(),1),et=a(O(),1),h1=a(B(),1);var C1e=a(F(),1),Xf=a(H(),1),S1e=a(ur(),1);var Qe=a(y(),1),{Badge:vNe}=U(et.privateApis),w1e=["text/vtt"],bNe="subtitles",yNe=[{label:(0,Ot.__)("Subtitles"),value:"subtitles"},{label:(0,Ot.__)("Captions"),value:"captions"},{label:(0,Ot.__)("Descriptions"),value:"descriptions"},{label:(0,Ot.__)("Chapters"),value:"chapters"},{label:(0,Ot.__)("Metadata"),value:"metadata"}],T1e={src:"",label:"",srcLang:"en",kind:bNe,default:!1};function _Ne({tracks:e,onEditPress:t}){let r=e.map((o,n)=>(0,Qe.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Qe.jsx)("span",{children:o.label}),(0,Qe.jsxs)(et.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,Qe.jsx)(vNe,{children:(0,Ot.__)("Default")}),(0,Qe.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Ot.sprintf)((0,Ot._x)("Edit %s","text tracks"),o.label),children:(0,Ot.__)("Edit")})]})]},o.id??o.src));return(0,Qe.jsx)(et.MenuGroup,{label:(0,Ot.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function xNe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:n}){let[i,l]=(0,Xf.useState)({...T1e,...e}),{src:s,label:c,srcLang:u,kind:p,default:m}=i,d=s.startsWith("blob:")?"":(0,S1e.getFilename)(s)||"";return(0,Qe.jsxs)(et.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Qe.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Ot.__)("Edit track")}),(0,Qe.jsxs)("span",{children:[(0,Ot.__)("File"),": ",(0,Qe.jsx)("b",{children:d})]}),(0,Qe.jsxs)(et.__experimentalGrid,{columns:2,gap:4,children:[(0,Qe.jsx)(et.TextControl,{onChange:f=>l(h=>({...h,label:f})),label:(0,Ot.__)("Label"),value:c,help:(0,Ot.__)("Title of track")}),(0,Qe.jsx)(et.TextControl,{onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Ot.__)("Source language"),value:u,help:(0,Ot.__)("Language tag (en, fr, etc.)")})]}),(0,Qe.jsxs)(et.__experimentalVStack,{spacing:"4",children:[(0,Qe.jsx)(et.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:yNe,value:p,label:(0,Ot.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Qe.jsx)(et.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Ot.__)("Set as default track"),checked:m,disabled:!n,onChange:f=>l(h=>({...h,default:f}))}),(0,Qe.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Qe.jsx)(et.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Ot.__)("Remove track")}),(0,Qe.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Ot.__)("Apply")})]})]})]})}function P1e({tracks:e=[],onChange:t}){let r=(0,C1e.useSelect)(c=>c(h1.store).getSettings().mediaUpload,[]),[o,n]=(0,Xf.useState)(null),i=(0,Xf.useRef)(),l=(c=[],u=!1)=>{let p=new Map(e.map(d=>[d.id,d])),m=c.map(({id:d,title:f,url:h})=>p.has(d)?p.get(d):{...T1e,id:d,label:f||"",src:h});m.length!==0&&t([...u?e:[],...m])};function s(c){let u=c.target.files;r({allowedTypes:w1e,filesList:u,onFileChange:p=>{if(!Array.isArray(p))return;let m=p.filter(d=>!!d?.id);m.length&&l(m,!0)}})}return(0,Xf.useEffect)(()=>{i.current?.focus()},[o]),r?(0,Qe.jsx)(et.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Qe.jsx)(et.ToolbarGroup,{children:(0,Qe.jsx)(et.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Ot.__)("Text tracks")})}),renderContent:()=>o!==null?(0,Qe.jsx)(xNe,{track:e[o],onChange:c=>{let u=[...e];u[o]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==o)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[o].default}):(0,Qe.jsxs)(Qe.Fragment,{children:[e.length===0&&(0,Qe.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Qe.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Ot.__)("Text tracks")}),(0,Qe.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Ot.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Qe.jsxs)(et.NavigableMenu,{children:[(0,Qe.jsx)(_Ne,{tracks:e,onEditPress:n}),(0,Qe.jsx)(et.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Ot.__)("Add tracks"),children:(0,Qe.jsxs)(h1.MediaUploadCheck,{children:[(0,Qe.jsx)(h1.MediaUpload,{onSelect:l,allowedTypes:w1e,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Qe.jsx)(et.MenuItem,{icon:ov,onClick:c,children:(0,Ot.__)("Open Media Library")})}),(0,Qe.jsx)(et.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Qe.jsx)(et.MenuItem,{icon:ou,onClick:c,children:(0,Ot._x)("Upload","verb")})})]})})]})]})}):null}var g1=a(I(),1);var q7=({controls:e,loop:t,autoplay:r,muted:o,playsInline:n}={})=>!e&&!!t&&!!r&&!!o&&!!n,kNe=[{name:"video",title:(0,g1.__)("Video"),description:(0,g1.__)("Embed a video from your media library or upload a new one."),icon:au,attributes:{controls:!0},isActive:e=>!q7(e),scope:["block","transform"]},{name:"gif",title:(0,g1.__)("GIF"),description:(0,g1.__)("A muted, looping video that plays automatically like an animated GIF."),icon:au,keywords:[(0,g1.__)("animated"),"gif"],attributes:{controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0},isActive:e=>q7(e),scope:["block","transform"]}],B1e=kNe;var xr=a(y(),1),jO=["video"];function wNe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:n,onReplace:i}){let l=(0,Jf.useRef)(),{id:s,controls:c,poster:u,src:p,tracks:m,width:d,height:f}=t,h=q7(t),g=d&&f?`${d} / ${f}`:void 0,[v,b]=(0,Jf.useState)(t.blob),_=Z(),x=(0,Dn.useBlockEditingMode)()==="default";Ws({url:v,allowedTypes:jO,onChange:w,onError:N}),(0,Jf.useEffect)(()=>{l.current&&l.current.load()},[u]),(0,Jf.useEffect)(()=>{h&&l.current?.play().catch(()=>{})},[h,p,u]);function w(E){if(!E||!E.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),b();return}if((0,E1e.isBlobURL)(E.url)){b(E.url);return}o({blob:void 0,src:E.url,id:E.id,poster:E.image?.src!==E.icon?E.image?.src:void 0,caption:E.caption}),b()}function S(E){if(E!==p){let M=(0,D1e.prependHTTPS)(E),z=fp({attributes:{url:M}});if(z!==void 0&&i){i(z);return}o({blob:void 0,src:M,id:void 0,poster:void 0}),b()}}let{createErrorNotice:T}=(0,N1e.useDispatch)(I1e.store);function N(E){T(E,{type:"snackbar"})}let D=E=>(0,xr.jsx)(v1.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:au,label:(0,j2.__)("Video"),instructions:(0,j2.__)("Drag and drop a video, upload, or choose from your library."),children:E}),L=C(r,{"is-transient":!!v}),P=(0,Dn.useBlockProps)({className:L});return!p&&!v?(0,xr.jsx)("div",{...P,children:(0,xr.jsx)(Dn.MediaPlaceholder,{icon:(0,xr.jsx)(Dn.BlockIcon,{icon:au}),onSelect:w,onSelectURL:S,accept:"video/*",allowedTypes:jO,value:t,onError:N,placeholder:D})}):(0,xr.jsxs)(xr.Fragment,{children:[e&&(0,xr.jsxs)(xr.Fragment,{children:[(0,xr.jsx)(Dn.BlockControls,{children:(0,xr.jsx)(P1e,{tracks:m,onChange:E=>{o({tracks:E})}})}),(0,xr.jsx)(Dn.BlockControls,{group:"other",children:(0,xr.jsx)(Dn.MediaReplaceFlow,{mediaId:s,mediaURL:p,allowedTypes:jO,accept:"video/*",onSelect:w,onSelectURL:S,onError:N,onReset:()=>w(void 0),variant:"toolbar"})})]}),(0,xr.jsx)(Dn.InspectorControls,{children:(0,xr.jsxs)(v1.__experimentalToolsPanel,{label:(0,j2.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:_,children:[(0,xr.jsx)(k1e,{setAttributes:o,attributes:t}),(0,xr.jsx)(Xw,{poster:u,onChange:E=>o({poster:E?.url})})]})}),(0,xr.jsxs)("figure",{...P,children:[(0,xr.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:p||v,ref:l,autoPlay:h,loop:h,muted:h,playsInline:h,width:d,height:f,style:g?{aspectRatio:g}:void 0,children:(0,xr.jsx)(d1,{tracks:m})}),!!v&&(0,xr.jsx)(v1.Spinner,{}),(0,xr.jsx)(Mo,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:n,label:(0,j2.__)("Video caption text"),showToolbarButton:e&&x})]})]})}var L1e=wNe;var eh=a(B(),1);var b1=a(y(),1);function R1e({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:p,width:m,height:d}=e,f=m&&d?`${m} / ${d}`:void 0;return(0,b1.jsxs)("figure",{...eh.useBlockProps.save(),children:[c&&(0,b1.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,width:m,height:d,style:f?{aspectRatio:f}:void 0,children:(0,b1.jsx)(d1,{tracks:p})}),!eh.RichText.isEmpty(r)&&(0,b1.jsx)(eh.RichText.Content,{className:(0,eh.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var Z7=a(Mr(),1),UO=a($(),1),CNe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,UO.createBlock)("core/video",{blob:(0,Z7.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:o,ogv:n,flv:i}})=>e||t||r||o||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,Z7.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,UO.createBlock)("core/video",r)}}]},M1e=CNe;var{fieldsKey:SNe,formKey:TNe}=U(A1e.privateApis),{name:z1e}=m1,Y7={icon:au,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,K7.__)("Wood thrush singing in Central Park, NYC.")}},transforms:M1e,variations:B1e,deprecated:x1e,edit:L1e,save:R1e};window.__experimentalContentOnlyInspectorFields&&(Y7[SNe]=[{id:"video",label:(0,K7.__)("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,K7.__)("Caption"),type:"text",Edit:"rich-text"}],Y7[TNe]={fields:["video","caption"]});var PNe=()=>R({name:z1e,metadata:m1,settings:Y7});var YO={};K(YO,{init:()=>RNe,metadata:()=>Q7,name:()=>J7,settings:()=>q1e});var $1e=a(es(),1);var th=a(B(),1),V1e=a(oe(),1),U2=a(I(),1),WO=a(O(),1);var Hl=a(y(),1);function O1e({context:{postType:e,postId:t}}){let[r,o]=(0,V1e.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,th.useBlockProps)();return n?i.length?(0,Hl.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,Hl.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,Hl.jsx)(th.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{o({...r,footnotes:JSON.stringify(i.map(p=>p.id===s?{content:u,id:s}:p))})}})," ",(0,Hl.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,Hl.jsx)("div",{...l,children:(0,Hl.jsx)(WO.Placeholder,{icon:(0,Hl.jsx)(th.BlockIcon,{icon:ll}),label:(0,U2.__)("Footnotes"),instructions:(0,U2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,Hl.jsx)("div",{...l,children:(0,Hl.jsx)(WO.Placeholder,{icon:(0,Hl.jsx)(th.BlockIcon,{icon:ll}),label:(0,U2.__)("Footnotes"),instructions:(0,U2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var Q7={$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 ka=[];for(let e=0;e<256;++e)ka.push((e+256).toString(16).slice(1));function F1e(e,t=0){return(ka[e[t+0]]+ka[e[t+1]]+ka[e[t+2]]+ka[e[t+3]]+"-"+ka[e[t+4]]+ka[e[t+5]]+"-"+ka[e[t+6]]+ka[e[t+7]]+"-"+ka[e[t+8]]+ka[e[t+9]]+"-"+ka[e[t+10]]+ka[e[t+11]]+ka[e[t+12]]+ka[e[t+13]]+ka[e[t+14]]+ka[e[t+15]]).toLowerCase()}var ENe=new Uint8Array(16);function $O(){return crypto.getRandomValues(ENe)}function NNe(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():INe(e,t,r)}function INe(e,t,r){e=e||{};let o=e.random??e.rng?.()??$O();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[r+n]=o[n];return t}return F1e(o)}var qO=NNe;var ZO=a(I(),1);var j1e=a(es(),1),ep=a(B(),1),y1=a(F(),1),U1e=a(oe(),1),X7=a($(),1);var G1e=a(y(),1),KO="core/footnote",{usesContextKey:DNe}=U(ep.privateApis),H1e="core/post-content",LNe="core/block",W1e={title:(0,ZO.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[DNe]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:n,postId:i}}){let l=(0,y1.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:p,getBlockParentsByBlockName:m}=l.select(ep.store),d=(0,y1.useSelect)(v=>{if(!v(X7.store).getBlockType("core/footnotes"))return!1;let b=v(ep.store).getSettings().allowedBlockTypes;if(b===!1||Array.isArray(b)&&!b.includes("core/footnotes")||typeof v(U1e.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:k,getSelectedBlockClientId:x,getBlockName:w}=v(ep.store),S=x();if(!S||w(S)===J7)return!1;let T=k(S,LNe);return!T||T.length===0},[n,i]),{selectionChange:f,insertBlock:h}=(0,y1.useDispatch)(ep.store);if(!d)return null;function g(){l.batch(()=>{let v;if(o)v=t.replacements[t.start]?.attributes?.["data-fn"];else{v=qO();let w=(0,j1e.insertObject)(t,{type:KO,attributes:{"data-fn":v},innerHTML:`<a href="#${v}" id="${v}-link">*</a>`},t.end,t.end);w.start=w.end-1,r(w)}let b=s(),_=m(b,H1e),k=_.length?c(_[0]):c(),x=null;{let w=[...k];for(;w.length;){let S=w.shift();if(S.name==="core/footnotes"){x=S;break}w.push(...S.innerBlocks)}}if(!x){let w=u(b);for(;w&&p(w)!==H1e;)w=u(w);x=(0,X7.createBlock)("core/footnotes"),h(x,void 0,w)}f(x.clientId,v,0,0)})}return(0,G1e.jsx)(ep.RichTextToolbarButton,{icon:ll,title:(0,ZO.__)("Footnote"),onClick:g,isActive:o})}};var{name:J7}=Q7,q1e={icon:ll,edit:O1e},RNe=()=>{(0,$1e.registerFormatType)(KO,W1e),R({name:J7,metadata:Q7,settings:q1e})};function Z1e(e){return e&&"__experimental"in e&&e.__experimental!==!1}var Q1e=a(H(),1),G2=a(F(),1),Xc=a(Y1e(),1),QO=a(I(),1),X1e=a($(),1),XO=a(B(),1);function MNe(){let{registerShortcut:e}=(0,G2.useDispatch)(Xc.store),{replaceBlocks:t}=(0,G2.useDispatch)(XO.store),{getBlockName:r,getSelectedBlockClientId:o,getBlockAttributes:n}=(0,G2.useSelect)(XO.store),i=(l,s)=>{l.preventDefault();let c=o();if(c===null)return;let u=r(c),p=u==="core/paragraph",m=u==="core/heading";if(!p&&!m)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(p&&s===0||m&&f.level===s)return;let h={content:f.content},g=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"&&(h.level=s),g&&(h.style={typography:{textAlign:g}}),t(c,(0,X1e.createBlock)(d,h))};return(0,Q1e.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,QO.__)("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,QO.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,Xc.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,Xc.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,Xc.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,Xc.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,Xc.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,Xc.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,Xc.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var J1e=MNe;var JO={};wj(JO,{BlockKeyboardShortcuts:J1e,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Cc,NavigationLinkUI:KC});var e9=a(y(),1),ANe=()=>{let e=[cA,NR,dR,aR,VR,KR,Pz,aI,nI,iI,lI,sI,yI,yD,kD,CD,PD,RD,AD,OD,WD,TL,PL,DL,zL,sR,vR,FR,IR,RR,rM,oM,aM,GM,XM,oA,ZM,_A,xA,WA,$A,Bz,Nz,Az,zz,Oz,GV,$V,qV,sO,fO,dO,XV,YV,gO,AO,HO,GO,YO,VM,FM,jM,Hz,qz,Gz,cz,xO,uI,HA,RA,AA,IA,wA,CA,TA,PA,NA,DA,OA,zA,VA,FA,dz,hz,gz,bz,uz,Sz,Ez,UD,$D,qD,KD,YD,QD,JD,lL,oL,nL,iL,tL,EA,uO,fR,wR,YR,$M,SO,PO,BO,RO,MO,kz,SA,_I];return window?.__experimentalEnableFormBlocks&&(e.push(jL),e.push(GL),e.push($L),e.push(qL)),window?.__experimentalEnableBlockExperiments,e.push(ED),e.filter(Boolean)},ave=()=>ANe().filter(({metadata:e})=>!Z1e(e)),zNe=(e=ave())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=U((0,tve.select)(jl.store)).getBootstrappedBlockType(t);(0,jl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},usesContext:Array.from(new Set([...r?.usesContext??[],"postId"])),edit:function({attributes:n,context:i}){let l=(0,eve.useDisabled)(),s=(0,rve.useBlockProps)({ref:l}),{content:c,status:u,error:p}=(0,ove.useServerSideRender)({block:t,attributes:n,urlQueryArgs:{post_id:i?.postId}});return u==="loading"?(0,e9.jsx)("div",{...s,children:(0,W2.__)("Loading\u2026")}):u==="error"?(0,e9.jsx)("div",{...s,children:(0,W2.sprintf)((0,W2.__)("Error loading block: %s"),p)}):(0,e9.jsx)(_o,{wrapperProps:s,html:c})},save:()=>null})}),(0,jl.setDefaultBlockName)(zS),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===pb)&&(0,jl.setFreeformContentHandlerName)(pb),(0,jl.setUnregisteredTypeHandlerName)(Yb),(0,jl.setGroupingBlockName)(t4)},VNe=void 0;return kve(ONe);})();
/*! Bundled license information:

use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
  (**
   * @license React
   * use-sync-external-store-shim.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

fast-average-color/dist/index.esm.js:
  (*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
*/