"use strict";var wp;(wp||={}).blockEditor=(()=>{var Qxe=Object.create;var Hw=Object.defineProperty;var Jxe=Object.getOwnPropertyDescriptor;var e0e=Object.getOwnPropertyNames;var t0e=Object.getPrototypeOf,o0e=Object.prototype.hasOwnProperty;var se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ps=(e,t)=>{for(var o in t)Hw(e,o,{get:t[o],enumerable:!0})},DU=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of e0e(t))!o0e.call(e,n)&&n!==o&&Hw(e,n,{get:()=>t[n],enumerable:!(r=Jxe(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?Qxe(t0e(e)):{},DU(t||!e||!e.__esModule?Hw(o,"default",{value:e,enumerable:!0}):o,e)),r0e=e=>DU(Hw({},"__esModule",{value:!0}),e);var Q=se((C9e,FU)=>{FU.exports=window.wp.blocks});var A=se((E9e,zU)=>{zU.exports=window.wp.element});var G=se((T9e,jU)=>{jU.exports=window.wp.data});var oe=se((B9e,HU)=>{HU.exports=window.wp.compose});var Ft=se((R9e,UU)=>{UU.exports=window.wp.hooks});var N=se((L9e,e7)=>{e7.exports=window.wp.components});var Yw=se((M9e,t7)=>{t7.exports=window.wp.privateApis});var Je=se((H9e,s7)=>{s7.exports=window.wp.deprecated});var C=se((U9e,a7)=>{a7.exports=window.ReactJSXRuntime});var Ai=se((W9e,c7)=>{c7.exports=window.wp.url});var F=se((oUe,g7)=>{g7.exports=window.wp.i18n});var fp=se((rUe,b7)=>{"use strict";b7.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var te=se((mUe,R7)=>{R7.exports=window.wp.primitives});var Wr=se((O$e,P7)=>{P7.exports=window.wp.richText});var O7=se((A$e,I7)=>{I7.exports=window.wp.blockSerializationDefaultParser});var Cr=se((cKe,hG)=>{hG.exports=window.wp.a11y});var Ni=se((uKe,SG)=>{SG.exports=window.wp.notices});var nb=se((dKe,_G)=>{_G.exports=window.wp.preferences});var iW=se((uYe,RE)=>{var oW={\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"},rW=Object.keys(oW).join("|"),vTe=new RegExp(rW,"g"),kTe=new RegExp(rW,"");function STe(e){return oW[e]}var nW=function(e){return e.replace(vTe,STe)},_Te=function(e){return!!e.match(kTe)};RE.exports=nW;RE.exports.has=_Te;RE.exports.remove=nW});var JS=se((tqe,IW)=>{IW.exports=window.wp.styleEngine});var Bt=se((tZe,e$)=>{e$.exports=window.wp.keycodes});var at=se((kZe,p$)=>{p$.exports=window.wp.dom});var g$=se(BF=>{"use strict";Object.defineProperty(BF,"__esModule",{value:!0});BF.default=h$;function h$(){}h$.prototype={diff:function(t,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.callback;typeof r=="function"&&(n=r,r={}),this.options=r;var i=this;function s(g){return n?(setTimeout(function(){n(void 0,g)},0),!0):g}t=this.castInput(t),o=this.castInput(o),t=this.removeEmpty(this.tokenize(t)),o=this.removeEmpty(this.tokenize(o));var a=o.length,l=t.length,u=1,d=a+l,f=[{newPos:-1,components:[]}],m=this.extractCommon(f[0],o,t,0);if(f[0].newPos+1>=a&&m+1>=l)return s([{value:this.join(o),count:o.length}]);function h(){for(var g=-1*u;g<=u;g+=2){var b=void 0,v=f[g-1],y=f[g+1],k=(y?y.newPos:0)-g;v&&(f[g-1]=void 0);var S=v&&v.newPos+1<a,_=y&&0<=k&&k<l;if(!S&&!_){f[g]=void 0;continue}if(!S||_&&v.newPos<y.newPos?(b=fBe(y),i.pushComponent(b.components,void 0,!0)):(b=v,b.newPos++,i.pushComponent(b.components,!0,void 0)),k=i.extractCommon(b,o,t,g),b.newPos+1>=a&&k+1>=l)return s(dBe(i,b.components,o,t,i.useLongestToken));f[g]=b}u++}if(n)(function g(){setTimeout(function(){if(u>d)return n();h()||g()},0)})();else for(;u<=d;){var p=h();if(p)return p}},pushComponent:function(t,o,r){var n=t[t.length-1];n&&n.added===o&&n.removed===r?t[t.length-1]={count:n.count+1,added:o,removed:r}:t.push({count:1,added:o,removed:r})},extractCommon:function(t,o,r,n){for(var i=o.length,s=r.length,a=t.newPos,l=a-n,u=0;a+1<i&&l+1<s&&this.equals(o[a+1],r[l+1]);)a++,l++,u++;return u&&t.components.push({count:u}),t.newPos=a,l},equals:function(t,o){return this.options.comparator?this.options.comparator(t,o):t===o||this.options.ignoreCase&&t.toLowerCase()===o.toLowerCase()},removeEmpty:function(t){for(var o=[],r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function dBe(e,t,o,r,n){for(var i=0,s=t.length,a=0,l=0;i<s;i++){var u=t[i];if(u.removed){if(u.value=e.join(r.slice(l,l+u.count)),l+=u.count,i&&t[i-1].added){var f=t[i-1];t[i-1]=t[i],t[i]=f}}else{if(!u.added&&n){var d=o.slice(a,a+u.count);d=d.map(function(h,p){var g=r[l+p];return g.length>h.length?g:h}),u.value=e.join(d)}else u.value=e.join(o.slice(a,a+u.count));a+=u.count,u.added||(l+=u.count)}}var m=t[s-1];return s>1&&typeof m.value=="string"&&(m.added||m.removed)&&e.equals("",m.value)&&(t[s-2].value+=m.value,t.pop()),t}function fBe(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var y$=se(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.diffChars=hBe;a_.characterDiff=void 0;var mBe=pBe(g$());function pBe(e){return e&&e.__esModule?e:{default:e}}var b$=new mBe.default;a_.characterDiff=b$;function hBe(e,t,o){return b$.diff(e,t,o)}});var pe=se((MZe,O$)=>{O$.exports=window.React});var L$=se((NZe,A$)=>{"use strict";var vBe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";A$.exports=vBe});var V$=se((DZe,D$)=>{"use strict";var kBe=L$();function M$(){}function N$(){}N$.resetWarningCache=M$;D$.exports=function(){function e(r,n,i,s,a,l){if(l!==kBe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:N$,resetWarningCache:M$};return o.PropTypes=o,o}});var z$=se((zZe,F$)=>{F$.exports=V$()();var VZe,FZe});var H$=se((nT,j$)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["module","exports"],t);else if(typeof nT<"u")t(j$,nT);else{var o={exports:{}};t(o,o.exports),e.autosize=o.exports}})(nT,function(e,t){"use strict";var o=typeof Map=="function"?new Map:(function(){var l=[],u=[];return{has:function(f){return l.indexOf(f)>-1},get:function(f){return u[l.indexOf(f)]},set:function(f,m){l.indexOf(f)===-1&&(l.push(f),u.push(m))},delete:function(f){var m=l.indexOf(f);m>-1&&(l.splice(m,1),u.splice(m,1))}}})(),r=function(u){return new Event(u,{bubbles:!0})};try{new Event("test")}catch{r=function(d){var f=document.createEvent("Event");return f.initEvent(d,!0,!1),f}}function n(l){if(!l||!l.nodeName||l.nodeName!=="TEXTAREA"||o.has(l))return;var u=null,d=null,f=null;function m(){var k=window.getComputedStyle(l,null);k.resize==="vertical"?l.style.resize="none":k.resize==="both"&&(l.style.resize="horizontal"),k.boxSizing==="content-box"?u=-(parseFloat(k.paddingTop)+parseFloat(k.paddingBottom)):u=parseFloat(k.borderTopWidth)+parseFloat(k.borderBottomWidth),isNaN(u)&&(u=0),b()}function h(k){{var S=l.style.width;l.style.width="0px",l.offsetWidth,l.style.width=S}l.style.overflowY=k}function p(k){for(var S=[];k&&k.parentNode&&k.parentNode instanceof Element;)k.parentNode.scrollTop&&S.push({node:k.parentNode,scrollTop:k.parentNode.scrollTop}),k=k.parentNode;return S}function g(){if(l.scrollHeight!==0){var k=p(l),S=document.documentElement&&document.documentElement.scrollTop;l.style.height="",l.style.height=l.scrollHeight+u+"px",d=l.clientWidth,k.forEach(function(_){_.node.scrollTop=_.scrollTop}),S&&(document.documentElement.scrollTop=S)}}function b(){g();var k=Math.round(parseFloat(l.style.height)),S=window.getComputedStyle(l,null),_=S.boxSizing==="content-box"?Math.round(parseFloat(S.height)):l.offsetHeight;if(_<k?S.overflowY==="hidden"&&(h("scroll"),g(),_=S.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight):S.overflowY!=="hidden"&&(h("hidden"),g(),_=S.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(l,null).height)):l.offsetHeight),f!==_){f=_;var x=r("autosize:resized");try{l.dispatchEvent(x)}catch{}}}var v=function(){l.clientWidth!==d&&b()},y=function(k){window.removeEventListener("resize",v,!1),l.removeEventListener("input",b,!1),l.removeEventListener("keyup",b,!1),l.removeEventListener("autosize:destroy",y,!1),l.removeEventListener("autosize:update",b,!1),Object.keys(k).forEach(function(S){l.style[S]=k[S]}),o.delete(l)}.bind(l,{height:l.style.height,resize:l.style.resize,overflowY:l.style.overflowY,overflowX:l.style.overflowX,wordWrap:l.style.wordWrap});l.addEventListener("autosize:destroy",y,!1),"onpropertychange"in l&&"oninput"in l&&l.addEventListener("keyup",b,!1),window.addEventListener("resize",v,!1),l.addEventListener("input",b,!1),l.addEventListener("autosize:update",b,!1),l.style.overflowX="hidden",l.style.wordWrap="break-word",o.set(l,{destroy:y,update:b}),m()}function i(l){var u=o.get(l);u&&u.destroy()}function s(l){var u=o.get(l);u&&u.update()}var a=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(a=function(u){return u},a.destroy=function(l){return l},a.update=function(l){return l}):(a=function(u,d){return u&&Array.prototype.forEach.call(u.length?u:[u],function(f){return n(f,d)}),u},a.destroy=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],i),l},a.update=function(l){return l&&Array.prototype.forEach.call(l.length?l:[l],s),l}),t.default=a,e.exports=t.default})});var G$=se((jZe,U$)=>{var SBe=function(e,t,o){return o=window.getComputedStyle,(o?o(e):e.currentStyle)[t.replace(/-(\w)/gi,function(r,n){return n.toUpperCase()})]};U$.exports=SBe});var $$=se((HZe,W$)=>{var PF=G$();function _Be(e){var t=PF(e,"line-height"),o=parseFloat(t,10);if(t===o+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=PF(e,"line-height"),o=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(o*=4,o/=3):t.indexOf("mm")!==-1?(o*=96,o/=25.4):t.indexOf("cm")!==-1?(o*=96,o/=2.54):t.indexOf("in")!==-1?o*=96:t.indexOf("pc")!==-1&&(o*=16),o=Math.round(o),t==="normal"){var n=e.nodeName,i=document.createElement(n);i.innerHTML="&nbsp;",n.toUpperCase()==="TEXTAREA"&&i.setAttribute("rows","1");var s=PF(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i);var l=i.offsetHeight;o=l,a.removeChild(i)}return o}W$.exports=_Be});var Y$=se(Wc=>{"use strict";var xBe=Wc&&Wc.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r])};return function(t,o){e(t,o);function r(){this.constructor=t}t.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}})(),IF=Wc&&Wc.__assign||Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wBe=Wc&&Wc.__rest||function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&(o[r[n]]=e[r[n]]);return o};Wc.__esModule=!0;var sT=pe(),l_=z$(),iT=H$(),CBe=$$(),EBe=CBe,K$="autosize:resized",TBe=(function(e){xBe(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.state={lineHeight:null},o.textarea=null,o.onResize=function(r){o.props.onResize&&o.props.onResize(r)},o.updateLineHeight=function(){o.textarea&&o.setState({lineHeight:EBe(o.textarea)})},o.onChange=function(r){var n=o.props.onChange;o.currentValue=r.currentTarget.value,n&&n(r)},o}return t.prototype.componentDidMount=function(){var o=this,r=this.props,n=r.maxRows,i=r.async;typeof n=="number"&&this.updateLineHeight(),typeof n=="number"||i?setTimeout(function(){return o.textarea&&iT(o.textarea)}):this.textarea&&iT(this.textarea),this.textarea&&this.textarea.addEventListener(K$,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(K$,this.onResize),iT.destroy(this.textarea))},t.prototype.render=function(){var o=this,r=this,n=r.props,i=n.onResize,s=n.maxRows,a=n.onChange,l=n.style,u=n.innerRef,d=n.children,f=wBe(n,["onResize","maxRows","onChange","style","innerRef","children"]),m=r.state.lineHeight,h=s&&m?m*s:null;return sT.createElement("textarea",IF({},f,{onChange:this.onChange,style:h?IF({},l,{maxHeight:h}):l,ref:function(p){o.textarea=p,typeof o.props.innerRef=="function"?o.props.innerRef(p):o.props.innerRef&&(o.props.innerRef.current=p)}}),d)},t.prototype.componentDidUpdate=function(){this.textarea&&iT.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l_.number,maxRows:l_.number,onResize:l_.func,innerRef:l_.any,async:l_.bool},t})(sT.Component);Wc.TextareaAutosize=sT.forwardRef(function(e,t){return sT.createElement(TBe,IF({},e,{innerRef:t}))})});var OF=se((GZe,q$)=>{"use strict";var BBe=Y$();q$.exports=BBe.TextareaAutosize});var c_=se((KZe,J$)=>{J$.exports=window.wp.warning});var Kc=se((dXe,qK)=>{qK.exports=window.ReactDOM});var Ba=se((jXe,xY)=>{xY.exports=window.wp.keyboardShortcuts});var zY=se((YQe,FY)=>{FY.exports=window.wp.htmlEntities});var TZ=se(EZ=>{"use strict";var Wb=pe();function YIe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qIe=typeof Object.is=="function"?Object.is:YIe,ZIe=Wb.useState,XIe=Wb.useEffect,QIe=Wb.useLayoutEffect,JIe=Wb.useDebugValue;function eOe(e,t){var o=t(),r=ZIe({inst:{value:o,getSnapshot:t}}),n=r[0].inst,i=r[1];return QIe(function(){n.value=o,n.getSnapshot=t,a3(n)&&i({inst:n})},[e,o,t]),XIe(function(){return a3(n)&&i({inst:n}),e(function(){a3(n)&&i({inst:n})})},[e]),JIe(o),o}function a3(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!qIe(e,o)}catch{return!0}}function tOe(e,t){return t()}var oOe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tOe:eOe;EZ.useSyncExternalStore=Wb.useSyncExternalStore!==void 0?Wb.useSyncExternalStore:oOe});var l3=se((xot,BZ)=>{"use strict";BZ.exports=TZ()});var PZ=se(RZ=>{"use strict";var yB=pe(),rOe=l3();function nOe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iOe=typeof Object.is=="function"?Object.is:nOe,sOe=rOe.useSyncExternalStore,aOe=yB.useRef,lOe=yB.useEffect,cOe=yB.useMemo,uOe=yB.useDebugValue;RZ.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var i=aOe(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=cOe(function(){function l(h){if(!u){if(u=!0,d=h,h=r(h),n!==void 0&&s.hasValue){var p=s.value;if(n(p,h))return f=p}return f=h}if(p=f,iOe(d,h))return p;var g=r(h);return n!==void 0&&n(p,g)?(d=h,p):(d=h,f=g)}var u=!1,d,f,m=o===void 0?null:o;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,o,r,n]);var a=sOe(e,i[0],i[1]);return lOe(function(){s.hasValue=!0,s.value=a},[a]),uOe(a),a}});var OZ=se((Cot,IZ)=>{"use strict";IZ.exports=PZ()});var RQ=se((Qlt,BQ)=>{BQ.exports=window.wp.theme});var cJ=se((eut,lJ)=>{lJ.exports=window.wp.uploadMedia});var gR=se(()=>{});var bR=se(()=>{});var xz=se(()=>{});var See=se((Bdt,kee)=>{var vAe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",kAe=(e,t=21)=>(o=t)=>{let r="",n=o|0;for(;n--;)r+=e[Math.random()*e.length|0];return r},SAe=(e=21)=>{let t="",o=e|0;for(;o--;)t+=vAe[Math.random()*64|0];return t};kee.exports={nanoid:SAe,customAlphabet:kAe}});var wz=se(()=>{});var xee=se((Idt,Cz)=>{var Ue=String,_ee=function(){return{isColorSupported:!1,reset:Ue,bold:Ue,dim:Ue,italic:Ue,underline:Ue,inverse:Ue,hidden:Ue,strikethrough:Ue,black:Ue,red:Ue,green:Ue,yellow:Ue,blue:Ue,magenta:Ue,cyan:Ue,white:Ue,gray:Ue,bgBlack:Ue,bgRed:Ue,bgGreen:Ue,bgYellow:Ue,bgBlue:Ue,bgMagenta:Ue,bgCyan:Ue,bgWhite:Ue,blackBright:Ue,redBright:Ue,greenBright:Ue,yellowBright:Ue,blueBright:Ue,magentaBright:Ue,cyanBright:Ue,whiteBright:Ue,bgBlackBright:Ue,bgRedBright:Ue,bgGreenBright:Ue,bgYellowBright:Ue,bgBlueBright:Ue,bgMagentaBright:Ue,bgCyanBright:Ue,bgWhiteBright:Ue}};Cz.exports=_ee();Cz.exports.createColors=_ee});var yR=se((Odt,Eee)=>{"use strict";var wee=xee(),Cee=wz(),nx=class e extends Error{constructor(t,o,r,n,i,s){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),n&&(this.source=n),s&&(this.plugin=s),typeof o<"u"&&typeof r<"u"&&(typeof o=="number"?(this.line=o,this.column=r):(this.line=o.line,this.column=o.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let o=this.source;t==null&&(t=wee.isColorSupported),Cee&&t&&(o=Cee(o));let r=o.split(/\r?\n/),n=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),s=String(i).length,a,l;if(t){let{bold:u,gray:d,red:f}=wee.createColors(!0);a=m=>u(f(m)),l=m=>d(m)}else a=l=u=>u;return r.slice(n,i).map((u,d)=>{let f=n+1+d,m=" "+(" "+f).slice(-s)+" | ";if(f===this.line){let h=l(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(m)+u+`
 `+h+a("^")}return" "+l(m)+u}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`

`+t+`
`),this.name+": "+this.message+t}};Eee.exports=nx;nx.default=nx});var Tee=se(()=>{});var Iee=se((Mdt,Pee)=>{"use strict";var{SourceMapConsumer:Bee,SourceMapGenerator:Ree}=gR(),{existsSync:_Ae,readFileSync:xAe}=Tee(),{dirname:Ez,join:wAe}=bR();function CAe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ix=class{constructor(t,o){if(o.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=o.map?o.map.prev:void 0,n=this.loadMap(o.from,r);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=Ez(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Bee(this.text)),this.consumerCache}decodeInline(t){let o=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(t)||i.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(o.test(t)||r.test(t))return CAe(t.substr(RegExp.lastMatch.length));let s=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let o=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let r=t.lastIndexOf(o.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}loadFile(t){if(this.root=Ez(t),_Ae(t))return this.mapFile=t,xAe(t,"utf-8").toString().trim()}loadMap(t,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let r=o(t);if(r){let n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(o instanceof Bee)return Ree.fromSourceMap(o).toString();if(o instanceof Ree)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=wAe(Ez(t),r)),this.loadFile(r)}}}startWith(t,o){return t?t.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Pee.exports=ix;ix.default=ix});var Iz=se((Ndt,Mee)=>{"use strict";var{SourceMapConsumer:EAe,SourceMapGenerator:TAe}=gR(),{fileURLToPath:Oee,pathToFileURL:vR}=xz(),{isAbsolute:Rz,resolve:Pz}=bR(),{nanoid:BAe}=See(),Tz=wz(),Aee=yR(),RAe=Iee(),Bz=Symbol("fromOffsetCache"),PAe=!!(EAe&&TAe),Lee=!!(Pz&&Rz),fy=class{constructor(t,o={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,o.from&&(!Lee||/^\w+:\/\//.test(o.from)||Rz(o.from)?this.file=o.from:this.file=Pz(o.from)),Lee&&PAe){let r=new RAe(this.css,o);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+BAe(6)+">"),this.map&&(this.map.file=this.from)}error(t,o,r,n={}){let i,s,a;if(o&&typeof o=="object"){let u=o,d=r;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);o=f.line,r=f.col}else o=u.line,r=u.column;if(typeof d.offset=="number"){let f=this.fromOffset(d.offset);s=f.line,a=f.col}else s=d.line,a=d.column}else if(!r){let u=this.fromOffset(o);o=u.line,r=u.col}let l=this.origin(o,r,s,a);return l?i=new Aee(t,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):i=new Aee(t,s===void 0?o:{column:r,line:o},s===void 0?r:{column:a,line:s},this.css,this.file,n.plugin),i.input={column:r,endColumn:a,endLine:s,line:o,source:this.css},this.file&&(vR&&(i.input.url=vR(this.file).toString()),i.input.file=this.file),i}fromOffset(t){let o,r;if(this[Bz])r=this[Bz];else{let i=this.css.split(`
`);r=new Array(i.length);let s=0;for(let a=0,l=i.length;a<l;a++)r[a]=s,s+=i[a].length+1;this[Bz]=r}o=r[r.length-1];let n=0;if(t>=o)n=r.length-1;else{let i=r.length-2,s;for(;n<i;)if(s=n+(i-n>>1),t<r[s])i=s-1;else if(t>=r[s+1])n=s+1;else{n=s;break}}return{col:t-r[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Pz(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,o,r,n){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:o,line:t});if(!s.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:n,line:r}));let l;Rz(s.source)?l=vR(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||vR(this.map.mapFile));let u={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Oee)u.file=Oee(l);else throw new Error("file: protocol is not available in this PostCSS build");let d=i.sourceContentFor(s.source);return d&&(u.source=d),u}toJSON(){let t={};for(let o of["hasBOM","css","file","id"])this[o]!=null&&(t[o]=this[o]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};Mee.exports=fy;fy.default=fy;Tz&&Tz.registerInput&&Tz.registerInput(fy)});var Az=se((Ddt,jee)=>{"use strict";var{SourceMapConsumer:Dee,SourceMapGenerator:kR}=gR(),{dirname:SR,relative:Vee,resolve:Fee,sep:zee}=bR(),{pathToFileURL:Nee}=xz(),IAe=Iz(),OAe=!!(Dee&&kR),AAe=!!(SR&&Fee&&Vee&&zee),Oz=class{constructor(t,o,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=o,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let o=`
`;this.css.includes(`\r
`)&&(o=`\r
`),this.css+=o+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let o=this.toUrl(this.path(t.file)),r=t.root||SR(t.file),n;this.mapOpts.sourcesContent===!1?(n=new Dee(t.text),n.sourcesContent&&(n.sourcesContent=null)):n=t.consumer(),this.map.applySourceMap(n,o,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let o=this.root.nodes.length-1;o>=0;o--)t=this.root.nodes[o],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(o)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),AAe&&OAe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,o=>{t+=o}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=kR.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new kR({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new kR({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,o=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(n.generated.line=t,n.generated.column=o-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),i=a.match(/\n/g),i?(t+=i.length,s=a.lastIndexOf(`
`),o=a.length-s):o+=a.length,l&&u!=="start"){let d=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==d.last||d.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=t,n.generated.column=o-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=t,n.generated.column=o-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let o=this.memoizedPaths.get(t);if(o)return o;let r=this.opts.to?SR(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=SR(Fee(r,this.mapOpts.annotation)));let n=Vee(r,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let o=t.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let t=new IAe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(o=>{if(o.source){let r=o.source.input.from;if(r&&!t[r]){t[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let o=this.memoizedFileURLs.get(t);if(o)return o;if(Nee){let r=Nee(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let o=this.memoizedURLs.get(t);if(o)return o;zee==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};jee.exports=Oz});var Lz=se((Vdt,Uee)=>{"use strict";var Hee={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function LAe(e){return e[0].toUpperCase()+e.slice(1)}var sx=class{constructor(t){this.builder=t}atrule(t,o){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let i=(t.raws.between||"")+(o?";":"");this.builder(r+n+i,t)}}beforeAfter(t,o){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):o==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
`)){let s=this.raw(t,null,"indent");if(s.length)for(let a=0;a<i;a++)r+=s}return r}block(t,o){let r=this.raw(t,"between","beforeOpen");this.builder(o+r+"{",t,"start");let n;t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(n),this.builder("}",t,"end")}body(t){let o=t.nodes.length-1;for(;o>0&&t.nodes[o].type==="comment";)o-=1;let r=this.raw(t,"semicolon");for(let n=0;n<t.nodes.length;n++){let i=t.nodes[n],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,o!==n||r)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+o+t.text+r+"*/",t)}decl(t,o){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),o&&(n+=";"),this.builder(n,t)}document(t){this.body(t)}raw(t,o,r){let n;if(r||(r=o),o&&(n=t.raws[o],typeof n<"u"))return n;let i=t.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===t||i&&i.type==="document"))return"";if(!i)return Hee[r];let s=t.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[r]<"u")return s.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let a="raw"+LAe(r);this[a]?n=this[a](s,t):s.walk(l=>{if(n=l.raws[o],typeof n<"u")return!1})}return typeof n>"u"&&(n=Hee[r]),s.rawCache[r]=n,n}rawBeforeClose(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return o=r.raws.after,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let r;return t.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,o){let r;return t.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let o;return t.walk(r=>{if(r.type!=="decl"&&(o=r.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return o=r.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return o=r.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(o=r.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(o=r.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let r=t[o],n=t.raws[o];return n&&n.value===r?n.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}};Uee.exports=sx;sx.default=sx});var _R=se((Fdt,Gee)=>{"use strict";var MAe=Lz();function Mz(e,t){new MAe(t).stringify(e)}Gee.exports=Mz;Mz.default=Mz});var Nz=se((zdt,$ee)=>{"use strict";var Wee={};$ee.exports=function(t){Wee[t]||(Wee[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var xR=se((jdt,Dz)=>{"use strict";Dz.exports.isClean=Symbol("isClean");Dz.exports.my=Symbol("my")});var CR=se((Hdt,Kee)=>{"use strict";var{isClean:wR,my:NAe}=xR(),DAe=yR(),VAe=Lz(),FAe=_R();function Vz(e,t){let o=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let n=e[r],i=typeof n;r==="parent"&&i==="object"?t&&(o[r]=t):r==="source"?o[r]=n:Array.isArray(n)?o[r]=n.map(s=>Vz(s,o)):(i==="object"&&n!==null&&(n=Vz(n)),o[r]=n)}return o}var ax=class{constructor(t={}){this.raws={},this[wR]=!1,this[NAe]=!0;for(let o in t)if(o==="nodes"){this.nodes=[];for(let r of t[o])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[o]=t[o]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let o=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let o in t)this[o]=t[o];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let o=Vz(this);for(let r in t)o[r]=t[r];return o}cloneAfter(t={}){let o=this.clone(t);return this.parent.insertAfter(this,o),o}cloneBefore(t={}){let o=this.clone(t);return this.parent.insertBefore(this,o),o}error(t,o={}){if(this.source){let{end:r,start:n}=this.rangeBy(o);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},o)}return new DAe(t)}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:o==="root"?()=>t.root().toProxy():t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&t.markDirty()),!0}}}markDirty(){if(this[wR]){this[wR]=!1;let t=this;for(;t=t.parent;)t[wR]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,o){let r=this.source.start;if(t.index)r=this.positionInside(t.index,o);else if(t.word){o=this.toString();let n=o.indexOf(t.word);n!==-1&&(r=this.positionInside(n,o))}return r}positionInside(t,o){let r=o||this.toString(),n=this.source.start.column,i=this.source.start.line;for(let s=0;s<t;s++)r[s]===`
`?(n=1,i+=1):n+=1;return{column:n,line:i}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let o={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:o.column+1,line:o.line};if(t.word){let n=this.toString(),i=n.indexOf(t.word);i!==-1&&(o=this.positionInside(i,n),r=this.positionInside(i+t.word.length,n))}else t.start?o={column:t.start.column,line:t.start.line}:t.index&&(o=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<o.line||r.line===o.line&&r.column<=o.column)&&(r={column:o.column+1,line:o.line}),{end:r,start:o}}raw(t,o){return new VAe().raw(this,t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let o=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(o,n),o=n):this.parent.insertBefore(o,n);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,o){let r={},n=o==null;o=o||new Map;let i=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))r[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,o):l);else if(typeof a=="object"&&a.toJSON)r[s]=a.toJSON(null,o);else if(s==="source"){let l=o.get(a.input);l==null&&(l=i,o.set(a.input,i),i++),r[s]={end:a.end,inputId:l,start:a.start}}else r[s]=a}return n&&(r.inputs=[...o.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=FAe){t.stringify&&(t=t.stringify);let o="";return t(this,r=>{o+=r}),o}warn(t,o,r){let n={node:this};for(let i in r)n[i]=r[i];return t.warn(o,n)}get proxyOf(){return this}};Kee.exports=ax;ax.default=ax});var Fz=se((Udt,Yee)=>{"use strict";var zAe=CR(),lx=class extends zAe{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Yee.exports=lx;lx.default=lx});var zz=se((Gdt,qee)=>{"use strict";var jAe=CR(),cx=class extends jAe{constructor(t){super(t),this.type="comment"}};qee.exports=cx;cx.default=cx});var uh=se((Wdt,nte)=>{"use strict";var{isClean:Zee,my:Xee}=xR(),Qee=Fz(),Jee=zz(),HAe=CR(),ete,jz,Hz,tte;function ote(e){return e.map(t=>(t.nodes&&(t.nodes=ote(t.nodes)),delete t.source,t))}function rte(e){if(e[Zee]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)rte(t)}var ja=class e extends HAe{append(...t){for(let o of t){let r=this.normalize(o,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let o of this.nodes)o.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let o=this.getIterator(),r,n;for(;this.indexes[o]<this.proxyOf.nodes.length&&(r=this.indexes[o],n=t(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[o]+=1;return delete this.indexes[o],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:t[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?(...r)=>t[o](...r.map(n=>typeof n=="function"?(i,s)=>n(i.toProxy(),s):n)):o==="every"||o==="some"?r=>t[o]((n,...i)=>r(n.toProxy(),...i)):o==="root"?()=>t.root().toProxy():o==="nodes"?t.nodes.map(r=>r.toProxy()):o==="first"||o==="last"?t[o].toProxy():t[o]:t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="name"||o==="params"||o==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,o){let r=this.index(t),n=this.normalize(o,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let s of n)this.proxyOf.nodes.splice(r+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],r<i&&(this.indexes[s]=i+n.length);return this.markDirty(),this}insertBefore(t,o){let r=this.index(t),n=r===0?"prepend":!1,i=this.normalize(o,this.proxyOf.nodes[r],n).reverse();r=this.index(t);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let s;for(let a in this.indexes)s=this.indexes[a],r<=s&&(this.indexes[a]=s+i.length);return this.markDirty(),this}normalize(t,o){if(typeof t=="string")t=ote(ete(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Qee(t)]}else if(t.selector)t=[new jz(t)];else if(t.name)t=[new Hz(t)];else if(t.text)t=[new Jee(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[Xee]||e.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Zee]&&rte(n),typeof n.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(n.raws.before=o.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...t){t=t.reverse();for(let o of t){let r=this.normalize(o,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let o;for(let r in this.indexes)o=this.indexes[r],o>=t&&(this.indexes[r]=o-1);return this.markDirty(),this}replaceValues(t,o,r){return r||(r=o,o={}),this.walkDecls(n=>{o.props&&!o.props.includes(n.prop)||o.fast&&!n.value.includes(o.fast)||(n.value=n.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((o,r)=>{let n;try{n=t(o,r)}catch(i){throw o.addToError(i)}return n!==!1&&o.walk&&(n=o.walk(t)),n})}walkAtRules(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&t.test(r.name))return o(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="atrule")return o(r,n)}))}walkComments(t){return this.walk((o,r)=>{if(o.type==="comment")return t(o,r)})}walkDecls(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&t.test(r.prop))return o(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="decl")return o(r,n)}))}walkRules(t,o){return o?t instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&t.test(r.selector))return o(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===t)return o(r,n)}):(o=t,this.walk((r,n)=>{if(r.type==="rule")return o(r,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ja.registerParse=e=>{ete=e};ja.registerRule=e=>{jz=e};ja.registerAtRule=e=>{Hz=e};ja.registerRoot=e=>{tte=e};nte.exports=ja;ja.default=ja;ja.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,Hz.prototype):e.type==="rule"?Object.setPrototypeOf(e,jz.prototype):e.type==="decl"?Object.setPrototypeOf(e,Qee.prototype):e.type==="comment"?Object.setPrototypeOf(e,Jee.prototype):e.type==="root"&&Object.setPrototypeOf(e,tte.prototype),e[Xee]=!0,e.nodes&&e.nodes.forEach(t=>{ja.rebuild(t)})}});var ate=se(($dt,ste)=>{"use strict";var ER=/[\t\n\f\r "#'()/;[\\\]{}]/g,TR=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,UAe=/.[\r\n"'(/\\]/,ite=/[\da-f]/i;ste.exports=function(t,o={}){let r=t.css.valueOf(),n=o.ignoreErrors,i,s,a,l,u,d,f,m,h,p,g=r.length,b=0,v=[],y=[];function k(){return b}function S(T){throw t.error("Unclosed "+T,b)}function _(){return y.length===0&&b>=g}function x(T){if(y.length)return y.pop();if(b>=g)return;let R=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(b),i){case 10:case 32:case 9:case 13:case 12:{s=b;do s+=1,i=r.charCodeAt(s);while(i===32||i===10||i===9||i===13||i===12);p=["space",r.slice(b,s)],b=s-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let B=String.fromCharCode(i);p=[B,B,b];break}case 40:{if(m=v.length?v.pop()[1]:"",h=r.charCodeAt(b+1),m==="url"&&h!==39&&h!==34&&h!==32&&h!==10&&h!==9&&h!==12&&h!==13){s=b;do{if(d=!1,s=r.indexOf(")",s+1),s===-1)if(n||R){s=b;break}else S("bracket");for(f=s;r.charCodeAt(f-1)===92;)f-=1,d=!d}while(d);p=["brackets",r.slice(b,s+1),b,s],b=s}else s=r.indexOf(")",b+1),l=r.slice(b,s+1),s===-1||UAe.test(l)?p=["(","(",b]:(p=["brackets",l,b,s],b=s);break}case 39:case 34:{a=i===39?"'":'"',s=b;do{if(d=!1,s=r.indexOf(a,s+1),s===-1)if(n||R){s=b+1;break}else S("string");for(f=s;r.charCodeAt(f-1)===92;)f-=1,d=!d}while(d);p=["string",r.slice(b,s+1),b,s],b=s;break}case 64:{ER.lastIndex=b+1,ER.test(r),ER.lastIndex===0?s=r.length-1:s=ER.lastIndex-2,p=["at-word",r.slice(b,s+1),b,s],b=s;break}case 92:{for(s=b,u=!0;r.charCodeAt(s+1)===92;)s+=1,u=!u;if(i=r.charCodeAt(s+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(s+=1,ite.test(r.charAt(s)))){for(;ite.test(r.charAt(s+1));)s+=1;r.charCodeAt(s+1)===32&&(s+=1)}p=["word",r.slice(b,s+1),b,s],b=s;break}default:{i===47&&r.charCodeAt(b+1)===42?(s=r.indexOf("*/",b+2)+1,s===0&&(n||R?s=r.length:S("comment")),p=["comment",r.slice(b,s+1),b,s],b=s):(TR.lastIndex=b+1,TR.test(r),TR.lastIndex===0?s=r.length-1:s=TR.lastIndex-2,p=["word",r.slice(b,s+1),b,s],v.push(p),b=s);break}}return b++,p}function E(T){y.push(T)}return{back:E,endOfFile:_,nextToken:x,position:k}}});var ute=se((Kdt,cte)=>{"use strict";var lte=uh(),my=class extends lte{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};cte.exports=my;my.default=my;lte.registerAtRule(my)});var BR=se((Ydt,pte)=>{"use strict";var dte=uh(),fte,mte,wf=class extends dte{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,o,r){let n=super.normalize(t);if(o){if(r==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let i of n)i.raws.before=o.raws.before}return n}removeChild(t,o){let r=this.index(t);return!o&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new fte(new mte,this,t).stringify()}};wf.registerLazyResult=e=>{fte=e};wf.registerProcessor=e=>{mte=e};pte.exports=wf;wf.default=wf;dte.registerRoot(wf)});var gte=se((qdt,hte)=>{"use strict";var ux={comma(e){return ux.split(e,[","],!0)},space(e){let t=[" ",`
`,"	"];return ux.split(e,t)},split(e,t,o){let r=[],n="",i=!1,s=0,a=!1,l="",u=!1;for(let d of e)u?u=!1:d==="\\"?u=!0:a?d===l&&(a=!1):d==='"'||d==="'"?(a=!0,l=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&t.includes(d)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=d;return(o||n!=="")&&r.push(n.trim()),r}};hte.exports=ux;ux.default=ux});var vte=se((Zdt,yte)=>{"use strict";var bte=uh(),GAe=gte(),py=class extends bte{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return GAe.comma(this.selector)}set selectors(t){let o=this.selector?this.selector.match(/,\s*/):null,r=o?o[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};yte.exports=py;py.default=py;bte.registerRule(py)});var xte=se((Xdt,_te)=>{"use strict";var WAe=Fz(),$Ae=ate(),KAe=zz(),YAe=ute(),qAe=BR(),kte=vte(),Ste={empty:!0,space:!0};function ZAe(e){for(let t=e.length-1;t>=0;t--){let o=e[t],r=o[3]||o[2];if(r)return r}}var Uz=class{constructor(t){this.input=t,this.root=new qAe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new YAe;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let r,n,i,s=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(i=l.length-1,n=l[i];n&&n[0]==="space";)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(t=l[l.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let r=0,n;for(let i=o-1;i>=0&&(n=t[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(t){let o=0,r,n,i;for(let[s,a]of t.entries()){if(r=a,n=r[0],n==="("&&(o+=1),n===")"&&(o-=1),o===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return s}i=r}return!1}comment(t){let o=new KAe;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))o.text="",o.raws.left=r,o.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);o.text=n[2],o.raws.left=n[1],o.raws.right=n[3]}}createTokenizer(){this.tokenizer=$Ae(this.input)}decl(t,o){let r=new WAe;this.init(r,t[0][2]);let n=t[t.length-1];for(n[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(n[3]||n[2]||ZAe(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let u=t[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let i;for(;t.length;)if(i=t.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s=[],a;for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)s.push(t.shift());this.precheckMissedSemicolon(t);for(let u=t.length-1;u>=0;u--){if(i=t[u],i[1].toLowerCase()==="!important"){r.important=!0;let d=this.stringFrom(t,u);d=this.spacesFromEnd(t)+d,d!==" !important"&&(r.raws.important=d);break}else if(i[1].toLowerCase()==="important"){let d=t.slice(0),f="";for(let m=u;m>0;m--){let h=d[m][0];if(f.trim().indexOf("!")===0&&h!=="space")break;f=d.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,t=d)}if(i[0]!=="space"&&i[0]!=="comment")break}t.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=s.map(u=>u[1]).join(""),s=[]),this.raw(r,"value",s.concat(t),o),r.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new kte;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,r=null,n=!1,i=null,s=[],a=t[1].startsWith("--"),l=[],u=t;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")i||(i=u),s.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=u),s.push("}");else if(s.length===0)if(r===";")if(n){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),o=!0;break}else r===":"&&(n=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),s.length>0&&this.unclosedBracket(i),o&&n){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,r,n){let i,s,a=r.length,l="",u=!0,d,f;for(let m=0;m<a;m+=1)i=r[m],s=i[0],s==="space"&&m===a-1&&!n?u=!1:s==="comment"?(f=r[m-1]?r[m-1][0]:"empty",d=r[m+1]?r[m+1][0]:"empty",!Ste[f]&&!Ste[d]?l.slice(-1)===","?u=!1:l+=i[1]:u=!1):l+=i[1];if(!u){let m=r.reduce((h,p)=>h+p[1],"");t.raws[o]={raw:m,value:l}}t[o]=l}rule(t){t.pop();let o=new kte;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,r="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let o,r="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let o,r="";for(;t.length&&(o=t[t.length-1][0],o==="space");)r=t.pop()[1]+r;return r}stringFrom(t,o){let r="";for(let n=o;n<t.length;n++)r+=t[n][1];return t.splice(o,t.length-o),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}};_te.exports=Uz});var Gz=se((Qdt,wte)=>{"use strict";var XAe=uh(),QAe=xte(),JAe=Iz();function RR(e,t){let o=new JAe(e,t),r=new QAe(o);try{r.parse()}catch(n){throw n}return r.root}wte.exports=RR;RR.default=RR;XAe.registerParse(RR)});var Ete=se((Jdt,Cte)=>{"use strict";var dx=class{constructor(t,o={}){if(this.type="warning",this.text=t,o.node&&o.node.source){let r=o.node.rangeBy(o);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in o)this[r]=o[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Cte.exports=dx;dx.default=dx});var Wz=se((eft,Tte)=>{"use strict";var eLe=Ete(),fx=class{constructor(t,o,r){this.processor=t,this.messages=[],this.root=o,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,o={}){o.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(o.plugin=this.lastPlugin.postcssPlugin);let r=new eLe(t,o);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};Tte.exports=fx;fx.default=fx});var Rte=se((oft,Bte)=>{"use strict";var tLe=Az(),oLe=_R(),tft=Nz(),rLe=Gz(),nLe=Wz(),mx=class{constructor(t,o,r){o=o.toString(),this.stringified=!1,this._processor=t,this._css=o,this._opts=r,this._map=void 0;let n,i=oLe;this.result=new nLe(this._processor,n,this._opts),this.result.css=o;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new tLe(i,n,this._opts,o);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,o){return this.async().then(t,o)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,o=rLe;try{t=o(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};Bte.exports=mx;mx.default=mx});var $z=se((rft,Ote)=>{"use strict";var iLe=uh(),Pte,Ite,dh=class extends iLe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Pte(new Ite,this,t).stringify()}};dh.registerLazyResult=e=>{Pte=e};dh.registerProcessor=e=>{Ite=e};Ote.exports=dh;dh.default=dh});var Dte=se((ift,Nte)=>{"use strict";var{isClean:Hl,my:sLe}=xR(),aLe=Az(),lLe=_R(),cLe=uh(),uLe=$z(),nft=Nz(),Ate=Wz(),dLe=Gz(),fLe=BR(),mLe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pLe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},hLe={Once:!0,postcssPlugin:!0,prepare:!0},hy=0;function px(e){return typeof e=="object"&&typeof e.then=="function"}function Mte(e){let t=!1,o=mLe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[o,o+"-"+t,hy,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:e.append?[o,hy,o+"Exit"]:[o,o+"Exit"]}function Lte(e){let t;return e.type==="document"?t=["Document",hy,"DocumentExit"]:e.type==="root"?t=["Root",hy,"RootExit"]:t=Mte(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Kz(e){return e[Hl]=!1,e.nodes&&e.nodes.forEach(t=>Kz(t)),e}var Yz={},Cf=class e{constructor(t,o,r){this.stringified=!1,this.processed=!1;let n;if(typeof o=="object"&&o!==null&&(o.type==="root"||o.type==="document"))n=Kz(o);else if(o instanceof e||o instanceof Ate)n=Kz(o.root),o.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=o.map);else{let i=dLe;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(o,r)}catch(s){this.processed=!0,this.error=s}n&&!n[sLe]&&cLe.rebuild(n)}this.result=new Ate(t,n,r),this.helpers={...Yz,postcss:Yz,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,o){let r=this.result.lastPlugin;try{o&&o.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return t}prepareVisitors(){this.listeners={};let t=(o,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([o,n])};for(let o of this.plugins)if(typeof o=="object")for(let r in o){if(!pLe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${o.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hLe[r])if(typeof o[r]=="object")for(let n in o[r])n==="*"?t(o,r,o[r][n]):t(o,r+"-"+n.toLowerCase(),o[r][n]);else typeof o[r]=="function"&&t(o,r,o[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let o=this.plugins[t],r=this.runOnRoot(o);if(px(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Hl];){t[Hl]=!0;let o=[Lte(t)];for(;o.length>0;){let r=this.visitTick(o);if(px(r))try{await r}catch(n){let i=o[o.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[o,r]of this.listeners.OnceExit){this.result.lastPlugin=o;try{if(t.type==="document"){let n=t.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(t,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let o=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return px(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(o){throw this.handleError(o)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,o=lLe;t.syntax&&(o=t.syntax.stringify),t.stringifier&&(o=t.stringifier),o.stringify&&(o=o.stringify);let n=new aLe(o,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let o=this.runOnRoot(t);if(px(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Hl];)t[Hl]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let o of t.nodes)this.visitSync(this.listeners.OnceExit,o);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,o){return this.async().then(t,o)}toString(){return this.css}visitSync(t,o){for(let[r,n]of t){this.result.lastPlugin=r;let i;try{i=n(o,this.helpers)}catch(s){throw this.handleError(s,o.proxyOf)}if(o.type!=="root"&&o.type!=="document"&&!o.parent)return!0;if(px(i))throw this.getAsyncError()}}visitTick(t){let o=t[t.length-1],{node:r,visitors:n}=o;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(n.length>0&&o.visitorIndex<n.length){let[s,a]=n[o.visitorIndex];o.visitorIndex+=1,o.visitorIndex===n.length&&(o.visitors=[],o.visitorIndex=0),this.result.lastPlugin=s;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(o.iterator!==0){let s=o.iterator,a;for(;a=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!a[Hl]){a[Hl]=!0,t.push(Lte(a));return}o.iterator=0,delete r.indexes[s]}let i=o.events;for(;o.eventIndex<i.length;){let s=i[o.eventIndex];if(o.eventIndex+=1,s===hy){r.nodes&&r.nodes.length&&(r[Hl]=!0,o.iterator=r.getIterator());return}else if(this.listeners[s]){o.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[Hl]=!0;let o=Mte(t);for(let r of o)if(r===hy)t.nodes&&t.each(n=>{n[Hl]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Cf.registerPostcss=e=>{Yz=e};Nte.exports=Cf;Cf.default=Cf;fLe.registerLazyResult(Cf);uLe.registerLazyResult(Cf)});var Fte=se((sft,Vte)=>{"use strict";var gLe=Rte(),bLe=Dte(),yLe=$z(),vLe=BR(),fh=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let o=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))o=o.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)o.push(r);else if(typeof r=="function")o.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return o}process(t,o={}){return!this.plugins.length&&!o.parser&&!o.stringifier&&!o.syntax?new gLe(this,t,o):new bLe(this,t,o)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};Vte.exports=fh;fh.default=fh;vLe.registerProcessor(fh);yLe.registerProcessor(fh)});var Hte=se((aft,jte)=>{jte.exports=function(t){let o=t.prefix,r=/\s+$/.test(o)?o:`${o} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return function(s){n.length&&s.source.input.file&&zte(s.source.input.file,n)||i.length&&s.source.input.file&&!zte(s.source.input.file,i)||s.walkRules(a=>{let l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(u=>t.exclude&&kLe(u,t.exclude)?u:t.transform?t.transform(o,u,r+u,s.source.input.file,a):r+u))})}};function zte(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e.includes(o))}function kLe(e,t){return t.some(o=>o instanceof RegExp?o.test(e):e===o)}});var Gte=se((lft,Ute)=>{var qz=40,Zz=41,PR=39,Xz=34,Qz=92,gy=47,Jz=44,e6=58,IR=42,SLe=117,_Le=85,xLe=43,wLe=/^[a-f0-9?-]+$/i;Ute.exports=function(e){for(var t=[],o=e,r,n,i,s,a,l,u,d,f=0,m=o.charCodeAt(f),h=o.length,p=[{nodes:t}],g=0,b,v="",y="",k="";f<h;)if(m<=32){r=f;do r+=1,m=o.charCodeAt(r);while(m<=32);s=o.slice(f,r),i=t[t.length-1],m===Zz&&g?k=s:i&&i.type==="div"?(i.after=s,i.sourceEndIndex+=s.length):m===Jz||m===e6||m===gy&&o.charCodeAt(r+1)!==IR&&(!b||b&&b.type==="function"&&b.value!=="calc")?y=s:t.push({type:"space",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}else if(m===PR||m===Xz){r=f,n=m===PR?"'":'"',s={type:"string",sourceIndex:f,quote:n};do if(a=!1,r=o.indexOf(n,r+1),~r)for(l=r;o.charCodeAt(l-1)===Qz;)l-=1,a=!a;else o+=n,r=o.length-1,s.unclosed=!0;while(a);s.value=o.slice(f+1,r),s.sourceEndIndex=s.unclosed?r:r+1,t.push(s),f=r+1,m=o.charCodeAt(f)}else if(m===gy&&o.charCodeAt(f+1)===IR)r=o.indexOf("*/",f),s={type:"comment",sourceIndex:f,sourceEndIndex:r+2},r===-1&&(s.unclosed=!0,r=o.length,s.sourceEndIndex=r),s.value=o.slice(f+2,r),t.push(s),f=r+2,m=o.charCodeAt(f);else if((m===gy||m===IR)&&b&&b.type==="function"&&b.value==="calc")s=o[f],t.push({type:"word",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s}),f+=1,m=o.charCodeAt(f);else if(m===gy||m===Jz||m===e6)s=o[f],t.push({type:"div",sourceIndex:f-y.length,sourceEndIndex:f+s.length,value:s,before:y,after:""}),y="",f+=1,m=o.charCodeAt(f);else if(qz===m){r=f;do r+=1,m=o.charCodeAt(r);while(m<=32);if(d=f,s={type:"function",sourceIndex:f-v.length,value:v,before:o.slice(d+1,r)},f=r,v==="url"&&m!==PR&&m!==Xz){r-=1;do if(a=!1,r=o.indexOf(")",r+1),~r)for(l=r;o.charCodeAt(l-1)===Qz;)l-=1,a=!a;else o+=")",r=o.length-1,s.unclosed=!0;while(a);u=r;do u-=1,m=o.charCodeAt(u);while(m<=32);d<u?(f!==u+1?s.nodes=[{type:"word",sourceIndex:f,sourceEndIndex:u+1,value:o.slice(f,u+1)}]:s.nodes=[],s.unclosed&&u+1!==r?(s.after="",s.nodes.push({type:"space",sourceIndex:u+1,sourceEndIndex:r,value:o.slice(u+1,r)})):(s.after=o.slice(u+1,r),s.sourceEndIndex=r)):(s.after="",s.nodes=[]),f=r+1,s.sourceEndIndex=s.unclosed?r:f,m=o.charCodeAt(f),t.push(s)}else g+=1,s.after="",s.sourceEndIndex=f+1,t.push(s),p.push(s),t=s.nodes=[],b=s;v=""}else if(Zz===m&&g)f+=1,m=o.charCodeAt(f),b.after=k,b.sourceEndIndex+=k.length,k="",g-=1,p[p.length-1].sourceEndIndex=f,p.pop(),b=p[g],t=b.nodes;else{r=f;do m===Qz&&(r+=1),r+=1,m=o.charCodeAt(r);while(r<h&&!(m<=32||m===PR||m===Xz||m===Jz||m===e6||m===gy||m===qz||m===IR&&b&&b.type==="function"&&b.value==="calc"||m===gy&&b.type==="function"&&b.value==="calc"||m===Zz&&g));s=o.slice(f,r),qz===m?v=s:(SLe===s.charCodeAt(0)||_Le===s.charCodeAt(0))&&xLe===s.charCodeAt(1)&&wLe.test(s.slice(2))?t.push({type:"unicode-range",sourceIndex:f,sourceEndIndex:r,value:s}):t.push({type:"word",sourceIndex:f,sourceEndIndex:r,value:s}),f=r}for(f=p.length-1;f;f-=1)p[f].unclosed=!0,p[f].sourceEndIndex=o.length;return p[0].nodes}});var $te=se((cft,Wte)=>{Wte.exports=function e(t,o,r){var n,i,s,a;for(n=0,i=t.length;n<i;n+=1)s=t[n],r||(a=o(s,n,t)),a!==!1&&s.type==="function"&&Array.isArray(s.nodes)&&e(s.nodes,o,r),r&&o(s,n,t)}});var Zte=se((uft,qte)=>{function Kte(e,t){var o=e.type,r=e.value,n,i;return t&&(i=t(e))!==void 0?i:o==="word"||o==="space"?r:o==="string"?(n=e.quote||"",n+r+(e.unclosed?"":n)):o==="comment"?"/*"+r+(e.unclosed?"":"*/"):o==="div"?(e.before||"")+r+(e.after||""):Array.isArray(e.nodes)?(n=Yte(e.nodes,t),o!=="function"?n:r+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):r}function Yte(e,t){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=Kte(e[r],t)+o;return o}return Kte(e,t)}qte.exports=Yte});var Qte=se((dft,Xte)=>{var OR=45,AR=43,t6=46,CLe=101,ELe=69;function TLe(e){var t=e.charCodeAt(0),o;if(t===AR||t===OR){if(o=e.charCodeAt(1),o>=48&&o<=57)return!0;var r=e.charCodeAt(2);return o===t6&&r>=48&&r<=57}return t===t6?(o=e.charCodeAt(1),o>=48&&o<=57):t>=48&&t<=57}Xte.exports=function(e){var t=0,o=e.length,r,n,i;if(o===0||!TLe(e))return!1;for(r=e.charCodeAt(t),(r===AR||r===OR)&&t++;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),r===t6&&n>=48&&n<=57)for(t+=2;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;if(r=e.charCodeAt(t),n=e.charCodeAt(t+1),i=e.charCodeAt(t+2),(r===CLe||r===ELe)&&(n>=48&&n<=57||(n===AR||n===OR)&&i>=48&&i<=57))for(t+=n===AR||n===OR?3:2;t<o&&(r=e.charCodeAt(t),!(r<48||r>57));)t+=1;return{number:e.slice(0,t),unit:e.slice(t)}}});var ooe=se((fft,toe)=>{var BLe=Gte(),Jte=$te(),eoe=Zte();function Ef(e){return this instanceof Ef?(this.nodes=BLe(e),this):new Ef(e)}Ef.prototype.toString=function(){return Array.isArray(this.nodes)?eoe(this.nodes):""};Ef.prototype.walk=function(e,t){return Jte(this.nodes,e,t),this};Ef.unit=Qte();Ef.walk=Jte;Ef.stringify=eoe;toe.exports=Ef});var noe=se((mft,o6)=>{var roe=ooe();o6.exports=e=>{let o=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(r){let n=roe(r.value),i=!1;n.walk(s=>{if(s.type!=="function"||s.value!=="url")return;let a=s.nodes[0].value,l=new URL(a,e.rootUrl);return l.pathname===a&&o.skipHostRelativeUrls||(s.nodes[0].value=l.toString(),i=!0),!1}),i&&(r.value=roe.stringify(n))}}};o6.exports.postcss=!0});var boe=se((Tft,goe)=>{goe.exports=window.wp.priorityQueue});var k6=se((Spt,bre)=>{bre.exports=window.wp.blob});var Ix=se((Ygt,Ene)=>{Ene.exports=window.wp.isShallowEqual});var NI=se((lSt,Sae)=>{Sae.exports=window.wp.tokenList});var jI=se((kSt,Lae)=>{"use strict";var d5e=function(t){return f5e(t)&&!m5e(t)};function f5e(e){return!!e&&typeof e=="object"}function m5e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||g5e(e)}var p5e=typeof Symbol=="function"&&Symbol.for,h5e=p5e?Symbol.for("react.element"):60103;function g5e(e){return e.$$typeof===h5e}function b5e(e){return Array.isArray(e)?[]:{}}function o0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sv(b5e(e),e,t):e}function y5e(e,t,o){return e.concat(t).map(function(r){return o0(r,o)})}function v5e(e,t){if(!t.customMerge)return sv;var o=t.customMerge(e);return typeof o=="function"?o:sv}function k5e(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Oae(e){return Object.keys(e).concat(k5e(e))}function Aae(e,t){try{return t in e}catch{return!1}}function S5e(e,t){return Aae(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _5e(e,t,o){var r={};return o.isMergeableObject(e)&&Oae(e).forEach(function(n){r[n]=o0(e[n],o)}),Oae(t).forEach(function(n){S5e(e,n)||(Aae(e,n)&&o.isMergeableObject(t[n])?r[n]=v5e(n,o)(e[n],t[n],o):r[n]=o0(t[n],o))}),r}function sv(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||y5e,o.isMergeableObject=o.isMergeableObject||d5e,o.cloneUnlessOtherwiseSpecified=o0;var r=Array.isArray(t),n=Array.isArray(e),i=r===n;return i?r?o.arrayMerge(e,t,o):_5e(e,t,o):o0(t,o)}sv.all=function(t,o){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return sv(r,n,o)},{})};var x5e=sv;Lae.exports=x5e});var Kle=se((r0t,$le)=>{$le.exports=window.wp.commands});var nc=se((M1t,lde)=>{lde.exports=window.wp.date});var jde=se((xEt,zde)=>{var Mde=!1,qh,h8,g8,i2,s2,Nde,a2,b8,y8,v8,Dde,k8,S8,Vde,Fde;function vi(){if(!Mde){Mde=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(k8=/\b(iPhone|iP[ao]d)/.exec(e),S8=/\b(iP[ao]d)/.exec(e),v8=/Android/i.exec(e),Vde=/FBAN\/\w+;/i.exec(e),Fde=/Mobile/i.exec(e),Dde=!!/Win64/.exec(e),t){qh=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qh&&document&&document.documentMode&&(qh=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);Nde=r?parseFloat(r[1])+4:qh,h8=t[2]?parseFloat(t[2]):NaN,g8=t[3]?parseFloat(t[3]):NaN,i2=t[4]?parseFloat(t[4]):NaN,i2?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s2=t&&t[1]?parseFloat(t[1]):NaN):s2=NaN}else qh=h8=g8=s2=i2=NaN;if(o){if(o[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a2=n?parseFloat(n[1].replace("_",".")):!0}else a2=!1;b8=!!o[2],y8=!!o[3]}else a2=b8=y8=!1}}var _8={ie:function(){return vi()||qh},ieCompatibilityMode:function(){return vi()||Nde>qh},ie64:function(){return _8.ie()&&Dde},firefox:function(){return vi()||h8},opera:function(){return vi()||g8},webkit:function(){return vi()||i2},safari:function(){return _8.webkit()},chrome:function(){return vi()||s2},windows:function(){return vi()||b8},osx:function(){return vi()||a2},linux:function(){return vi()||y8},iphone:function(){return vi()||k8},mobile:function(){return vi()||k8||S8||v8||Fde},nativeApp:function(){return vi()||Vde},android:function(){return vi()||v8},ipad:function(){return vi()||S8}};zde.exports=_8});var Ude=se((wEt,Hde)=>{"use strict";var l2=!!(typeof window<"u"&&window.document&&window.document.createElement),yFe={canUseDOM:l2,canUseWorkers:typeof Worker<"u",canUseEventListeners:l2&&!!(window.addEventListener||window.attachEvent),canUseViewport:l2&&!!window.screen,isInWorker:!l2};Hde.exports=yFe});var Kde=se((CEt,$de)=>{"use strict";var Gde=Ude(),Wde;Gde.canUseDOM&&(Wde=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function vFe(e,t){if(!Gde.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,r=o in document;if(!r){var n=document.createElement("div");n.setAttribute(o,"return;"),r=typeof n[o]=="function"}return!r&&Wde&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}$de.exports=vFe});var Jde=se((EEt,Qde)=>{"use strict";var kFe=jde(),SFe=Kde(),Yde=10,qde=40,Zde=800;function Xde(e){var t=0,o=0,r=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=t*Yde,n=o*Yde,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(e.deltaMode==1?(r*=qde,n*=qde):(r*=Zde,n*=Zde)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}Xde.getEventType=function(){return kFe.firefox()?"DOMMouseScroll":SFe("wheel")?"wheel":"mousewheel"};Qde.exports=Xde});var tfe=se((TEt,efe)=>{efe.exports=Jde()});var Ime=se((vBt,Pme)=>{"use strict";Pme.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var S9e={};ps(S9e,{AlignmentControl:()=>BE,AlignmentToolbar:()=>tW,Autocomplete:()=>kW,BlockAlignmentControl:()=>WE,BlockAlignmentToolbar:()=>HW,BlockBindingsAttributeControl:()=>r_,BlockBindingsSourceFieldsList:()=>o_,BlockBreadcrumb:()=>d$,BlockCanvas:()=>Qle,BlockColorsStyleSelector:()=>oce,BlockContextProvider:()=>Xw,BlockControls:()=>mo,BlockEdit:()=>SE,BlockEditorKeyboardShortcuts:()=>QB,BlockEditorProvider:()=>IJ,BlockFormatControls:()=>Q6,BlockIcon:()=>rt,BlockInspector:()=>Qbe,BlockList:()=>vy,BlockMover:()=>rI,BlockNavigationDropdown:()=>fue,BlockPopover:()=>lne,BlockPreview:()=>ui,BlockSelectionClearer:()=>Sne,BlockSettingsMenu:()=>RI,BlockSettingsMenuControls:()=>wI,BlockStyles:()=>Ev,BlockTitle:()=>i_,BlockToolbar:()=>Ale,BlockTools:()=>f0,BlockVerticalAlignmentControl:()=>jE,BlockVerticalAlignmentToolbar:()=>Lue,ButtonBlockAppender:()=>Df,ButtonBlockerAppender:()=>Qre,ColorPalette:()=>ode,ColorPaletteControl:()=>ide,ContrastChecker:()=>jO,CopyHandler:()=>tye,DefaultBlockAppender:()=>Dy,DimensionControl:()=>Yh,FontSizePicker:()=>sF,HeadingLevelDropdown:()=>Sue,HeightControl:()=>Lde,InnerBlocks:()=>Ax,Inserter:()=>Fs,InspectorAdvancedControls:()=>Hf,InspectorControls:()=>he,JustifyContentControl:()=>hb,JustifyToolbar:()=>Gfe,LineHeightControl:()=>I2,LinkControl:()=>ym,MediaPlaceholder:()=>fpe,MediaReplaceFlow:()=>$v,MediaUpload:()=>Lf,MediaUploadCheck:()=>$a,MultiSelectScrollIntoView:()=>iye,NavigableToolbar:()=>ov,ObserveTyping:()=>$ne,PanelColorSettings:()=>ppe,PlainText:()=>phe,RecursionProvider:()=>ZH,RichText:()=>Xv,RichTextShortcut:()=>nH,RichTextToolbarButton:()=>sH,SETTINGS_DEFAULTS:()=>rS,SkipToSelectedBlock:()=>sA,ToolSelector:()=>yye,Typewriter:()=>cye,URLInput:()=>gm,URLInputButton:()=>_he,URLPopover:()=>Sm,Warning:()=>Fd,WritingFlow:()=>fR,__experimentalBlockAlignmentMatrixControl:()=>r$,__experimentalBlockFullHeightAligmentControl:()=>JW,__experimentalBlockPatternSetup:()=>Iue,__experimentalBlockPatternsList:()=>Gl,__experimentalBlockVariationPicker:()=>_ue,__experimentalBlockVariationTransforms:()=>AO,__experimentalBorderRadiusControl:()=>FO,__experimentalColorGradientControl:()=>um,__experimentalColorGradientSettingsDropdown:()=>t2,__experimentalDateFormatPicker:()=>cde,__experimentalDuotoneControl:()=>UO,__experimentalFontAppearanceControl:()=>WO,__experimentalFontFamilyControl:()=>$O,__experimentalGetBorderClassesAndStyles:()=>rN,__experimentalGetColorClassesAndStyles:()=>nN,__experimentalGetDimensionsClassesAndStyles:()=>oN,__experimentalGetElementClassName:()=>y9e,__experimentalGetGapCSSValue:()=>Cn,__experimentalGetGradientClass:()=>cb,__experimentalGetGradientObjectByGradientValue:()=>WG,__experimentalGetShadowClassesAndStyles:()=>xU,__experimentalGetSpacingClassesAndStyles:()=>EU,__experimentalImageEditor:()=>Dfe,__experimentalImageSizeControl:()=>jfe,__experimentalImageURLInputUI:()=>Rhe,__experimentalInspectorPopoverHeader:()=>fL,__experimentalLetterSpacingControl:()=>YO,__experimentalLibrary:()=>rye,__experimentalLinkControl:()=>P2,__experimentalLinkControlSearchInput:()=>hme,__experimentalLinkControlSearchItem:()=>ome,__experimentalLinkControlSearchResults:()=>lme,__experimentalListView:()=>RO,__experimentalPanelColorGradientSettings:()=>r2,__experimentalPreviewOptions:()=>Whe,__experimentalPublishDateTimePicker:()=>pye,__experimentalRecursionProvider:()=>uye,__experimentalResponsiveBlockControl:()=>yhe,__experimentalSpacingSizesControl:()=>ak,__experimentalTextDecorationControl:()=>ZO,__experimentalTextTransformControl:()=>QO,__experimentalUnitControl:()=>khe,__experimentalUseBlockOverlayActive:()=>m$,__experimentalUseBlockPreview:()=>_oe,__experimentalUseBorderProps:()=>_U,__experimentalUseColorProps:()=>CU,__experimentalUseCustomSides:()=>J9,__experimentalUseGradient:()=>sTe,__experimentalUseHasRecursion:()=>dye,__experimentalUseMultipleOriginColorsAndGradients:()=>fm,__experimentalUseResizeCanvas:()=>$he,__experimentalWritingModeControl:()=>e2,__unstableBlockSettingsMenuFirstItem:()=>mI,__unstableBlockToolbarLastItem:()=>lI,__unstableEditorStyles:()=>ru,__unstableIframe:()=>dy,__unstableInserterMenuExtension:()=>nP,__unstableRichTextInputEvent:()=>aH,__unstableUseBlockSelectionClearer:()=>_h,__unstableUseClipboardHandler:()=>eye,__unstableUseMouseMoveTypingReset:()=>Mx,__unstableUseTypewriter:()=>KH,__unstableUseTypingObserver:()=>Nx,createCustomColorsHOC:()=>UG,getColorClassName:()=>gs,getColorObjectByAttributeValues:()=>Cl,getColorObjectByColorValue:()=>qw,getComputedFluidTypographyValue:()=>YG,getCustomValueFromPreset:()=>xW,getDimensionsClassesAndStyles:()=>oN,getFontSize:()=>ub,getFontSizeClass:()=>zd,getFontSizeObjectByValue:()=>iF,getGradientSlugByValue:()=>$G,getGradientValueBySlug:()=>EE,getPxFromCssUnit:()=>Ixe,getSpacingPresetCssVar:()=>_a,getTypographyClassesAndStyles:()=>TU,isValueSpacingPreset:()=>zE,privateApis:()=>NU,store:()=>w,storeConfig:()=>sb,transformStyles:()=>by,useBlockBindingsUtils:()=>Hc,useBlockCommands:()=>fO,useBlockDisplayInformation:()=>ro,useBlockEditContext:()=>Xe,useBlockEditingMode:()=>Do,useBlockProps:()=>R_,useCachedTruthy:()=>BU,useHasRecursion:()=>XH,useInnerBlocksProps:()=>Th,useSetting:()=>FG,useSettings:()=>xe,useStyleOverride:()=>gi,withColorContext:()=>zO,withColors:()=>GG,withFontSizes:()=>JG});function VU(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=VU(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function n0e(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=VU(e))&&(r&&(r+=" "),r+=t);return r}var U=n0e;var vye=c(Q(),1),sa=c(A(),1),hL=c(G(),1),t9=c(oe(),1),aw=c(Ft(),1);var Uw=c(A(),1),ga=Symbol("mayDisplayControls"),Vg=Symbol("mayDisplayParentControls"),bd=Symbol("mayDisplayPatternEditingControls"),Gw=Symbol("blockEditingMode"),Fg=Symbol("blockBindings"),Ww=Symbol("isPreviewMode"),Jk=Symbol("isInListViewBlockSupportTree"),mN={name:"",isSelected:!1},pN=(0,Uw.createContext)(mN);pN.displayName="BlockEditContext";var{Provider:$w}=pN;function Xe(){return(0,Uw.useContext)(pN)}var i0e={grad:.9,turn:360,rad:360/(2*Math.PI)},Ic=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},wr=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},hs=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},XU=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},GU=function(e){return{r:hs(e.r,0,255),g:hs(e.g,0,255),b:hs(e.b,0,255),a:hs(e.a)}},hN=function(e){return{r:wr(e.r),g:wr(e.g),b:wr(e.b),a:wr(e.a,3)}},s0e=/^#([0-9a-f]{3,8})$/i,Kw=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},QU=function(e){var t=e.r,o=e.g,r=e.b,n=e.a,i=Math.max(t,o,r),s=i-Math.min(t,o,r),a=s?i===t?(o-r)/s:i===o?2+(r-t)/s:4+(t-o)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:n}},JU=function(e){var t=e.h,o=e.s,r=e.v,n=e.a;t=t/360*6,o/=100,r/=100;var i=Math.floor(t),s=r*(1-o),a=r*(1-(t-i)*o),l=r*(1-(1-t+i)*o),u=i%6;return{r:255*[r,a,s,s,l,r][u],g:255*[l,r,r,a,s,s][u],b:255*[s,s,l,r,r,a][u],a:n}},WU=function(e){return{h:XU(e.h),s:hs(e.s,0,100),l:hs(e.l,0,100),a:hs(e.a)}},$U=function(e){return{h:wr(e.h),s:wr(e.s),l:wr(e.l),a:wr(e.a,3)}},KU=function(e){return JU((o=(t=e).s,{h:t.h,s:(o*=((r=t.l)<50?r:100-r)/100)>0?2*o/(r+o)*100:0,v:r+o,a:t.a}));var t,o,r},eS=function(e){return{h:(t=QU(e)).h,s:(n=(200-(o=t.s))*(r=t.v)/100)>0&&n<200?o*r/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,o,r,n},a0e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,l0e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,c0e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,u0e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yN={string:[[function(e){var t=s0e.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?wr(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?wr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=c0e.exec(e)||u0e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:GU({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=a0e.exec(e)||l0e.exec(e);if(!t)return null;var o,r,n=WU({h:(o=t[1],r=t[2],r===void 0&&(r="deg"),Number(o)*(i0e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return KU(n)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,r=e.b,n=e.a,i=n===void 0?1:n;return Ic(t)&&Ic(o)&&Ic(r)?GU({r:Number(t),g:Number(o),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,o=e.s,r=e.l,n=e.a,i=n===void 0?1:n;if(!Ic(t)||!Ic(o)||!Ic(r))return null;var s=WU({h:Number(t),s:Number(o),l:Number(r),a:Number(i)});return KU(s)},"hsl"],[function(e){var t=e.h,o=e.s,r=e.v,n=e.a,i=n===void 0?1:n;if(!Ic(t)||!Ic(o)||!Ic(r))return null;var s=(function(a){return{h:XU(a.h),s:hs(a.s,0,100),v:hs(a.v,0,100),a:hs(a.a)}})({h:Number(t),s:Number(o),v:Number(r),a:Number(i)});return JU(s)},"hsv"]]},YU=function(e,t){for(var o=0;o<t.length;o++){var r=t[o][0](e);if(r)return[r,t[o][1]]}return[null,void 0]},d0e=function(e){return typeof e=="string"?YU(e.trim(),yN.string):typeof e=="object"&&e!==null?YU(e,yN.object):[null,void 0]};var gN=function(e,t){var o=eS(e);return{h:o.h,s:hs(o.s+100*t,0,100),l:o.l,a:o.a}},bN=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},qU=function(e,t){var o=eS(e);return{h:o.h,s:o.s,l:hs(o.l+100*t,0,100),a:o.a}},vN=(function(){function e(t){this.parsed=d0e(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 wr(bN(this.rgba),2)},e.prototype.isDark=function(){return bN(this.rgba)<.5},e.prototype.isLight=function(){return bN(this.rgba)>=.5},e.prototype.toHex=function(){return t=hN(this.rgba),o=t.r,r=t.g,n=t.b,s=(i=t.a)<1?Kw(wr(255*i)):"","#"+Kw(o)+Kw(r)+Kw(n)+s;var t,o,r,n,i,s},e.prototype.toRgb=function(){return hN(this.rgba)},e.prototype.toRgbString=function(){return t=hN(this.rgba),o=t.r,r=t.g,n=t.b,(i=t.a)<1?"rgba("+o+", "+r+", "+n+", "+i+")":"rgb("+o+", "+r+", "+n+")";var t,o,r,n,i},e.prototype.toHsl=function(){return $U(eS(this.rgba))},e.prototype.toHslString=function(){return t=$U(eS(this.rgba)),o=t.h,r=t.s,n=t.l,(i=t.a)<1?"hsla("+o+", "+r+"%, "+n+"%, "+i+")":"hsl("+o+", "+r+"%, "+n+"%)";var t,o,r,n,i},e.prototype.toHsv=function(){return t=QU(this.rgba),{h:wr(t.h),s:wr(t.s),v:wr(t.v),a:wr(t.a,3)};var t},e.prototype.invert=function(){return to({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),to(gN(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),to(gN(this.rgba,-t))},e.prototype.grayscale=function(){return to(gN(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),to(qU(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),to(qU(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"?to({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):wr(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=eS(this.rgba);return typeof t=="number"?to({h:t,s:o.s,l:o.l,a:o.a}):wr(o.h)},e.prototype.isEqual=function(t){return this.toHex()===to(t).toHex()},e})(),to=function(e){return e instanceof vN?e:new vN(e)},ZU=[],yd=function(e){e.forEach(function(t){ZU.indexOf(t)<0&&(t(vN,yN),ZU.push(t))})};function vd(e,t){var o={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"},r={};for(var n in o)r[o[n]]=n;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,u=r[this.toHex()];if(u)return u;if(s?.closest){var d=this.toRgb(),f=1/0,m="black";if(!i.length)for(var h in o)i[h]=new e(o[h]).toRgb();for(var p in o){var g=(a=d,l=i[p],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));g<f&&(f=g,m=p)}return m}},t.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":o[a];return l?new e(l).toRgb():null},"name"])}var kN=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},SN=function(e){return .2126*kN(e.r)+.7152*kN(e.g)+.0722*kN(e.b)};function zg(e){e.prototype.luminance=function(){return t=SN(this.rgba),(o=2)===void 0&&(o=0),r===void 0&&(r=Math.pow(10,o)),Math.round(r*t)/r+0;var t,o,r},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var o,r,n,i,s,a,l,u=t instanceof e?t:new e(t);return i=this.rgba,s=u.toRgb(),a=SN(i),l=SN(s),o=a>l?(a+.05)/(l+.05):(l+.05)/(a+.05),(r=2)===void 0&&(r=0),n===void 0&&(n=Math.pow(10,r)),Math.floor(n*o)/n+0},e.prototype.isReadable=function(t,o){return t===void 0&&(t="#FFF"),o===void 0&&(o={}),this.contrast(t)>=(a=(s=(r=o).size)===void 0?"normal":s,(i=(n=r.level)===void 0?"AA":n)==="AAA"&&a==="normal"?7:i==="AA"&&a==="large"?3:4.5);var r,n,i,s,a}}var n7=c(N(),1);var o7=c(Yw(),1),{lock:r7,unlock:H}=(0,o7.__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-editor");yd([vd,zg]);var{kebabCase:f0e}=H(n7.privateApis),Cl=(e,t,o)=>{if(t){let r=e?.find(n=>n.slug===t);if(r)return r}return{color:o}},qw=(e,t)=>e?.find(o=>o.color===t);function gs(e,t){if(!(!e||!t))return`has-${f0e(t)}-${e}`}function i7(e,t){let o=to(t),r=({color:i})=>o.contrast(i),n=Math.max(...e.map(r));return e.find(i=>r(i)===n).color}var _E=c(A(),1),Ap=c(oe(),1),jG=c(N(),1);var DG=c(G(),1),VG=c(Je(),1);var kE=c(A(),1),vE=c(Q(),1);var Oc=c(Q(),1),p7=c(N(),1),oS=c(G(),1),dp=c(A(),1);var jg=c(A(),1),l7=c(C(),1),Zw=(0,jg.createContext)({});Zw.displayName="BlockContext";function Xw({value:e,children:t}){let o=(0,jg.useContext)(Zw),r=(0,jg.useMemo)(()=>({...o,...e}),[o,e]);return(0,l7.jsx)(Zw.Provider,{value:r,children:t})}var sn=Zw;var Hg=c(Ai(),1);function lp(e){return e?.startsWith("#")&&(0,Hg.isValidFragment)(e)}function cp(e){return e?.startsWith("/")||e?.startsWith("./")||e?.startsWith("../")}function up(e){if(e.includes(" "))return!1;let o=(0,Hg.getProtocol)(e),r=(0,Hg.isValidProtocol)(o),n=m0e(e),i=e?.startsWith("www.");return r||i||lp(e)||n||cp(e)}function m0e(e,t=6){let o=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(o)}var p0e="__default",u7="core/pattern-overrides";function tS(e){return e?.[p0e]?.source===u7}function d7(e,t){if(tS(e)){let o={};for(let r of t){let n=e[r]?e[r]:{source:u7};o[r]=n}return o}return e}var f7=c(A(),1),Hr=(0,f7.createContext)({});Hr.displayName="PrivateBlockContext";var Qw=c(C(),1),h0e={},g0e=e=>{let{name:t}=e,o=(0,Oc.getBlockType)(t);if(!o)return null;let r=o.edit||o.save;return(0,Qw.jsx)(r,{...e})},m7=(0,p7.withFilters)("editor.BlockEdit")(g0e),b0e=e=>{let{name:t,clientId:o,attributes:r,setAttributes:n}=e,i=(0,oS.useRegistry)(),s=(0,Oc.getBlockType)(t),a=(0,dp.useContext)(sn),l=(0,oS.useSelect)(v=>H(v(Oc.store)).getAllBlockBindingsSources(),[]),{bindableAttributes:u}=(0,dp.useContext)(Hr),{blockBindings:d,context:f,hasPatternOverrides:m}=(0,dp.useMemo)(()=>{let v=s?.usesContext?Object.fromEntries(Object.entries(a).filter(([y])=>s.usesContext.includes(y))):h0e;return r?.metadata?.bindings&&Object.values(r?.metadata?.bindings||{}).forEach(y=>{l[y?.source]?.usesContext?.forEach(k=>{v[k]=a[k]})}),{blockBindings:d7(r?.metadata?.bindings,u),context:v,hasPatternOverrides:tS(r?.metadata?.bindings)}},[s?.usesContext,a,r?.metadata?.bindings,u,l]),h=(0,oS.useSelect)(v=>{if(!d)return r;let y={},k=new Map;for(let[S,_]of Object.entries(d)){let{source:x,args:E}=_,T=l[x];!T||!u?.includes(S)||k.set(T,{...k.get(T),[S]:{args:E}})}if(k.size)for(let[S,_]of k){let x={};S.getValues?x=S.getValues({select:v,context:f,clientId:o,bindings:_}):Object.keys(_).forEach(E=>{x[E]=S.label});for(let[E,T]of Object.entries(x))E==="url"&&(!T||!up(T))?y[E]=null:y[E]=T}return{...r,...y}},[r,u,d,o,f,l]),p=(0,dp.useCallback)(v=>{if(!d){n(v);return}i.batch(()=>{let y={...v},k=new Map;for(let[_,x]of Object.entries(y)){if(!d[_]||!u?.includes(_))continue;let E=d[_],T=l[E?.source];T?.setValues&&(k.set(T,{...k.get(T),[_]:{args:E.args,newValue:x}}),delete y[_])}if(k.size)for(let[_,x]of k)_.setValues({select:i.select,dispatch:i.dispatch,context:f,clientId:o,bindings:x});let S=!!f["pattern/overrides"];!(m&&S)&&Object.keys(y).length&&(m&&delete y.href,n(y))})},[u,d,o,f,m,n,l,i]);if(!s)return null;if(s.apiVersion>1)return(0,Qw.jsx)(m7,{...e,attributes:h,context:f,setAttributes:p});let g=(0,Oc.hasBlockSupport)(s,"className",!0)?(0,Oc.getBlockDefaultClassName)(t):null,b=U(g,r?.className,e.className);return(0,Qw.jsx)(m7,{...e,attributes:h,className:b,context:f,setAttributes:p})},h7=b0e;var LG=c(Q(),1),nF=c(N(),1),MG=c(G(),1),yE=c(F(),1);var bE=c(G(),1);var sS=c(fp(),1),wN=c(oe(),1),aS=c(G(),1),C7=c(Je(),1),lC=c(Q(),1);var it=c(F(),1),y7={insertUsage:{}},rS={alignWide:!1,supportsLayout:!0,colors:[{name:(0,it.__)("Black"),slug:"black",color:"#000000"},{name:(0,it.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,it.__)("White"),slug:"white",color:"#ffffff"},{name:(0,it.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,it.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,it.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,it.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,it.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,it.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,it.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,it.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,it.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,it._x)("Small","font size name"),size:13,slug:"small"},{name:(0,it._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,it._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,it._x)("Large","font size name"),size:36,slug:"large"},{name:(0,it._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,it.__)("Thumbnail")},{slug:"medium",name:(0,it.__)("Medium")},{slug:"large",name:(0,it.__)("Large")},{slug:"full",name:(0,it.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,canEditCSS:!1,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],isPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,it.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,it.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,it.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,it.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,it.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,it.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,it.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,it.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,it.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,it.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,it.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,it.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function Jw(e,t,o){return[...e.slice(0,o),...Array.isArray(t)?t:[t],...e.slice(o)]}function eC(e,t,o,r=1){let n=[...e];return n.splice(t,r),Jw(n,e.slice(t,t+r),o)}var ei=Symbol("globalStylesDataKey"),tC=Symbol("globalStylesLinks"),kd=Symbol("selectBlockPatternsKey"),oC=Symbol("reusableBlocksSelect"),Ac=Symbol("userPatternCategoriesSelect"),Sd=Symbol("sectionRootClientIdKey"),rC=Symbol("mediaEditKey"),nC=Symbol("getMediaSelect"),_d=Symbol("isIsolatedEditor"),bs=Symbol("deviceTypeKey"),iC=Symbol("onViewportStateChangeKey"),sC=Symbol("isNavigationOverlayContext"),v7=Symbol("isNavigationPostEditor"),nS=Symbol("mediaUploadOnSuccess"),k7=Symbol("openMediaEditorModal");var{isContentBlock:y0e}=H(lC.privateApis),v0e=e=>e;function aC(e,t=""){let o=new Map,r=[];return o.set(t,r),e.forEach(n=>{let{clientId:i,innerBlocks:s}=n;r.push(i),aC(s,i).forEach((a,l)=>{o.set(l,a)})}),o}function _N(e,t=""){let o=[],r=[[t,e]];for(;r.length;){let[n,i]=r.shift();i.forEach(({innerBlocks:s,...a})=>{o.push([a.clientId,n]),s?.length&&r.push([a.clientId,s])})}return o}function E7(e,t=v0e){let o=[],r=[...e];for(;r.length;){let{innerBlocks:n,...i}=r.shift();r.push(...n),o.push([i.clientId,t(i)])}return o}function CN(e){let t={},o=[...e];for(;o.length;){let{innerBlocks:r,...n}=o.shift();o.push(...r),t[n.clientId]=!0}return t}function S7(e){return E7(e,t=>{let{attributes:o,...r}=t;return r})}function _7(e){return E7(e,t=>t.attributes)}function k0e(e,t){return(0,sS.default)(Object.keys(e),Object.keys(t))}function S0e(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&(0,sS.default)(e.clientIds,t.clientIds)&&k0e(e.attributes,t.attributes)}function x7(e,t){let o=e.tree,r=[...t],n=[...t];for(;r.length;){let i=r.shift();r.push(...i.innerBlocks),n.push(...i.innerBlocks)}for(let i of n)o.set(i.clientId,{});for(let i of n)o.set(i.clientId,Object.assign(o.get(i.clientId),{...e.byClientId.get(i.clientId),attributes:e.attributes.get(i.clientId),innerBlocks:i.innerBlocks.map(s=>o.get(s.clientId))}))}function xd(e,t,o=!1){let r=e.tree,n=new Set([]),i=new Set;for(let s of t){let a=o?s:e.parents.get(s);do if(e.controlledInnerBlocks.has(a)){i.add(a);break}else n.add(a),a=e.parents.get(a);while(a!==void 0)}for(let s of n)r.set(s,{...r.get(s)});for(let s of n)r.get(s).innerBlocks=(e.order.get(s)||[]).map(a=>r.get(a));for(let s of i)r.set("controlled||"+s,{innerBlocks:(e.order.get(s)||[]).map(a=>r.get(a))})}var _0e=e=>(t={},o)=>{let r=e(t,o);if(r===t)return t;switch(r.tree=t.tree?t.tree:new Map,o.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{r.tree=new Map(r.tree),x7(r,o.blocks),xd(r,o.rootClientId?[o.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":r.tree=new Map(r.tree),r.tree.set(o.clientId,{...r.tree.get(o.clientId),...r.byClientId.get(o.clientId),attributes:r.attributes.get(o.clientId)}),xd(r,[o.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{r.tree=new Map(r.tree),o.clientIds.forEach(i=>{r.tree.set(i,{...r.tree.get(i),attributes:r.attributes.get(i)})}),xd(r,o.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let i=CN(o.blocks);r.tree=new Map(r.tree),o.replacedClientIds.forEach(a=>{r.tree.delete(a),i[a]||r.tree.delete("controlled||"+a)}),x7(r,o.blocks),xd(r,o.blocks.map(a=>a.clientId),!1);let s=[];for(let a of o.clientIds){let l=t.parents.get(a);l!==void 0&&(l===""||r.byClientId.get(l))&&s.push(l)}xd(r,s,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":let n=[];for(let i of o.clientIds){let s=t.parents.get(i);s!==void 0&&(s===""||r.byClientId.get(s))&&n.push(s)}r.tree=new Map(r.tree),o.removedClientIds.forEach(i=>{r.tree.delete(i),r.tree.delete("controlled||"+i)}),xd(r,n,!0);break;case"MOVE_BLOCKS_TO_POSITION":{let i=[];o.fromRootClientId?i.push(o.fromRootClientId):i.push(""),o.toRootClientId&&i.push(o.toRootClientId),r.tree=new Map(r.tree),xd(r,i,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{let i=[o.rootClientId?o.rootClientId:""];r.tree=new Map(r.tree),xd(r,i,!0);break}}return r};function x0e(e){let t,o=!1;return(r,n)=>{let i=e(r,n),s=o;o=n.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT";let a=n.type==="MARK_LAST_CHANGE_AS_PERSISTENT"||s;if(r===i&&!a)return r.isPersistentChange!==void 0?r:{...i,isPersistentChange:!0};let l=a?!s:!S0e(n,t);return t=n,{...i,isPersistentChange:l}}}function w0e(e){let t=new Set(["RECEIVE_BLOCKS"]);return(o,r)=>{let n=e(o,r);return n!==o&&(n.isIgnoredChange=t.has(r.type)),n}}var C0e=e=>(t,o)=>{let r=n=>{let i=n;for(let s=0;s<i.length;s++)!t.order.get(i[s])||o.keepControlledInnerBlocks&&o.keepControlledInnerBlocks[i[s]]||(i===n&&(i=[...i]),i.push(...t.order.get(i[s])));return i};if(t)switch(o.type){case"REMOVE_BLOCKS":o={...o,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(o.clientIds)};break;case"REPLACE_BLOCKS":o={...o,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(o.clientIds)};break}return e(t,o)},E0e=e=>(t,o)=>{if(o.type==="RESET_BLOCKS"){let r=e(void 0,{type:"INSERT_BLOCKS",rootClientId:"",blocks:o.blocks}),n=t?.controlledInnerBlocks??new Set;if(t?.order)for(let s of n){if(!r.byClientId.has(s))continue;r.controlledInnerBlocks.add(s);let a=t.order.get(s);if(!a?.length)continue;r.order.set(s,a);let l=(u,d)=>{let f=t.byClientId.get(u);if(!f)return;r.byClientId.set(u,f),r.attributes.set(u,t.attributes.get(u)),r.parents.set(u,d);let m=t.order.get(u)||[];r.order.set(u,m),m.forEach(h=>l(h,u))};a.forEach(u=>l(u,s))}for(let s of r.controlledInnerBlocks){let a=r.order.get(s);if(!a?.length)continue;let l=a.map(f=>t.tree.get(f)),u=r.tree.get(s);u&&(u.innerBlocks=l),r.tree.set("controlled||"+s,{innerBlocks:l});let d=f=>{let m=t.tree.get(f);if(!m)return;r.tree.set(f,m),(r.order.get(f)||[]).forEach(d)};a.forEach(d)}let i=t?.blockEditingModes??new Map;for(let[s,a]of i)r.tree.has(s)&&r.blockEditingModes.set(s,a);return r}return e(t,o)},T0e=e=>(t,o)=>{if(o.type!=="REPLACE_INNER_BLOCKS")return e(t,o);let r={};if(t.controlledInnerBlocks.size){let s=[...o.blocks];for(;s.length;){let{innerBlocks:a,...l}=s.shift();s.push(...a),t.controlledInnerBlocks.has(l.clientId)&&(r[l.clientId]=!0)}}let n=t;t.order.get(o.rootClientId)&&(n=e(n,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order.get(o.rootClientId)}));let i=n;if(o.blocks.length){i=e(i,{...o,type:"INSERT_BLOCKS",index:0});let s=new Map(i.order);Object.keys(r).forEach(a=>{t.order.get(a)&&s.set(a,t.order.get(a))}),i.order=s,i.tree=new Map(i.tree),Object.keys(r).forEach(a=>{let l=`controlled||${a}`;t.tree.has(l)&&i.tree.set(l,t.tree.get(l))})}return i},B0e=e=>(t,o)=>{if(o.type==="SET_HAS_CONTROLLED_INNER_BLOCKS"){if(t.order.get(o.clientId)?.length){let n=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:o.clientId,blocks:[]});return e(n,o)}return e(t,o)}return e(t,o)},R0e=(0,wN.pipe)(aS.combineReducers,_0e,C0e,T0e,E0e,x0e,w0e,B0e)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return S7(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;let{attributes:o,...r}=t.updates;if(Object.values(r).length===0)return e;let n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...r}),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),S7(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let o=new Map(e);return _7(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;let o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),o}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(n=>!e.get(n)))return e;let o=!1,r=new Map(e);for(let n of t.clientIds){let i=Object.entries(t.options?.uniqueByBlock?t.attributes[n]:t.attributes??{});if(i.length===0)continue;let s=!1,a=e.get(n),l={};i.forEach(([u,d])=>{a[u]!==d&&(s=!0,l[u]=d)}),o=o||s,s&&r.set(n,{...a,...l})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),_7(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{let o=aC(t.blocks),r=new Map(e);return o.forEach((n,i)=>{i!==""&&r.set(i,n)}),r.set("",(e.get("")??[]).concat(o[""])),r}case"INSERT_BLOCKS":{let{rootClientId:o=""}=t,r=e.get(o)||[],n=aC(t.blocks,o),{index:i=r.length}=t,s=new Map(e);return n.forEach((a,l)=>{s.set(l,a)}),s.set(o,Jw(r,n.get(o),i)),s}case"MOVE_BLOCKS_TO_POSITION":{let{fromRootClientId:o="",toRootClientId:r="",clientIds:n}=t,{index:i=e.get(r).length}=t;if(o===r){let l=e.get(r).indexOf(n[0]);if(l===-1)return e;let u=new Map(e);return u.set(r,eC(e.get(r),l,i,n.length)),u}let s=new Map(e);return s.set(o,e.get(o)?.filter(a=>!n.includes(a))??[]),s.set(r,Jw(e.get(r),n,i)),s}case"MOVE_BLOCKS_UP":{let{clientIds:o,rootClientId:r=""}=t,n=o[0],i=e.get(r);if(!i.length||n===i[0])return e;let s=i.indexOf(n),a=new Map(e);return a.set(r,eC(i,s,s-1,o.length)),a}case"MOVE_BLOCKS_DOWN":{let{clientIds:o,rootClientId:r=""}=t,n=o[0],i=o[o.length-1],s=e.get(r);if(!s.length||i===s[s.length-1])return e;let a=s.indexOf(n),l=new Map(e);return l.set(r,eC(s,a,a+1,o.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let{clientIds:o}=t;if(!t.blocks)return e;let r=aC(t.blocks),n=new Map(e);return t.replacedClientIds.forEach(i=>{n.delete(i)}),r.forEach((i,s)=>{s!==""&&n.set(s,i)}),n.forEach((i,s)=>{let a=Object.values(i).reduce((l,u)=>u===o[0]?[...l,...r.get("")]:(o.indexOf(u)===-1&&l.push(u),l),[]);n.set(s,a)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o.forEach((r,n)=>{let i=r?.filter(s=>!t.removedClientIds.includes(s))??[];i.length!==r.length&&o.set(n,i)}),o}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{let o=new Map(e);return _N(t.blocks).forEach(([r,n])=>{o.set(r,n)}),o}case"INSERT_BLOCKS":{let o=new Map(e);return _N(t.blocks,t.rootClientId||"").forEach(([r,n])=>{o.set(r,n)}),o}case"MOVE_BLOCKS_TO_POSITION":{let o=new Map(e);return t.clientIds.forEach(r=>{o.set(r,t.toRootClientId||"")}),o}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),_N(t.blocks,e.get(t.clientIds[0])).forEach(([r,n])=>{o.set(r,n)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{let o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},controlledInnerBlocks(e=new Set,{type:t,clientId:o,hasControlledInnerBlocks:r}){if(t==="SET_HAS_CONTROLLED_INNER_BLOCKS"){if(r)return e.has(o)?e:new Set(e).add(o);if(!e.has(o))return e;let n=new Set(e);return n.delete(o),n}return e},blockEditingModes(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return e.get(t.clientId)===t.mode?e:new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{if(!e.has(t.clientId))return e;let o=new Map(e);return o.delete(t.clientId),o}}return e}});function P0e(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function I0e(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function O0e(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function A0e(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function L0e(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function w7(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return!t.updateSelection||!t.blocks.length?e:{clientId:t.blocks[0].clientId};case"REMOVE_BLOCKS":return!t.clientIds||!t.clientIds.length||t.clientIds.indexOf(e.clientId)===-1?e:{};case"REPLACE_BLOCKS":{if(t.clientIds.indexOf(e.clientId)===-1)return e;let o=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}function M0e(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":let{selectionStart:n,selectionEnd:i}=t;return{selectionStart:n,selectionEnd:i};case"MULTI_SELECT":let{start:s,end:a}=t;return s===e.selectionStart?.clientId&&a===e.selectionEnd?.clientId?e:{selectionStart:{clientId:s},selectionEnd:{clientId:a}};case"RESET_BLOCKS":let l=e?.selectionStart?.clientId,u=e?.selectionEnd?.clientId;if(!l&&!u)return e;if(!t.blocks.some(d=>d.clientId===l))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(d=>d.clientId===u))return{...e,selectionEnd:e.selectionStart}}let o=w7(e.selectionStart,t),r=w7(e.selectionEnd,t);return o===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:o,selectionEnd:r}}function N0e(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function D0e(e=!0,t){return t.type==="TOGGLE_SELECTION"?t.isSelectionEnabled:e}function V0e(e=null,t){switch(t.type){case"SHOW_VIEWPORT_MODAL":return t.clientIds;case"HIDE_VIEWPORT_MODAL":return null}return e}function F0e(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":let{clientIds:o,selectPrevious:r,message:n}=t;return{clientIds:o,selectPrevious:r,message:n};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e}function z0e(e=!1,t){return t.type==="SET_BLOCK_REMOVAL_RULES"?t.rules:e}function j0e(e=null,t){return t.type==="REPLACE_BLOCKS"&&t.initialPosition!==void 0||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e}function H0e(e={},t){if(t.type==="TOGGLE_BLOCK_MODE"){let{clientId:o}=t;return{...e,[o]:e[o]&&e[o]==="html"?"visual":"html"}}return e}function U0e(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{let{rootClientId:o,index:r,__unstableWithInserter:n,operation:i,nearestSide:s}=t,a={rootClientId:o,index:r,__unstableWithInserter:n,operation:i,nearestSide:s};return(0,sS.default)(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e}function G0e(e={isValid:!0},t){return t.type==="SET_TEMPLATE_VALIDITY"?{...e,isValid:t.isValid}:e}function W0e(e=rS,t){if(t.type==="UPDATE_SETTINGS"){let o=t.reset?{...rS,...t.settings}:{...e,...t.settings};return Object.defineProperty(o,"__unstableIsPreviewMode",{get(){return(0,C7.default)("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),o}return e}function $0e(e=y7,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{let o=t.blocks.reduce((r,n)=>{let{attributes:i,name:s}=n,a=s,l=(0,aS.select)(lC.store).getActiveBlockVariation(s,i);return l?.name&&(a+="/"+l.name),s==="core/block"&&(a+="/"+i.ref),{...r,[a]:{time:t.time,count:r[a]?r[a].count+1:1}}},e.insertUsage);return{...e,insertUsage:o}}}return e}var K0e=(e=new Map,t)=>{switch(t.type){case"REPLACE_BLOCKS":{let o=new Set,r=[...t.blocks];for(;r.length;){let i=r.shift();o.add(i.clientId),r.push(...i.innerBlocks)}let n=new Map(e);for(let i of t.clientIds)o.has(i)||n.delete(i);return n}case"REMOVE_BLOCKS":{let o=new Map(e);for(let r of t.clientIds)o.delete(r);return o}case"UPDATE_BLOCK_LIST_SETTINGS":{let r=(typeof t.clientId=="string"?[[t.clientId,t.settings]]:Object.entries(t.clientId)).filter(([i,s])=>s?!(0,sS.default)(e.get(i),s):e.has(i));if(!r.length)return e;let n=new Map(e);for(let[i,s]of r)s?n.set(i,s):n.delete(i);return n}}return e};function Y0e(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((o,r)=>({...o,[r]:t.options?.uniqueByBlock?t.attributes[r]:t.attributes}),{})}return e}function q0e(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":let{clientId:o,isHighlighted:r}=t;return r?o:e===o?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function Z0e(e,t){switch(t.type){case"TOGGLE_BLOCK_SPOTLIGHT":let{clientId:o,hasBlockSpotlight:r}=t;return r?o:e===o?null:e;case"SELECT_BLOCK":return t.clientId!==e?null:e;case"SELECTION_CHANGE":return t.start?.clientId!==e||t.end?.clientId!==e?null:e;case"CLEAR_SELECTED_BLOCK":return null}return e}function X0e(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function Q0e(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;let o=t.blocks.map(n=>n.clientId),r=t.meta?.source;return{clientIds:o,source:r};case"RESET_BLOCKS":return{}}return e}function J0e(e,t){if(t.type==="EDIT_CONTENT_ONLY_SECTION")return t.clientId;if(!e)return e;switch(t.type){case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":if(t.clientIds.includes(e))return;break;case"RESET_BLOCKS":if(!CN(t.blocks)[e])return;break}return e}function ewe(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{let o=new Map(e);return o.delete(t.id),o}}return e}function twe(e=[],t){return t.type==="REGISTER_INSERTER_MEDIA_CATEGORY"?[...e,t.category]:e}function owe(e=!1,t){return t.type==="LAST_FOCUS"?t.lastFocus:e}function rwe(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e}function nwe(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e}function iwe(e={allOpen:!1,panels:{}},t){switch(t.type){case"SET_OPEN_LIST_VIEW_PANEL":return{allOpen:!1,panels:t.clientId?{[t.clientId]:!0}:{}};case"SET_ALL_LIST_VIEW_PANELS_OPEN":return{allOpen:!0,panels:{}};case"TOGGLE_LIST_VIEW_PANEL":return{allOpen:!1,panels:{...e.panels,[t.clientId]:t.isOpen}};case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":{if(!t.clientIds||t.clientIds.length===0)return e;let o={...e.panels},r=!1;return t.clientIds.forEach(n=>{n in o&&(delete o[n],r=!0)}),r?{...e,panels:o}:e}}return e}function swe(e=0,t){return t.type==="INCREMENT_LIST_VIEW_EXPAND_REVISION"?e+1:e}function awe(e=!1,t){switch(t.type){case"OPEN_LIST_VIEW_CONTENT_PANEL":return!0;case"CLOSE_LIST_VIEW_CONTENT_PANEL":return!1;case"CLEAR_SELECTED_BLOCK":return!1}return e}function lwe(e=null,t){switch(t.type){case"REQUEST_INSPECTOR_TAB":return{tabName:t.tabName,options:t.options};case"CLEAR_REQUESTED_INSPECTOR_TAB":return null}return e}function cwe(e=void 0,t){switch(t.type){case"SET_SELECTED_BLOCK_STYLE_STATE":{if(!t.clientId||!t.value)return;let o=e?.clientId===t.clientId?e.showStateOnCanvas??!0:!0,r=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:o,value:{viewport:"default",pseudo:"default",...r,...t.value}}}case"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW":{if(!t.clientId||typeof t.value!="boolean")return e;let o=e?.clientId===t.clientId?e.value:{};return{clientId:t.clientId,showStateOnCanvas:t.value,value:{viewport:"default",pseudo:"default",...o}}}case"SELECT_BLOCK":case"SELECTION_CHANGE":{if(e?.clientId&&e.clientId!==t.clientId)return;break}case"RESET_SELECTION":{if(e?.clientId&&e.clientId!==t.selectionStart?.clientId)return;break}case"CLEAR_SELECTED_BLOCK":case"MULTI_SELECT":return;case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":{if(e?.clientId&&t.clientIds?.includes(e.clientId))return;break}case"RESET_BLOCKS":{if(e?.clientId&&!CN(t.blocks)[e.clientId])return;break}}return e}var uwe=(0,aS.combineReducers)({blocks:R0e,isDragging:O0e,isTyping:I0e,isBlockInterfaceHidden:P0e,draggedBlocks:A0e,selection:M0e,isMultiSelecting:N0e,isSelectionEnabled:D0e,initialPosition:j0e,blocksMode:H0e,blockListSettings:K0e,insertionPoint:nwe,insertionCue:U0e,template:G0e,settings:W0e,preferences:$0e,lastBlockAttributesChange:Y0e,lastFocus:owe,expandedBlock:X0e,highlightedBlock:q0e,lastBlockInserted:Q0e,editedContentOnlySection:J0e,blockVisibility:L0e,viewportModalClientIds:V0e,styleOverrides:ewe,removalPromptData:F0e,blockRemovalRules:z0e,registeredInserterMediaCategories:twe,zoomLevel:rwe,hasBlockSpotlight:Z0e,openedListViewPanels:iwe,listViewExpandRevision:swe,listViewContentPanelOpen:awe,requestedInspectorTab:lwe,selectedBlockStyleState:cwe});function T7(e,t){if(t===""){let n=e.blocks.tree.get(t);return n?{clientId:"",...n}:void 0}if(!e.blocks.controlledInnerBlocks.has(t))return e.blocks.tree.get(t);let o=e.blocks.tree.get(`controlled||${t}`);return{...e.blocks.tree.get(t),innerBlocks:o?.innerBlocks}}function EN(e,t,o){let r=T7(e,t);if(r&&(o(r),!!r?.innerBlocks?.length))for(let n of r?.innerBlocks)EN(e,n.clientId,o)}function iS(e,t,o){if(!o.length)return;let r=e.blocks.parents.get(t);for(;r!==void 0;){if(o.includes(r))return r;r=e.blocks.parents.get(r)}}function dwe(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}function xN(e,t=""){let o=e?.zoomLevel<100||e?.zoomLevel==="auto-scaled",r=new Map,n=e.settings?.[Sd],i=e.blocks.order.get(n),s=Array.from(e.blocks.blockEditingModes).some(([,g])=>g==="disabled"),a=[],l=[];e.blocks.controlledInnerBlocks.forEach(g=>{let b=e.blocks.byClientId?.get(g);b?.name==="core/template-part"&&a.push(g),b?.name==="core/block"&&l.push(g)});let u=Array.from(e.blockListSettings).flatMap(([g,b])=>b?.templateLock==="contentOnly"?[g]:[]),d=e.settings?.[_d],f=e.settings?.disableContentOnlyForUnsyncedPatterns,m=d||f?[]:Array.from(e.blocks.attributes.keys()).filter(g=>e.blocks.attributes.get(g)?.metadata?.patternName),h=e.settings?.disableContentOnlyForTemplateParts,p=[...u,...m,...d||h?[]:a];return EN(e,t,g=>{let{clientId:b,name:v}=g,y=!!e.editedContentOnlySection,k=!1;if(y&&(k=b===e.editedContentOnlySection||!!iS(e,b,[e.editedContentOnlySection]),!k)){r.set(b,"disabled");return}if(!e.blocks.blockEditingModes.has(b)){if(s){let S,_=e.blocks.parents.get(b);for(;_!==void 0&&(e.blocks.blockEditingModes.has(_)&&(S=e.blocks.blockEditingModes.get(_)),!S);)_=e.blocks.parents.get(_);if(S==="disabled"){r.set(b,"disabled");return}}if(o){if(b===n){r.set(b,"contentOnly");return}if(!i?.length){r.set(b,"disabled");return}if(i.includes(b)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}if(l.length){if(l.includes(b)){if(iS(e,b,l)){r.set(b,"disabled");return}return}let S=iS(e,b,l);if(S){if(iS(e,S,l)){r.set(b,"disabled");return}if(dwe(g)){r.set(b,"contentOnly");return}r.set(b,"disabled");return}}if(y&&k){r.set(b,"default");return}p.length&&iS(e,b,p)&&(y0e(v)?r.set(b,"contentOnly"):r.set(b,"disabled"))}}),r}function wd({prevState:e,nextState:t,addedBlocks:o,removedClientIds:r}){let n=e.derivedBlockEditingModes,i;return r?.forEach(s=>{EN(e,s,a=>{n.has(a.clientId)&&(i||(i=new Map(n)),i.delete(a.clientId))})}),o?.forEach(s=>{let a=xN(t,s.clientId);a.size&&(i?i=new Map([...i?.size?i:[],...a]):i=new Map([...n?.size?n:[],...a]))}),i}function fwe(e){return(t,o)=>{let r=e(t,o);if(o.type!=="SET_EDITOR_MODE"&&r===t)return t;switch(o.type){case"REMOVE_BLOCKS":{let n=wd({prevState:t,nextState:r,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{let n=wd({prevState:t,nextState:r,addedBlocks:o.blocks});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_ATTRIBUTES":{if(r.settings?.disableContentOnlyForUnsyncedPatterns)break;let i=[],s=[];for(let l of o?.clientIds){let u=o.options?.uniqueByBlock?o.attributes[l]:o.attributes;if(!u)break;u.metadata?.patternName&&!t.blocks.attributes.get(l)?.metadata?.patternName?i.push(r.blocks.tree.get(l)):u.metadata&&!u.metadata?.patternName&&t.blocks.attributes.get(l)?.metadata?.patternName&&s.push(l)}if(!i?.length&&!s?.length)break;let a=wd({prevState:t,nextState:r,addedBlocks:i,removedClientIds:s});if(a)return{...r,derivedBlockEditingModes:a??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_LIST_SETTINGS":{let n=[],i=[],s=typeof o.clientId=="string"?{[o.clientId]:o.settings}:o.clientId;for(let l in s){let u=t.blockListSettings.get(l)?.templateLock!=="contentOnly"&&r.blockListSettings.get(l)?.templateLock==="contentOnly",d=t.blockListSettings.get(l)?.templateLock==="contentOnly"&&r.blockListSettings.get(l)?.templateLock!=="contentOnly";u?n.push(r.blocks.tree.get(l)):d&&i.push(l)}if(!n.length&&!i.length)break;let a=wd({prevState:t,nextState:r,addedBlocks:n,removedClientIds:i});if(a)return{...r,derivedBlockEditingModes:a??t.derivedBlockEditingModes};break}case"SET_BLOCK_EDITING_MODE":case"UNSET_BLOCK_EDITING_MODE":case"SET_HAS_CONTROLLED_INNER_BLOCKS":{let n=T7(r,o.clientId);if(!n)break;let i=wd({prevState:t,nextState:r,removedClientIds:[o.clientId],addedBlocks:[n]});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{let n=wd({prevState:t,nextState:r,addedBlocks:o.blocks,removedClientIds:o.clientIds});if(n)return{...r,derivedBlockEditingModes:n??t.derivedBlockEditingModes};break}case"REPLACE_INNER_BLOCKS":{let n=t.blocks.order.get(o.rootClientId),i=wd({prevState:t,nextState:r,addedBlocks:o.blocks,removedClientIds:n});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"MOVE_BLOCKS_TO_POSITION":{let n=o.clientIds.map(s=>r.blocks.byClientId.get(s)),i=wd({prevState:t,nextState:r,addedBlocks:n,removedClientIds:o.clientIds});if(i)return{...r,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":{if(t?.settings?.[Sd]!==r?.settings?.[Sd]||!!t?.settings?.disableContentOnlyForUnsyncedPatterns!=!!r?.settings?.disableContentOnlyForUnsyncedPatterns||!!t?.settings?.[_d]!=!!r?.settings?.[_d]||!!t?.settings?.disableContentOnlyForTemplateParts!=!!r?.settings?.disableContentOnlyForTemplateParts)return{...r,derivedBlockEditingModes:xN(r)};break}case"RESET_BLOCKS":case"EDIT_CONTENT_ONLY_SECTION":case"SET_EDITOR_MODE":case"RESET_ZOOM_LEVEL":case"SET_ZOOM_LEVEL":return{...r,derivedBlockEditingModes:xN(r)}}return r.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,r}}function mwe(e){return(t,o)=>{let r=e(t,o);return t?(r.automaticChangeStatus=t.automaticChangeStatus,o.type==="MARK_AUTOMATIC_CHANGE"?{...r,automaticChangeStatus:"pending"}:o.type==="MARK_AUTOMATIC_CHANGE_FINAL"&&t.automaticChangeStatus==="pending"?{...r,automaticChangeStatus:"final"}:r.blocks===t.blocks&&r.selection===t.selection||r.automaticChangeStatus!=="final"&&r.selection!==t.selection?r:{...r,automaticChangeStatus:void 0}):r}}var B7=(0,wN.pipe)(fwe,mwe)(uwe);var XV={};ps(XV,{__experimentalGetActiveBlockIdByBlockNames:()=>p1e,__experimentalGetAllowedBlocks:()=>QCe,__experimentalGetAllowedPatterns:()=>o1e,__experimentalGetBlockListSettingsForBlocks:()=>a1e,__experimentalGetDirectInsertBlock:()=>JCe,__experimentalGetGlobalBlocksByName:()=>cCe,__experimentalGetLastBlockAttributeChanges:()=>u1e,__experimentalGetParsedPattern:()=>e1e,__experimentalGetPatternTransformItems:()=>i1e,__experimentalGetPatternsByBlockTypes:()=>n1e,__experimentalGetReusableBlockTitle:()=>l1e,__unstableGetBlockWithoutInnerBlocks:()=>sCe,__unstableGetClientIdWithClientIdsTree:()=>Q7,__unstableGetClientIdsTree:()=>J7,__unstableGetContentLockingParent:()=>_1e,__unstableGetSelectedBlocksWithPartialSelection:()=>ICe,__unstableGetTemporarilyEditingAsBlocks:()=>x1e,__unstableGetVisibleBlocks:()=>y1e,__unstableHasActiveBlockOverlayActive:()=>pG,__unstableIsFullySelected:()=>TCe,__unstableIsLastBlockChangeIgnored:()=>c1e,__unstableIsSelectionCollapsed:()=>BCe,__unstableIsSelectionMergeable:()=>PCe,__unstableIsWithinBlockOverlay:()=>v1e,__unstableSelectionHasUnmergeableBlock:()=>RCe,areInnerBlocksControlled:()=>pE,canEditBlock:()=>dG,canInsertBlockType:()=>Pp,canInsertBlocks:()=>WCe,canLockBlockType:()=>KCe,canMoveBlock:()=>uG,canMoveBlocks:()=>$Ce,canRemoveBlock:()=>KV,canRemoveBlocks:()=>cG,didAutomaticChange:()=>f1e,getAdjacentBlockClientId:()=>UV,getAllowedBlocks:()=>zV,getBlock:()=>Vc,getBlockAttributes:()=>_s,getBlockCount:()=>dCe,getBlockEditingMode:()=>xs,getBlockHierarchyRootClientId:()=>bCe,getBlockIndex:()=>nG,getBlockInsertionPoint:()=>jCe,getBlockListSettings:()=>mE,getBlockMode:()=>NCe,getBlockName:()=>zt,getBlockNamesByClientId:()=>uCe,getBlockOrder:()=>an,getBlockParents:()=>va,getBlockParentsByBlockName:()=>HV,getBlockRootClientId:()=>ir,getBlockSelectionEnd:()=>mCe,getBlockSelectionStart:()=>fCe,getBlockTransformItems:()=>ZCe,getBlocks:()=>aCe,getBlocksByClientId:()=>fE,getBlocksByName:()=>tG,getClientIdsOfDescendants:()=>eG,getClientIdsWithDescendants:()=>eb,getDirectInsertBlock:()=>mG,getDraggedBlockClientIds:()=>VCe,getFirstMultiSelectedBlockClientId:()=>GV,getGlobalBlockCount:()=>lCe,getHoveredBlockClientId:()=>b1e,getInserterItems:()=>qCe,getLastMultiSelectedBlockClientId:()=>oG,getLowestCommonAncestorWithSelectedBlock:()=>yCe,getMultiSelectedBlockClientIds:()=>Dd,getMultiSelectedBlocks:()=>_Ce,getMultiSelectedBlocksEndClientId:()=>ECe,getMultiSelectedBlocksStartClientId:()=>CCe,getNextBlockClientId:()=>kCe,getPatternsByBlockTypes:()=>r1e,getPreviousBlockClientId:()=>vCe,getSelectedBlock:()=>gCe,getSelectedBlockClientId:()=>ob,getSelectedBlockClientIds:()=>rb,getSelectedBlockCount:()=>pCe,getSelectedBlocksInitialCaretPosition:()=>SCe,getSelectionEnd:()=>US,getSelectionStart:()=>HS,getSettings:()=>Od,getTemplate:()=>GCe,getTemplateLock:()=>El,hasBlockMovingClientId:()=>d1e,hasDraggedInnerBlock:()=>aG,hasInserterItems:()=>XCe,hasMultiSelection:()=>ACe,hasSelectedBlock:()=>hCe,hasSelectedInnerBlock:()=>sG,isAncestorBeingDragged:()=>FCe,isAncestorMultiSelected:()=>wCe,isBlockBeingDragged:()=>WV,isBlockHighlighted:()=>m1e,isBlockInsertionPointVisible:()=>HCe,isBlockMultiSelected:()=>rG,isBlockSelected:()=>iG,isBlockValid:()=>iCe,isBlockVisible:()=>g1e,isBlockWithinSelection:()=>OCe,isCaretWithinFormattedText:()=>zCe,isDraggingBlocks:()=>lG,isFirstMultiSelectedBlock:()=>xCe,isGroupable:()=>S1e,isLastBlockChangePersistent:()=>s1e,isMultiSelecting:()=>LCe,isSelectionEnabled:()=>MCe,isTyping:()=>DCe,isUngroupable:()=>k1e,isValidTemplate:()=>UCe,wasBlockJustInserted:()=>h1e});var et=c(Q(),1),q7=c(A(),1),Z7=c(Ft(),1);var cC=c(A(),1),We=(0,cC.forwardRef)(({icon:e,size:t=24,...o},r)=>(0,cC.cloneElement)(e,{width:t,height:t,...o,ref:r}));var uC=c(te(),1),TN=c(C(),1),mp=(0,TN.jsx)(uC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,TN.jsx)(uC.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var dC=c(te(),1),BN=c(C(),1),RN=(0,BN.jsx)(dC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,BN.jsx)(dC.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});var fC=c(te(),1),PN=c(C(),1),Cd=(0,PN.jsx)(fC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PN.jsx)(fC.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var mC=c(te(),1),IN=c(C(),1),pp=(0,IN.jsx)(mC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IN.jsx)(mC.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var pC=c(te(),1),ON=c(C(),1),Ed=(0,ON.jsx)(pC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ON.jsx)(pC.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var hC=c(te(),1),AN=c(C(),1),LN=(0,AN.jsx)(hC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AN.jsx)(hC.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})});var gC=c(te(),1),MN=c(C(),1),lS=(0,MN.jsx)(gC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MN.jsx)(gC.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});var bC=c(te(),1),NN=c(C(),1),cS=(0,NN.jsx)(bC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NN.jsx)(bC.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})});var yC=c(te(),1),DN=c(C(),1),VN=(0,DN.jsx)(yC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DN.jsx)(yC.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})});var vC=c(te(),1),FN=c(C(),1),zN=(0,FN.jsx)(vC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,FN.jsx)(vC.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 kC=c(te(),1),jN=c(C(),1),uS=(0,jN.jsx)(kC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jN.jsx)(kC.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 SC=c(te(),1),HN=c(C(),1),UN=(0,HN.jsx)(SC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,HN.jsx)(SC.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 _C=c(te(),1),GN=c(C(),1),ys=(0,GN.jsx)(_C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,GN.jsx)(_C.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})});var xC=c(te(),1),WN=c(C(),1),Ur=(0,WN.jsx)(xC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WN.jsx)(xC.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var wC=c(te(),1),$N=c(C(),1),dS=(0,$N.jsx)(wC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$N.jsx)(wC.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var CC=c(te(),1),KN=c(C(),1),xn=(0,KN.jsx)(CC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,KN.jsx)(CC.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var EC=c(te(),1),YN=c(C(),1),Td=(0,YN.jsx)(EC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YN.jsx)(EC.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 TC=c(te(),1),qN=c(C(),1),pr=(0,qN.jsx)(TC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qN.jsx)(TC.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var BC=c(te(),1),ZN=c(C(),1),hp=(0,ZN.jsx)(BC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ZN.jsx)(BC.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var RC=c(te(),1),XN=c(C(),1),gp=(0,XN.jsx)(RC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XN.jsx)(RC.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});var PC=c(te(),1),QN=c(C(),1),JN=(0,QN.jsx)(PC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QN.jsx)(PC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z"})});var IC=c(te(),1),eD=c(C(),1),tD=(0,eD.jsx)(IC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eD.jsx)(IC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});var OC=c(te(),1),oD=c(C(),1),bp=(0,oD.jsx)(OC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oD.jsx)(OC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});var AC=c(te(),1),rD=c(C(),1),nD=(0,rD.jsx)(AC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rD.jsx)(AC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Zm-12.5 9v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})});var yp=c(te(),1),Ug=c(C(),1),iD=(0,Ug.jsxs)(yp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Ug.jsx)(yp.G,{opacity:".25",children:(0,Ug.jsx)(yp.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,Ug.jsx)(yp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 15v3c0 .138.112.25.25.25h3v1.5H6A1.75 1.75 0 0 1 4.25 18v-3h1.5Z"})]});var vp=c(te(),1),Gg=c(C(),1),sD=(0,Gg.jsxs)(vp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Gg.jsx)(vp.G,{opacity:".25",children:(0,Gg.jsx)(vp.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,Gg.jsx)(vp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 18.25h3a.25.25 0 0 0 .25-.25v-3h1.5v3A1.75 1.75 0 0 1 18 19.75h-3v-1.5Z"})]});var kp=c(te(),1),Wg=c(C(),1),aD=(0,Wg.jsxs)(kp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Wg.jsx)(kp.G,{opacity:".25",children:(0,Wg.jsx)(kp.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,Wg.jsx)(kp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.75a.25.25 0 0 0-.25.25v3h-1.5V6c0-.966.784-1.75 1.75-1.75h3v1.5H6Z"})]});var Sp=c(te(),1),$g=c(C(),1),lD=(0,$g.jsxs)(Sp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,$g.jsx)(Sp.G,{opacity:".25",children:(0,$g.jsx)(Sp.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,$g.jsx)(Sp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Z"})]});var LC=c(te(),1),cD=c(C(),1),uD=(0,cD.jsx)(LC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cD.jsx)(LC.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})});var MC=c(te(),1),dD=c(C(),1),fS=(0,dD.jsx)(MC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dD.jsx)(MC.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});var NC=c(te(),1),fD=c(C(),1),mD=(0,fD.jsx)(NC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fD.jsx)(NC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Zm2-.5h14c.3 0 .5.2.5.5v1L12 13.5 4.5 7.9V7c0-.3.2-.5.5-.5Zm-.5 3.3V17c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V9.8L12 15.4 4.5 9.8Z"})});var DC=c(te(),1),pD=c(C(),1),_p=(0,pD.jsx)(DC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pD.jsx)(DC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var VC=c(te(),1),hD=c(C(),1),gD=(0,hD.jsx)(VC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hD.jsx)(VC.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 FC=c(te(),1),bD=c(C(),1),yD=(0,bD.jsx)(FC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bD.jsx)(FC.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 zC=c(te(),1),vD=c(C(),1),kD=(0,vD.jsx)(zC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,vD.jsx)(zC.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var jC=c(te(),1),SD=c(C(),1),_D=(0,SD.jsx)(jC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SD.jsx)(jC.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})});var HC=c(te(),1),xD=c(C(),1),wD=(0,xD.jsx)(HC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xD.jsx)(HC.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})});var UC=c(te(),1),CD=c(C(),1),ED=(0,CD.jsx)(UC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CD.jsx)(UC.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})});var GC=c(te(),1),TD=c(C(),1),BD=(0,TD.jsx)(GC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,TD.jsx)(GC.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})});var WC=c(te(),1),RD=c(C(),1),PD=(0,RD.jsx)(WC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RD.jsx)(WC.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})});var $C=c(te(),1),ID=c(C(),1),OD=(0,ID.jsx)($C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ID.jsx)($C.Path,{d:"M12.75 19.45 15 17.5l1 1.1-4 3.4-4-3.4 1-1.1 2.25 1.95V14.5h1.5v4.95ZM19 12.75H5v-1.5h14v1.5ZM16 5.4l-1 1.1-2.25-1.95V9.5h-1.5V4.55L9 6.5 8 5.4 12 2l4 3.4Z"})});var KC=c(te(),1),AD=c(C(),1),YC=(0,AD.jsx)(KC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AD.jsx)(KC.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 qC=c(te(),1),LD=c(C(),1),mS=(0,LD.jsx)(qC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LD.jsx)(qC.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-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})});var ZC=c(te(),1),MD=c(C(),1),pS=(0,MD.jsx)(ZC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MD.jsx)(ZC.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 XC=c(te(),1),ND=c(C(),1),hS=(0,ND.jsx)(XC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ND.jsx)(XC.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 QC=c(te(),1),DD=c(C(),1),VD=(0,DD.jsx)(QC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DD.jsx)(QC.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var JC=c(te(),1),FD=c(C(),1),zD=(0,FD.jsx)(JC.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,FD.jsx)(JC.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 e1=c(te(),1),jD=c(C(),1),HD=(0,jD.jsx)(e1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jD.jsx)(e1.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 t1=c(te(),1),UD=c(C(),1),GD=(0,UD.jsx)(t1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UD.jsx)(t1.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var o1=c(te(),1),WD=c(C(),1),$D=(0,WD.jsx)(o1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WD.jsx)(o1.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 r1=c(te(),1),KD=c(C(),1),YD=(0,KD.jsx)(r1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,KD.jsx)(r1.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 n1=c(te(),1),qD=c(C(),1),ZD=(0,qD.jsx)(n1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qD.jsx)(n1.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var i1=c(te(),1),XD=c(C(),1),gS=(0,XD.jsx)(i1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XD.jsx)(i1.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 s1=c(te(),1),QD=c(C(),1),JD=(0,QD.jsx)(s1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QD.jsx)(s1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});var a1=c(te(),1),e5=c(C(),1),t5=(0,e5.jsx)(a1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e5.jsx)(a1.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})});var l1=c(te(),1),o5=c(C(),1),r5=(0,o5.jsx)(l1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o5.jsx)(l1.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})});var c1=c(te(),1),n5=c(C(),1),Bd=(0,n5.jsx)(c1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n5.jsx)(c1.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})});var u1=c(te(),1),i5=c(C(),1),Rd=(0,i5.jsx)(u1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i5.jsx)(u1.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})});var d1=c(te(),1),s5=c(C(),1),Pd=(0,s5.jsx)(d1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s5.jsx)(d1.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})});var f1=c(te(),1),a5=c(C(),1),l5=(0,a5.jsx)(f1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a5.jsx)(f1.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})});var m1=c(te(),1),c5=c(C(),1),Kg=(0,c5.jsx)(m1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c5.jsx)(m1.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})});var p1=c(te(),1),u5=c(C(),1),d5=(0,u5.jsx)(p1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u5.jsx)(p1.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})});var h1=c(te(),1),f5=c(C(),1),Yg=(0,f5.jsx)(h1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,f5.jsx)(h1.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})});var g1=c(te(),1),m5=c(C(),1),p5=(0,m5.jsx)(g1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m5.jsx)(g1.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})});var b1=c(te(),1),h5=c(C(),1),Lc=(0,h5.jsx)(b1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h5.jsx)(b1.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 y1=c(te(),1),g5=c(C(),1),b5=(0,g5.jsx)(y1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g5.jsx)(y1.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 v1=c(te(),1),y5=c(C(),1),vs=(0,y5.jsx)(v1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y5.jsx)(v1.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 k1=c(te(),1),v5=c(C(),1),ti=(0,v5.jsx)(k1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v5.jsx)(k1.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 S1=c(te(),1),k5=c(C(),1),bS=(0,k5.jsx)(S1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k5.jsx)(S1.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});var _1=c(te(),1),S5=c(C(),1),_5=(0,S5.jsx)(_1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S5.jsx)(_1.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})});var x1=c(te(),1),x5=c(C(),1),w5=(0,x5.jsx)(x1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x5.jsx)(x1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});var w1=c(te(),1),C5=c(C(),1),xp=(0,C5.jsx)(w1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,C5.jsx)(w1.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})});var yS=c(te(),1),vS=c(C(),1),qg=(0,vS.jsxs)(yS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,vS.jsx)(yS.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,vS.jsx)(yS.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 C1=c(te(),1),E5=c(C(),1),kS=(0,E5.jsx)(C1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E5.jsx)(C1.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})});var E1=c(te(),1),T5=c(C(),1),Li=(0,T5.jsx)(E1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T5.jsx)(E1.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var SS=c(te(),1),_S=c(C(),1),wp=(0,_S.jsxs)(SS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,_S.jsx)(SS.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,_S.jsx)(SS.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 T1=c(te(),1),B5=c(C(),1),R5=(0,B5.jsx)(T1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B5.jsx)(T1.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 B1=c(te(),1),P5=c(C(),1),Cp=(0,P5.jsx)(B1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P5.jsx)(B1.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var R1=c(te(),1),I5=c(C(),1),O5=(0,I5.jsx)(R1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I5.jsx)(R1.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})});var P1=c(te(),1),A5=c(C(),1),ks=(0,A5.jsx)(P1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,A5.jsx)(P1.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var I1=c(te(),1),L5=c(C(),1),M5=(0,L5.jsx)(I1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L5.jsx)(I1.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var O1=c(te(),1),N5=c(C(),1),D5=(0,N5.jsx)(O1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N5.jsx)(O1.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var A1=c(te(),1),V5=c(C(),1),F5=(0,V5.jsx)(A1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V5.jsx)(A1.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var L1=c(te(),1),z5=c(C(),1),j5=(0,z5.jsx)(L1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z5.jsx)(L1.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 M1=c(te(),1),H5=c(C(),1),U5=(0,H5.jsx)(M1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,H5.jsx)(M1.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 N1=c(te(),1),G5=c(C(),1),Gr=(0,G5.jsx)(N1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G5.jsx)(N1.Path,{d:"M7 11.5h10V13H7z"})});var D1=c(te(),1),W5=c(C(),1),$5=(0,W5.jsx)(D1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,W5.jsx)(D1.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})});var V1=c(te(),1),K5=c(C(),1),Y5=(0,K5.jsx)(V1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K5.jsx)(V1.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 F1=c(te(),1),q5=c(C(),1),Z5=(0,q5.jsx)(F1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q5.jsx)(F1.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 z1=c(te(),1),X5=c(C(),1),Ep=(0,X5.jsx)(z1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X5.jsx)(z1.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})});var xS=c(te(),1),wS=c(C(),1),Q5=(0,wS.jsxs)(xS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,wS.jsx)(xS.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,wS.jsx)(xS.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]});var j1=c(te(),1),J5=c(C(),1),eV=(0,J5.jsx)(j1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,J5.jsx)(j1.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})});var H1=c(te(),1),tV=c(C(),1),U1=(0,tV.jsx)(H1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tV.jsx)(H1.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})});var CS=c(te(),1),ES=c(C(),1),oV=(0,ES.jsxs)(CS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,ES.jsx)(CS.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,ES.jsx)(CS.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]});var Zg=c(te(),1),Xg=c(C(),1),rV=(0,Xg.jsxs)(Zg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Xg.jsx)(Zg.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Xg.jsx)(Zg.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,Xg.jsx)(Zg.Path,{d:"m18 7.5v9h1.5v-9z"})]});var TS=c(te(),1),BS=c(C(),1),nV=(0,BS.jsxs)(TS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,BS.jsx)(TS.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,BS.jsx)(TS.Path,{d:"m4.5 16.5v-9h1.5v9z"})]});var RS=c(te(),1),PS=c(C(),1),iV=(0,PS.jsxs)(RS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,PS.jsx)(RS.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,PS.jsx)(RS.Path,{d:"m18 16.5v-9h1.5v9z"})]});var IS=c(te(),1),OS=c(C(),1),sV=(0,OS.jsxs)(IS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,OS.jsx)(IS.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,OS.jsx)(IS.Path,{d:"m16.5 6h-9v-1.5h9z"})]});var Qg=c(te(),1),Jg=c(C(),1),aV=(0,Jg.jsxs)(Qg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Jg.jsx)(Qg.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Jg.jsx)(Qg.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,Jg.jsx)(Qg.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]});var G1=c(te(),1),lV=c(C(),1),cV=(0,lV.jsx)(G1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lV.jsx)(G1.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 W1=c(te(),1),uV=c(C(),1),AS=(0,uV.jsx)(W1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,uV.jsx)(W1.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})});var $1=c(te(),1),dV=c(C(),1),Tp=(0,dV.jsx)($1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dV.jsx)($1.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var K1=c(te(),1),fV=c(C(),1),mV=(0,fV.jsx)(K1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fV.jsx)(K1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})});var Y1=c(te(),1),pV=c(C(),1),Ss=(0,pV.jsx)(Y1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pV.jsx)(Y1.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 q1=c(te(),1),hV=c(C(),1),gV=(0,hV.jsx)(q1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hV.jsx)(q1.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})});var Z1=c(te(),1),bV=c(C(),1),yV=(0,bV.jsx)(Z1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bV.jsx)(Z1.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 X1=c(te(),1),vV=c(C(),1),kV=(0,vV.jsx)(X1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,vV.jsx)(X1.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})});var Q1=c(te(),1),SV=c(C(),1),_V=(0,SV.jsx)(Q1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SV.jsx)(Q1.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})});var J1=c(te(),1),xV=c(C(),1),wV=(0,xV.jsx)(J1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xV.jsx)(J1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});var eE=c(te(),1),CV=c(C(),1),EV=(0,CV.jsx)(eE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CV.jsx)(eE.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})});var tE=c(te(),1),TV=c(C(),1),Mc=(0,TV.jsx)(tE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,TV.jsx)(tE.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})});var oE=c(te(),1),BV=c(C(),1),ba=(0,BV.jsx)(oE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,BV.jsx)(oE.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})});var rE=c(te(),1),RV=c(C(),1),PV=(0,RV.jsx)(rE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RV.jsx)(rE.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 nE=c(te(),1),IV=c(C(),1),OV=(0,IV.jsx)(nE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IV.jsx)(nE.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 iE=c(te(),1),AV=c(C(),1),LV=(0,AV.jsx)(iE.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AV.jsx)(iE.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 Dc=c(Wr(),1),Mi=c(Je(),1),$e=c(G(),1);var $7=c(Q(),1),K7=c(O7(),1);var ko="core/block-editor";var cE={};ps(cE,{getAllPatterns:()=>Iwe,getBlockRemovalRules:()=>Cwe,getBlockSettings:()=>L7,getBlockStyles:()=>Dwe,getBlockWithoutAttributes:()=>kwe,getClosestAllowedInsertionPoint:()=>V7,getClosestAllowedInsertionPointForPattern:()=>Fwe,getContentLockingParent:()=>MV,getEditedContentOnlySection:()=>NV,getEnabledBlockParents:()=>xwe,getEnabledClientIdsTree:()=>_we,getExpandedBlock:()=>Nwe,getInserterMediaCategories:()=>Bwe,getInsertionPoint:()=>zwe,getLastFocus:()=>Lwe,getLastInsertedBlocksClientIds:()=>vwe,getListViewExpandRevision:()=>Ywe,getParentSectionBlock:()=>Ad,getPatternBySlug:()=>Pwe,getRegisteredInserterMediaCategories:()=>Twe,getRemovalPromptData:()=>wwe,getRequestedInspectorTab:()=>Zwe,getReusableBlocks:()=>Awe,getSectionRootClientId:()=>Rp,getSelectedBlockStyleState:()=>U7,getStyleOverrides:()=>Ewe,getViewportModalClientIds:()=>qwe,getZoomLevel:()=>Vwe,hasAllowedPatterns:()=>Rwe,hasBlockSpotlight:()=>Gwe,hasSelectedStyleState:()=>Xwe,isBlockHiddenAnywhere:()=>jwe,isBlockHiddenAtViewport:()=>F7,isBlockHiddenEverywhere:()=>FV,isBlockInterfaceHidden:()=>ywe,isBlockParentHiddenAtViewport:()=>Uwe,isBlockParentHiddenEverywhere:()=>Hwe,isBlockSubtreeDisabled:()=>Swe,isContainerInsertableToInContentOnlyMode:()=>MS,isDragging:()=>Mwe,isEditLockedBlock:()=>z7,isListViewContentPanelOpen:()=>$we,isListViewPanelOpened:()=>Kwe,isLockedBlock:()=>Wwe,isMoveLockedBlock:()=>j7,isRemoveLockedBlock:()=>H7,isSectionBlock:()=>Ld,isSelectedBlockStyleStateShownOnCanvas:()=>Qwe,isWithinEditedContentOnlySection:()=>DV,isZoomOut:()=>VV});var wn=c(G(),1),LS=c(Q(),1);var sE=c(F(),1);var oo={desktop:{label:(0,sE.__)("Desktop"),icon:uD,key:"desktop"},tablet:{label:(0,sE.__)("Tablet"),icon:gV,key:"tablet"},mobile:{label:(0,sE.__)("Mobile"),icon:kS,key:"mobile"}},Id=Object.entries(oo);var aE=c(Q(),1),A7=c(Ft(),1);function ge(e,t,o){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let r=t.pop(),n=e;for(let i of t){let s=n[i];n=n[i]=Array.isArray(s)?[...s]:{...s}}return n[r]=o,e}var ya=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var pwe=["color","border","dimensions","typography","spacing"],hwe={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>e.disableCustomColors===void 0?void 0:!e.disableCustomColors,"color.customGradient":e=>e.disableCustomGradients===void 0?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>e.disableCustomFontSizes===void 0?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(e.enableCustomUnits!==void 0)return e.enableCustomUnits===!0?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},gwe={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},bwe=e=>gwe[e]||e;function L7(e,t,...o){let r=zt(e,t),n=[];if(t){let i=t;do{let s=zt(e,i);(0,aE.hasBlockSupport)(s,"__experimentalSettings",!1)&&n.push(i)}while(i=e.blocks.parents.get(i))}return o.map(i=>{if(pwe.includes(i)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let s=(0,A7.applyFilters)("blockEditor.useSetting.before",void 0,i,t,r);if(s!==void 0)return s;let a=bwe(i);for(let d of n){let f=_s(e,d);if(s=ya(f.settings?.blocks?.[r],a)??ya(f.settings,a),s!==void 0)break}let l=Od(e);if(s===void 0&&r&&(s=ya(l.__experimentalFeatures?.blocks?.[r],a)),s===void 0&&(s=ya(l.__experimentalFeatures,a)),s!==void 0)return aE.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[a]?s.custom??s.theme??s.default:s;let u=hwe[a]?.(l);return u!==void 0?u:a==="typography.dropCap"?!0:void 0})}var{isContentBlock:M7}=H(LS.privateApis);function ywe(e){return e.isBlockInterfaceHidden}function vwe(e){return e?.lastBlockInserted?.clientIds}function kwe(e,t){return e.blocks.byClientId.get(t)}var Swe=(e,t)=>{let o=r=>xs(e,r)==="disabled"&&an(e,r).every(o);return an(e,t).every(o)};function MS(e,t,o){let r=M7(t),n=zt(e,o),i=M7(n);return Rp(e)===o||i&&r}function N7(e,t){let o=an(e,t),r=[];for(let n of o){let i=N7(e,n);xs(e,n)!=="disabled"?r.push({clientId:n,innerBlocks:i}):r.push(...i)}return r}var _we=(0,wn.createRegistrySelector)(()=>(0,wn.createSelector)(N7,e=>[e.blocks.order,e.derivedBlockEditingModes,e.blocks.blockEditingModes])),xwe=(0,wn.createSelector)((e,t,o=!1)=>va(e,t,o).filter(r=>xs(e,r)!=="disabled"),e=>[e.blocks.parents,e.blocks.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function wwe(e){return e.removalPromptData}function Cwe(e){return e.blockRemovalRules}var Ewe=(0,wn.createSelector)(e=>{let o=eb(e).reduce((r,n,i)=>(r[n]=i,r),{});return[...e.styleOverrides].sort((r,n)=>{let[,{clientId:i}]=r,[,{clientId:s}]=n,a=o[i]??-1,l=o[s]??-1;return a-l})},e=>[e.blocks.order,e.styleOverrides]);function Twe(e){return e.registeredInserterMediaCategories}var Bwe=(0,wn.createSelector)(e=>{let{settings:{inserterMediaCategories:t,allowedMimeTypes:o,enableOpenverseMediaCategory:r},registeredInserterMediaCategories:n}=e;if(!t&&!n.length||!o)return;let i=t?.map(({name:a})=>a)||[];return[...t||[],...(n||[]).filter(({name:a})=>!i.includes(a))].filter(a=>!r&&a.name==="openverse"?!1:Object.values(o).some(l=>l.startsWith(`${a.mediaType}/`)))},e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]),Rwe=(0,wn.createRegistrySelector)(e=>(0,wn.createSelector)((t,o=null)=>{let{getAllPatterns:r}=H(e(ko)),n=r(),{allowedBlockTypes:i}=Od(t);return n.some(s=>{let{inserter:a=!0}=s;if(!a)return!1;let l=Bp(s);return DS(l,i)&&l.every(({name:u})=>Pp(t,u,o))})},(t,o)=>[...VS(e)(t),...Md(e)(t,o)])),Pwe=(0,wn.createRegistrySelector)(e=>(0,wn.createSelector)((t,o)=>{if(o?.startsWith("core/block/")){let r=parseInt(o.slice(11),10),n=H(e(ko)).getReusableBlocks().find(({id:i})=>i===r);return n?NS(n,t.settings[Ac]?.(e)??t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[kd]?.(e)??[]].find(({name:r})=>r===o)},(t,o)=>o?.startsWith("core/block/")?[H(e(ko)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[kd]?.(e)])),Iwe=(0,wn.createRegistrySelector)(e=>(0,wn.createSelector)(t=>[...H(e(ko)).getReusableBlocks().map(o=>NS(o,t.settings[Ac]?.(e)??t.settings.__experimentalUserPatternCategories)),...t.settings.__experimentalBlockPatterns??[],...t.settings[kd]?.(e)??[]].filter((o,r,n)=>r===n.findIndex(i=>o.name===i.name)),VS(e))),Owe=[],Awe=(0,wn.createRegistrySelector)(e=>t=>{let o=t.settings[oC];return(o?o(e):t.settings.__experimentalReusableBlocks)??Owe});function Lwe(e){return e.lastFocus}function Mwe(e){return e.isDragging}function Nwe(e){return e.expandedBlock}var MV=(e,t)=>{let o=t,r;for(;!r&&(o=e.blocks.parents.get(o));)El(e,o)==="contentOnly"&&(r=o);return r};function D7(e,t){let o=zt(e,t);if(o==="core/block")return!0;let r=_s(e,t),n=o==="core/template-part",i=e.settings?.[_d],s=e.settings?.disableContentOnlyForUnsyncedPatterns,a=e.settings?.disableContentOnlyForTemplateParts;if((!s&&r?.metadata?.patternName||n&&!a)&&!i)return!0;let l=El(e,t)==="contentOnly",u=ir(e,t),d=El(e,u)==="contentOnly";return!!(l&&!d)}var Ad=(e,t)=>{if(DV(e,t))return;let o=t,r;for(;o=e.blocks.parents.get(o);)D7(e,o)&&(r=o);return r};function Ld(e,t){return DV(e,t)||Ad(e,t)?!1:D7(e,t)}function NV(e){return e.editedContentOnlySection}function DV(e,t){if(!e.editedContentOnlySection)return!1;if(e.editedContentOnlySection===t)return!0;let o=t;for(;o=e.blocks.parents.get(o);)if(e.editedContentOnlySection===o)return!0;return!1}var Dwe=(0,wn.createSelector)((e,t)=>t.reduce((o,r)=>(o[r]=e.blocks.attributes.get(r)?.style,o),{}),(e,t)=>[...t.map(o=>e.blocks.attributes.get(o)?.style)]);function Rp(e){return e.settings?.[Sd]}function VV(e){return e.zoomLevel==="auto-scaled"||e.zoomLevel<100}function Vwe(e){return e.zoomLevel}function V7(e,t,o=""){let r=Array.isArray(t)?t:[t],n=s=>r.every(a=>Pp(e,a,s));if(!o){if(n(o))return o;let s=Rp(e);return s&&n(s)?s:null}let i=o;for(;i!==null&&!n(i);)i=ir(e,i);return i}function Fwe(e,t,o){let{allowedBlockTypes:r}=Od(e);if(!DS(Bp(t),r))return null;let i=Bp(t).map(({blockName:s})=>s);return V7(e,i,o)}function zwe(e){return e.insertionPoint}var jwe=(e,t)=>{let o=zt(e,t);if(!(0,LS.hasBlockSupport)(o,"visibility",!0))return!1;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility;return n===!1?!0:typeof n?.viewport=="object"&&n?.viewport!==null?Object.values(oo).some(i=>n?.viewport?.[i.key]===!1):!1},FV=(e,t)=>{let o=zt(e,t);return(0,LS.hasBlockSupport)(o,"visibility",!0)?e.blocks.attributes.get(t)?.metadata?.blockVisibility===!1:!1},Hwe=(e,t)=>va(e,t).some(r=>FV(e,r)),F7=(e,t,o)=>{if(FV(e,t))return!0;let n=e.blocks.attributes.get(t)?.metadata?.blockVisibility?.viewport;return typeof n=="object"&&n!==null&&typeof o=="string"?n?.[o.toLowerCase()]===!1:!1},Uwe=(e,t,o)=>va(e,t).some(n=>F7(e,n,o));function Gwe(e){return!!e.hasBlockSpotlight||!!e.editedContentOnlySection}function z7(e,t){return!!_s(e,t)?.lock?.edit}function j7(e,t){let o=_s(e,t);if(o?.lock?.move!==void 0)return!!o?.lock?.move;let r=ir(e,t);return El(e,r)==="all"}function H7(e,t){let o=_s(e,t);if(o?.lock?.remove!==void 0)return!!o?.lock?.remove;let r=ir(e,t),n=El(e,r);return n==="all"||n==="insert"}function Wwe(e,t){return z7(e,t)||j7(e,t)||H7(e,t)}function $we(e){return e.listViewContentPanelOpen}function Kwe(e,t){return e.openedListViewPanels?.allOpen?!0:e.openedListViewPanels?.panels?.[t]===!0}function Ywe(e){return e.listViewExpandRevision||0}function qwe(e){return e.viewportModalClientIds}function Zwe(e){return e.requestedInspectorTab}var lE={viewport:"default",pseudo:"default"};function U7(e,t){return e.selectedBlockStyleState?.clientId!==t?lE:e.selectedBlockStyleState.value??lE}function Xwe(e,t){let o=U7(e,t);return o.viewport!==lE.viewport||o.pseudo!==lE.pseudo}function Qwe(e,t){return e.selectedBlockStyleState?.clientId!==t?!0:e.selectedBlockStyleState.showStateOnCanvas??!0}var zS=c(F(),1),fo={user:"user",theme:"theme",directory:"directory"},FS={full:"fully",unsynced:"unsynced"},Ip={name:"allPatterns",label:(0,zS._x)("All","patterns")},Nc={name:"myPatterns",label:(0,zS.__)("My patterns")},tb={name:"core/starter-content",label:(0,zS.__)("Starter content")};function uE(e,t,o){let r=e.name.startsWith("core/block"),n=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===fo.theme&&(r||n)||t===fo.directory&&(r||!n)||t===fo.user&&e.type!==fo.user||o===FS.full&&e.syncStatus!==""||o===FS.unsynced&&e.syncStatus!=="unsynced"&&r)}var Nd=Symbol("isFiltered"),G7=new WeakMap,W7=new WeakMap;function NS(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:fo.user,title:e.title?.raw,categories:e.wp_pattern_category?.map(o=>{let r=t.find(({id:n})=>n===o);return r?r.slug:o}),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function Jwe(e){let t=(0,$7.parse)(e.content,{__unstableSkipMigrationLogs:!0});return t.length===1&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}function dE(e){let t=G7.get(e);return t||(t=Jwe(e),G7.set(e,t)),t}function Bp(e){let t=W7.get(e);return t||(t=(0,K7.parse)(e.content),t=t.filter(o=>o.blockName!==null),W7.set(e,t)),t}var Op=(e,t,o=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):o,DS=(e,t)=>{if(typeof t=="boolean")return t;let o=[...e];for(;o.length>0;){let r=o.shift();if(!Op(t,r.name||r.blockName,!0))return!1;r.innerBlocks?.forEach(i=>{o.push(i)})}return!0},VS=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings[Ac]?.(e)??t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[kd]?.(e),t.blockPatterns,H(e(ko)).getReusableBlocks()],Md=()=>(e,t)=>[e.blockListSettings.get(t),e.blocks.byClientId.get(t),e.blocks.order.get(t||""),e.settings.allowedBlockTypes,e.settings.templateLock,xs(e,t),Rp(e),Ld(e,t),Ad(e,t)];var eCe=(e,t,o)=>(r,n)=>{let i,s;if(typeof e=="function"?(i=e(r),s=e(n)):(i=r[e],s=n[e]),i>s)return o==="asc"?1:-1;if(s>i)return o==="asc"?-1:1;let a=t.findIndex(u=>u===r),l=t.findIndex(u=>u===n);return a>l?1:l>a?-1:0};function Tl(e,t,o="asc"){return e.concat().sort(eCe(t,e,o))}var{isContentBlock:jV}=H(et.privateApis),tCe=3600*1e3,oCe=24*3600*1e3,rCe=168*3600*1e3,$r=[],nCe=new Set,X7={[Nd]:!0};function zt(e,t){let o=e.blocks.byClientId.get(t),r="core/social-link";if(q7.Platform.OS!=="web"&&o?.name===r){let n=e.blocks.attributes.get(t),{service:i}=n??{};return i?`${r}-${i}`:r}return o?o.name:null}function iCe(e,t){let o=e.blocks.byClientId.get(t);return!!o&&o.isValid}function _s(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Vc(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}var sCe=(0,$e.createSelector)((e,t)=>{let o=e.blocks.byClientId.get(t);return o?{...o,attributes:_s(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function aCe(e,t){let o=!t||!pE(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(o)?.innerBlocks||$r}var Q7=(0,$e.createSelector)((e,t)=>((0,Mi.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:J7(e,t)}),e=>[e.blocks.order]),J7=(0,$e.createSelector)((e,t="")=>((0,Mi.default)("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),an(e,t).map(o=>Q7(e,o))),e=>[e.blocks.order]),eG=(0,$e.createSelector)((e,t)=>{t=Array.isArray(t)?[...t]:[t];let o=[];for(let n of t){let i=e.blocks.order.get(n);i&&o.push(...i)}let r=0;for(;r<o.length;){let n=o[r],i=e.blocks.order.get(n);i&&o.splice(r+1,0,...i),r++}return o},e=>[e.blocks.order]),eb=e=>eG(e,""),lCe=(0,$e.createSelector)((e,t)=>{let o=eb(e);if(!t)return o.length;let r=0;for(let n of o)e.blocks.byClientId.get(n).name===t&&r++;return r},e=>[e.blocks.order,e.blocks.byClientId]),tG=(0,$e.createSelector)((e,t)=>{if(!t)return $r;let o=Array.isArray(t)?t:[t],n=eb(e).filter(i=>{let s=e.blocks.byClientId.get(i);return o.includes(s.name)});return n.length>0?n:$r},e=>[e.blocks.order,e.blocks.byClientId]);function cCe(e,t){return(0,Mi.default)("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),tG(e,t)}var fE=(0,$e.createSelector)((e,t)=>(Array.isArray(t)?t:[t]).map(o=>Vc(e,o)),(e,t)=>(Array.isArray(t)?t:[t]).map(o=>e.blocks.tree.get(o))),uCe=(0,$e.createSelector)((e,t)=>fE(e,t).filter(Boolean).map(o=>o.name),(e,t)=>fE(e,t));function dCe(e,t){return an(e,t).length}function HS(e){return e.selection.selectionStart}function US(e){return e.selection.selectionEnd}function fCe(e){return e.selection.selectionStart.clientId}function mCe(e){return e.selection.selectionEnd.clientId}function pCe(e){let t=Dd(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function hCe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return!!t.clientId&&t.clientId===o.clientId}function ob(e){let{selectionStart:t,selectionEnd:o}=e.selection,{clientId:r}=t;return!r||r!==o.clientId?null:r}function gCe(e){let t=ob(e);return t?Vc(e,t):null}function ir(e,t){return e.blocks.parents.get(t)??null}var va=(0,$e.createSelector)((e,t,o=!1)=>{let r=[],n=t;for(;n=e.blocks.parents.get(n);)r.push(n);return r.length?o?r:r.reverse():$r},e=>[e.blocks.parents]),HV=(0,$e.createSelector)((e,t,o,r=!1)=>{let n=va(e,t,r),i=Array.isArray(o)?s=>o.includes(s):s=>o===s;return n.filter(s=>i(zt(e,s)))},e=>[e.blocks.parents]);function bCe(e,t){let o=t,r;do r=o,o=e.blocks.parents.get(o);while(o);return r}function yCe(e,t){let o=ob(e),r=[...va(e,t),t],n=[...va(e,o),o],i,s=Math.min(r.length,n.length);for(let a=0;a<s&&r[a]===n[a];a++)i=r[a];return i}function UV(e,t,o=1){if(t===void 0&&(t=ob(e)),t===void 0&&(o<0?t=GV(e):t=oG(e)),!t)return null;let r=ir(e,t);if(r===null)return null;let{order:n}=e.blocks,i=n.get(r),a=i.indexOf(t)+1*o;return a<0||a===i.length?null:i[a]}function vCe(e,t){return UV(e,t,-1)}function kCe(e,t){return UV(e,t,1)}function SCe(e){return e.initialPosition}var rb=(0,$e.createSelector)(e=>{let{selectionStart:t,selectionEnd:o}=e.selection;if(!t.clientId||!o.clientId)return $r;if(t.clientId===o.clientId)return[t.clientId];let r=ir(e,t.clientId);if(r===null)return $r;let n=an(e,r),i=n.indexOf(t.clientId),s=n.indexOf(o.clientId);return i>s?n.slice(s,i+1):n.slice(i,s+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function Dd(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?$r:rb(e)}var _Ce=(0,$e.createSelector)(e=>{let t=Dd(e);return t.length?t.map(o=>Vc(e,o)):$r},e=>[...rb.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function GV(e){return Dd(e)[0]||null}function oG(e){let t=Dd(e);return t[t.length-1]||null}function xCe(e,t){return GV(e)===t}function rG(e,t){return Dd(e).indexOf(t)!==-1}var wCe=(0,$e.createSelector)((e,t)=>{let o=t,r=!1;for(;o&&!r;)o=ir(e,o),r=rG(e,o);return r},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function CCe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:t.clientId||null}function ECe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId===o.clientId?null:o.clientId||null}function TCe(e){let t=HS(e),o=US(e);return!t.attributeKey&&!o.attributeKey&&typeof t.offset>"u"&&typeof o.offset>"u"}function BCe(e){let t=HS(e),o=US(e);return!!t&&!!o&&t.clientId===o.clientId&&t.attributeKey===o.attributeKey&&t.offset===o.offset}function RCe(e){return rb(e).some(t=>{let o=zt(e,t);return!(0,et.getBlockType)(o).merge})}function PCe(e,t){let o=HS(e),r=US(e);if(o.clientId===r.clientId||!o.attributeKey||!r.attributeKey||typeof o.offset>"u"||typeof r.offset>"u")return!1;let n=ir(e,o.clientId),i=ir(e,r.clientId);if(n!==i)return!1;let s=an(e,n),a=s.indexOf(o.clientId),l=s.indexOf(r.clientId),u,d;a>l?(u=r,d=o):(u=o,d=r);let f=t?d.clientId:u.clientId,m=t?u.clientId:d.clientId,h=zt(e,f);if(!(0,et.getBlockType)(h).merge)return!1;let g=Vc(e,m);if(g.name===h)return!0;let b=(0,et.switchToBlockType)(g,h);return b&&b.length}var ICe=e=>{let t=HS(e),o=US(e);if(t.clientId===o.clientId||!t.attributeKey||!o.attributeKey||typeof t.offset>"u"||typeof o.offset>"u")return $r;let r=ir(e,t.clientId),n=ir(e,o.clientId);if(r!==n)return $r;let i=an(e,r),s=i.indexOf(t.clientId),a=i.indexOf(o.clientId),[l,u]=s>a?[o,t]:[t,o],d=Vc(e,l.clientId),f=Vc(e,u.clientId),m=d.attributes[l.attributeKey],h=f.attributes[u.attributeKey],p=(0,Dc.create)({html:m}),g=(0,Dc.create)({html:h});return p=(0,Dc.remove)(p,0,l.offset),g=(0,Dc.remove)(g,u.offset,g.text.length),[{...d,attributes:{...d.attributes,[l.attributeKey]:(0,Dc.toHTMLString)({value:p})}},{...f,attributes:{...f.attributes,[u.attributeKey]:(0,Dc.toHTMLString)({value:g})}}]};function an(e,t){return e.blocks.order.get(t||"")||$r}function nG(e,t){let o=ir(e,t);return an(e,o).indexOf(t)}function iG(e,t){let{selectionStart:o,selectionEnd:r}=e.selection;return o.clientId!==r.clientId?!1:o.clientId===t}function sG(e,t,o=!1){let r=rb(e);return r.length?o?r.some(n=>va(e,n,!0).includes(t)):r.some(n=>ir(e,n)===t):!1}function aG(e,t,o=!1){return an(e,t).some(r=>WV(e,r)||o&&aG(e,r,o))}function OCe(e,t){if(!t)return!1;let o=Dd(e),r=o.indexOf(t);return r>-1&&r<o.length-1}function ACe(e){let{selectionStart:t,selectionEnd:o}=e.selection;return t.clientId!==o.clientId}function LCe(e){return e.isMultiSelecting}function MCe(e){return e.isSelectionEnabled}function NCe(e,t){return e.blocksMode[t]||"visual"}function DCe(e){return e.isTyping}function lG(e){return!!e.draggedBlocks.length}function VCe(e){return e.draggedBlocks}function WV(e,t){return e.draggedBlocks.includes(t)}function FCe(e,t){return lG(e)?va(e,t).some(r=>WV(e,r)):!1}function zCe(){return(0,Mi.default)('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}var jCe=(0,$e.createSelector)(e=>{let t,o,{insertionCue:r,selection:{selectionEnd:n}}=e;if(r!==null)return r;let{clientId:i}=n;return i?(t=ir(e,i)||void 0,o=nG(e,n.clientId)+1):o=an(e).length,{rootClientId:t,index:o}},e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function HCe(e){return e.insertionCue!==null}function UCe(e){return e.template.isValid}function GCe(e){return e.settings.template}function El(e,t){if(!t)return e.settings.templateLock??!1;let o=mE(e,t)?.templateLock;return o==="contentOnly"&&e.editedContentOnlySection===t?!1:o??!1}var $V=(e,t,o=null)=>{let r,n;if(t&&typeof t=="object"?(r=t,n=t.name):(r=(0,et.getBlockType)(t),n=t),!r)return!1;let{allowedBlockTypes:i}=Od(e);if(!Op(i,n,!0))return!1;let a=(Array.isArray(r.parent)?r.parent:[]).concat(Array.isArray(r.ancestor)?r.ancestor:[]);if(a.length>0){if(a.includes("core/post-content"))return!0;let l=o,u=!1;do{if(a.includes(zt(e,l))){u=!0;break}l=e.blocks.parents.get(l)}while(l);return u}return!0},GS=(e,t,o=null)=>{if(e.settings.isPreviewMode||!$V(e,t,o))return!1;let r;t&&typeof t=="object"?(r=t,t=r.name):r=(0,et.getBlockType)(t);let n=El(e,o);if(n&&n!=="contentOnly")return!1;let i=xs(e,o??""),s=!!Ld(e,o),a=s?o:Ad(e,o),l=!!a;if(i==="disabled"&&(!l||t!==(0,et.getDefaultBlockName)()))return!1;let u=mE(e,o);if(o&&u===void 0)return!1;let d=jV(t);if(l&&!d||l&&zt(e,a)==="core/block")return!1;if(l&&(s||i==="contentOnly"||i==="disabled")&&!MS(e,t,o)){let S=(0,et.getDefaultBlockName)();if(t===S){if(!an(e,o).some(E=>zt(e,E)===S))return!1}else return!1}let f=zt(e,o),h=(0,et.getBlockType)(f)?.allowedBlocks,p=Op(h,t);if(p!==!1){let S=u?.allowedBlocks,_=Op(S,t);_!==null&&(p=_)}let g=r.parent,b=Op(g,f),v=!0,y=r.ancestor;y&&(v=[o,...va(e,o)].some(_=>Op(y,zt(e,_))));let k=v&&(p===null&&b===null||p===!0||b===!0);return k&&(0,Z7.applyFilters)("blockEditor.__unstableCanInsertBlockType",k,r,o,{getBlock:Vc.bind(null,e),getBlockParentsByBlockName:HV.bind(null,e)})},Pp=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)(GS,(t,o,r)=>Md(e)(t,r)));function WCe(e,t,o=null){return t.every(r=>Pp(e,zt(e,r),o))}function KV(e,t){if(e.settings.isPreviewMode)return!1;let o=_s(e,t);if(o===null)return!0;if(o.lock?.remove!==void 0)return!o.lock.remove;let r=ir(e,t),n=El(e,r);if(n&&n!=="contentOnly")return!1;let i=!!Ld(e,r),s=i?r:Ad(e,r),a=!!s,l=jV(zt(e,t));if(a&&!l||a&&zt(e,s)==="core/block")return!1;let u=xs(e,r),d=zt(e,t),f=(0,et.getDefaultBlockName)();return a&&(i||d===f||u==="contentOnly")&&!MS(e,zt(e,t),r)?d===f?an(e,r).filter(p=>zt(e,p)===f).length>1:!1:u!=="disabled"}function cG(e,t){return t.every(o=>KV(e,o))}function uG(e,t){if(e.settings.isPreviewMode)return!1;let o=_s(e,t);if(o===null)return!0;if(o.lock?.move!==void 0)return!o.lock.move;let r=ir(e,t);if(El(e,r)==="all")return!1;let i=!!Ad(e,t),s=jV(zt(e,t));if(i&&!s)return!1;let a=!!Ld(e,r),l=xs(e,r);return i&&(a||l==="contentOnly")&&!MS(e,zt(e,t),r)?!1:xs(e,r)!=="disabled"}function $Ce(e,t){return t.every(o=>uG(e,o))}function dG(e,t){if(e.settings.isPreviewMode)return!1;let o=_s(e,t);if(o===null)return!0;let{lock:r}=o;return!r?.edit}function KCe(e,t){return e.settings.isPreviewMode||!(0,et.hasBlockSupport)(t,"lock",!0)?!1:!!e.settings?.canLockBlocks}function YV(e,t){return e.preferences.insertUsage?.[t]??null}var jS=(e,t,o)=>(0,et.hasBlockSupport)(t,"inserter",!0)?GS(e,t.name,o):!1,YCe=(e,t)=>o=>{let r=`${t.id}/${o.name}`,{time:n,count:i=0}=YV(e,r)||{};return{...t,id:r,icon:o.icon||t.icon,title:o.title||t.title,description:o.description||t.description,category:o.category||t.category,example:o.hasOwnProperty("example")?o.example:t.example,initialAttributes:{...t.initialAttributes,...o.attributes},innerBlocks:o.innerBlocks,keywords:o.keywords||t.keywords,frecency:qV(n,i),isSearchOnly:o.isSearchOnly}},qV=(e,t)=>{if(!e)return t;let o=Date.now()-e;switch(!0){case o<tCe:return t*4;case o<oCe:return t*2;case o<rCe:return t/2;default:return t/4}},fG=(e,{buildScope:t="inserter"})=>o=>{let r=o.name,n=!1;(0,et.hasBlockSupport)(o.name,"multiple",!0)||(n=fE(e,eb(e)).some(({name:f})=>f===o.name));let{time:i,count:s=0}=YV(e,r)||{},a={id:r,name:o.name,title:o.title,icon:o.icon,isDisabled:n,frecency:qV(i,s)};if(t==="transform")return a;let l=(0,et.getBlockVariations)(o.name,"inserter"),u=(0,et.getBlockVariations)(o.name,"block"),d=[...l,...u.filter(f=>o.name==="core/heading"&&["h1","h2","h3","h4","h5","h6"].includes(f.name)).map(f=>({...f,isSearchOnly:!0}))];return{...a,initialAttributes:{},description:o.description,category:o.category,keywords:o.keywords,parent:o.parent,ancestor:o.ancestor,variations:d,example:o.example,utility:1}},qCe=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o=null,r=X7)=>{let n=h=>{let p=h.wp_pattern_sync_status?Ss:{src:Ss,foreground:"var(--wp-block-synced-color)"},g=NS(h),{time:b,count:v=0}=YV(t,g.name)||{},y=qV(b,v);return{id:g.name,name:"core/block",initialAttributes:{ref:h.id},title:g.title,icon:p,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:y,content:g.content,get blocks(){return dE(g).blocks},syncStatus:g.syncStatus}},i=GS(t,"core/block",o)?H(e(ko)).getReusableBlocks().map(n):[],s=fG(t,{buildScope:"inserter"}),a=(0,et.getBlockTypes)().filter(h=>(0,et.hasBlockSupport)(h,"inserter",!0)).map(s);if(r[Nd]!==!1)a=a.filter(h=>jS(t,h,o));else{let{getClosestAllowedInsertionPoint:h}=H(e(ko));a=a.filter(p=>$V(t,p,o)&&h(p.name,o)!==null).map(p=>({...p,isAllowedInCurrentRoot:jS(t,p,o)}))}let l=a.reduce((h,p)=>{let{variations:g=[]}=p;if(g.some(({isDefault:b})=>b)||h.push(p),g.length){let b=YCe(t,p);h.push(...g.map(b))}return h},[]),u=(h,p)=>{let{core:g,noncore:b}=h;return(p.name.startsWith("core/")?g:b).push(p),h},{core:d,noncore:f}=l.reduce(u,{core:[],noncore:[]});return[...[...d,...f],...i]},(t,o)=>[(0,et.getBlockTypes)(),H(e(ko)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Md(e)(t,o)])),ZCe=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o,r=null)=>{let n=Array.isArray(o)?o:[o],i=fG(t,{buildScope:"transform"}),s=(0,et.getBlockTypes)().filter(u=>jS(t,u,r)).map(i),a=Object.fromEntries(Object.entries(s).map(([,u])=>[u.name,u])),l=(0,et.getPossibleBlockTransformations)(n).reduce((u,d)=>(a[d?.name]&&u.push(a[d.name]),u),[]);return Tl(l,u=>a[u.name].frecency,"desc")},(t,o,r)=>[(0,et.getBlockTypes)(),t.preferences.insertUsage,...Md(e)(t,r)])),XCe=(e,t=null)=>(0,et.getBlockTypes)().some(n=>jS(e,n,t))?!0:GS(e,"core/block",t),zV=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o=null)=>{if(!o)return;let r=(0,et.getBlockTypes)().filter(i=>jS(t,i,o));return GS(t,"core/block",o)&&r.push("core/block"),r},(t,o)=>[(0,et.getBlockTypes)(),...Md(e)(t,o)])),QCe=(0,$e.createSelector)((e,t=null)=>((0,Mi.default)('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),zV(e,t)),(e,t)=>zV.getDependants(e,t));function mG(e,t=null){if(!t)return;let{defaultBlock:o,directInsert:r}=e.blockListSettings.get(t)??{};if(!(!o||!r))return o}function JCe(e,t=null){return(0,Mi.default)('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),mG(e,t)}var e1e=(0,$e.createRegistrySelector)(e=>(t,o)=>{let r=H(e(ko)).getPatternBySlug(o);return r?dE(r):null}),ZV=e=>(t,o)=>[...VS(e)(t),...Md(e)(t,o)],Y7=new WeakMap;function t1e(e){let t=Y7.get(e);return t||(t={...e,get blocks(){return dE(e).blocks}},Y7.set(e,t)),t}var o1e=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o=null,r=X7)=>{let{getAllPatterns:n}=H(e(ko)),i=n(),{allowedBlockTypes:s}=Od(t);return i.filter(({inserter:d=!0})=>!!d).map(t1e).filter(d=>DS(Bp(d),s)).filter(d=>Bp(d).every(({blockName:f})=>r[Nd]!==!1?Pp(t,f,o):$V(t,f,o)))},ZV(e))),r1e=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o,r=null)=>{if(!o)return $r;let n=e(ko).__experimentalGetAllowedPatterns(r),i=Array.isArray(o)?o:[o],s=n.filter(a=>a?.blockTypes?.some?.(l=>i.includes(l)));return s.length===0?$r:s},(t,o,r)=>ZV(e)(t,r))),n1e=(0,$e.createRegistrySelector)(e=>((0,Mi.default)('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(ko).getPatternsByBlockTypes)),i1e=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o,r=null)=>{if(!o||o.some(({clientId:i,innerBlocks:s})=>s.length||pE(t,i)))return $r;let n=Array.from(new Set(o.map(({name:i})=>i)));return e(ko).getPatternsByBlockTypes(n,r)},(t,o,r)=>ZV(e)(t,r)));function mE(e,t){return e.blockListSettings.get(t)}function Od(e){return e.settings}function s1e(e){return e.blocks.isPersistentChange}var a1e=(0,$e.createSelector)((e,t=[])=>{let o={};for(let r of t){let n=mE(e,r);n&&(o[r]=n)}return o},e=>[e.blockListSettings]),l1e=(0,$e.createRegistrySelector)(e=>(0,$e.createSelector)((t,o)=>{(0,Mi.default)("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});let r=H(e(ko)).getReusableBlocks().find(n=>n.id===o);return r?r.title?.raw:null},()=>[H(e(ko)).getReusableBlocks()]));function c1e(e){return e.blocks.isIgnoredChange}function u1e(e){return e.lastBlockAttributesChange}function d1e(){return(0,Mi.default)('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function f1e(e){return!!e.automaticChangeStatus}function m1e(e,t){return e.highlightedBlock===t}function pE(e,t){return e.blocks.controlledInnerBlocks.has(t)}var p1e=(0,$e.createSelector)((e,t)=>{if(!t.length)return null;let o=ob(e);if(t.includes(zt(e,o)))return o;let r=Dd(e),n=HV(e,o||r[0],t);return n?n[n.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function h1e(e,t,o){let{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===o}function g1e(e,t){return e.blockVisibility?.[t]??!0}function b1e(){(0,Mi.default)("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}var y1e=(0,$e.createSelector)(e=>{let t=new Set(Object.keys(e.blockVisibility).filter(o=>e.blockVisibility[o]));return t.size===0?nCe:t},e=>[e.blockVisibility]);function pG(e,t){if(xs(e,t)!=="default")return!1;if(!dG(e,t))return!0;if(VV(e)){let n=Rp(e);if(n){if(an(e,n)?.includes(t))return!0}else if(t&&!ir(e,t))return!0}return((0,et.hasBlockSupport)(zt(e,t),"__experimentalDisableBlockOverlay",!1)?!1:pE(e,t))&&!iG(e,t)&&!sG(e,t,!0)}function v1e(e,t){let o=e.blocks.parents.get(t);for(;o;){if(pG(e,o))return!0;o=e.blocks.parents.get(o)}return!1}function xs(e,t=""){return t===null&&(t=""),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blocks.blockEditingModes.has(t)?e.blocks.blockEditingModes.get(t):"default"}var k1e=(0,$e.createRegistrySelector)(e=>(t,o="")=>{let r=o||ob(t);if(!r||Ld(t,r))return!1;let{getGroupingBlockName:n}=e(et.store),i=Vc(t,r),s=n();return i&&(i.name===s||(0,et.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&KV(t,r)}),S1e=(0,$e.createRegistrySelector)(e=>(t,o=$r)=>{let{getGroupingBlockName:r}=e(et.store),n=r(),i=o?.length?o:rb(t),s=i?.length?ir(t,i[0]):void 0;return Pp(t,n,s)&&i.length&&cG(t,i)}),_1e=(e,t)=>((0,Mi.default)("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),MV(e,t));function x1e(e){return(0,Mi.default)("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),NV(e)}var hE={};ps(hE,{__experimentalUpdateSettings:()=>QV,clearBlockRemovalPrompt:()=>R1e,clearRequestedInspectorTab:()=>K1e,closeListViewContentPanel:()=>U1e,deleteStyleOverride:()=>O1e,editContentOnlySection:()=>eF,ensureDefaultBlock:()=>kG,expandBlock:()=>N1e,hideBlockInterface:()=>E1e,hideViewportModal:()=>W1e,openListViewContentPanel:()=>H1e,privateRemoveBlocks:()=>JV,requestInspectorTab:()=>$1e,resetZoomLevel:()=>z1e,setBlockRemovalRules:()=>P1e,setInsertionPoint:()=>D1e,setLastFocus:()=>A1e,setSelectedBlockStyleState:()=>Y1e,setSelectedBlockStyleStateCanvasPreview:()=>q1e,setStyleOverride:()=>I1e,setZoomLevel:()=>F1e,showBlockInterface:()=>T1e,showViewportModal:()=>G1e,startDragging:()=>L1e,stopDragging:()=>M1e,stopEditingContentOnlySection:()=>V1e,toggleBlockSpotlight:()=>j1e});var gG=c(A(),1),bG=c(Je(),1),yG=c(Cr(),1),vG=c(F(),1),w1e=e=>Array.isArray(e)?e:[e],C1e=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function QV(e,{stripExperimentalSettings:t=!1,reset:o=!1}={}){let r=e;Object.hasOwn(r,"__unstableIsPreviewMode")&&((0,bG.default)("__unstableIsPreviewMode argument in wp.data.dispatch('core/block-editor').updateSettings",{since:"6.8",alternative:"isPreviewMode"}),r={...r},r.isPreviewMode=r.__unstableIsPreviewMode,delete r.__unstableIsPreviewMode);let n=r;if(t&&gG.Platform.OS==="web"){n={};for(let i in r)C1e.includes(i)||(n[i]=r[i])}return{type:"UPDATE_SETTINGS",settings:n,reset:o}}function E1e(){return{type:"HIDE_BLOCK_INTERFACE"}}function T1e(){return{type:"SHOW_BLOCK_INTERFACE"}}var JV=(e,t=!0,o=!1)=>({select:r,dispatch:n,registry:i})=>{if(!e||!e.length||(e=w1e(e),!r.canRemoveBlocks(e)))return;let a=!o&&r.getBlockRemovalRules();if(a){let u=function(h){let p=[],g=[...h];for(;g.length;){let{innerBlocks:b,...v}=g.shift();g.push(...b),p.push(v)}return p};var l=u;let d=e.map(r.getBlock),f=u(d),m;for(let h of a)if(m=h.callback(f),m){n(B1e(e,t,m));return}}t&&n.selectPreviousBlock(e[0],t),i.batch(()=>{n({type:"REMOVE_BLOCKS",clientIds:e}),n(kG())})},kG=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;let{__unstableHasCustomAppender:r}=e.getSettings();r||t.insertDefaultBlock()};function B1e(e,t,o){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:o}}function R1e(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function P1e(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function I1e(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function O1e(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function A1e(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function L1e(){return{type:"START_DRAGGING"}}function M1e(){return{type:"STOP_DRAGGING"}}function N1e(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function D1e(e){return{type:"SET_INSERTION_POINT",value:e}}function eF(e){return{type:"EDIT_CONTENT_ONLY_SECTION",clientId:e}}function V1e(){return{type:"EDIT_CONTENT_ONLY_SECTION"}}var F1e=(e=100)=>({select:t,dispatch:o})=>{if(e!==100){let r=t.getBlockSelectionStart(),n=t.getSectionRootClientId();if(r){let i;if(n){let s=t.getBlockOrder(n);s?.includes(r)?i=r:i=t.getBlockParents(r).find(a=>s.includes(a))}else i=t.getBlockHierarchyRootClientId(r);i?o.selectBlock(i):o.clearSelectedBlock(),(0,yG.speak)((0,vG.__)("You are currently in zoom-out mode."))}}o({type:"SET_ZOOM_LEVEL",zoom:e})};function z1e(){return{type:"RESET_ZOOM_LEVEL"}}function j1e(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}function H1e(){return{type:"OPEN_LIST_VIEW_CONTENT_PANEL"}}function U1e(){return{type:"CLOSE_LIST_VIEW_CONTENT_PANEL"}}function G1e(e){return{type:"SHOW_VIEWPORT_MODAL",clientIds:e}}function W1e(){return{type:"HIDE_VIEWPORT_MODAL"}}function $1e(e,t={}){return{type:"REQUEST_INSPECTOR_TAB",tabName:e,options:t}}function K1e(){return{type:"CLEAR_REQUESTED_INSPECTOR_TAB"}}function Y1e(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE",clientId:e,value:t}}function q1e(e,t){return{type:"SET_SELECTED_BLOCK_STYLE_STATE_CANVAS_PREVIEW",clientId:e,value:t}}var rF={};ps(rF,{__unstableDeleteSelection:()=>vEe,__unstableExpandSelection:()=>SEe,__unstableIncrementListViewExpandRevision:()=>tTe,__unstableMarkAutomaticChange:()=>FEe,__unstableMarkLastChangeAsPersistent:()=>DEe,__unstableMarkNextChangeAsNotPersistent:()=>VEe,__unstableSaveReusableBlock:()=>NEe,__unstableSetAllListViewPanelsOpen:()=>JEe,__unstableSetEditorMode:()=>zEe,__unstableSetOpenListViewPanel:()=>QEe,__unstableSetTemporarilyEditingAsBlocks:()=>YEe,__unstableSplitSelection:()=>kEe,__unstableToggleListViewPanel:()=>eTe,clearSelectedBlock:()=>lEe,duplicateBlocks:()=>HEe,enterFormattedText:()=>PEe,exitFormattedText:()=>IEe,flashBlock:()=>WEe,hideInsertionPoint:()=>gEe,hoverBlock:()=>oEe,insertAfterBlock:()=>GEe,insertBeforeBlock:()=>UEe,insertBlock:()=>pEe,insertBlocks:()=>PG,insertDefaultBlock:()=>AEe,mergeBlocks:()=>_Ee,moveBlockToPosition:()=>mEe,moveBlocksDown:()=>dEe,moveBlocksToPosition:()=>RG,moveBlocksUp:()=>fEe,multiSelect:()=>aEe,receiveBlocks:()=>Q1e,registerInserterMediaCategory:()=>qEe,removeBlock:()=>xEe,removeBlocks:()=>IG,replaceBlock:()=>uEe,replaceBlocks:()=>TG,replaceInnerBlocks:()=>wEe,resetBlocks:()=>Z1e,resetSelection:()=>X1e,selectBlock:()=>tEe,selectNextBlock:()=>nEe,selectPreviousBlock:()=>rEe,selectionChange:()=>OEe,setBlockEditingMode:()=>ZEe,setBlockMovingClientId:()=>jEe,setBlockVisibility:()=>KEe,setHasControlledInnerBlocks:()=>$Ee,setTemplateValidity:()=>bEe,showInsertionPoint:()=>hEe,startDraggingBlocks:()=>BEe,startMultiSelect:()=>iEe,startTyping:()=>EEe,stopDraggingBlocks:()=>REe,stopMultiSelect:()=>sEe,stopTyping:()=>TEe,synchronizeTemplate:()=>yEe,toggleBlockHighlight:()=>oF,toggleBlockMode:()=>CEe,toggleSelection:()=>cEe,unsetBlockEditingMode:()=>XEe,updateBlock:()=>eEe,updateBlockAttributes:()=>J1e,updateBlockListSettings:()=>LEe,updateSettings:()=>MEe,validateBlocksToTemplate:()=>EG});var Pe=c(Q(),1),gE=c(Cr(),1),Vd=c(F(),1),wG=c(Ni(),1),jt=c(Wr(),1),zc=c(Je(),1),CG=c(nb(),1);var xG=c(Wr(),1),Fc="\x86";function WS(e){if(e)return Object.keys(e).find(t=>{let o=e[t];return(typeof o=="string"||o instanceof xG.RichTextData)&&o.toString().indexOf(Fc)!==-1})}function tF(e){for(let[t,o]of Object.entries(e.attributes))if(o.source==="rich-text"||o.source==="html")return t}var ib=e=>Array.isArray(e)?e:[e],Z1e=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(EG(e))},EG=e=>({select:t,dispatch:o})=>{let r=t.getTemplate(),n=t.getTemplateLock(),i=!r||n!=="all"||(0,Pe.doBlocksMatchTemplate)(e,r),s=t.isValidTemplate();if(i!==s)return o.setTemplateValidity(i),i};function X1e(e,t,o){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:o}}function Q1e(e){return(0,zc.default)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function J1e(e,t,o={uniqueByBlock:!1}){return typeof o=="boolean"&&(o={uniqueByBlock:o}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:ib(e),attributes:t,options:o}}function eEe(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function tEe(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function oEe(){return(0,zc.default)('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}var rEe=(e,t=!1)=>({select:o,dispatch:r})=>{let n=o.getPreviousBlockClientId(e);if(n)r.selectBlock(n,-1);else if(t){let i=o.getBlockRootClientId(e);if(i)r.selectBlock(i,-1);else{let s=o.getNextBlockClientId(e);s&&r.selectBlock(s,0)}}},nEe=e=>({select:t,dispatch:o})=>{let r=t.getNextBlockClientId(e);r&&o.selectBlock(r)};function iEe(){return{type:"START_MULTI_SELECT"}}function sEe(){return{type:"STOP_MULTI_SELECT"}}var aEe=(e,t,o=0)=>({select:r,dispatch:n})=>{let i=r.getBlockRootClientId(e),s=r.getBlockRootClientId(t);if(i!==s)return;n({type:"MULTI_SELECT",start:e,end:t,initialPosition:o});let a=r.getSelectedBlockCount();(0,gE.speak)((0,Vd.sprintf)((0,Vd._n)("%s block selected.","%s blocks selected.",a),a),"assertive")};function lEe(){return{type:"CLEAR_SELECTED_BLOCK"}}function cEe(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}var TG=(e,t,o,r=0,n)=>({select:i,dispatch:s,registry:a})=>{e=ib(e),t=ib(t);let l=i.getBlockRootClientId(e[0]);for(let u=0;u<t.length;u++){let d=t[u];if(!i.canInsertBlockType(d.name,l))return}a.batch(()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:o,initialPosition:r,meta:n}),s.ensureDefaultBlock()})};function uEe(e,t){return TG(e,t)}var BG=e=>(t,o)=>({select:r,dispatch:n})=>{r.canMoveBlocks(t)&&n({type:e,clientIds:ib(t),rootClientId:o})},dEe=BG("MOVE_BLOCKS_DOWN"),fEe=BG("MOVE_BLOCKS_UP"),RG=(e,t="",o="",r)=>({select:n,dispatch:i})=>{n.canMoveBlocks(e)&&(t!==o&&(!n.canRemoveBlocks(e)||!n.canInsertBlocks(e,o))||i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:o,clientIds:e,index:r}))};function mEe(e,t="",o="",r){return RG([e],t,o,r)}function pEe(e,t,o,r,n,i){return PG([e],t,o,r,n,i)}var PG=(e,t,o,r=!0,n=0,i)=>({select:s,dispatch:a})=>{n!==null&&typeof n=="object"&&(i=n,n=0,(0,zc.default)("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=ib(e);let l=[];for(let u of e)s.canInsertBlockType(u.name,o)&&l.push(u);l.length&&a({type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:o,time:Date.now(),updateSelection:r,initialPosition:r?n:null,meta:i})};function hEe(e,t,o={}){let{__unstableWithInserter:r,operation:n,nearestSide:i}=o;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:n,nearestSide:i}}var gEe=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function bEe(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}var yEe=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});let o=e.getBlocks(),r=e.getTemplate(),n=(0,Pe.synchronizeBlocksWithTemplate)(o,r);t.resetBlocks(n)},vEe=e=>({registry:t,select:o,dispatch:r})=>{let n=o.getSelectionStart(),i=o.getSelectionEnd();if(n.clientId===i.clientId)return;if(!n.attributeKey||!i.attributeKey||typeof n.offset>"u"||typeof i.offset>"u")return!1;let s=o.getBlockRootClientId(n.clientId),a=o.getBlockRootClientId(i.clientId);if(s!==a)return;let l=o.getBlockOrder(s),u=l.indexOf(n.clientId),d=l.indexOf(i.clientId),f,m;u>d?(f=i,m=n):(f=n,m=i);let h=e?m:f,p=o.getBlock(h.clientId),g=(0,Pe.getBlockType)(p.name);if(!g.merge)return;let b=f,v=m,y=o.getBlock(b.clientId),k=o.getBlock(v.clientId),S=y.attributes[b.attributeKey],_=k.attributes[v.attributeKey],x=(0,jt.create)({html:S}),E=(0,jt.create)({html:_});x=(0,jt.remove)(x,b.offset,x.text.length),E=(0,jt.insert)(E,Fc,0,v.offset);let T=(0,Pe.cloneBlock)(y,{[b.attributeKey]:(0,jt.toHTMLString)({value:x})}),R=(0,Pe.cloneBlock)(k,{[v.attributeKey]:(0,jt.toHTMLString)({value:E})}),B=e?T:R,O=y.name===k.name?[B]:(0,Pe.switchToBlockType)(B,g.name);if(!O||!O.length)return;let I;if(e){let K=O.pop();I=g.merge(K.attributes,R.attributes)}else{let K=O.shift();I=g.merge(T.attributes,K.attributes)}let P=WS(I),M=I[P],L=(0,jt.create)({html:M}),j=L.text.indexOf(Fc),V=(0,jt.remove)(L,j,j+1),D=(0,jt.toHTMLString)({value:V});I[P]=D;let z=o.getSelectedBlockClientIds(),W=[...e?O:[],{...p,attributes:{...p.attributes,...I}},...e?[]:O];t.batch(()=>{r.selectionChange(p.clientId,P,j,j),r.replaceBlocks(z,W,0,o.getSelectedBlocksInitialCaretPosition())})},kEe=(e=[])=>({registry:t,select:o,dispatch:r})=>{let n=o.getSelectionStart(),i=o.getSelectionEnd(),s=o.getBlockRootClientId(n.clientId),a=o.getBlockRootClientId(i.clientId);if(s!==a)return;let l=o.getBlockOrder(s),u=l.indexOf(n.clientId),d=l.indexOf(i.clientId),f,m;u>d?(f=i,m=n):(f=n,m=i);let h=f,p=m,g=o.getBlock(h.clientId),b=o.getBlock(p.clientId),v=(0,Pe.getBlockType)(g.name),y=(0,Pe.getBlockType)(b.name),k=typeof h.attributeKey=="string"?h.attributeKey:tF(v),S=typeof p.attributeKey=="string"?p.attributeKey:tF(y),_=o.getBlockAttributes(h.clientId);if(_?.metadata?.bindings?.[k]){if(e.length){let{createWarningNotice:X}=t.dispatch(wG.store);X((0,Vd.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}r.insertAfterBlock(h.clientId);return}if(!k||!S||typeof n.offset>"u"||typeof i.offset>"u")return;if(h.clientId===p.clientId&&k===S&&h.offset===p.offset){if(e.length){if((0,Pe.isUnmodifiedDefaultBlock)(g,"content")){r.replaceBlocks([h.clientId],e,e.length-1,-1);return}}else if(!o.getBlockOrder(h.clientId).length){let X=function(){let Y=(0,Pe.getDefaultBlockName)();return o.canInsertBlockType(Y,s)?(0,Pe.createBlock)(Y):(0,Pe.createBlock)(o.getBlockName(h.clientId))};var E=X;let ee=_[k].length;if(h.offset===0&&ee){r.insertBlocks([X()],o.getBlockIndex(h.clientId),s,!1);return}if(h.offset===ee){r.insertBlocks([X()],o.getBlockIndex(h.clientId)+1,s);return}}}let T=g.attributes[k],R=b.attributes[S],B=(0,jt.create)({html:T}),O=(0,jt.create)({html:R});B=(0,jt.remove)(B,h.offset,B.text.length),O=(0,jt.remove)(O,0,p.offset);let I={...g,innerBlocks:g.clientId===b.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[k]:(0,jt.toHTMLString)({value:B})}},P={...b,clientId:g.clientId===b.clientId?(0,Pe.createBlock)(b.name).clientId:b.clientId,attributes:{...b.attributes,[S]:(0,jt.toHTMLString)({value:O})}},M=(0,Pe.getDefaultBlockName)();if(g.clientId===b.clientId&&M&&P.name!==M&&o.canInsertBlockType(M,s)){let X=(0,Pe.switchToBlockType)(P,M);X?.length===1&&(P=X[0])}if(!e.length){r.replaceBlocks(o.getSelectedBlockClientIds(),[I,P]);return}let L,j=[],V=[...e],D=V.shift(),z=(0,Pe.getBlockType)(I.name),W=z.merge&&D.name===z.name?[D]:(0,Pe.switchToBlockType)(D,z.name);if(W?.length){let X=W.shift();I={...I,attributes:{...I.attributes,...z.merge(I.attributes,X.attributes)}},j.push(I),L={clientId:I.clientId,attributeKey:k,offset:(0,jt.create)({html:I.attributes[k]}).text.length},V.unshift(...W)}else(0,Pe.isUnmodifiedBlock)(I)||j.push(I),j.push(D);let K=V.pop(),ne=(0,Pe.getBlockType)(P.name);if(V.length&&j.push(...V),K){let X=ne.merge&&ne.name===K.name?[K]:(0,Pe.switchToBlockType)(K,ne.name);if(X?.length){let ee=X.pop();j.push({...P,attributes:{...P.attributes,...ne.merge(ee.attributes,P.attributes)}}),j.push(...X),L={clientId:P.clientId,attributeKey:S,offset:(0,jt.create)({html:ee.attributes[S]}).text.length}}else j.push(K),(0,Pe.isUnmodifiedBlock)(P)||j.push(P)}else(0,Pe.isUnmodifiedBlock)(P)||j.push(P);t.batch(()=>{r.replaceBlocks(o.getSelectedBlockClientIds(),j,j.length-1,0),L&&r.selectionChange(L.clientId,L.attributeKey,L.offset,L.offset)})},SEe=()=>({select:e,dispatch:t})=>{let o=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:o.clientId},end:{clientId:r.clientId}})},_Ee=(e,t)=>({registry:o,select:r,dispatch:n})=>{let i=e,s=t,a=r.getBlock(i),l=(0,Pe.getBlockType)(a.name);if(!l||r.getBlockEditingMode(i)==="disabled"||r.getBlockEditingMode(s)==="disabled")return;let u=r.getBlock(s);if(!l.merge&&(0,Pe.getBlockSupport)(a.name,"__experimentalOnMerge")){let _=(0,Pe.switchToBlockType)(u,l.name);if(_?.length!==1){n.selectBlock(a.clientId);return}let[x]=_;if(x.innerBlocks.length<1){n.selectBlock(a.clientId);return}o.batch(()=>{n.insertBlocks(x.innerBlocks,void 0,i),n.removeBlock(s),n.selectBlock(x.innerBlocks[0].clientId);let E=r.getNextBlockClientId(i);if(E&&r.getBlockName(i)===r.getBlockName(E)){let T=r.getBlockAttributes(i),R=r.getBlockAttributes(E);Object.keys(T).every(B=>T[B]===R[B])&&(n.moveBlocksToPosition(r.getBlockOrder(E),E,i),n.removeBlock(E,!1))}});return}if((0,Pe.isUnmodifiedDefaultBlock)(a)){n.removeBlock(i,r.isBlockSelected(i));return}if((0,Pe.isUnmodifiedDefaultBlock)(u)){n.removeBlock(s,r.isBlockSelected(s));return}if(!l.merge){(0,Pe.isUnmodifiedBlock)(u,"content")?n.removeBlock(s,r.isBlockSelected(s)):n.selectBlock(a.clientId);return}let d=(0,Pe.getBlockType)(u.name),{clientId:f,attributeKey:m,offset:h}=r.getSelectionStart(),g=(f===i?l:d).attributes[m],b=(f===i||f===s)&&m!==void 0&&h!==void 0&&!!g;g||(typeof m=="number"?window.console.error(`RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ${typeof m}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));let v=(0,Pe.cloneBlock)(a),y=(0,Pe.cloneBlock)(u);if(b){let _=f===i?v:y,x=_.attributes[m],E=(0,jt.insert)((0,jt.create)({html:x}),Fc,h,h);_.attributes[m]=(0,jt.toHTMLString)({value:E})}let k=a.name===u.name?[y]:(0,Pe.switchToBlockType)(y,a.name);if(!k||!k.length)return;let S=l.merge(v.attributes,k[0].attributes);if(b){let _=WS(S),x=S[_],E=(0,jt.create)({html:x}),T=E.text.indexOf(Fc),R=(0,jt.remove)(E,T,T+1),B=(0,jt.toHTMLString)({value:R});S[_]=B,n.selectionChange(a.clientId,_,T,T)}n.replaceBlocks([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...S}},...k.slice(1)],0)},IG=(e,t=!0)=>JV(e,t);function xEe(e,t){return IG([e],t)}function wEe(e,t,o=!1,r=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:o,initialPosition:o?r:null,time:Date.now()}}function CEe(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function EEe(){return{type:"START_TYPING"}}function TEe(){return{type:"STOP_TYPING"}}function BEe(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function REe(){return{type:"STOP_DRAGGING_BLOCKS"}}function PEe(){return(0,zc.default)('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function IEe(){return(0,zc.default)('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function OEe(e,t,o,r){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:o,endOffset:r}:{type:"SELECTION_CHANGE",...e}}var AEe=(e,t,o)=>({dispatch:r})=>{let n=(0,Pe.getDefaultBlockName)();if(!n)return;let i=(0,Pe.createBlock)(n,e);return r.insertBlock(i,o,t)};function LEe(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function MEe(e){return QV(e,{stripExperimentalSettings:!0})}function NEe(){return(0,zc.default)('wp.data.dispatch( "core/block-editor" ).__unstableSaveReusableBlock',{since:"7.1"}),{type:"DO_NOTHING"}}function DEe(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function VEe(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}var FEe=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});let{requestIdleCallback:t=o=>setTimeout(o,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},zEe=e=>({registry:t})=>{t.dispatch(CG.store).set("core","editorTool",e),e==="navigation"?(0,gE.speak)((0,Vd.__)("You are currently in Write mode.")):e==="edit"&&(0,gE.speak)((0,Vd.__)("You are currently in Design mode."))};function jEe(){return(0,zc.default)('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}var HEe=(e,t=!0)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;let n=o.getBlocksByClientId(e);if(n.some(d=>!d)||n.map(d=>d.name).some(d=>!(0,Pe.hasBlockSupport)(d,"multiple",!0)))return;let s=o.getBlockRootClientId(e[0]),a=ib(e),l=o.getBlockIndex(a[a.length-1]),u=n.map(d=>(0,Pe.__experimentalCloneSanitizedBlock)(d));return r.insertBlocks(u,l+1,s,t),u.length>1&&t&&r.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map(d=>d.clientId)},UEe=e=>({select:t,dispatch:o})=>{if(!e)return;let r=t.getBlockRootClientId(e),n=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return o.insertDefaultBlock({},r,n);let s={};if(i.attributesToCopy){let l=t.getBlockAttributes(e);i.attributesToCopy.forEach(u=>{l[u]&&(s[u]=l[u])})}let a=(0,Pe.createBlock)(i.name,{...i.attributes,...s});return o.insertBlock(a,n,r)},GEe=e=>({select:t,dispatch:o})=>{if(!e)return;let r=t.getBlockRootClientId(e),n=t.getBlockIndex(e),{defaultBlock:i}=r?t.getBlockListSettings(r)??{}:{};if(!i)return o.insertDefaultBlock({},r,n+1);let s={};if(i.attributesToCopy){let l=t.getBlockAttributes(e);i.attributesToCopy.forEach(u=>{l[u]&&(s[u]=l[u])})}let a=(0,Pe.createBlock)(i.name,{...i.attributes,...s});return o.insertBlock(a,n+1,r)};function oF(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}var WEe=(e,t=150)=>async({dispatch:o})=>{o(oF(e,!0)),await new Promise(r=>setTimeout(r,t)),o(oF(e,!1))};function $Ee(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function KEe(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function YEe(e){return(0,zc.default)("wp.data.dispatch( 'core/block-editor' ).__unstableSetTemporarilyEditingAsBlocks",{since:"7.0"}),eF(e)}var qEe=e=>({select:t,dispatch:o})=>{if(!e||typeof e!="object"){console.error("Category should be an `InserterMediaCategory` object.");return}if(!e.name){console.error("Category should have a `name` that should be unique among all media categories.");return}if(!e.labels?.name){console.error("Category should have a `labels.name`.");return}if(!["image","audio","video"].includes(e.mediaType)){console.error("Category should have `mediaType` property that is one of `image|audio|video`.");return}if(!e.fetch||typeof e.fetch!="function"){console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]>`.");return}let r=t.getRegisteredInserterMediaCategories();if(r.some(({name:n})=>n===e.name)){console.error(`A category is already registered with the same name: "${e.name}".`);return}if(r.some(({labels:{name:n}={}})=>n===e.labels?.name)){console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`);return}o({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function ZEe(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function XEe(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}function QEe(e){return{type:"SET_OPEN_LIST_VIEW_PANEL",clientId:e}}function JEe(){return{type:"SET_ALL_LIST_VIEW_PANELS_OPEN"}}function eTe(e,t){return{type:"TOGGLE_LIST_VIEW_PANEL",clientId:e,isOpen:t}}function tTe(){return{type:"INCREMENT_LIST_VIEW_EXPAND_REVISION"}}var sb={reducer:B7,selectors:XV,actions:rF},w=(0,bE.createReduxStore)(ko,{...sb,persist:["preferences"]}),OG=(0,bE.registerStore)(ko,{...sb,persist:["preferences"]});H(OG).registerPrivateActions(hE);H(OG).registerPrivateSelectors(cE);H(w).registerPrivateActions(hE);H(w).registerPrivateSelectors(cE);var ab=c(N(),1),AG=c(F(),1);var ka=c(C(),1);function oTe({className:e,actions:t,children:o,secondaryActions:r}){return(0,ka.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,ka.jsx)("div",{className:U(e,"block-editor-warning"),children:(0,ka.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,ka.jsx)("p",{className:"block-editor-warning__message",children:o}),(t?.length>0||r)&&(0,ka.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map((n,i)=>(0,ka.jsx)("span",{className:"block-editor-warning__action",children:n},i)),r&&(0,ka.jsx)(ab.DropdownMenu,{className:"block-editor-warning__secondary",icon:Li,label:(0,AG.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,ka.jsx)(ab.MenuGroup,{children:r.map((n,i)=>(0,ka.jsx)(ab.MenuItem,{onClick:n.onClick,children:n.title},i))})})]})]})})})}var Fd=oTe;var lb=c(C(),1);function NG({originalBlockClientId:e,name:t,onReplace:o}){let{selectBlock:r}=(0,MG.useDispatch)(w),n=(0,LG.getBlockType)(t);return(0,lb.jsxs)(Fd,{actions:[(0,lb.jsx)(nF.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>r(e),children:(0,yE.__)("Find original")},"find-original"),(0,lb.jsx)(nF.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o([]),children:(0,yE.__)("Remove")},"remove")],children:[(0,lb.jsxs)("strong",{children:[n?.title,": "]}),(0,yE.__)("This block can only be used once.")]})}var $S=c(C(),1);function SE({mayDisplayControls:e,mayDisplayParentControls:t,mayDisplayPatternEditingControls:o,blockEditingMode:r,isPreviewMode:n,...i}){let{name:s,isSelected:a,clientId:l,attributes:u={},__unstableLayoutClassNames:d}=i,{layout:f=null,metadata:m={}}=u,{bindings:h}=m,p=(0,vE.hasBlockSupport)(s,"layout",!1)||(0,vE.hasBlockSupport)(s,"__experimentalLayout",!1),b=!!Xe()[Jk]||(0,vE.hasBlockSupport)(s,"listView")||s==="core/navigation",{originalBlockClientId:v}=(0,kE.useContext)(Hr);return(0,$S.jsxs)($w,{value:(0,kE.useMemo)(()=>({name:s,isSelected:a,clientId:l,layout:p?f:null,__unstableLayoutClassNames:d,[ga]:e,[Vg]:t,[bd]:o&&r!=="disabled",[Gw]:r,[Fg]:h,[Ww]:n,[Jk]:b}),[s,a,l,p,f,d,e,t,o,r,h,n,b]),children:[(0,$S.jsx)(h7,{...i}),v&&(0,$S.jsx)(NG,{originalBlockClientId:v,name:s,onReplace:i.onReplace})]})}function xe(...e){let{clientId:t=null}=Xe();return(0,DG.useSelect)(o=>H(o(w)).getBlockSettings(t,...e),[t,...e])}function FG(e){(0,VG.default)("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});let[t]=xe(e);return t}var xE=c(C(),1),{kebabCase:rTe}=H(jG.privateApis),zG=([e,...t])=>e.toUpperCase()+t.join(""),nTe=e=>(0,Ap.createHigherOrderComponent)(t=>function(r){return(0,xE.jsx)(t,{...r,colors:e})},"withCustomColorPalette"),iTe=()=>(0,Ap.createHigherOrderComponent)(e=>function(o){let[r,n,i]=xe("color.palette.custom","color.palette.theme","color.palette.default"),s=(0,_E.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]);return(0,xE.jsx)(e,{...o,colors:s})},"withEditorColorPalette");function HG(e,t){let o=e.reduce((r,n)=>({...r,...typeof n=="string"?{[n]:rTe(n)}:n}),{});return(0,Ap.compose)([t,r=>class extends _E.Component{constructor(i){super(i),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(i){let{colors:s}=this.props;return i7(s,i)}createSetters(){return Object.keys(o).reduce((i,s)=>{let a=zG(s),l=`custom${a}`;return i[`set${a}`]=this.createSetColor(s,l),i},{})}createSetColor(i,s){return a=>{let l=qw(this.props.colors,a);this.props.setAttributes({[i]:l&&l.slug?l.slug:void 0,[s]:l&&l.slug?void 0:a})}}static getDerivedStateFromProps({attributes:i,colors:s},a){return Object.entries(o).reduce((l,[u,d])=>{let f=Cl(s,i[u],i[`custom${zG(u)}`]),m=a[u];return m?.color===f.color&&m?l[u]=m:l[u]={...f,class:gs(d,f.slug)},l},{})}render(){return(0,xE.jsx)(r,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function UG(e){return(...t)=>{let o=nTe(e);return(0,Ap.createHigherOrderComponent)(HG(t,o),"withCustomColors")}}function GG(...e){let t=iTe();return(0,Ap.createHigherOrderComponent)(HG(e,t),"withColors")}var wE=c(A(),1),CE=c(G(),1);function cb(e){if(e)return`has-${e}-gradient-background`}function EE(e,t){let o=e?.find(r=>r.slug===t);return o&&o.gradient}function WG(e,t){return e?.find(r=>r.gradient===t)}function $G(e,t){let o=WG(e,t);return o&&o.slug}function sTe({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){let{clientId:o}=Xe(),[r,n,i]=xe("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,wE.useMemo)(()=>[...r||[],...n||[],...i||[]],[r,n,i]),{gradient:a,customGradient:l}=(0,CE.useSelect)(h=>{let{getBlockAttributes:p}=h(w),g=p(o)||{};return{customGradient:g[t],gradient:g[e]}},[o,e,t]),{updateBlockAttributes:u}=(0,CE.useDispatch)(w),d=(0,wE.useCallback)(h=>{let p=$G(s,h);if(p){u(o,{[e]:p,[t]:void 0});return}u(o,{[e]:void 0,[t]:h})},[s,o,u]),f=cb(a),m;return a?m=EE(s,a):m=l,{gradientClass:f,gradientValue:m,setGradient:d}}var KG=c(N(),1);var{kebabCase:aTe}=H(KG.privateApis),ub=(e,t,o)=>{if(t){let r=e?.find(({slug:n})=>n===t);if(r)return r}return{size:o}};function iF(e,t){let o=e?.find(({size:r})=>r===t);return o||{size:t}}function zd(e){if(e)return`has-${aTe(e)}-font-size`}var lTe="1600px",cTe="320px",uTe=1,dTe=.25,fTe=.75,mTe="14px";function YG({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=cTe,maximumViewportWidth:n=lTe,scaleFactor:i=uTe,minimumFontSizeLimit:s}){if(s=jd(s)?s:mTe,o){let k=jd(o);if(!k?.unit)return null;let S=jd(s,{coerceTo:k.unit});if(S?.value&&!e&&!t&&k?.value<=S?.value)return null;if(t||(t=`${k.value}${k.unit}`),!e){let _=k.unit==="px"?k.value:k.value*16,x=Math.min(Math.max(1-.075*Math.log2(_),dTe),fTe),E=KS(k.value*x,3);S?.value&&E<S?.value?e=`${S.value}${S.unit}`:e=`${E}${k.unit}`}}let a=jd(e),l=a?.unit||"rem",u=jd(t,{coerceTo:l});if(!a||!u)return null;let d=jd(e,{coerceTo:"rem"}),f=jd(n,{coerceTo:l}),m=jd(r,{coerceTo:l});if(!f||!m||!d)return null;let h=f.value-m.value;if(!h)return null;let p=KS(m.value/100,3),g=KS(p,3)+l,b=100*((u.value-a.value)/h),v=KS((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${g}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function jd(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:o,rootSizeValue:r,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=n?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),a=e.match(s);if(!a||a.length<3)return null;let[,l,u]=a,d=parseFloat(l);return o==="px"&&(u==="em"||u==="rem")&&(d=d*r,u=o),u==="px"&&(o==="em"||o==="rem")&&(d=d/r,u=o),(o==="em"||o==="rem")&&(u==="em"||u==="rem")&&(u=o),{value:KS(d,3),unit:u}}function KS(e,t=3){let o=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*o)/o):void 0}var qG=c(N(),1);var ZG=c(C(),1);function pTe(e){let[t,o]=xe("typography.fontSizes","typography.customFontSize");return(0,ZG.jsx)(qG.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!o,__next40pxDefaultSize:!0})}var sF=pTe;var YS=c(oe(),1),QG=c(A(),1);var aF=c(C(),1),hTe=[],XG=([e,...t])=>e.toUpperCase()+t.join(""),JG=(...e)=>{let t=e.reduce((o,r)=>(o[r]=`custom${XG(r)}`,o),{});return(0,YS.createHigherOrderComponent)((0,YS.compose)([(0,YS.createHigherOrderComponent)(o=>function(n){let[i]=xe("typography.fontSizes");return(0,aF.jsx)(o,{...n,fontSizes:i||hTe})},"withFontSizes"),o=>class extends QG.Component{constructor(n){super(n),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce((n,[i,s])=>{let a=XG(i);return n[`set${a}`]=this.createSetFontSize(i,s),n},{})}createSetFontSize(n,i){return s=>{let a=this.props.fontSizes?.find(({size:l})=>l===Number(s));this.props.setAttributes({[n]:a&&a.slug?a.slug:void 0,[i]:a&&a.slug?void 0:s})}}static getDerivedStateFromProps({attributes:n,fontSizes:i},s){let a=(u,d)=>s[d]?n[d]?n[d]!==s[d].slug:s[d].size!==n[u]:!0;if(!Object.values(t).some(a))return null;let l=Object.entries(t).filter(([u,d])=>a(d,u)).reduce((u,[d,f])=>{let m=n[d],h=ub(i,m,n[f]);return u[d]={...h,class:zd(m)},u},{});return{...s,...l}}render(){return(0,aF.jsx)(o,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var Hd=c(F(),1),TE=c(N(),1);var eW=c(C(),1),gTe=[{icon:Cd,title:(0,Hd.__)("Align text left"),align:"left"},{icon:mp,title:(0,Hd.__)("Align text center"),align:"center"},{icon:Ed,title:(0,Hd.__)("Align text right"),align:"right"}],bTe={placement:"bottom-start"};function yTe({value:e,onChange:t,alignmentControls:o=gTe,label:r=(0,Hd.__)("Align text"),description:n=(0,Hd.__)("Change text alignment"),isCollapsed:i=!0,isToolbar:s}){function a(m){return()=>t(e===m?void 0:m)}let l=o.find(m=>m.align===e);function u(){return l?l.icon:(0,Hd.isRTL)()?Ed:Cd}let d=s?TE.ToolbarGroup:TE.ToolbarDropdownMenu,f=s?{isCollapsed:i}:{toggleProps:{description:n},popoverProps:bTe};return(0,eW.jsx)(d,{icon:u(),label:r,controls:o.map(m=>{let{align:h}=m;return{...m,isActive:e===h,role:i?"menuitemradio":void 0,onClick:a(h)}}),...f})}var lF=yTe;var cF=c(C(),1),BE=e=>(0,cF.jsx)(lF,{...e,isToolbar:!1}),tW=e=>(0,cF.jsx)(lF,{...e,isToolbar:!0});var ME=c(Ft(),1),NE=c(N(),1),gW=c(A(),1),DE=c(Q(),1);var pW=c(G(),1),Gd=c(Q(),1),pF=c(A(),1);var uW=c(iW(),1);var uF=function(e,t){return uF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])},uF(e,t)};function sW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uF(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var hr=function(){return hr=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},hr.apply(this,arguments)};function aW(e){return e.toLowerCase()}var xTe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],wTe=/[^A-Z0-9]+/gi;function cW(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?xTe:o,n=t.stripRegexp,i=n===void 0?wTe:n,s=t.transform,a=s===void 0?aW:s,l=t.delimiter,u=l===void 0?" ":l,d=lW(lW(e,r,"$1\0$2"),i,"\0"),f=0,m=d.length;d.charAt(f)==="\0";)f++;for(;d.charAt(m-1)==="\0";)m--;return d.slice(f,m).split("\0").map(a).join(u)}function lW(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}var CTe=e=>e.name||"",ETe=e=>e.title,TTe=e=>e.description||"",BTe=e=>e.keywords||[],RTe=e=>e.category,PTe=()=>null,ITe=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],OTe=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),dF=new Map,fF=new Map;function PE(e=""){if(dF.has(e))return dF.get(e);let t=cW(e,{splitRegexp:ITe,stripRegexp:OTe}).split(" ").filter(Boolean);return dF.set(e,t),t}function qS(e=""){if(fF.has(e))return fF.get(e);let t=(0,uW.default)(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),fF.set(e,t),t}var ZS=(e="")=>PE(qS(e)),ATe=(e,t)=>e.filter(o=>!ZS(t).some(r=>r.includes(o))),IE=(e,t,o,r)=>ZS(r).length===0?e:XS(e,r,{getCategory:s=>t.find(({slug:a})=>a===s.category)?.title,getCollection:s=>o[s.name.split("/")[0]]?.title}),XS=(e=[],t="",o={})=>{if(ZS(t).length===0)return e;let n=e.map(i=>[i,LTe(i,t,o)]).filter(([,i])=>i>0);return n.sort(([,i],[,s])=>s-i),n.map(([i])=>i)};function LTe(e,t,o={}){let{getName:r=CTe,getTitle:n=ETe,getDescription:i=TTe,getKeywords:s=BTe,getCategory:a=RTe,getCollection:l=PTe}=o,u=r(e),d=n(e),f=i(e),m=s(e),h=a(e),p=l(e),g=qS(t),b=qS(d),v=0;if(g===b)v+=30;else if(b.startsWith(g))v+=20;else{let y=[u,d,f,...m,h,p].join(" "),k=PE(g);ATe(k,y).length===0&&(v+=10)}if(v!==0&&u.startsWith("core/")){let y=u!==e.id;v+=y?1:2}return v}var Bl=c(Q(),1),db=c(G(),1),OE=c(A(),1),dW=c(Ni(),1),AE=c(F(),1);var MTe=(e,t,o)=>{let r=(0,OE.useMemo)(()=>({[Nd]:!!o}),[o]),[n]=(0,db.useSelect)(d=>[d(w).getInserterItems(e,r)],[e,r]),{getClosestAllowedInsertionPoint:i}=H((0,db.useSelect)(w)),{createErrorNotice:s}=(0,db.useDispatch)(dW.store),[a,l]=(0,db.useSelect)(d=>{let{getCategories:f,getCollections:m}=d(Bl.store);return[f(),m()]},[]),u=(0,OE.useCallback)(({name:d,initialAttributes:f,innerBlocks:m,syncStatus:h,content:p},g)=>{let b=i(d,e);if(b===null){let y=(0,Bl.getBlockType)(d)?.title??d;s((0,AE.sprintf)((0,AE.__)(`Block "%s" can't be inserted.`),y),{type:"snackbar",id:"inserter-notice"});return}let v=h==="unsynced"?(0,Bl.parse)(p,{__unstableSkipMigrationLogs:!0}):(0,Bl.createBlock)(d,f,(0,Bl.createBlocksFromInnerBlocksTemplate)(m));t(v,void 0,g,b)},[i,e,t,s]);return[n,a,l,u]},Ud=MTe;var fW=c(N(),1);var mW=c(A(),1),mF=c(C(),1);function NTe({icon:e,showColors:t=!1,className:o,context:r}){e?.src==="block-default"&&(e={src:uS});let n=(0,mF.jsx)(fW.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,mF.jsx)("span",{style:i,className:U("block-editor-block-icon",o,{"has-colors":t}),children:n})}var rt=(0,mW.memo)(NTe);var LE=(e,t)=>(t&&e.sort(({id:o},{id:r})=>{let n=t.indexOf(o),i=t.indexOf(r);return n<0&&(n=t.length),i<0&&(i=t.length),n-i}),e);var fb=c(C(),1),DTe=()=>{},VTe=9;function FTe(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){let{rootClientId:t,selectedBlockId:o,prioritizedBlocks:r}=(0,pW.useSelect)(u=>{let{getSelectedBlockClientId:d,getBlock:f,getBlockListSettings:m,getBlockRootClientId:h}=u(w),{getActiveBlockVariation:p}=u(Gd.store),g=d(),{name:b,attributes:v}=f(g),y=p(b,v),k=h(g);return{selectedBlockId:y?`${b}/${y.name}`:b,rootClientId:k,prioritizedBlocks:m(k)?.prioritizedInserterBlocks}},[]),[n,i,s]=Ud(t,DTe,!0),a=(0,pF.useMemo)(()=>(e.trim()?IE(n,i,s,e):LE(Tl(n,"frecency","desc"),r)).filter(d=>d.id!==o).slice(0,VTe),[e,o,n,i,s,r]);return[(0,pF.useMemo)(()=>a.map(u=>{let{title:d,icon:f,isDisabled:m}=u;return{key:`block-${u.id}`,value:u,label:(0,fb.jsxs)(fb.Fragment,{children:[(0,fb.jsx)(rt,{icon:f,showColors:!0},"icon"),d]}),isDisabled:m}}),[a])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){let{name:t,initialAttributes:o,innerBlocks:r,syncStatus:n,blocks:i}=e;return{action:"replace",value:n==="unsynced"?(i??[]).map(s=>(0,Gd.cloneBlock)(s)):(0,Gd.createBlock)(t,o,(0,Gd.createBlocksFromInnerBlocksTemplate)(r))}}}}var hW=FTe();var bW=c(C(),1),zTe=[];function yW({completers:e=zTe}){let{name:t}=Xe();return(0,gW.useMemo)(()=>{let o=[...e];return(t===(0,DE.getDefaultBlockName)()||(0,DE.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(o=[...o,hW]),(0,ME.hasFilter)("editor.Autocomplete.completers")&&(o===e&&(o=o.map(r=>({...r}))),o=(0,ME.applyFilters)("editor.Autocomplete.completers",o,t)),o},[e,t])}function vW(e){return(0,NE.__unstableUseAutocompleteProps)({...e,completers:yW(e)})}function jTe(e){return(0,bW.jsx)(NE.Autocomplete,{...e,completers:yW(e)})}var kW=jTe;var vF=c(F(),1),Yd=c(N(),1);var zW=c(G(),1);var UE=c(A(),1);var En=c(F(),1);var Tn=c(N(),1);var mb=c(F(),1);var Di={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function oi(e,t=""){return e.split(",").map(o=>`${o}${t?` ${t}`:""}`).join(",")}function Wd(e,t=Di,o,r){let n="";return t?.[o]?.spacingStyles?.length&&r&&t[o].spacingStyles.forEach(i=>{n+=`${oi(e,i.selector.trim())} { `,n+=Object.entries(i.rules).map(([s,a])=>`${s}: ${a||r}`).join("; "),n+="; }"}),n}function VE(e){let{contentSize:t,wideSize:o,type:r="default"}=e,n={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&&r==="constrained"&&(n.none=(0,mb.sprintf)((0,mb.__)("Max %s wide"),t)),i.test(o)&&(n.wide=(0,mb.sprintf)((0,mb.__)("Max %s wide"),o)),n}var Sa=c(F(),1);var SW=8,$d=["top","bottom","left","right"],_W={top:void 0,right:void 0,bottom:void 0,left:void 0},FE={custom:U1,axial:U1,horizontal:rV,vertical:aV,top:sV,right:iV,bottom:oV,left:nV},Rl={default:(0,Sa.__)("Spacing control"),top:(0,Sa.__)("Top"),bottom:(0,Sa.__)("Bottom"),left:(0,Sa.__)("Left"),right:(0,Sa.__)("Right"),mixed:(0,Sa.__)("Mixed"),vertical:(0,Sa.__)("Vertical"),horizontal:(0,Sa.__)("Horizontal"),axial:(0,Sa.__)("Horizontal & vertical"),custom:(0,Sa.__)("Custom")},jc={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function zE(e){return e?.includes?e==="0"||e.includes("var:preset|spacing|"):!1}function xW(e,t){if(!zE(e))return e;let o=HTe(e);return t.find(n=>String(n.slug)===o)?.size}function pb(e,t){if(!e||zE(e)||e==="0")return e;let o=t.find(r=>String(r.size)===String(e));return o?.slug?`var:preset|spacing|${o.slug}`:e}function _a(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function HTe(e){if(!e)return;if(e==="0"||e==="default")return e;let t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function hF(e,t){if(!e||!e.length)return!1;let o=e.includes("horizontal")||e.includes("left")&&e.includes("right"),r=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return t==="horizontal"?o:t==="vertical"?r:o||r}function UTe(e=[]){let t={top:0,right:0,bottom:0,left:0};return e.forEach(o=>t[o]+=1),(t.top+t.bottom)%2===0&&(t.left+t.right)%2===0}function wW(e={},t){let{top:o,right:r,bottom:n,left:i}=e,s=[o,r,n,i].filter(Boolean),a=o===n&&i===r&&(!!o||!!i),l=!s.length&&UTe(t),u=t?.includes("horizontal")&&t?.includes("vertical")&&t?.length===2;if(hF(t)&&(a||l))return jc.axial;if(u&&s.length===1){let d;return Object.entries(e).some(([f,m])=>(d=f,m!==void 0)),d}return t?.length===1&&!s.length?t[0]:jc.custom}function QS(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function Cn(e,t="0"){let o=QS(e);if(!o)return null;let r=_a(o?.top)||t,n=_a(o?.left)||t;return r===n?r:`${r} ${n}`}var So=c(C(),1),GTe={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},CW={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},WTe={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},EW={horizontal:"center",vertical:"top"},$Te=["wrap","nowrap"],BW={name:"flex",label:(0,En.__)("Flex"),inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowOrientation:s=!0,allowJustification:a=!0,allowWrap:l=!0}=r,u=(b,v)=>(t?.[b]??v)!==(n?.[b]??v),d=()=>u("justifyContent","left"),f=()=>u("orientation","horizontal"),m=()=>u("flexWrap","wrap"),h=()=>o(ye({...t,justifyContent:n?.justifyContent})),p=()=>{let{verticalAlignment:b,justifyContent:v}=t,y=n?.orientation,k=!y||y==="horizontal";o(ye({...t,orientation:y,verticalAlignment:n?.verticalAlignment??(k&&b==="space-between"?"center":b),justifyContent:n?.justifyContent??(k&&v==="stretch"?"left":v)}))},g=()=>o(ye({...t,flexWrap:n?.flexWrap}));return(0,So.jsxs)(So.Fragment,{children:[(a||s)&&(0,So.jsxs)(Tn.Flex,{align:"flex-start",className:"block-editor-hooks__flex-layout-controls",gap:4,justify:"flex-start",children:[a&&(0,So.jsx)(Tn.__experimentalToolsPanelItem,{label:(0,En.__)("Justification"),hasValue:d,onDeselect:h,isShownByDefault:!0,panelId:i,children:(0,So.jsx)(TW,{layout:t,onChange:o})}),s&&(0,So.jsx)(Tn.__experimentalToolsPanelItem,{label:(0,En.__)("Orientation"),hasValue:f,onDeselect:p,isShownByDefault:!0,panelId:i,children:(0,So.jsx)(ZTe,{layout:t,onChange:o})})]}),l&&(0,So.jsx)(Tn.__experimentalToolsPanelItem,{label:(0,En.__)("Wrapping"),hasValue:m,onDeselect:g,panelId:i,children:(0,So.jsx)(qTe,{layout:t,onChange:o})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r}){let{allowVerticalAlignment:n=!0,allowJustification:i=!0}=r;return!i&&!n?null:(0,So.jsxs)(mo,{group:"block",__experimentalShareWithChildBlocks:!0,children:[i&&(0,So.jsx)(TW,{layout:t,onChange:o,isToolbar:!0}),n&&(0,So.jsx)(KTe,{layout:t,onChange:o})]})},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=Di}){let u=r!==void 0,d=u?{...o,...r}:o,f=B=>Object.hasOwn(r||{},B),{orientation:m="horizontal"}=d,h="0.5em";if(a){let B=QS(a);h=_a(B?.left)||_a(B?.top)||"0.5em"}let p=n?.spacing?.blockGap&&!yt(i,"spacing","blockGap")?Cn(n?.spacing?.blockGap,h):void 0,g=!u||Object.hasOwn(n?.spacing||{},"blockGap"),b=GTe[d.justifyContent],v=$Te.includes(d.flexWrap)?d.flexWrap:"wrap",y=WTe[d.verticalAlignment],k=CW[d.justifyContent]||CW.left,S="",_=[],x=!u||f("flexWrap"),E=!u||f("orientation"),T=!u||f("justifyContent")||f("orientation"),R=!u||f("verticalAlignment")||f("orientation");return x&&v&&v!=="wrap"&&_.push(`flex-wrap: ${v}`),m==="horizontal"?(R&&y&&_.push(`align-items: ${y}`),T&&b&&_.push(`justify-content: ${b}`)):(R&&y&&_.push(`justify-content: ${y}`),E&&_.push("flex-direction: column"),T&&_.push(`align-items: ${k}`)),_.length&&(S=`${oi(t)} {
				${_.join("; ")};
			}`),s&&g&&p&&(S+=Wd(t,l,"flex",p)),S},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function KTe({layout:e,onChange:t}){let{orientation:o="horizontal"}=e,r=o==="horizontal"?EW.horizontal:EW.vertical,{verticalAlignment:n=r}=e;return(0,So.jsx)(jE,{onChange:s=>{t({...e,verticalAlignment:s})},value:n,controls:o==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]})}var YTe={placement:"bottom-start"};function TW({layout:e,onChange:t,isToolbar:o=!1}){let{justifyContent:r="left",orientation:n="horizontal"}=e,i=l=>{t({...e,justifyContent:l})},s=["left","center","right"];if(n==="horizontal"?s.push("space-between"):s.push("stretch"),o)return(0,So.jsx)(hb,{allowedControls:s,value:r,onChange:i,popoverProps:YTe});let a=[{value:"left",icon:Rd,label:(0,En.__)("Justify items left")},{value:"center",icon:Bd,label:(0,En.__)("Justify items center")},{value:"right",icon:Pd,label:(0,En.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:Kg,label:(0,En.__)("Space between items")}):a.push({value:"stretch",icon:Yg,label:(0,En.__)("Stretch items")}),(0,So.jsx)(Tn.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,En.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:u,label:d})=>(0,So.jsx)(Tn.__experimentalToggleGroupControlOptionIcon,{value:l,icon:u,label:d},l))})}function qTe({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,So.jsx)(Tn.ToggleControl,{label:(0,En.__)("Allow to wrap to multiple lines"),onChange:r=>{t({...e,flexWrap:r?"wrap":"nowrap"})},checked:o==="wrap"})}function ZTe({layout:e,onChange:t}){let{orientation:o="horizontal",verticalAlignment:r,justifyContent:n}=e;return(0,So.jsxs)(Tn.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,En.__)("Orientation"),value:o,onChange:i=>{let s=r,a=n;return i==="horizontal"?(r==="space-between"&&(s="center"),n==="stretch"&&(a="left")):(r==="stretch"&&(s="top"),n==="space-between"&&(a="left")),t({...e,orientation:i,verticalAlignment:s,justifyContent:a})},children:[(0,So.jsx)(Tn.__experimentalToggleGroupControlOptionIcon,{icon:cS,value:"horizontal",label:(0,En.__)("Horizontal")}),(0,So.jsx)(Tn.__experimentalToggleGroupControlOptionIcon,{icon:LN,value:"vertical",label:(0,En.__)("Vertical")})]})}var RW=c(F(),1);var PW={name:"default",label:(0,RW.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=Di}){let s=Cn(o?.spacing?.blockGap),a="";yt(r,"spacing","blockGap")||(s?.top?a=Cn(s?.top):typeof s=="string"&&(a=Cn(s)));let l="";return n&&a&&(l+=Wd(t,i,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){let o=VE(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(n=>({name:n,info:o[n]}));let r=[{name:"left"},{name:"center"},{name:"right"}];if(!t){let{contentSize:n,wideSize:i}=e;n&&r.unshift({name:"full"}),i&&r.unshift({name:"wide",info:o.wide})}return r.unshift({name:"none",info:o.none}),r}};var ln=c(N(),1),ws=c(F(),1);var OW=c(JS(),1);var Po=c(C(),1),AW={name:"constrained",label:(0,ws.__)("Constrained"),inspectorControls:function({layout:t,onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{wideSize:s,contentSize:a,justifyContent:l="center"}=t,{allowJustification:u=!0,allowCustomContentAndWideSize:d=!0}=r,f=x=>{o({...t,justifyContent:x})},m=[{value:"left",icon:Rd,label:(0,ws.__)("Justify items left")},{value:"center",icon:Bd,label:(0,ws.__)("Justify items center")},{value:"right",icon:Pd,label:(0,ws.__)("Justify items right")}],[h]=xe("spacing.units"),p=(0,ln.__experimentalUseCustomUnits)({availableUnits:h||["%","px","em","rem","vw"]}),g=(x,E)=>(t?.[x]??E)!==(n?.[x]??E),b=()=>o(ye({...t,contentSize:n?.contentSize})),v=()=>o(ye({...t,wideSize:n?.wideSize})),y=()=>o(ye({...t,justifyContent:n?.justifyContent})),k=()=>g("contentSize"),S=()=>g("wideSize"),_=()=>g("justifyContent","center");return(0,Po.jsxs)(Po.Fragment,{children:[d&&(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(ln.__experimentalToolsPanelItem,{label:(0,ws.__)("Content width"),hasValue:k,onDeselect:b,panelId:i,children:(0,Po.jsx)(ln.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,ws.__)("Content width"),labelPosition:"top",value:a||s||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o(ye({...t,contentSize:x!==""?x:void 0}))},units:p,prefix:(0,Po.jsx)(ln.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Po.jsx)(We,{icon:pp})})})}),(0,Po.jsxs)(ln.__experimentalToolsPanelItem,{label:(0,ws.__)("Wide width"),hasValue:S,onDeselect:v,panelId:i,children:[(0,Po.jsx)(ln.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,ws.__)("Wide width"),labelPosition:"top",value:s||a||"",onChange:x=>{x=0>parseFloat(x)?"0":x,o(ye({...t,wideSize:x!==""?x:void 0}))},units:p,prefix:(0,Po.jsx)(ln.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,Po.jsx)(We,{icon:Tp})})}),(0,Po.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,ws.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]})]}),u&&(0,Po.jsx)(ln.__experimentalToolsPanelItem,{label:(0,ws.__)("Justification"),hasValue:_,onDeselect:y,panelId:i,children:(0,Po.jsx)(ln.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,ws.__)("Justification"),value:l,onChange:f,children:m.map(({value:x,icon:E,label:T})=>(0,Po.jsx)(ln.__experimentalToggleGroupControlOptionIcon,{value:x,icon:E,label:T},x))})})]})},toolBarControls:function({layout:t={},onChange:o,layoutBlockSupport:r}){let{allowJustification:n=!0}=r;return n?(0,Po.jsx)(mo,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,Po.jsx)(QTe,{layout:t,onChange:o})}):null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,layoutDefinitions:a=Di}){let l=r!==void 0,u=l?{...o,...r}:o,d=T=>Object.hasOwn(r||{},T),{contentSize:f,wideSize:m,justifyContent:h}=u,p=Cn(n?.spacing?.blockGap),g=!l||Object.hasOwn(n?.spacing||{},"blockGap"),b=!l||Object.hasOwn(n?.spacing||{},"padding"),v="";yt(i,"spacing","blockGap")||(p?.top?v=Cn(p?.top):typeof p=="string"&&(v=Cn(p)));let y=h==="left"?"0 !important":"auto !important",k=h==="right"?"0 !important":"auto !important",S=l&&d("justifyContent"),_=!l||d("contentSize")||d("wideSize"),x=[`max-width: ${f??m}`];(!l||S)&&x.push(`margin-left: ${y}`,`margin-right: ${k}`);let E=_&&(f||m)?`
						${oi(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {
						${x.join("; ")};
					}
					${oi(t,"> .alignwide")}  {
						max-width: ${m??f};
					}
					${oi(t,"> .alignfull")} {
						max-width: none;
					}
					`:"";return S&&!_?E+=`${oi(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
				{ margin-left: ${y}; margin-right: ${k}; }`:l||(h==="left"?E+=`${oi(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
			{ margin-left: ${y}; }`:h==="right"&&(E+=`${oi(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
			{ margin-right: ${k}; }`)),b&&n?.spacing?.padding&&(0,OW.getCSSRules)(n).forEach(R=>{if(R.key==="paddingRight"){let B=R.value==="0"?"0px":R.value;E+=`
					${oi(t,"> .alignfull")} {
						margin-right: calc(${B} * -1);
					}
					`}else if(R.key==="paddingLeft"){let B=R.value==="0"?"0px":R.value;E+=`
					${oi(t,"> .alignfull")} {
						margin-left: calc(${B} * -1);
					}
					`}}),s&&g&&v&&(E+=Wd(t,a,"constrained",v)),E},getOrientation(){return"vertical"},getAlignments(e){let t=VE(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(i=>({name:i,info:t[i]}));let{contentSize:o,wideSize:r}=e,n=[{name:"left"},{name:"center"},{name:"right"}];return o&&n.unshift({name:"full"}),r&&n.unshift({name:"wide",info:t.wide}),n.unshift({name:"none",info:t.none}),n}},XTe={placement:"bottom-start"};function QTe({layout:e,onChange:t}){let{justifyContent:o="center"}=e;return(0,Po.jsx)(hb,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:XTe})}var Er=c(F(),1),wt=c(N(),1),HE=c(A(),1);var pt=c(C(),1),JTe={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},eBe=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],LW={name:"grid",label:(0,Er.__)("Grid"),inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowSizingOnChildren:s=!1}=r,a=!0,l=!t?.isManualPlacement||window.__experimentalEnableGridInteractivity,u=t.isManualPlacement?3:void 0,d=(v,y)=>(t?.[v]??y)!==(n?.[v]??y),f=()=>d("isManualPlacement",!1),m=()=>d("columnCount",u)||d("rowCount"),h=()=>d("minimumColumnWidth"),p=()=>o(ye({...t,isManualPlacement:n?.isManualPlacement,rowCount:n?.rowCount,minimumColumnWidth:n?.minimumColumnWidth})),g=()=>o(ye({...t,columnCount:n?.columnCount??u,rowCount:n?.rowCount})),b=()=>o(ye({...t,minimumColumnWidth:n?.minimumColumnWidth}));return(0,pt.jsxs)(pt.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,pt.jsx)(wt.__experimentalToolsPanelItem,{label:(0,Er.__)("Grid item position"),hasValue:f,onDeselect:p,isShownByDefault:!0,panelId:i,children:(0,pt.jsx)(rBe,{layout:t,onChange:o})}),a&&(0,pt.jsx)(wt.__experimentalToolsPanelItem,{label:(0,Er.__)("Columns and rows"),hasValue:m,onDeselect:g,isShownByDefault:!0,panelId:i,children:(0,pt.jsx)(oBe,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,pt.jsx)(wt.__experimentalToolsPanelItem,{label:(0,Er.__)("Min. column width"),hasValue:h,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,pt.jsx)(tBe,{layout:t,onChange:o})})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=Di}){let u=r!==void 0,d=u?{...o,...r}:o,f=x=>Object.hasOwn(r||{},x),{minimumColumnWidth:m=null,columnCount:h=null,rowCount:p=null}=d,g="1.2rem";if(a){let x=QS(a);g=_a(x?.left)||_a(x?.top)||"1.2rem"}let b=n?.spacing?.blockGap&&!yt(i,"spacing","blockGap")?Cn(n?.spacing?.blockGap,g):void 0,v=!u||Object.hasOwn(n?.spacing||{},"blockGap"),y="",k=[],S=!u||f("minimumColumnWidth")||f("columnCount")||v&&m&&h>0,_=(!u||f("rowCount"))&&h&&p;if(S&&m&&h>0){let x=b||g;(x==="0"||x===0)&&(x="0px");let E=`max(min( ${m}, 100%), ( 100% - (${x}*${h-1}) ) / ${h})`;k.push(`grid-template-columns: repeat(auto-fill, minmax(${E}, 1fr))`)}else S&&h?k.push(`grid-template-columns: repeat(${h}, minmax(0, 1fr))`):S&&k.push(`grid-template-columns: repeat(auto-fill, minmax(min(${m||"12rem"}, 100%), 1fr))`);if(S){let x=!o?.columnCount||o?.columnCount&&o?.minimumColumnWidth;(!h||m)&&(!u||!x)&&k.push("container-type: inline-size")}return _&&k.push(`grid-template-rows: repeat(${p}, minmax(1rem, auto))`),k.length&&(y=`${oi(t)} { ${k.join("; ")}; }`),s&&v&&b&&(y+=Wd(t,l,"grid",b)),y},getOrientation(){return"horizontal"},getAlignments(){return[]}};function tBe({layout:e,onChange:t}){let{minimumColumnWidth:o,columnCount:r,isManualPlacement:n}=e,s=o||(n||r?null:"12rem"),[a,l="rem"]=(0,wt.__experimentalParseQuantityAndUnitFromRawValue)(s),u=f=>{t({...e,minimumColumnWidth:[f,l].join("")})},d=f=>{let m;["em","rem"].includes(f)&&l==="px"?m=(a/16).toFixed(2)+f:["em","rem"].includes(l)&&f==="px"&&(m=Math.round(a*16)+f),t({...e,minimumColumnWidth:m})};return(0,pt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,pt.jsx)(wt.BaseControl.VisualLabel,{as:"legend",children:(0,Er.__)("Min. column width")}),(0,pt.jsxs)(wt.Flex,{gap:4,children:[(0,pt.jsx)(wt.FlexItem,{isBlock:!0,children:(0,pt.jsx)(wt.__experimentalUnitControl,{size:"__unstable-large",onChange:f=>{t({...e,minimumColumnWidth:f===""?void 0:f})},onUnitChange:d,value:s,units:eBe,min:0,label:(0,Er.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,pt.jsx)(wt.FlexItem,{isBlock:!0,children:(0,pt.jsx)(wt.RangeControl,{__next40pxDefaultSize:!0,onChange:u,value:a||0,min:0,max:JTe[l]||600,withInputField:!1,label:(0,Er.__)("Minimum column width"),hideLabelFromVision:!0})})]}),(0,pt.jsx)("p",{className:"components-base-control__help",children:(0,Er.__)("Columns will wrap to fewer per row when they can no longer maintain the minimum width.")})]})}function oBe({layout:e,onChange:t,allowSizingOnChildren:o}){let{columnCount:n=void 0,rowCount:i,isManualPlacement:s}=e;return(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[!s&&(0,pt.jsx)(wt.BaseControl.VisualLabel,{as:"legend",children:(0,Er.__)("Max. columns")}),(0,pt.jsxs)(wt.Flex,{gap:4,children:[(0,pt.jsx)(wt.FlexItem,{isBlock:!0,children:(0,pt.jsx)(wt.__experimentalNumberControl,{size:"__unstable-large",onChange:a=>{let u=a===""||a==="0"?s?1:void 0:parseInt(a,10);t({...e,columnCount:u})},value:n,min:1,label:(0,Er.__)("Columns"),hideLabelFromVision:!s})}),(0,pt.jsx)(wt.FlexItem,{isBlock:!0,children:o&&s?(0,pt.jsx)(wt.__experimentalNumberControl,{size:"__unstable-large",onChange:a=>{let l=a===""||a==="0"?1:parseInt(a,10);t({...e,rowCount:l})},value:i,min:1,label:(0,Er.__)("Rows")}):(0,pt.jsx)(wt.RangeControl,{__next40pxDefaultSize:!0,value:n??1,onChange:a=>t({...e,columnCount:a===""||a==="0"?1:a}),min:1,max:16,withInputField:!1,label:(0,Er.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function rBe({layout:e,onChange:t}){let{columnCount:o,rowCount:r,minimumColumnWidth:n,isManualPlacement:i}=e,[s,a]=(0,HE.useState)(o||3),[l,u]=(0,HE.useState)(r),[d,f]=(0,HE.useState)(n||"12rem"),m=i?"manual":"auto",h=g=>{g==="manual"?f(n||"12rem"):(a(o||3),u(r)),t({...e,columnCount:s,rowCount:g==="manual"?l:void 0,isManualPlacement:g==="manual"?!0:void 0,minimumColumnWidth:g==="auto"?d:null})},p=m==="manual"?(0,Er.__)("Grid items can be manually placed in any position on the grid."):(0,Er.__)("Grid items are placed automatically depending on their order.");return(0,pt.jsxs)(wt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Er.__)("Grid item position"),value:m,onChange:h,isBlock:!0,help:p,children:[(0,pt.jsx)(wt.__experimentalToggleGroupControlOption,{value:"auto",label:(0,Er.__)("Auto")},"auto"),(0,pt.jsx)(wt.__experimentalToggleGroupControlOption,{value:"manual",label:(0,Er.__)("Manual")},"manual")]})}var MW=[PW,BW,AW,LW];function Cs(e="default"){return MW.find(t=>t.name===e)}function NW(){return MW}var gF=c(C(),1),bF={type:"default"},yF=(0,UE.createContext)(bF);yF.displayName="BlockLayoutContext";var DW=yF.Provider;function Lp(){return(0,UE.useContext)(yF)}function VW({layout:e={},css:t,...o}){let r=Cs(e.type),[n]=xe("spacing.blockGap"),i=n!==null;if(r){if(t)return(0,gF.jsx)("style",{children:t});let s=r.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...o});if(s)return(0,gF.jsx)("style",{children:s})}return null}var GE=[],FW=["none","left","center","right","wide","full"],nBe=["wide","full"];function e_(e=FW){e.includes("none")||(e=["none",...e]);let t=e.length===1&&e[0]==="none",[o,r,n]=(0,zW.useSelect)(l=>{if(t)return[!1,!1,!1];let u=l(w).getSettings();return[u.alignWide??!1,u.supportsLayout,u.__unstableIsBlockBasedTheme]},[t]),i=Lp();if(t)return GE;let s=Cs(i?.type);if(r){let u=s.getAlignments(i,n).filter(d=>e.includes(d.name));return u.length===1&&u[0].name==="none"?GE:u}if(s.name!=="default"&&s.name!=="constrained")return GE;let a=e.filter(l=>i.alignments?i.alignments.includes(l):!o&&nBe.includes(l)?!1:FW.includes(l)).map(l=>({name:l}));return a.length===1&&a[0].name==="none"?GE:a}var Kd=c(F(),1);var t_={none:{icon:pp,title:(0,Kd._x)("None","Alignment option")},left:{icon:D5,title:(0,Kd.__)("Align left")},center:{icon:M5,title:(0,Kd.__)("Align center")},right:{icon:F5,title:(0,Kd.__)("Align right")},wide:{icon:Tp,title:(0,Kd.__)("Wide width")},full:{icon:AS,title:(0,Kd.__)("Full width")}},jW="none";var Mp=c(C(),1);function iBe({value:e,onChange:t,controls:o,isToolbar:r,isCollapsed:n=!0}){let i=e_(o);if(!!!i.length)return null;function a(h){t([e,"none"].includes(h)?void 0:h)}let l=t_[e],u=t_[jW],d=r?Yd.ToolbarGroup:Yd.ToolbarDropdownMenu,f={icon:l?l.icon:u.icon,label:(0,vF.__)("Align")},m=r?{isCollapsed:n,controls:i.map(({name:h})=>({...t_[h],isActive:e===h||!e&&h==="none",role:n?"menuitemradio":void 0,onClick:()=>a(h)}))}:{toggleProps:{description:(0,vF.__)("Change alignment")},children:({onClose:h})=>(0,Mp.jsx)(Mp.Fragment,{children:(0,Mp.jsx)(Yd.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:i.map(({name:p,info:g})=>{let{icon:b,title:v}=t_[p],y=p===e||!e&&p==="none";return(0,Mp.jsx)(Yd.MenuItem,{icon:b,iconPosition:"left",className:U("components-dropdown-menu__menu-item",{"is-active":y}),isSelected:y,onClick:()=>{a(p),h()},role:"menuitemradio",info:g,children:v},p)})})})};return(0,Mp.jsx)(d,{...f,...m})}var kF=iBe;var SF=c(C(),1),WE=e=>(0,SF.jsx)(kF,{...e,isToolbar:!1}),HW=e=>(0,SF.jsx)(kF,{...e,isToolbar:!0});var KW=c(fp(),1),qE=c(F(),1),ZE=c(Q(),1),wa=c(N(),1),wF=c(G(),1),YW=c(A(),1),qW=c(oe(),1);var xF=c(fp(),1),UW=c(Q(),1),GW=c(N(),1),WW=c(G(),1),KE=c(A(),1),$W=c(oe(),1);var $E=c(G(),1);function _F(e){return!e||Object.keys(e).length===0}function Hc(e){let{clientId:t}=Xe(),o=e||t,{updateBlockAttributes:r}=(0,$E.useDispatch)(w),{getBlockAttributes:n}=(0,$E.useRegistry)().select(w);return{updateBlockBindings:a=>{let{metadata:{bindings:l,...u}={}}=n(o),d={...l};Object.entries(a).forEach(([m,h])=>{if(!h&&d[m]){delete d[m];return}d[m]=h});let f={...u,bindings:d};_F(f.bindings)&&delete f.bindings,r(o,{metadata:_F(f)?void 0:f})},removeAllBlockBindings:()=>{let{metadata:{bindings:a,...l}={}}=n(o);r(o,{metadata:_F(l)?void 0:l})}}}var xa=c(C(),1),{Menu:qd}=H(GW.privateApis);function sBe({args:e,attribute:t,field:o,source:r,sourceKey:n}){let i=(0,KE.useMemo)(()=>({source:n,args:o.args||{key:o.key}}),[o.args,o.key,n]),s=(0,KE.useContext)(sn),a=(0,WW.useSelect)(u=>r.getValues({select:u,context:s,bindings:{[t]:i}}),[t,s,i,r]),{updateBlockBindings:l}=Hc();return(0,xa.jsxs)(qd.CheckboxItem,{onChange:()=>{let u=(0,xF.default)(e,o.args)??o.key===e?.key;l(u?{[t]:void 0}:{[t]:i})},name:t+"-binding",value:a[t],checked:(0,xF.default)(e,o.args)??o.key===e?.key,children:[(0,xa.jsx)(qd.ItemLabel,{children:o.label}),(0,xa.jsx)(qd.ItemHelpText,{children:a[t]})]})}function o_({args:e,attribute:t,sourceKey:o,fields:r}){let n=(0,$W.useViewportMatch)("medium","<");if(!r||r.length===0)return null;let i=(0,UW.getBlockBindingsSource)(o);return(0,xa.jsxs)(qd,{placement:n?"bottom-start":"left-start",children:[(0,xa.jsx)(qd.SubmenuTriggerItem,{children:(0,xa.jsx)(qd.ItemLabel,{children:i.label})}),(0,xa.jsx)(qd.Popover,{gutter:8,children:(0,xa.jsx)(qd.Group,{children:r.map(s=>(0,xa.jsx)(sBe,{args:e,attribute:t,field:s,source:i,sourceKey:o},o+JSON.stringify(s.args)||s.key))})})]},o)}var Es=c(C(),1),{Menu:YE}=H(wa.privateApis);function r_({attribute:e,binding:t,blockName:o}){let{updateBlockBindings:r}=Hc(),n=(0,qW.useViewportMatch)("medium","<"),i=(0,YW.useContext)(sn),s=(0,wF.useSelect)(g=>{let{getAllBlockBindingsSources:b,getBlockBindingsSourceFieldsList:v,getBlockType:y}=H(g(ZE.store)),k=y(o).attributes?.[e];if(k?.enum)return{};let S=k?.type==="rich-text"?"string":k?.type,_={};return Object.entries(b()).forEach(([x,E])=>{let T=v(E,i);if(!T?.length)return;let R=T.filter(B=>B.type===S);R.length&&(_[x]=R)}),_},[e,o,i]),{canUpdateBlockBindings:a}=(0,wF.useSelect)(g=>({canUpdateBlockBindings:g(w).getSettings().canUpdateBlockBindings})),l=Object.keys(s).length>0,u=!a||!l,{source:d,args:f}=t||{},m=(0,ZE.getBlockBindingsSource)(d),h,p=!0;return t===void 0?(l?h=(0,qE.__)("Not connected"):h=(0,qE.__)("No sources available"),p=!0):m?h=s?.[d]?.find(g=>(0,KW.default)(g.args,f))?.label||m?.label||d:(p=!1,h=(0,qE.__)("Source not registered")),(0,Es.jsx)(wa.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:!!l&&(()=>{r({[e]:void 0})}),children:(0,Es.jsxs)(YE,{placement:n?"bottom-start":"left-start",children:[(0,Es.jsx)(YE.TriggerButton,{render:(0,Es.jsx)(wa.__experimentalItem,{}),disabled:!l,children:(0,Es.jsxs)(wa.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,Es.jsx)(wa.__experimentalText,{truncate:!0,children:e}),(0,Es.jsx)(wa.__experimentalText,{truncate:!0,variant:p?"muted":void 0,isDestructive:!p,children:h})]})}),!u&&(0,Es.jsx)(YE.Popover,{gutter:n?8:36,children:(0,Es.jsx)(YE,{placement:n?"bottom-start":"left-start",children:Object.entries(s).map(([g,b])=>(0,Es.jsx)(o_,{args:t?.args,attribute:e,sourceKey:g,fields:b},g))})})]})})}var ZW=c(F(),1),XW=c(N(),1);var QW=c(C(),1);function aBe({isActive:e,label:t=(0,ZW.__)("Full height"),onToggle:o,isDisabled:r}){return(0,QW.jsx)(XW.ToolbarButton,{isActive:e,icon:OD,label:t,onClick:()=>o(!e),disabled:r})}var JW=aBe;var t$=c(F(),1),o$=c(Bt(),1),Np=c(N(),1),n_=c(C(),1),lBe=()=>{};function cBe(e){let{label:t=(0,t$.__)("Change matrix alignment"),onChange:o=lBe,value:r="center",isDisabled:n}=e,i=(0,n_.jsx)(Np.AlignmentMatrixControl.Icon,{value:r});return(0,n_.jsx)(Np.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:s,isOpen:a})=>(0,n_.jsx)(Np.ToolbarButton,{onClick:s,"aria-haspopup":"true","aria-expanded":a,onKeyDown:u=>{!a&&u.keyCode===o$.DOWN&&(u.preventDefault(),s())},label:t,icon:i,showTooltip:!0,disabled:n}),renderContent:()=>(0,n_.jsx)(Np.AlignmentMatrixControl,{onChange:o,value:r})})}var r$=cBe;var TF=c(N(),1),JE=c(G(),1),eT=c(F(),1);var u$=c(A(),1);var n$=c(G(),1),XE=c(Q(),1);function Kr({clientId:e,maximumLength:t,context:o}){let r=(0,n$.useSelect)(n=>{if(!e)return null;let{getBlockName:i,getBlockAttributes:s}=n(w),{getBlockType:a,getActiveBlockVariation:l}=n(XE.store),u=i(e),d=a(u);if(!d)return null;let f=s(e),m=(0,XE.__experimentalGetBlockLabel)(d,f,o);return m!==d.title?m:l(u,f)?.title||d.title},[e,o]);return r?t&&t>0&&r.length>t?r.slice(0,t-3)+"...":r:null}function i_({clientId:e,maximumLength:t,context:o}){return Kr({clientId:e,maximumLength:t,context:o})}var Dp=c(A(),1),a$=c(oe(),1);var QE=c(A(),1),CF=c(oe(),1),i$=c(C(),1),s_=(0,QE.createContext)({refsMap:(0,CF.observableMap)()});s_.displayName="BlockRefsContext";function s$({children:e}){let t=(0,QE.useMemo)(()=>({refsMap:(0,CF.observableMap)()}),[]);return(0,i$.jsx)(s_.Provider,{value:t,children:e})}function l$(e){let{refsMap:t}=(0,Dp.useContext)(s_);return(0,a$.useRefEffect)(o=>(t.set(e,o),()=>t.delete(e)),[e])}function EF(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Vp(e,t){let{refsMap:o}=(0,Dp.useContext)(s_);(0,Dp.useLayoutEffect)(()=>{EF(t,o.get(e));let r=o.subscribe(e,()=>EF(t,o.get(e)));return()=>{r(),EF(t,null)}},[o,e,t])}function Rt(e){let[t,o]=(0,Dp.useState)(null);return Vp(e,o),t}function c$(e){if(!e)return null;let t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find(o=>(o.contentDocument||o.contentWindow.document)===e.ownerDocument)??e;return t?.closest('[role="region"]')??t}var Vi=c(C(),1);function uBe({rootLabelText:e}){let{selectBlock:t,clearSelectedBlock:o}=(0,JE.useDispatch)(w),{clientId:r,parents:n,hasSelection:i}=(0,JE.useSelect)(l=>{let{getSelectionStart:u,getSelectedBlockClientId:d,getEnabledBlockParents:f}=H(l(w)),m=d();return{parents:f(m),clientId:m,hasSelection:!!u().clientId}},[]),s=e||(0,eT._x)("Document","noun, breadcrumb"),a=(0,u$.useRef)();return Vp(r,a),(0,Vi.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,eT.__)("Block breadcrumb"),children:[(0,Vi.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,Vi.jsx)(TF.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{let l=a.current?.closest(".editor-styles-wrapper");o(),c$(l)?.focus()},children:s}),!i&&(0,Vi.jsx)("span",{children:s}),!!r&&(0,Vi.jsx)(We,{icon:Td,className:"block-editor-block-breadcrumb__separator"})]}),n.map(l=>(0,Vi.jsxs)("li",{children:[(0,Vi.jsx)(TF.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(l),children:(0,Vi.jsx)(i_,{clientId:l,maximumLength:35,context:"breadcrumb"})}),(0,Vi.jsx)(We,{icon:Td,className:"block-editor-block-breadcrumb__separator"})]},l)),!!r&&(0,Vi.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,Vi.jsx)(i_,{clientId:r,maximumLength:35,context:"breadcrumb"})})]})}var d$=uBe;var f$=c(G(),1);function m$(e){return(0,f$.useSelect)(t=>{let{__unstableHasActiveBlockOverlayActive:o}=t(w);return o(e)},[e])}var pO=c(oe(),1),qle=c(A(),1),Zle=c(G(),1),Xle=c(N(),1);var js=c(G(),1),DP=c(oe(),1),zf=c(A(),1),Xne=c(Q(),1);var af=c(A(),1),vt=c(Q(),1),NY=c(N(),1),$T=c(G(),1),KT=c(oe(),1),DY=c(at(),1);var Uc=c(F(),1),oT=c(N(),1),Fp=c(A(),1),bb=c(Q(),1),rT=c(G(),1);var _$=c(y$(),1),tT=c(F(),1),x$=c(Q(),1);var v$=c(N(),1),k$=c(A(),1),S$=c(at(),1),Pl=c(C(),1);function RF({title:e,rawContent:t,renderedContent:o,action:r,actionText:n,className:i}){return(0,Pl.jsxs)("div",{className:i,children:[(0,Pl.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,Pl.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,Pl.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,Pl.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,Pl.jsx)(k$.RawHTML,{children:(0,S$.safeHTML)(o)})})]}),(0,Pl.jsx)("div",{className:"block-editor-block-compare__action",children:(0,Pl.jsx)(v$.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:r,children:n})})]})}var gb=c(C(),1);function gBe({block:e,onKeep:t,onConvert:o,convertor:r,convertButtonText:n}){function i(u,d){return(0,_$.diffChars)(u,d).map((m,h)=>{let p=U({"block-editor-block-compare__added":m.added,"block-editor-block-compare__removed":m.removed});return(0,gb.jsx)("span",{className:p,children:m.value},h)})}function s(u){return(Array.isArray(u)?u:[u]).map(m=>(0,x$.getSaveContent)(m.name,m.attributes,m.innerBlocks)).join("")}let a=s(r(e)),l=i(e.originalContent,a);return(0,gb.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,gb.jsx)(RF,{title:(0,tT.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,tT.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,gb.jsx)(RF,{title:(0,tT.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:n,rawContent:l,renderedContent:a})]})}var w$=gBe;var Gc=c(C(),1),C$=e=>(0,bb.rawHandler)({HTML:e.originalContent});function E$({clientId:e}){let{block:t,canInsertHTMLBlock:o,canInsertClassicBlock:r}=(0,rT.useSelect)(d=>{let{canInsertBlockType:f,getBlock:m,getBlockRootClientId:h}=d(w),p=h(e);return{block:m(e),canInsertHTMLBlock:f("core/html",p),canInsertClassicBlock:f("core/freeform",p)}},[e]),{replaceBlock:n}=(0,rT.useDispatch)(w),[i,s]=(0,Fp.useState)(!1),a=(0,Fp.useCallback)(()=>s(!1),[]),l=(0,Fp.useMemo)(()=>({toClassic(){let d=(0,bb.createBlock)("core/freeform",{content:t.originalContent});return n(t.clientId,d)},toHTML(){let d=(0,bb.createBlock)("core/html",{content:t.originalContent});return n(t.clientId,d)},toBlocks(){let d=C$(t);return n(t.clientId,d)},toRecoveredBlock(){let d=(0,bb.createBlock)(t.name,t.attributes,t.innerBlocks);return n(t.clientId,d)}}),[t,n]),u=(0,Fp.useMemo)(()=>[{title:(0,Uc._x)("Resolve","imperative verb"),onClick:()=>s(!0)},o&&{title:(0,Uc.__)("Convert to HTML"),onClick:l.toHTML},r&&{title:(0,Uc.__)("Convert to Classic Block"),onClick:l.toClassic}].filter(Boolean),[o,r,l]);return(0,Gc.jsxs)(Gc.Fragment,{children:[(0,Gc.jsx)(Fd,{actions:[(0,Gc.jsx)(oT.Button,{__next40pxDefaultSize:!0,onClick:l.toRecoveredBlock,variant:"primary",children:(0,Uc.__)("Attempt recovery")},"recover")],secondaryActions:u,children:(0,Uc.__)("Block contains unexpected or invalid content.")}),i&&(0,Gc.jsx)(oT.Modal,{title:(0,Uc.__)("Resolve Block"),onRequestClose:a,className:"block-editor-block-compare",children:(0,Gc.jsx)(w$,{block:t,onKeep:l.toHTML,onConvert:l.toBlocks,convertor:C$,convertButtonText:(0,Uc.__)("Convert to Blocks")})})]})}var T$=c(F(),1);var B$=c(C(),1),bBe=(0,B$.jsx)(Fd,{className:"block-editor-block-list__block-crash-warning",children:(0,T$.__)("This block has encountered an error and cannot be previewed.")});function R$(){return bBe}var P$=c(A(),1),yBe=class extends P$.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}},I$=yBe;var Z$=c(OF(),1),yb=c(A(),1),aT=c(G(),1),Il=c(Q(),1);var X$=c(C(),1);function RBe({clientId:e}){let[t,o]=(0,yb.useState)(""),r=(0,aT.useSelect)(a=>a(w).getBlock(e),[e]),{updateBlock:n}=(0,aT.useDispatch)(w),i=(0,yb.useMemo)(()=>r?(0,Il.getBlockContent)(r):"",[r]),s=()=>{let a=(0,Il.getBlockType)(r.name);if(!a)return;let l=(0,Il.getBlockAttributes)(a,t,r.attributes),u=t||(0,Il.getSaveContent)(a,l),[d]=t?(0,Il.validateBlock)({...r,attributes:l,originalContent:u}):[!0];n(e,{attributes:l,originalContent:u,isValid:d}),t||o(u)};return(0,yb.useEffect)(()=>{o(i)},[i]),(0,X$.jsx)(Z$.default,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:s,onChange:a=>o(a.target.value)})}var Q$=RBe;var AY=c(A(),1),GT=c(F(),1),LY=c(Q(),1),Ab=c(oe(),1),MY=c(c_(),1);var LF=d_(),Me=e=>u_(e,LF),MF=d_();Me.write=e=>u_(e,MF);var lT=d_();Me.onStart=e=>u_(e,lT);var NF=d_();Me.onFrame=e=>u_(e,NF);var DF=d_();Me.onFinish=e=>u_(e,DF);var vb=[];Me.setTimeout=(e,t)=>{let o=Me.now()+t,r=()=>{let i=vb.findIndex(s=>s.cancel==r);~i&&vb.splice(i,1),Xd-=~i?1:0},n={time:o,handler:e,cancel:r};return vb.splice(eK(o),0,n),Xd+=1,tK(),n};var eK=e=>~(~vb.findIndex(t=>t.time>e)||~vb.length);Me.cancel=e=>{lT.delete(e),NF.delete(e),DF.delete(e),LF.delete(e),MF.delete(e)};Me.sync=e=>{AF=!0,Me.batchedUpdates(e),AF=!1};Me.throttle=e=>{let t;function o(){try{e(...t)}finally{t=null}}function r(...n){t=n,Me.onStart(o)}return r.handler=e,r.cancel=()=>{lT.delete(o),t=null},r};var VF=typeof window<"u"?window.requestAnimationFrame:()=>{};Me.use=e=>VF=e;Me.now=typeof performance<"u"?()=>performance.now():Date.now;Me.batchedUpdates=e=>e();Me.catch=console.error;Me.frameLoop="always";Me.advance=()=>{Me.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):rK()};var Zd=-1,Xd=0,AF=!1;function u_(e,t){AF?(t.delete(e),e(0)):(t.add(e),tK())}function tK(){Zd<0&&(Zd=0,Me.frameLoop!=="demand"&&VF(oK))}function PBe(){Zd=-1}function oK(){~Zd&&(VF(oK),Me.batchedUpdates(rK))}function rK(){let e=Zd;Zd=Me.now();let t=eK(Zd);if(t&&(nK(vb.splice(0,t),o=>o.handler()),Xd-=t),!Xd){PBe();return}lT.flush(),LF.flush(e?Math.min(64,Zd-e):16.667),NF.flush(),MF.flush(),DF.flush()}function d_(){let e=new Set,t=e;return{add(o){Xd+=t==e&&!e.has(o)?1:0,e.add(o)},delete(o){return Xd-=t==e&&e.has(o)?1:0,e.delete(o)},flush(o){t.size&&(e=new Set,Xd-=t.size,nK(t,r=>r(o)&&e.add(r)),Xd+=e.size,t=e)}}}function nK(e,t){e.forEach(o=>{try{t(o)}catch(r){Me.catch(r)}})}var Bs=c(pe());function mT(){}var uK=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),ue={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Ol(e,t){if(ue.arr(e)){if(!ue.arr(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}return e===t}var Kt=(e,t)=>e.forEach(t);function Rs(e,t,o){if(ue.arr(e)){for(let r=0;r<e.length;r++)t.call(o,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(o,e[r],r)}var ri=e=>ue.und(e)?[]:ue.arr(e)?e:[e];function xb(e,t){if(e.size){let o=Array.from(e);e.clear(),Kt(o,t)}}var wb=(e,...t)=>xb(e,o=>o(...t)),GF=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),WF,dK,Qd=null,fK=!1,$F=mT,IBe=e=>{e.to&&(dK=e.to),e.now&&(Me.now=e.now),e.colors!==void 0&&(Qd=e.colors),e.skipAnimation!=null&&(fK=e.skipAnimation),e.createStringInterpolator&&(WF=e.createStringInterpolator),e.requestAnimationFrame&&Me.use(e.requestAnimationFrame),e.batchedUpdates&&(Me.batchedUpdates=e.batchedUpdates),e.willAdvance&&($F=e.willAdvance),e.frameLoop&&(Me.frameLoop=e.frameLoop)},Fi=Object.freeze({__proto__:null,get createStringInterpolator(){return WF},get to(){return dK},get colors(){return Qd},get skipAnimation(){return fK},get willAdvance(){return $F},assign:IBe}),f_=new Set,Ts=[],FF=[],dT=0,Cb={get idle(){return!f_.size&&!Ts.length},start(e){dT>e.priority?(f_.add(e),Me.onStart(OBe)):(mK(e),Me(HF))},advance:HF,sort(e){if(dT)Me.onFrame(()=>Cb.sort(e));else{let t=Ts.indexOf(e);~t&&(Ts.splice(t,1),pK(e))}},clear(){Ts=[],f_.clear()}};function OBe(){f_.forEach(mK),f_.clear(),Me(HF)}function mK(e){Ts.includes(e)||pK(e)}function pK(e){Ts.splice(ABe(Ts,t=>t.priority>e.priority),0,e)}function HF(e){let t=FF;for(let o=0;o<Ts.length;o++){let r=Ts[o];dT=r.priority,r.idle||($F(r),r.advance(e),r.idle||t.push(r))}return dT=0,FF=Ts,FF.length=0,Ts=t,Ts.length>0}function ABe(e,t){let o=e.findIndex(t);return o<0?e.length:o}var hK={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ca="[-+]?\\d*\\.?\\d+",fT=Ca+"%";function pT(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var LBe=new RegExp("rgb"+pT(Ca,Ca,Ca)),MBe=new RegExp("rgba"+pT(Ca,Ca,Ca,Ca)),NBe=new RegExp("hsl"+pT(Ca,fT,fT)),DBe=new RegExp("hsla"+pT(Ca,fT,fT,Ca)),VBe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,FBe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zBe=/^#([0-9a-fA-F]{6})$/,jBe=/^#([0-9a-fA-F]{8})$/;function HBe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zBe.exec(e))?parseInt(t[1]+"ff",16)>>>0:Qd&&Qd[e]!==void 0?Qd[e]:(t=LBe.exec(e))?(kb(t[1])<<24|kb(t[2])<<16|kb(t[3])<<8|255)>>>0:(t=MBe.exec(e))?(kb(t[1])<<24|kb(t[2])<<16|kb(t[3])<<8|aK(t[4]))>>>0:(t=VBe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=jBe.exec(e))?parseInt(t[1],16)>>>0:(t=FBe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=NBe.exec(e))?(iK(sK(t[1]),cT(t[2]),cT(t[3]))|255)>>>0:(t=DBe.exec(e))?(iK(sK(t[1]),cT(t[2]),cT(t[3]))|aK(t[4]))>>>0:null}function zF(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function iK(e,t,o){let r=o<.5?o*(1+t):o+t-o*t,n=2*o-r,i=zF(n,r,e+1/3),s=zF(n,r,e),a=zF(n,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function kb(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function sK(e){return(parseFloat(e)%360+360)%360/360}function aK(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function cT(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function lK(e){let t=HBe(e);if(t===null)return e;t=t||0;let o=(t&4278190080)>>>24,r=(t&16711680)>>>16,n=(t&65280)>>>8,i=(t&255)/255;return`rgba(${o}, ${r}, ${n}, ${i})`}var Jd=(e,t,o)=>{if(ue.fun(e))return e;if(ue.arr(e))return Jd({range:e,output:t,extrapolate:o});if(ue.str(e.output[0]))return WF(e);let r=e,n=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{let d=GBe(u,i);return UBe(u,i[d],i[d+1],n[d],n[d+1],l,s,a,r.map)}};function UBe(e,t,o,r,n,i,s,a,l){let u=l?l(e):e;if(u<t){if(s==="identity")return u;s==="clamp"&&(u=t)}if(u>o){if(a==="identity")return u;a==="clamp"&&(u=o)}return r===n?r:t===o?e<=t?r:n:(t===-1/0?u=-u:o===1/0?u=u-t:u=(u-t)/(o-t),u=i(u),r===-1/0?u=-u:n===1/0?u=u+r:u=u*(n-r)+r,u)}function GBe(e,t){for(var o=1;o<t.length-1&&!(t[o]>=e);++o);return o-1}function UF(){return UF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},UF.apply(this,arguments)}var Sb=Symbol.for("FluidValue.get"),zp=Symbol.for("FluidValue.observers"),Bn=e=>!!(e&&e[Sb]),Yr=e=>e&&e[Sb]?e[Sb]():e,KF=e=>e[zp]||null;function WBe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function jp(e,t){let o=e[zp];o&&o.forEach(r=>{WBe(r,t)})}var _b=class{constructor(t){if(this[Sb]=void 0,this[zp]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");$Be(this,t)}},$Be=(e,t)=>gK(e,Sb,t);function ef(e,t){if(e[Sb]){let o=e[zp];o||gK(e,zp,o=new Set),o.has(t)||(o.add(t),e.observerAdded&&e.observerAdded(o.size,t))}return t}function tf(e,t){let o=e[zp];if(o&&o.has(t)){let r=o.size-1;r?o.delete(t):e[zp]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gK=(e,t,o)=>Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0}),uT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,KBe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,cK=new RegExp(`(${uT.source})(%|[a-z]+)`,"i"),YBe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,hT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bK=e=>{let[t,o]=qBe(e);if(!t||GF())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(o&&o.startsWith("--")){let n=window.getComputedStyle(document.documentElement).getPropertyValue(o);return n||e}else{if(o&&hT.test(o))return bK(o);if(o)return o}return e},qBe=e=>{let t=hT.exec(e);if(!t)return[,];let[,o,r]=t;return[o,r]},jF,ZBe=(e,t,o,r,n)=>`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(r)}, ${n})`,gT=e=>{jF||(jF=Qd?new RegExp(`(${Object.keys(Qd).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>Yr(i).replace(hT,bK).replace(KBe,lK).replace(jF,lK)),o=t.map(i=>i.match(uT).map(Number)),n=o[0].map((i,s)=>o.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>Jd(UF({},e,{output:i})));return i=>{var s;let a=!cK.test(t[0])&&((s=t.find(u=>cK.test(u)))==null?void 0:s.replace(uT,"")),l=0;return t[0].replace(uT,()=>`${n[l++](i)}${a||""}`).replace(YBe,ZBe)}},yK="react-spring: ",vK=e=>{let t=e,o=!1;if(typeof t!="function")throw new TypeError(`${yK}once requires a function parameter`);return(...r)=>{o||(t(...r),o=!0)}},XBe=vK(console.warn);function kK(){XBe(`${yK}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ZZe=vK(console.warn);function Eb(e){return ue.str(e)&&(e[0]=="#"||/\d/.test(e)||!GF()&&hT.test(e)||e in(Qd||{}))}var m_=GF()?Bs.useEffect:Bs.useLayoutEffect,QBe=()=>{let e=(0,Bs.useRef)(!1);return m_(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function YF(){let e=(0,Bs.useState)()[1],t=QBe();return()=>{t.current&&e(Math.random())}}function SK(e,t){let[o]=(0,Bs.useState)(()=>({inputs:t,result:e()})),r=(0,Bs.useRef)(),n=r.current,i=n;return i?t&&i.inputs&&JBe(t,i.inputs)||(i={inputs:t,result:e()}):i=o,(0,Bs.useEffect)(()=>{r.current=i,n==o&&(o.inputs=o.result=void 0)},[i]),i.result}function JBe(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var qF=e=>(0,Bs.useEffect)(e,eRe),eRe=[];var x_=c(pe()),w_=c(pe());var CK=c(pe()),$c=c(pe()),p_=Symbol.for("Animated:node"),tRe=e=>!!e&&e[p_]===e,Ea=e=>e&&e[p_],kT=(e,t)=>uK(e,p_,t),h_=e=>e&&e[p_]&&e[p_].getPayload(),bT=class{constructor(){this.payload=void 0,kT(this,this)}getPayload(){return this.payload||[]}},Hp=class e extends bT{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,ue.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,o){return ue.num(t)&&(this.lastPosition=t,o&&(t=Math.round(t/o)*o,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,ue.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Up=class e extends Hp{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Jd({output:[t,t]})}static create(t){return new e(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(ue.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Jd({output:[this.getValue(),t]})),this._value=0,super.reset()}},yT={dependencies:null},Gp=class extends bT{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let o={};return Rs(this.source,(r,n)=>{tRe(r)?o[n]=r.getValue(t):Bn(r)?o[n]=Yr(r):t||(o[n]=r)}),o}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Kt(this.payload,t=>t.reset())}_makePayload(t){if(t){let o=new Set;return Rs(t,this._addToPayload,o),Array.from(o)}}_addToPayload(t){yT.dependencies&&Bn(t)&&yT.dependencies.add(t);let o=h_(t);o&&Kt(o,r=>this.add(r))}},ZF=class e extends Gp{constructor(t){super(t)}static create(t){return new e(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let o=this.getPayload();return t.length==o.length?o.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(oRe)),!0)}};function oRe(e){return(Eb(e)?Up:Hp).create(e)}function ST(e){let t=Ea(e);return t?t.constructor:ue.arr(e)?ZF:Eb(e)?Up:Hp}function vT(){return vT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},vT.apply(this,arguments)}var _K=(e,t)=>{let o=!ue.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,$c.forwardRef)((r,n)=>{let i=(0,$c.useRef)(null),s=o&&(0,$c.useCallback)(p=>{i.current=nRe(n,p)},[n]),[a,l]=rRe(r,t),u=YF(),d=()=>{let p=i.current;if(o&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},f=new XF(d,l),m=(0,$c.useRef)();m_(()=>(m.current=f,Kt(l,p=>ef(p,f)),()=>{m.current&&(Kt(m.current.deps,p=>tf(p,m.current)),Me.cancel(m.current.update))})),(0,$c.useEffect)(d,[]),qF(()=>()=>{let p=m.current;Kt(p.deps,g=>tf(g,p))});let h=t.getComponentProps(a.getValue());return CK.createElement(e,vT({},h,{ref:s}))})},XF=class{constructor(t,o){this.update=t,this.deps=o}eventObserved(t){t.type=="change"&&Me.write(this.update)}};function rRe(e,t){let o=new Set;return yT.dependencies=o,e.style&&(e=vT({},e,{style:t.createAnimatedStyle(e.style)})),e=new Gp(e),yT.dependencies=null,[e,o]}function nRe(e,t){return e&&(ue.fun(e)?e(t):e.current=t),t}var xK=Symbol.for("AnimatedComponent"),EK=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:o=n=>new Gp(n),getComponentProps:r=n=>n}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:o,getComponentProps:r},i=s=>{let a=wK(s)||"Anonymous";return ue.str(s)?s=i[s]||(i[s]=_K(s,n)):s=s[xK]||(s[xK]=_K(s,n)),s.displayName=`Animated(${a})`,s};return Rs(e,(s,a)=>{ue.arr(e)&&(a=wK(s)),i[a]=i(s)}),{animated:i}},wK=e=>ue.str(e)?e:e&&ue.str(e.displayName)?e.displayName:ue.fun(e)&&e.name||null;function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Rn.apply(this,arguments)}function Wp(e,...t){return ue.fun(e)?e(...t):e}var v_=(e,t)=>e===!0||!!(t&&e&&(ue.fun(e)?e(t):ri(e).includes(t))),VK=(e,t)=>ue.obj(e)?t&&e[t]:e,FK=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,iRe=e=>e,zK=(e,t=iRe)=>{let o=sRe;e.default&&e.default!==!0&&(e=e.default,o=Object.keys(e));let r={};for(let n of o){let i=t(e[n],n);ue.und(i)||(r[n]=i)}return r},sRe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],aRe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function lRe(e){let t={},o=0;if(Rs(e,(r,n)=>{aRe[n]||(t[n]=r,o++)}),o)return t}function jK(e){let t=lRe(e);if(t){let o={to:t};return Rs(e,(r,n)=>n in t||(o[n]=r)),o}return Rn({},e)}function k_(e){return e=Yr(e),ue.arr(e)?e.map(k_):Eb(e)?Fi.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function e4(e){return ue.fun(e)||ue.arr(e)&&ue.obj(e[0])}var cRe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},wT=1.70158,_T=wT*1.525,TK=wT+1,BK=2*Math.PI/3,RK=2*Math.PI/4.5,xT=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,uRe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>TK*e*e*e-wT*e*e,easeOutBack:e=>1+TK*Math.pow(e-1,3)+wT*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((_T+1)*2*e-_T)/2:(Math.pow(2*e-2,2)*((_T+1)*(e*2-2)+_T)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*BK),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*BK)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*RK))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*RK)/2+1,easeInBounce:e=>1-xT(1-e),easeOutBounce:xT,easeInOutBounce:e=>e<.5?(1-xT(1-2*e))/2:(1+xT(2*e-1))/2},t4=Rn({},cRe.default,{mass:1,damping:1,easing:uRe.linear,clamp:!1}),o4=class{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,t4)}};function dRe(e,t,o){o&&(o=Rn({},o),PK(o,t),t=Rn({},o,t)),PK(e,t),Object.assign(e,t);for(let s in t4)e[s]==null&&(e[s]=t4[s]);let{mass:r,frequency:n,damping:i}=e;return ue.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*r,e.friction=4*Math.PI*i*r/n),e}function PK(e,t){if(!ue.und(t.decay))e.duration=void 0;else{let o=!ue.und(t.tension)||!ue.und(t.friction);(o||!ue.und(t.frequency)||!ue.und(t.damping)||!ue.und(t.mass))&&(e.duration=void 0,e.decay=void 0),o&&(e.frequency=void 0)}}var IK=[],r4=class{constructor(){this.changed=!1,this.values=IK,this.toValues=null,this.fromValues=IK,this.to=void 0,this.from=void 0,this.config=new o4,this.immediate=!1}};function HK(e,{key:t,props:o,defaultProps:r,state:n,actions:i}){return new Promise((s,a)=>{var l;let u,d,f=v_((l=o.cancel)!=null?l:r?.cancel,t);if(f)p();else{ue.und(o.pause)||(n.paused=v_(o.pause,t));let g=r?.pause;g!==!0&&(g=n.paused||v_(g,t)),u=Wp(o.delay||0,t),g?(n.resumeQueue.add(h),i.pause()):(i.resume(),h())}function m(){n.resumeQueue.add(h),n.timeouts.delete(d),d.cancel(),u=d.time-Me.now()}function h(){u>0&&!Fi.skipAnimation?(n.delayed=!0,d=Me.setTimeout(p,u),n.pauseQueue.add(m),n.timeouts.add(d)):p()}function p(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(m),n.timeouts.delete(d),e<=(n.cancelId||0)&&(f=!0);try{i.start(Rn({},o,{callId:e,cancel:f}),s)}catch(g){a(g)}}})}var u4=(e,t)=>t.length==1?t[0]:t.some(o=>o.cancelled)?Tb(e.get()):t.every(o=>o.noop)?UK(e.get()):Ta(e.get(),t.every(o=>o.finished)),UK=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ta=(e,t,o=!1)=>({value:e,finished:t,cancelled:o}),Tb=e=>({value:e,cancelled:!0,finished:!1});function GK(e,t,o,r){let{callId:n,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=o;return!i&&e===a&&!t.reset?l:o.promise=(async()=>{o.asyncId=n,o.asyncTo=e;let u=zK(t,(b,v)=>v==="onRest"?void 0:b),d,f,m=new Promise((b,v)=>(d=b,f=v)),h=b=>{let v=n<=(o.cancelId||0)&&Tb(r)||n!==o.asyncId&&Ta(r,!1);if(v)throw b.result=v,f(b),b},p=(b,v)=>{let y=new CT,k=new ET;return(async()=>{if(Fi.skipAnimation)throw S_(o),k.result=Ta(r,!1),f(k),k;h(y);let S=ue.obj(b)?Rn({},b):Rn({},v,{to:b});S.parentId=n,Rs(u,(x,E)=>{ue.und(S[E])&&(S[E]=x)});let _=await r.start(S);return h(y),o.paused&&await new Promise(x=>{o.resumeQueue.add(x)}),_})()},g;if(Fi.skipAnimation)return S_(o),Ta(r,!1);try{let b;ue.arr(e)?b=(async v=>{for(let y of v)await p(y)})(e):b=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([b.then(d),m]),g=Ta(r.get(),!0,!1)}catch(b){if(b instanceof CT)g=b.result;else if(b instanceof ET)g=b.result;else throw b}finally{n==o.asyncId&&(o.asyncId=i,o.asyncTo=i?a:void 0,o.promise=i?l:void 0)}return ue.fun(s)&&Me.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function S_(e,t){xb(e.timeouts,o=>o.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var CT=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}},ET=class extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}},n4=e=>e instanceof __,fRe=1,__=class extends _b{constructor(...t){super(...t),this.id=fRe++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=Ea(this);return t&&t.getValue()}to(...t){return Fi.to(this,t)}interpolate(...t){return kK(),Fi.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,o=!1){jp(this,{type:"change",parent:this,value:t,idle:o})}_onPriorityChange(t){this.idle||Cb.sort(this),jp(this,{type:"priority",parent:this,priority:t})}},$p=Symbol.for("SpringPhase"),WK=1,i4=2,s4=4,QF=e=>(e[$p]&WK)>0,of=e=>(e[$p]&i4)>0,g_=e=>(e[$p]&s4)>0,OK=(e,t)=>t?e[$p]|=i4|WK:e[$p]&=~i4,AK=(e,t)=>t?e[$p]|=s4:e[$p]&=~s4,a4=class extends __{constructor(t,o){if(super(),this.key=void 0,this.animation=new r4,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ue.und(t)||!ue.und(o)){let r=ue.obj(t)?Rn({},t):Rn({},o,{from:t});ue.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(of(this)||this._state.asyncTo)||g_(this)}get goal(){return Yr(this.animation.to)}get velocity(){let t=Ea(this);return t instanceof Hp?t.lastVelocity||0:t.getPayload().map(o=>o.lastVelocity||0)}get hasAnimated(){return QF(this)}get isAnimating(){return of(this)}get isPaused(){return g_(this)}get isDelayed(){return this._state.delayed}advance(t){let o=!0,r=!1,n=this.animation,{config:i,toValues:s}=n,a=h_(n.to);!a&&Bn(n.to)&&(s=ri(Yr(n.to))),n.values.forEach((d,f)=>{if(d.done)return;let m=d.constructor==Up?1:a?a[f].lastPosition:s[f],h=n.immediate,p=m;if(!h){if(p=d.lastPosition,i.tension<=0){d.done=!0;return}let g=d.elapsedTime+=t,b=n.fromValues[f],v=d.v0!=null?d.v0:d.v0=ue.arr(i.velocity)?i.velocity[f]:i.velocity,y,k=i.precision||(b==m?.005:Math.min(1,Math.abs(m-b)*.001));if(ue.und(i.duration))if(i.decay){let S=i.decay===!0?.998:i.decay,_=Math.exp(-(1-S)*g);p=b+v/(1-S)*(1-_),h=Math.abs(d.lastPosition-p)<=k,y=v*_}else{y=d.lastVelocity==null?v:d.lastVelocity;let S=i.restVelocity||k/10,_=i.clamp?0:i.bounce,x=!ue.und(_),E=b==m?d.v0>0:b<m,T,R=!1,B=1,O=Math.ceil(t/B);for(let I=0;I<O&&(T=Math.abs(y)>S,!(!T&&(h=Math.abs(m-p)<=k,h)));++I){x&&(R=p==m||p>m==E,R&&(y=-y*_,p=m));let P=-i.tension*1e-6*(p-m),M=-i.friction*.001*y,L=(P+M)/i.mass;y=y+L*B,p=p+y*B}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,d.durationProgress>0&&(d.elapsedTime=i.duration*d.durationProgress,g=d.elapsedTime+=t)),S=(i.progress||0)+g/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),p=b+i.easing(S)*(m-b),y=(p-d.lastPosition)/t,h=S==1}d.lastVelocity=y,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}a&&!a[f].done&&(h=!1),h?d.done=!0:o=!1,d.setValue(p,i.round)&&(r=!0)});let l=Ea(this),u=l.getValue();if(o){let d=Yr(n.to);(u!==d||r)&&!i.decay?(l.setValue(d),this._onChange(d)):r&&i.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(t){return Me.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(of(this)){let{to:t,config:o}=this.animation;Me.batchedUpdates(()=>{this._onStart(),o.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,o){let r;return ue.und(t)?(r=this.queue||[],this.queue=[]):r=[ue.obj(t)?t:Rn({},o,{to:t})],Promise.all(r.map(n=>this._update(n))).then(n=>u4(this,n))}stop(t){let{to:o}=this.animation;return this._focus(this.get()),S_(this._state,t&&this._lastCallId),Me.batchedUpdates(()=>this._stop(o,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){let o=this.key||"",{to:r,from:n}=t;r=ue.obj(r)?r[o]:r,(r==null||e4(r))&&(r=void 0),n=ue.obj(n)?n[o]:n,n==null&&(n=void 0);let i={to:r,from:n};return QF(this)||(t.reverse&&([r,n]=[n,r]),n=Yr(n),ue.und(n)?Ea(this)||this._set(r):this._set(n)),i}_update(t,o){let r=Rn({},t),{key:n,defaultProps:i}=this;r.default&&Object.assign(i,zK(r,(l,u)=>/^on/.test(u)?VK(l,n):l)),MK(this,r,"onProps"),y_(this,"onProps",r,this);let s=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return HK(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{g_(this)||(AK(this,!0),wb(a.pauseQueue),y_(this,"onPause",Ta(this,b_(this,this.animation.to)),this))},resume:()=>{g_(this)&&(AK(this,!1),of(this)&&this._resume(),wb(a.resumeQueue),y_(this,"onResume",Ta(this,b_(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(r.loop&&l.finished&&!(o&&l.noop)){let u=$K(r);if(u)return this._update(u,!0)}return l})}_merge(t,o,r){if(o.cancel)return this.stop(!0),r(Tb(this));let n=!ue.und(t.to),i=!ue.und(t.from);if(n||i)if(o.callId>this._lastToId)this._lastToId=o.callId;else return r(Tb(this));let{key:s,defaultProps:a,animation:l}=this,{to:u,from:d}=l,{to:f=u,from:m=d}=t;i&&!n&&(!o.default||ue.und(f))&&(f=m),o.reverse&&([f,m]=[m,f]);let h=!Ol(m,d);h&&(l.from=m),m=Yr(m);let p=!Ol(f,u);p&&this._focus(f);let g=e4(o.to),{config:b}=l,{decay:v,velocity:y}=b;(n||i)&&(b.velocity=0),o.config&&!g&&dRe(b,Wp(o.config,s),o.config!==a.config?Wp(a.config,s):void 0);let k=Ea(this);if(!k||ue.und(f))return r(Ta(this,!0));let S=ue.und(o.reset)?i&&!o.default:!ue.und(m)&&v_(o.reset,s),_=S?m:this.get(),x=k_(f),E=ue.num(x)||ue.arr(x)||Eb(x),T=!g&&(!E||v_(a.immediate||o.immediate,s));if(p){let I=ST(f);if(I!==k.constructor)if(T)k=this._set(x);else throw Error(`Cannot animate between ${k.constructor.name} and ${I.name}, as the "to" prop suggests`)}let R=k.constructor,B=Bn(f),O=!1;if(!B){let I=S||!QF(this)&&h;(p||I)&&(O=Ol(k_(_),x),B=!O),(!Ol(l.immediate,T)&&!T||!Ol(b.decay,v)||!Ol(b.velocity,y))&&(B=!0)}if(O&&of(this)&&(l.changed&&!S?B=!0:B||this._stop(u)),!g&&((B||Bn(u))&&(l.values=k.getPayload(),l.toValues=Bn(f)?null:R==Up?[1]:ri(x)),l.immediate!=T&&(l.immediate=T,!T&&!S&&this._set(u)),B)){let{onRest:I}=l;Kt(mRe,M=>MK(this,o,M));let P=Ta(this,b_(this,u));wb(this._pendingCalls,P),this._pendingCalls.add(r),l.changed&&Me.batchedUpdates(()=>{l.changed=!S,I?.(P,this),S?Wp(a.onRest,P):l.onStart==null||l.onStart(P,this)})}S&&this._set(_),g?r(GK(o.to,o,this._state,this)):B?this._start():of(this)&&!p?this._pendingCalls.add(r):r(UK(_))}_focus(t){let o=this.animation;t!==o.to&&(KF(this)&&this._detach(),o.to=t,KF(this)&&this._attach())}_attach(){let t=0,{to:o}=this.animation;Bn(o)&&(ef(o,this),n4(o)&&(t=o.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;Bn(t)&&tf(t,this)}_set(t,o=!0){let r=Yr(t);if(!ue.und(r)){let n=Ea(this);if(!n||!Ol(r,n.getValue())){let i=ST(r);!n||n.constructor!=i?kT(this,i.create(r)):n.setValue(r),n&&Me.batchedUpdates(()=>{this._onChange(r,o)})}}return Ea(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,y_(this,"onStart",Ta(this,b_(this,t.to)),this))}_onChange(t,o){o||(this._onStart(),Wp(this.animation.onChange,t,this)),Wp(this.defaultProps.onChange,t,this),super._onChange(t,o)}_start(){let t=this.animation;Ea(this).reset(Yr(t.to)),t.immediate||(t.fromValues=t.values.map(o=>o.lastPosition)),of(this)||(OK(this,!0),g_(this)||this._resume())}_resume(){Fi.skipAnimation?this.finish():Cb.start(this)}_stop(t,o){if(of(this)){OK(this,!1);let r=this.animation;Kt(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),jp(this,{type:"idle",parent:this});let n=o?Tb(this.get()):Ta(this.get(),b_(this,t??r.to));wb(this._pendingCalls,n),r.changed&&(r.changed=!1,y_(this,"onRest",n,this))}}};function b_(e,t){let o=k_(t),r=k_(e.get());return Ol(r,o)}function $K(e,t=e.loop,o=e.to){let r=Wp(t);if(r){let n=r!==!0&&jK(r),i=(n||e).reverse,s=!n||n.reset;return l4(Rn({},e,{loop:t,default:!1,pause:void 0,to:!i||e4(o)?o:void 0,from:s?e.from:void 0,reset:s},n))}}function l4(e){let{to:t,from:o}=e=jK(e),r=new Set;return ue.obj(t)&&LK(t,r),ue.obj(o)&&LK(o,r),e.keys=r.size?Array.from(r):null,e}function LK(e,t){Rs(e,(o,r)=>o!=null&&t.add(r))}var mRe=["onStart","onRest","onChange","onPause","onResume"];function MK(e,t,o){e.animation[o]=t[o]!==FK(t,o)?VK(t[o],e.key):void 0}function y_(e,t,...o){var r,n,i,s;(r=(n=e.animation)[t])==null||r.call(n,...o),(i=(s=e.defaultProps)[t])==null||i.call(s,...o)}var pRe=["onStart","onChange","onRest"],hRe=1,TT=class{constructor(t,o){this.id=hRe++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),o&&(this._flush=o),t&&this.start(Rn({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((o,r)=>t[r]=o.get()),t}set(t){for(let o in t){let r=t[o];ue.und(r)||this.springs[o].set(r)}}update(t){return t&&this.queue.push(l4(t)),this}start(t){let{queue:o}=this;return t?o=ri(t).map(l4):this.queue=[],this._flush?this._flush(this,o):(YK(this,o),gRe(this,o))}stop(t,o){if(t!==!!t&&(o=t),o){let r=this.springs;Kt(ri(o),n=>r[n].stop(!!t))}else S_(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(ue.und(t))this.start({pause:!0});else{let o=this.springs;Kt(ri(t),r=>o[r].pause())}return this}resume(t){if(ue.und(t))this.start({pause:!1});else{let o=this.springs;Kt(ri(t),r=>o[r].resume())}return this}each(t){Rs(this.springs,t)}_onFrame(){let{onStart:t,onChange:o,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,xb(t,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));let s=!n&&this._started,a=i||s&&r.size?this.get():null;i&&o.size&&xb(o,([l,u])=>{u.value=a,l(u,this,this._item)}),s&&(this._started=!1,xb(r,([l,u])=>{u.value=a,l(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Me.onFrame(this._onFrame)}};function gRe(e,t){return Promise.all(t.map(o=>KK(e,o))).then(o=>u4(e,o))}async function KK(e,t,o){let{keys:r,to:n,from:i,loop:s,onRest:a,onResolve:l}=t,u=ue.obj(t.default)&&t.default;s&&(t.loop=!1),n===!1&&(t.to=null),i===!1&&(t.from=null);let d=ue.arr(n)||ue.fun(n)?n:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Kt(pRe,g=>{let b=t[g];if(ue.fun(b)){let v=e._events[g];t[g]=({finished:y,cancelled:k})=>{let S=v.get(b);S?(y||(S.finished=!1),k&&(S.cancelled=!0)):v.set(b,{value:null,finished:y||!1,cancelled:k||!1})},u&&(u[g]=t[g])}});let f=e._state;t.pause===!f.paused?(f.paused=t.pause,wb(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let m=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||FK(t,"cancel")===!0;(d||h&&f.asyncId)&&m.push(HK(++e._lastAsyncId,{props:t,state:f,actions:{pause:mT,resume:mT,start(g,b){h?(S_(f,e._lastAsyncId),b(Tb(e))):(g.onRest=a,b(GK(d,g,f,e)))}}})),f.paused&&await new Promise(g=>{f.resumeQueue.add(g)});let p=u4(e,await Promise.all(m));if(s&&p.finished&&!(o&&p.noop)){let g=$K(t,s,n);if(g)return YK(e,[g]),KK(e,g,!0)}return l&&Me.batchedUpdates(()=>l(p,e,e.item)),p}function bRe(e,t){let o=new a4;return o.key=e,t&&ef(o,t),o}function yRe(e,t,o){t.keys&&Kt(t.keys,r=>{(e[r]||(e[r]=o(r)))._prepareNode(t)})}function YK(e,t){Kt(t,o=>{yRe(e.springs,o,r=>bRe(r,e))})}function vRe(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var kRe=["children"],d4=e=>{let{children:t}=e,o=vRe(e,kRe),r=(0,w_.useContext)(BT),n=o.pause||!!r.pause,i=o.immediate||!!r.immediate;o=SK(()=>({pause:n,immediate:i}),[n,i]);let{Provider:s}=BT;return x_.createElement(s,{value:o},t)},BT=SRe(d4,{});d4.Provider=BT.Provider;d4.Consumer=BT.Consumer;function SRe(e,t){return Object.assign(e,x_.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var NK;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(NK||(NK={}));var c4=class extends __{constructor(t,o){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Jd(...o);let r=this._get(),n=ST(r);kT(this,n.create(r))}advance(t){let o=this._get(),r=this.get();Ol(o,r)||(Ea(this).setValue(o),this._onChange(o,this.idle)),!this.idle&&DK(this._active)&&JF(this)}_get(){let t=ue.arr(this.source)?this.source.map(Yr):ri(Yr(this.source));return this.calc(...t)}_start(){this.idle&&!DK(this._active)&&(this.idle=!1,Kt(h_(this),t=>{t.done=!1}),Fi.skipAnimation?(Me.batchedUpdates(()=>this.advance()),JF(this)):Cb.start(this))}_attach(){let t=1;Kt(ri(this.source),o=>{Bn(o)&&ef(o,this),n4(o)&&(o.idle||this._active.add(o),t=Math.max(t,o.priority+1))}),this.priority=t,this._start()}_detach(){Kt(ri(this.source),t=>{Bn(t)&&tf(t,this)}),this._active.clear(),JF(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=ri(this.source).reduce((o,r)=>Math.max(o,(n4(r)?r.priority:0)+1),0))}};function _Re(e){return e.idle!==!1}function DK(e){return!e.size||Array.from(e).every(_Re)}function JF(e){e.idle||(e.idle=!0,Kt(h_(e),t=>{t.done=!0}),jp(e,{type:"idle",parent:e}))}Fi.assign({createStringInterpolator:gT,to:(e,t)=>new c4(e,t)});var sXe=Cb.advance;var XK=c(Kc());function h4(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var xRe=["style","children","scrollTop","scrollLeft"],QK=/^--/;function wRe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!QK.test(e)&&!(C_.hasOwnProperty(e)&&C_[e])?t+"px":(""+t).trim()}var ZK={};function CRe(e,t){if(!e.nodeType||!e.setAttribute)return!1;let o=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:n,children:i,scrollTop:s,scrollLeft:a}=r,l=h4(r,xRe),u=Object.values(l),d=Object.keys(l).map(f=>o||e.hasAttribute(f)?f:ZK[f]||(ZK[f]=f.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));i!==void 0&&(e.textContent=i);for(let f in n)if(n.hasOwnProperty(f)){let m=wRe(f,n[f]);QK.test(f)?e.style.setProperty(f,m):e.style[f]=m}d.forEach((f,m)=>{e.setAttribute(f,u[m])}),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a)}var C_={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ERe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),TRe=["Webkit","Ms","Moz","O"];C_=Object.keys(C_).reduce((e,t)=>(TRe.forEach(o=>e[ERe(o,t)]=e[t]),e),C_);var BRe=["x","y","z"],RRe=/^(matrix|translate|scale|rotate|skew)/,PRe=/^(translate)/,IRe=/^(rotate|skew)/,f4=(e,t)=>ue.num(e)&&e!==0?e+t:e,RT=(e,t)=>ue.arr(e)?e.every(o=>RT(o,t)):ue.num(e)?e===t:parseFloat(e)===t,m4=class extends Gp{constructor(t){let{x:o,y:r,z:n}=t,i=h4(t,BRe),s=[],a=[];(o||r||n)&&(s.push([o||0,r||0,n||0]),a.push(l=>[`translate3d(${l.map(u=>f4(u,"px")).join(",")})`,RT(l,0)])),Rs(i,(l,u)=>{if(u==="transform")s.push([l||""]),a.push(d=>[d,d===""]);else if(RRe.test(u)){if(delete i[u],ue.und(l))return;let d=PRe.test(u)?"px":IRe.test(u)?"deg":"";s.push(ri(l)),a.push(u==="rotate3d"?([f,m,h,p])=>[`rotate3d(${f},${m},${h},${f4(p,d)})`,RT(p,0)]:f=>[`${u}(${f.map(m=>f4(m,d)).join(",")})`,RT(f,u.startsWith("scale")?1:0)])}}),s.length&&(i.transform=new p4(s,a)),super(i)}},p4=class extends _b{constructor(t,o){super(),this._value=null,this.inputs=t,this.transforms=o}get(){return this._value||(this._value=this._get())}_get(){let t="",o=!0;return Kt(this.inputs,(r,n)=>{let i=Yr(r[0]),[s,a]=this.transforms[n](ue.arr(i)?i:r.map(Yr));t+=" "+s,o=o&&a}),o?"none":t}observerAdded(t){t==1&&Kt(this.inputs,o=>Kt(o,r=>Bn(r)&&ef(r,this)))}observerRemoved(t){t==0&&Kt(this.inputs,o=>Kt(o,r=>Bn(r)&&tf(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),jp(this,t)}},ORe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ARe=["scrollTop","scrollLeft"];Fi.assign({batchedUpdates:XK.unstable_batchedUpdates,createStringInterpolator:gT,colors:hK});var LRe=EK(ORe,{applyAnimatedValues:CRe,createAnimatedStyle:e=>new m4(e),getComponentProps:e=>h4(e,ARe)}),JK=LRe.animated;var Bb=c(A(),1),tY=c(at(),1),oY=c(G(),1);var MRe=200;function eY(e){return{top:e.offsetTop,left:e.offsetLeft}}function NRe({triggerAnimationOnChange:e,clientId:t}){let o=(0,Bb.useRef)(),{isTyping:r,getGlobalBlockCount:n,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:a,isAncestorMultiSelected:l,isDraggingBlocks:u}=(0,oY.useSelect)(w),{previous:d,prevRect:f}=(0,Bb.useMemo)(()=>({previous:o.current&&eY(o.current),prevRect:o.current&&o.current.getBoundingClientRect()}),[e]);return(0,Bb.useLayoutEffect)(()=>{if(!d||!o.current)return;let m=(0,tY.getScrollContainer)(o.current),h=i(t),p=h||s(t),g=u();function b(){if(!g&&p&&f){let R=o.current.getBoundingClientRect().top-f.top;R&&(m.scrollTop+=R)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||r()||n()>MRe){b();return}let y=h||a(t)||l(t);if(y&&g)return;let k=y?"1":"",S=new TT({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:T}){if(!o.current)return;let{x:R,y:B}=T;R=Math.round(R),B=Math.round(B);let O=R===0&&B===0;o.current.style.transformOrigin="center center",o.current.style.transform=O?null:`translate3d(${R}px,${B}px,0)`,o.current.style.zIndex=k,b()}});o.current.style.transform=void 0;let _=eY(o.current),x=Math.round(d.left-_.left),E=Math.round(d.top-_.top);return S.start({x:0,y:0,from:{x,y:E}}),()=>{S.stop(),S.set({x:0,y:0})}},[d,f,t,r,n,i,s,a,l,u]),o}var PT=NRe;var OT=c(A(),1),Yc=c(at(),1),nY=c(G(),1);var IT=".block-editor-block-list__block",DRe=".block-list-appender",VRe=".block-editor-button-block-appender";function rY(e,t){return e.closest(IT)===t.closest(IT)}function Al(e,t){return t.closest([IT,DRe,VRe].join(","))===e}function Ps(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;let o=e.closest(IT);if(o)return o.id.slice(6)}function g4(e,t){let o=Math.min(e.left,t.left),r=Math.max(e.right,t.right),n=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(o,i,r-o,n-i)}function FRe(e){let t=e.ownerDocument.defaultView;if(!t||e.hasAttribute("data-visually-hidden"))return!1;let o=e.getBoundingClientRect();if(o.width===0||o.height===0)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});let r=t.getComputedStyle(e);return!(r.display==="none"||r.visibility==="hidden"||r.opacity==="0")}function zRe(e){let t=window.getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}var jRe=["core/navigation"];function Rb(e){let t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let o=e.getBoundingClientRect(),r=e.getAttribute("data-type");if(r&&jRe.includes(r)){let s=[e],a;for(;a=s.pop();)if(!zRe(a)){for(let l of a.children)if(FRe(l)){let u=l.getBoundingClientRect();o=g4(o,u),s.push(l)}}}let n=Math.max(o.left,0),i=Math.min(o.right,t.innerWidth);return o=new window.DOMRectReadOnly(n,o.top,i-n,o.height),o}function iY({clientId:e,initialPosition:t}){let o=(0,OT.useRef)(),{isBlockSelected:r,isMultiSelecting:n,isZoomOut:i}=H((0,nY.useSelect)(w));return(0,OT.useEffect)(()=>{if(!r(e)||n()||i()||t==null||!o.current)return;let{ownerDocument:s}=o.current;if(Al(o.current,s.activeElement))return;let a=Yc.focus.tabbable.find(o.current).filter(d=>(0,Yc.isTextField)(d)),l=t===-1,u=a[l?a.length-1:0]||o.current;if(!Al(o.current,u)){o.current.focus();return}if(!o.current.getAttribute("contenteditable")){let d=Yc.focus.tabbable.findNext(o.current);if(d&&Al(o.current,d)&&(0,Yc.isFormElement)(d)){d.focus();return}}(0,Yc.placeCaretAtHorizontalEdge)(u,l)},[t,e]),o}var AT=c(oe(),1);var{subscribeDelegatedListener:sY}=H(AT.privateApis);function aY({isEnabled:e=!0}={}){return(0,AT.useRefEffect)(t=>{if(!e)return;function o(i){i.defaultPrevented||(i.preventDefault(),t.classList.toggle("is-hovered",i.type==="mouseover"))}let r=sY(t,"mouseout",o),n=sY(t,"mouseover",o);return()=>{r(),n(),t.classList.remove("is-hovered")}},[e])}var LT=c(G(),1),MT=c(oe(),1);var{subscribeDelegatedListener:HRe}=H(MT.privateApis);function lY(e){let{isBlockSelected:t}=(0,LT.useSelect)(w),{selectBlock:o,selectionChange:r}=(0,LT.useDispatch)(w);return(0,MT.useRefEffect)(n=>{function i(s){if(!n.parentElement.closest('[contenteditable="true"]')){if(t(e)){s.target.isContentEditable||r(e);return}Al(n,s.target)&&o(e)}}return HRe(n,"focusin",i)},[t,o])}var Pb=c(Q(),1),uY=c(at(),1),rf=c(Bt(),1),NT=c(G(),1),dY=c(oe(),1);function cY(e){return!e||e==="transparent"||e==="rgba(0, 0, 0, 0)"}function fY({clientId:e,isSelected:t}){let{getBlockRootClientId:o,isZoomOut:r,hasMultiSelection:n,isSectionBlock:i,editedContentOnlySection:s,getBlock:a}=H((0,NT.useSelect)(w)),{insertAfterBlock:l,removeBlock:u,resetZoomLevel:d,startDraggingBlocks:f,stopDraggingBlocks:m,editContentOnlySection:h}=H((0,NT.useDispatch)(w));return(0,dY.useRefEffect)(p=>{if(!t)return;function g(y){let{keyCode:k,target:S}=y;k!==rf.ENTER&&k!==rf.BACKSPACE&&k!==rf.DELETE||S!==p||(0,uY.isTextField)(S)||(y.preventDefault(),k===rf.ENTER&&r()?d():k===rf.ENTER?l(e):u(e))}function b(y){if(p!==y.target||p.isContentEditable||p.ownerDocument.activeElement!==p||n()){y.preventDefault();return}let k=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:o(e)});y.dataTransfer.effectAllowed="move",y.dataTransfer.clearData(),y.dataTransfer.setData("wp-blocks",k);let{ownerDocument:S}=p,{defaultView:_}=S;_.getSelection().removeAllRanges();let E=S.createElement("div");E.style.width="1px",E.style.height="1px",E.style.position="fixed",E.style.visibility="hidden",S.body.appendChild(E),y.dataTransfer.setDragImage(E,0,0);let T=p.getBoundingClientRect(),R=p.id,B=p.cloneNode();B.style.display="none",p.id=null,p.after(B);let O=1;{let Z=p;for(;Z=Z.parentElement;){let{scale:q}=_.getComputedStyle(Z);if(q&&q!=="none"){O=parseFloat(q);break}}}let I=1/O,P={};for(let Z of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])P[Z]=p.style[Z];let M=_.scrollY,L=_.scrollX,j=y.clientX,V=y.clientY;p.style.position="relative",p.style.top="0px",p.style.left="0px";let D=y.clientX-T.left,z=y.clientY-T.top,W=T.height>200?200/T.height:1;if(p.style.zIndex="1000",p.style.transformOrigin=`${D*I}px ${z*I}px`,p.style.transition="transform 0.2s ease-out",p.style.transform=`scale(${W})`,p.style.opacity="0.9",cY(_.getComputedStyle(p).backgroundColor)){let Z="transparent",q=p;for(;q=q.parentElement;){let{backgroundColor:J}=_.getComputedStyle(q);if(!cY(J)){Z=J;break}}p.style.backgroundColor=Z}let K=!1,ne=j,X=V;function ee(Z){Z.clientX===ne&&Z.clientY===X||(ne=Z.clientX,X=Z.clientY,Y())}function Y(){K||(K=!0,p.style.pointerEvents="none");let Z=X-V,q=ne-j,J=_.scrollY,re=_.scrollX,ie=J-M,ce=re-L,_e=Z+ie,ae=q+ce;p.style.top=`${_e*I}px`,p.style.left=`${ae*I}px`}function $(){S.removeEventListener("dragover",ee),S.removeEventListener("dragend",$),S.removeEventListener("drop",$),S.removeEventListener("scroll",Y);for(let[Z,q]of Object.entries(P))p.style[Z]=q;B.remove(),p.id=R,E.remove(),m(),document.body.classList.remove("is-dragging-components-draggable"),S.documentElement.classList.remove("is-dragging")}S.addEventListener("dragover",ee),S.addEventListener("dragend",$),S.addEventListener("drop",$),S.addEventListener("scroll",Y),f([e]),document.body.classList.add("is-dragging-components-draggable"),S.documentElement.classList.add("is-dragging")}p.addEventListener("keydown",g),p.addEventListener("dragstart",b);function v(y){let k=i(e),S=a(e),_=(0,Pb.isReusableBlock)(S),x=(0,Pb.isTemplatePart)(S);!k||s===e||_||x||(y.preventDefault(),h(e))}return p.addEventListener("dblclick",v),()=>{p.removeEventListener("keydown",g),p.removeEventListener("dragstart",b),p.removeEventListener("dblclick",v)}},[e,t,o,a,Pb.isReusableBlock,Pb.isTemplatePart,l,u,r,d,n,f,m,i,s,h])}var mY=c(oe(),1),pY=c(A(),1);function hY(){let e=(0,pY.useContext)(DT);return(0,mY.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}var VT=c(oe(),1);function gY({isSelected:e}){let t=(0,VT.useReducedMotion)();return(0,VT.useRefEffect)(o=>{if(e){let{ownerDocument:r}=o,{defaultView:n}=r;if(!n.IntersectionObserver)return;let i=new n.IntersectionObserver(s=>{s[0].isIntersecting||o.scrollIntoView({behavior:t?"instant":"smooth"}),i.disconnect()});return i.observe(o),()=>{i.disconnect()}}},[e])}var bY=c(oe(),1),yY=c(G(),1);function FT({clientId:e="",isEnabled:t=!0}={}){let{getEnabledClientIdsTree:o}=H((0,yY.useSelect)(w));return(0,bY.useRefEffect)(r=>{if(!t)return;let n=()=>{o(e).forEach(({clientId:s})=>{let a=r.querySelector(`[data-block="${s}"]`);a&&(a.classList.remove("has-editable-outline"),a.offsetWidth,a.classList.add("has-editable-outline"))})},i=s=>{(s.target===r||s.target.classList.contains("is-root-container"))&&(s.defaultPrevented||(s.preventDefault(),n()))};return r.addEventListener("click",i),()=>r.removeEventListener("click",i)},[t])}var vY=c(oe(),1),E_=new Map;function URe(e,t){let o=E_.get(e);o||(o=new Set,E_.set(e,o),e.addEventListener("pointerdown",SY)),o.add(t)}function GRe(e,t){let o=E_.get(e);o&&(o.delete(t),kY(t),o.size===0&&(E_.delete(e),e.removeEventListener("pointerdown",SY)))}function kY(e){let t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),t==="true"&&!e.getAttribute("draggable")&&e.setAttribute("draggable","true"))}function SY(e){let{target:t}=e,{ownerDocument:o,isContentEditable:r,tagName:n}=t,i=["INPUT","TEXTAREA"].includes(n),s=E_.get(o);if(r||i)for(let a of s)a.getAttribute("draggable")==="true"&&a.contains(t)&&(a.removeAttribute("draggable"),a.setAttribute("data-draggable","true"));else for(let a of s)kY(a)}function _Y(){return(0,vY.useRefEffect)(e=>(URe(e.ownerDocument,e),()=>{GRe(e.ownerDocument,e)}),[])}var Ho=c(F(),1),ni=c(A(),1),Pn=c(N(),1),Ib=c(G(),1),EY=c(Ba(),1),TY=c(Ni(),1);var T_=c(F(),1);function WRe(e,t){if(!e)return!1;let o=e.attributes?.metadata?.blockVisibility;if(o===!0||typeof o!="object")return!1;let r=o.viewport;return!r||typeof r!="object"||!Id.some(([,{key:n}])=>n===t)?!1:r[t]===!1}function wY(e,t){if(!e?.length)return!1;let o=e.filter(r=>WRe(r,t)).length;return o===0?!1:o===e.length?!0:null}function CY(e){if(!e?.length)return!1;let t=e.filter(o=>o&&o.attributes?.metadata?.blockVisibility===!1).length;return t===0?!1:t===e.length?!0:null}function B_(e){if(!e&&e!==!1)return null;if(e===!1)return(0,T_.__)("Block is hidden");if(e?.viewport){let t=Id.filter(([o])=>e.viewport?.[o]===!1).map(([,o])=>o.label);if(t.length>0)return(0,T_.sprintf)((0,T_.__)("Block is hidden on %s"),t.join(", "))}return null}var Io=c(C(),1),$Re={[oo.mobile.key]:!1,[oo.tablet.key]:!1,[oo.desktop.key]:!1},KRe=[];function b4({clientIds:e,onClose:t}){let{createSuccessNotice:o}=(0,Ib.useDispatch)(TY.store),{updateBlockAttributes:r}=(0,Ib.useDispatch)(w),n=(0,Ib.useSelect)(y=>y(w).getBlocksByClientId(e)??KRe,[e]),i=(0,Ib.useSelect)(y=>y(EY.store).getShortcutRepresentation("core/editor/toggle-list-view"),[]),s=(0,ni.useMemo)(()=>{if(n?.length===0)return{hideEverywhere:!1,viewportChecked:{}};let y={};return Id.forEach(([,{key:k}])=>{y[k]=wY(n,k)}),{hideEverywhere:CY(n),viewportChecked:y}},[n]),[a,l]=(0,ni.useState)(s?.viewportChecked??{}),[u,d]=(0,ni.useState)(s?.hideEverywhere??!1),f=(0,ni.useCallback)((y,k)=>{l({...a,[y]:k})},[a]),m=(0,ni.useMemo)(()=>{if(!u)return(0,Ho.sprintf)((0,Ho.__)("Block visibility settings updated. You can access them via the List View (%s)."),i);let y=n?.length>1?(0,Ho.__)("Blocks hidden. You can access them via the List View (%s)."):(0,Ho.__)("Block hidden. You can access it via the List View (%s).");return(0,Ho.sprintf)(y,i)},[u,n?.length,i]),h=(0,ni.useMemo)(()=>Object.values(a).some(y=>y===!0||y===null),[a]),p=(0,ni.useMemo)(()=>u!==s.hideEverywhere?!0:Id.some(([,{key:y}])=>a[y]!==s.viewportChecked[y]),[u,a,s]),g=(0,ni.useMemo)(()=>u===null?!0:Object.values(a).some(y=>y===null),[u,a]),b=(0,ni.useCallback)(y=>{y.preventDefault();let k=u?!1:{viewport:Id.reduce((_,[,{key:x}])=>(a[x]&&(_[x]=!1),_),{})},S=Object.fromEntries(n.map(({clientId:_,attributes:x})=>[_,{metadata:ye({...x?.metadata,blockVisibility:k})}]));r(e,S,{uniqueByBlock:!0}),o(m,{id:u?"block-visibility-hidden":"block-visibility-viewports-updated",type:"snackbar"}),t()},[n,e,o,u,m,t,r,a]),v=n?.length>1;return(0,Io.jsx)(Pn.Modal,{title:e?.length>1?(0,Ho.__)("Hide blocks"):(0,Ho.__)("Hide block"),onRequestClose:t,overlayClassName:"block-editor-block-visibility-modal",size:"small",children:(0,Io.jsxs)("form",{onSubmit:b,children:[(0,Io.jsxs)("fieldset",{children:[(0,Io.jsx)("legend",{children:v?(0,Ho.__)("Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."):(0,Ho.__)("Select the viewport size for which you want to hide the block.")}),(0,Io.jsx)("ul",{className:"block-editor-block-visibility-modal__options",children:(0,Io.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere",children:[(0,Io.jsx)(Pn.CheckboxControl,{className:"block-editor-block-visibility-modal__options-checkbox--everywhere",label:(0,Ho.__)("Omit from published content"),checked:u===!0,indeterminate:u===null,onChange:y=>{d(y),l($Re)}}),u!==!0&&(0,Io.jsx)("ul",{className:"block-editor-block-visibility-modal__sub-options",children:Id.map(([,{label:y,icon:k,key:S}])=>(0,Io.jsxs)("li",{className:"block-editor-block-visibility-modal__options-item",children:[(0,Io.jsx)(Pn.CheckboxControl,{label:(0,Ho.sprintf)((0,Ho.__)("Hide on %s"),y),checked:a[S]??!1,indeterminate:a[S]===null,onChange:_=>f(S,_)}),(0,Io.jsx)(Pn.Icon,{icon:k,className:U({"block-editor-block-visibility-modal__options-icon--checked":a[S]})})]},S))})]})}),v&&g&&(0,Io.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Ho.__)("Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ.")}),!v&&u===!0&&(0,Io.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,Ho.sprintf)((0,Ho.__)("Block will be hidden in the editor, and omitted from the published markup on the frontend. You can configure it again by selecting it in the List View (%s)."),i)}),!v&&!u&&h&&(0,Io.jsx)("p",{className:"block-editor-block-visibility-modal__description",children:(0,ni.createInterpolateElement)((0,Ho.sprintf)((0,Ho.__)("Block will be hidden according to the selected viewports. It will be <strong>included in the published markup on the frontend</strong>. You can configure it again by selecting it in the List View (%s)."),i),{strong:(0,Io.jsx)("strong",{})})})]}),(0,Io.jsxs)(Pn.Flex,{className:"block-editor-block-visibility-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Io.jsx)(Pn.FlexItem,{children:(0,Io.jsx)(Pn.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Ho.__)("Cancel")})}),(0,Io.jsx)(Pn.FlexItem,{children:(0,Io.jsx)(Pn.Button,{variant:"primary",type:"submit",disabled:!p,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Ho.__)("Apply")})})]})]})})}var y4=c(oe(),1);function Is(e={}){let{blockVisibility:t=void 0,deviceType:o=oo.desktop.key,view:r=window}=e,n=(0,y4.useViewportMatch)("mobile",">=",r),i=(0,y4.useViewportMatch)("medium",">=",r),s;return o===oo.mobile.key?s=oo.mobile.key:o===oo.tablet.key?s=oo.tablet.key:n?n&&!i?s=oo.tablet.key:s=oo.desktop.key:s=oo.mobile.key,{isBlockCurrentlyHidden:t===!1||t?.viewport?.[s]===!1,currentViewport:s}}var v4=c(F(),1),zT=c(N(),1),jT=c(A(),1);var BY=c(Q(),1),HT=c(G(),1);var k4=c(C(),1);function S4({clientIds:e}){let t=(0,jT.useRef)(!1),{canToggleBlockVisibility:o,areBlocksHiddenAnywhere:r}=(0,HT.useSelect)(s=>{let{getBlocksByClientId:a,getBlockName:l,isBlockHiddenAnywhere:u}=H(s(w));return{canToggleBlockVisibility:a(e).every(({clientId:f})=>(0,BY.hasBlockSupport)(l(f),"visibility",!0)),areBlocksHiddenAnywhere:e?.every(f=>u(f))}},[e]),n=(0,HT.useDispatch)(w);if((0,jT.useEffect)(()=>{r&&(t.current=!0)},[r]),!r&&!t.current)return null;let{showViewportModal:i}=H(n);return(0,k4.jsx)(zT.ToolbarGroup,{className:"block-editor-block-visibility-toolbar",children:(0,k4.jsx)(zT.ToolbarButton,{disabled:!o,icon:r?ba:Ep,label:r?(0,v4.__)("Hidden"):(0,v4.__)("Visible"),onClick:()=>i(e),"aria-haspopup":"dialog"})})}var _4=c(F(),1),RY=c(N(),1),UT=c(G(),1),PY=c(Ba(),1);var IY=c(C(),1);function x4({clientIds:e}){let{areBlocksHiddenAnywhere:t,shortcut:o}=(0,UT.useSelect)(n=>{let{isBlockHiddenAnywhere:i}=H(n(w));return{areBlocksHiddenAnywhere:e?.every(s=>i(s)),shortcut:n(PY.store).getShortcutRepresentation("core/block-editor/toggle-block-visibility")}},[e]),{showViewportModal:r}=H((0,UT.useDispatch)(w));return(0,IY.jsx)(RY.MenuItem,{onClick:()=>r(e),shortcut:o,children:t?(0,_4.__)("Show"):(0,_4.__)("Hide")})}var sf=c(N(),1),w4=c(G(),1),nf=c(F(),1);var Ob=c(C(),1),{Badge:YRe}=H(sf.privateApis),qRe={currentBlockVisibility:void 0,hasParentHiddenEverywhere:!1,selectedDeviceType:oo.desktop.key};function OY({clientId:e}){let{currentBlockVisibility:t,selectedDeviceType:o,hasParentHiddenEverywhere:r}=(0,w4.useSelect)(f=>{if(!e)return qRe;let{getBlockAttributes:m,isBlockParentHiddenEverywhere:h,getSettings:p}=H(f(w));return{currentBlockVisibility:m(e)?.metadata?.blockVisibility,selectedDeviceType:p()?.[bs]?.toLowerCase()||oo.desktop.key,hasParentHiddenEverywhere:h(e)}},[e]),i=Rt(e)?.ownerDocument?.defaultView,s=i===null?void 0:i,{isBlockCurrentlyHidden:a,currentViewport:l}=Is({blockVisibility:t,deviceType:o,view:s}),u=(0,w4.useSelect)(f=>!e||!l?!1:H(f(w)).isBlockParentHiddenAtViewport(e,l),[e,l]);if(!(a||r||u))return null;let d;if(a)if(t===!1)d=(0,nf.__)("Block is hidden");else{let f=oo[l]?.label||l;d=(0,nf.sprintf)((0,nf.__)("Block is hidden on %s"),f)}if(r)d=(0,nf.__)("Parent block is hidden");else if(u){let f=oo[l]?.label||l;d=(0,nf.sprintf)((0,nf.__)("Parent block is hidden on %s"),f)}return(0,Ob.jsx)(YRe,{className:"block-editor-block-visibility-info",children:(0,Ob.jsxs)(sf.__experimentalHStack,{spacing:2,justify:"start",children:[(0,Ob.jsx)(sf.Icon,{icon:ba}),(0,Ob.jsx)(sf.__experimentalText,{children:d})]})})}function R_(e={},{__unstableIsHtml:t}={}){let{clientId:o,className:r,wrapperProps:n={},isAligned:i,index:s,mode:a,name:l,blockApiVersion:u,blockTitle:d,isSelected:f,isSubtreeDisabled:m,hasOverlay:h,initialPosition:p,blockEditingMode:g,isHighlighted:b,isMultiSelected:v,isPartiallySelected:y,isReusable:k,isDragging:S,hasChildSelected:_,isEditingDisabled:x,hasEditableOutline:E,isEditingContentOnlySection:T,defaultClassName:R,isSectionBlock:B,isWithinSectionBlock:O,canMove:I,blockVisibility:P,deviceType:M}=(0,AY.useContext)(Hr),L=(0,Ab.useRefEffect)($=>{if($){let{ownerDocument:Z}=$,{defaultView:q}=Z;L.current=q}},[]),j=(0,GT.sprintf)((0,GT.__)("Block: %s"),d),V=a==="html"&&!t?"-visual":"",D=_Y(),z=!O,W=(0,Ab.useMergeRefs)([e.ref,L,iY({clientId:o,initialPosition:p}),l$(o),lY(o),fY({clientId:o,isSelected:f}),aY({isEnabled:z}),hY(),PT({triggerAnimationOnChange:s,clientId:o}),(0,Ab.useDisabled)({isDisabled:!h}),FT({clientId:o,isEnabled:B}),gY({isSelected:f}),I?D:void 0]),K=Xe(),X=!!K[Fg]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{},{isBlockCurrentlyHidden:ee}=Is({blockVisibility:P,deviceType:M,view:L.current});u<2&&o===K.clientId&&(0,MY.default)(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let Y=!1;return(n?.style?.marginTop?.charAt(0)==="-"||n?.style?.marginBottom?.charAt(0)==="-"||n?.style?.marginLeft?.charAt(0)==="-"||n?.style?.marginRight?.charAt(0)==="-")&&(Y=!0),{tabIndex:g==="disabled"?-1:0,draggable:I&&!_?!0:void 0,...n,...e,ref:W,id:`block-${o}${V}`,role:"document","aria-label":j,"data-block":o,"data-type":l,"data-title":d,inert:m?"true":void 0,className:U("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":h,"is-selected":f,"is-highlighted":b,"is-multi-selected":v,"is-partially-selected":y,"is-reusable":k,"is-dragging":S,"has-child-selected":_,"is-editing-disabled":x,"has-editable-outline":E,"has-negative-margin":Y,"is-editing-content-only-section":T,"is-block-hidden":ee},r,e.className,n.className,R),style:{...n.style,...e.style,...X}}}R_.save=LY.__unstableGetBlockProps;var Uo=c(C(),1);function ZRe(e,t){let o={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(o.className=U(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(o.style={...e.style,...t.style}),o}function WT({children:e,isHtml:t,...o}){return(0,Uo.jsx)("div",{...R_(o,{__unstableIsHtml:t}),children:e})}function C4({block:{__unstableBlockSource:e},mode:t,isLocked:o,canRemove:r,clientId:n,isSelected:i,isSelectionEnabled:s,className:a,__unstableLayoutClassNames:l,name:u,isValid:d,attributes:f,wrapperProps:m,setAttributes:h,onReplace:p,onRemove:g,onInsertBlocksAfter:b,onMerge:v,toggleSelection:y}){let{mayDisplayControls:k,mayDisplayParentControls:S,isSelectionWithinCurrentSection:_,themeSupportsLayout:x,...E}=(0,af.useContext)(Hr),T=Lp()||{},R=(0,Uo.jsx)(SE,{name:u,isSelected:i,attributes:f,setAttributes:h,insertBlocksAfter:o?void 0:b,onReplace:r?p:void 0,onRemove:r?g:void 0,mergeBlocks:r?v:void 0,clientId:n,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(T).length?T:void 0,mayDisplayControls:k,mayDisplayParentControls:S,mayDisplayPatternEditingControls:_,blockEditingMode:E.blockEditingMode,isPreviewMode:E.isPreviewMode}),B=(0,vt.getBlockType)(u);B?.getEditWrapperProps&&(m=ZRe(m,B.getEditWrapperProps(f)));let O=m&&!!m["data-align"]&&!x,I=a?.includes("is-position-sticky");O&&(R=(0,Uo.jsx)("div",{className:U("wp-block",I&&a),"data-align":m["data-align"],children:R}));let P;if(d)t==="html"?P=(0,Uo.jsxs)(Uo.Fragment,{children:[(0,Uo.jsx)("div",{style:{display:"none"},children:R}),(0,Uo.jsx)(WT,{isHtml:!0,children:(0,Uo.jsx)(Q$,{clientId:n})})]}):B?.apiVersion>1?P=R:P=(0,Uo.jsx)(WT,{children:R});else{let V=e?(0,vt.serializeRawBlock)(e):(0,vt.getSaveContent)(B,f);P=(0,Uo.jsxs)(WT,{className:"has-warning",children:[(0,Uo.jsx)(E$,{clientId:n}),(0,Uo.jsx)(af.RawHTML,{children:(0,DY.safeHTML)(V)})]})}let{"data-align":M,...L}=m??{},j={...L,className:U(L.className,M&&x&&`align${M}`,!(M&&I)&&a)};return(0,Uo.jsx)(Hr.Provider,{value:{wrapperProps:j,isAligned:O,isSelectionWithinCurrentSection:_,...E},children:(0,Uo.jsx)(I$,{fallback:(0,Uo.jsx)(WT,{className:"has-warning",children:(0,Uo.jsx)(R$,{})}),children:P})})}var XRe=(0,$T.withDispatch)((e,t,o)=>{let{updateBlockAttributes:r,insertBlocks:n,mergeBlocks:i,replaceBlocks:s,toggleSelection:a,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:u,removeBlock:d,selectBlock:f}=e(w);return{setAttributes(m){let{getMultiSelectedBlockClientIds:h}=o.select(w),p=h(),{clientId:g,attributes:b}=t,v=p.length?p:[g],y=typeof m=="function"?m(b):m;r(v,y)},onInsertBlocks(m,h){let{rootClientId:p}=t;n(m,h,p)},onInsertBlocksAfter(m){let{clientId:h,rootClientId:p}=t,{getBlockIndex:g}=o.select(w),b=g(h);n(m,b+1,p)},onMerge(m){let{clientId:h,rootClientId:p}=t,{getPreviousBlockClientId:g,getNextBlockClientId:b,getBlock:v,getBlockAttributes:y,getBlockName:k,getBlockOrder:S,getBlockIndex:_,getBlockRootClientId:x,canInsertBlockType:E}=o.select(w);function T(){let B=v(h),O=(0,vt.getDefaultBlockName)(),I=(0,vt.getBlockType)(O);if(k(h)!==O){let P=(0,vt.switchToBlockType)(B,O);P&&P.length&&s(h,P)}else if((0,vt.isUnmodifiedDefaultBlock)(B)){let P=b(h);P&&o.batch(()=>{d(h),f(P)})}else if(I.merge){let P=I.merge({},B.attributes);s([h],[(0,vt.createBlock)(O,P)])}}function R(B,O=!0){let I=k(B),M=(0,vt.getBlockType)(I).category==="text",L=x(B),j=S(B),[V]=j;j.length===1&&(0,vt.isUnmodifiedBlock)(v(V))?d(B):M?o.batch(()=>{if(E(k(V),L))u([V],B,L,_(B));else{let D=(0,vt.switchToBlockType)(v(V),(0,vt.getDefaultBlockName)());D&&D.length&&D.every(z=>E(z.name,L))?(n(D,_(B),L,O),d(V,!1)):T()}!S(B).length&&(0,vt.isUnmodifiedBlock)(v(B))&&d(B,!1)}):T()}if(m){if(p){let O=b(p);if(O)if(k(p)===k(O)){let I=y(p),P=y(O);if(Object.keys(I).every(M=>I[M]===P[M])){o.batch(()=>{u(S(O),O,p),d(O,!1)});return}}else{i(p,O);return}}let B=b(h);if(!B)return;S(B).length?R(B,!1):i(h,B)}else{let B=g(h);if(B)i(B,h);else if(p){let O=g(p);if(O&&k(p)===k(O)){let I=y(p),P=y(O);if(Object.keys(I).every(M=>I[M]===P[M])){o.batch(()=>{u(S(p),p,O),d(p,!1)});return}}R(p)}else T()}},onReplace(m,h,p){m.length&&!(0,vt.isUnmodifiedDefaultBlock)(m[m.length-1])&&l();let g=m?.length===1&&Array.isArray(m[0])?m[0]:m;s([t.clientId],g,h,p)},onRemove(){d(t.clientId)},toggleSelection(m){a(m)}}});C4=(0,KT.compose)(XRe,(0,NY.withFilters)("editor.BlockListBlock"))(C4);function QRe(e){let{clientId:t,rootClientId:o}=e,r=(0,$T.useSelect)(ie=>{let{isBlockSelected:ce,getBlockMode:_e,isSelectionEnabled:ae,getTemplateLock:we,isSectionBlock:Te,getParentSectionBlock:Fe,getBlockWithoutAttributes:Qe,getBlockAttributes:Ae,canRemoveBlock:nt,canMoveBlock:ke,getSettings:Lt,getEditedContentOnlySection:le,getBlockEditingMode:fe,getBlockName:Re,isFirstMultiSelectedBlock:Ze,getMultiSelectedBlockClientIds:gt,hasSelectedInnerBlock:tt,getBlocksByName:ut,getBlockIndex:Mt,isBlockMultiSelected:Le,isBlockSubtreeDisabled:De,isBlockHighlighted:Ke,__unstableIsFullySelected:Ye,__unstableSelectionHasUnmergeableBlock:bt,isBlockBeingDragged:eo,isDragging:vo,__unstableHasActiveBlockOverlayActive:de,getSelectedBlocksInitialCaretPosition:He}=H(ie(w)),dt=Qe(t);if(!dt)return;let{hasBlockSupport:je,getActiveBlockVariation:ve}=ie(vt.store),ot=Ae(t),{name:st,isValid:zr}=dt,jr=(0,vt.getBlockType)(st),_n=Lt(),{supportsLayout:Ee,isPreviewMode:co,__experimentalBlockBindingsSupportedAttributes:mr}=_n,wl=mr?.[st],Pc=ot?.metadata?.blockVisibility,Ng=_n?.[bs]?.toLowerCase()||"desktop",Dg=jr?.apiVersion>1,ha=Le(t),me=fe(t),$t={isPreviewMode:co,blockWithoutAttributes:dt,name:st,attributes:ot,isValid:zr,themeSupportsLayout:Ee,index:Mt(t),isReusable:(0,vt.isReusableBlock)(jr),className:Dg?ot.className:void 0,defaultClassName:Dg?(0,vt.getBlockDefaultClassName)(st):void 0,blockTitle:jr?.title,bindableAttributes:wl,blockVisibility:Pc,deviceType:Ng,isMultiSelected:ha,blockEditingMode:me,isEditingDisabled:me==="disabled"};if(co)return $t;let Oe=ce(t),uo=nt(t),Jn=ke(t),nn=ve(st,ot),gd=!0,uN=tt(t,gd),dN=Te(t)?t:Fe(t),fN=(0,vt.hasBlockSupport)(st,"multiple",!0)?[]:ut(st),Zxe=fN.length&&fN[0]!==t;return{...$t,mode:_e(t),isSelectionEnabled:ae(),isLocked:!!we(o),isSectionBlock:Te(t),isWithinSectionBlock:!!dN,isSelectionWithinCurrentSection:ce(dN)||tt(dN,gd),blockType:jr,canRemove:uo,canMove:Jn,isSelected:Oe,isEditingContentOnlySection:le()===t,blockEditingMode:me,mayDisplayControls:Oe||Ze(t)&&gt().every(Xxe=>Re(Xxe)===st),mayDisplayParentControls:je(Re(t),"__experimentalExposeControlsToChildren",!1)&&tt(t),blockApiVersion:jr?.apiVersion||1,blockTitle:nn?.title||jr?.title,isSubtreeDisabled:me==="disabled"&&De(t),hasOverlay:de(t)&&!vo(),initialPosition:Oe?He():void 0,isHighlighted:Ke(t),isMultiSelected:ha,isPartiallySelected:ha&&!Ye()&&!bt(),isDragging:eo(t),hasChildSelected:uN,isEditingDisabled:me==="disabled",hasEditableOutline:me!=="disabled"&&fe(o)==="disabled",originalBlockClientId:Zxe?fN[0]:!1,blockVisibility:Pc,deviceType:Ng}},[t,o]),n=(0,KT.useRefEffect)(ie=>{if(ie){let{ownerDocument:ce}=ie,{defaultView:_e}=ce;n.current=_e}},[]),{isBlockCurrentlyHidden:i}=Is({blockVisibility:r?.blockVisibility,deviceType:r?.deviceType,view:n.current}),s=(0,af.useMemo)(()=>({...r?.blockWithoutAttributes,attributes:r?.attributes}),[r?.blockWithoutAttributes,r?.attributes]);if(!r)return null;let{isPreviewMode:a,mode:l="visual",isSelectionEnabled:u=!1,isLocked:d=!1,canRemove:f=!1,canMove:m=!1,name:h,attributes:p,isValid:g,isSelected:b=!1,themeSupportsLayout:v,isEditingContentOnlySection:y,blockEditingMode:k,mayDisplayControls:S,mayDisplayParentControls:_,index:x,blockApiVersion:E,blockType:T,blockTitle:R,isSubtreeDisabled:B,hasOverlay:O,initialPosition:I,isHighlighted:P,isMultiSelected:M,isPartiallySelected:L,isReusable:j,isDragging:V,hasChildSelected:D,isSectionBlock:z,isWithinSectionBlock:W,isSelectionWithinCurrentSection:K,isEditingDisabled:ne,hasEditableOutline:X,className:ee,defaultClassName:Y,originalBlockClientId:$,bindableAttributes:Z,blockVisibility:q,deviceType:J}=r,re={isPreviewMode:a,clientId:t,className:ee,index:x,mode:l,name:h,blockApiVersion:E,blockType:T,blockTitle:R,isSelected:b,isSubtreeDisabled:B,hasOverlay:O,initialPosition:I,blockEditingMode:k,isHighlighted:P,isMultiSelected:M,isPartiallySelected:L,isReusable:j,isDragging:V,hasChildSelected:D,isSectionBlock:z,isWithinSectionBlock:W,isSelectionWithinCurrentSection:K,isEditingDisabled:ne,hasEditableOutline:X,isEditingContentOnlySection:y,defaultClassName:Y,mayDisplayControls:S,mayDisplayParentControls:_,originalBlockClientId:$,themeSupportsLayout:v,canMove:m,isBlockCurrentlyHidden:i,bindableAttributes:Z,blockVisibility:q,deviceType:J};return i&&!b&&!M&&!D?null:(0,Uo.jsx)(Hr.Provider,{value:re,children:(0,Uo.jsx)(C4,{...e,mode:l,isSelectionEnabled:u,isLocked:d,canRemove:f,canMove:m,block:s,name:h,attributes:p,isValid:g,isSelected:b})})}var VY=(0,af.memo)(QRe);var B6=c(G(),1),Jre=c(Q(),1);var E6=c(F(),1),Yre=c(zY(),1),vP=c(G(),1),kP=c(Bt(),1);var $re=c(Cr(),1),du=c(F(),1),hP=c(N(),1),Kre=c(A(),1),gP=c(G(),1),bP=c(oe(),1),yP=c(Q(),1);var Et=c(A(),1),dP=c(N(),1);var KX=c(A(),1);var Kp=c(pe(),1);function jY({controlled:e,default:t,name:o,state:r="value"}){let{current:n}=Kp.useRef(e!==void 0),[i,s]=Kp.useState(t),a=n?e:i,l=Kp.useCallback(u=>{n||s(u)},[]);return[a,l]}var T4=c(pe(),1);var UY=c(pe(),1),HY={};function Go(e,t){let o=UY.useRef(HY);return o.current===HY&&(o.current=e(t)),o}var E4=T4[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],JRe=E4&&E4!==T4.useLayoutEffect?E4:e=>e();function Be(e){let t=Go(ePe).current;return t.next=e,JRe(t.effect),t.trampoline}function ePe(){let e={next:void 0,callback:tPe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function tPe(){}var GY=c(pe(),1),oPe=()=>{},Ce=typeof document<"u"?GY.useLayoutEffect:oPe;var YT=c(pe(),1),rPe=YT.createContext(void 0);function Lb(){return YT.useContext(rPe)?.direction??"ltr"}function nPe(e,t){return function(r,...n){let i=new URL(e);return i.searchParams.set("code",r.toString()),n.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${r}; visit ${i} for the full message.`}}var iPe=nPe("https://base-ui.com/production-error","Base UI"),Tr=iPe;var Yp=c(pe(),1);function P_(e,t,o,r){let n=Go($Y).current;return sPe(n,e,t,o,r)&&KY(n,[e,t,o,r]),n.callback}function WY(e){let t=Go($Y).current;return aPe(t,e)&&KY(t,e),t.callback}function $Y(){return{callback:null,cleanup:null,refs:[]}}function sPe(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function aPe(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function KY(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let r=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=i(o);typeof s=="function"&&(r[n]=s);break}case"object":{i.current=o;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=r[n];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var qY=c(pe(),1);var YY=c(pe(),1),lPe=parseInt(YY.version,10);function Mb(e){return lPe>=e}function B4(e){if(!qY.isValidElement(e))return null;let t=e,o=t.props;return(Mb(19)?o?.ref:t.ref)??null}function I_(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function qc(){}var lJe=Object.freeze([]),Br=Object.freeze({});function ZY(e,t){let o={};for(let r in e){let n=e[r];if(t?.hasOwnProperty(r)){let i=t[r](n);i!=null&&Object.assign(o,i);continue}n===!0?o[`data-${r.toLowerCase()}`]="":n&&(o[`data-${r.toLowerCase()}`]=n.toString())}return o}function XY(e,t){return typeof e=="function"?e(t):e}function QY(e,t){return typeof e=="function"?e(t):e}var R4={};function Wo(e,t,o,r,n){if(!o&&!r&&!n&&!e)return qT(t);let i=qT(e);return t&&(i=O_(i,t)),o&&(i=O_(i,o)),r&&(i=O_(i,r)),n&&(i=O_(i,n)),i}function JY(e){if(e.length===0)return R4;if(e.length===1)return qT(e[0]);let t=qT(e[0]);for(let o=1;o<e.length;o+=1)t=O_(t,e[o]);return t}function qT(e){return P4(e)?{...tq(e,R4)}:cPe(e)}function O_(e,t){return P4(t)?tq(t,e):uPe(e,t)}function cPe(e){let t={...e};for(let o in t){let r=t[o];eq(o,r)&&(t[o]=oq(r))}return t}function uPe(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=I_(e.style,r);break}case"className":{e[o]=I4(e.className,r);break}default:eq(o,r)?e[o]=dPe(e[o],r):e[o]=r}}return e}function eq(e,t){let o=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2);return o===111&&r===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function P4(e){return typeof e=="function"}function tq(e,t){return P4(e)?e(t):e??R4}function dPe(e,t){return t?e?(...o)=>{let r=o[0];if(rq(r)){let i=r;A_(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let n=t(...o);return e?.(...o),n}:oq(t):e}function oq(e){return e&&((...t)=>{let o=t[0];return rq(o)&&A_(o),e(...t)})}function A_(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function I4(e,t){return t?e?t+" "+e:t:e}function rq(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var O4=c(pe(),1);function sr(e,t,o={}){let r=t.render,n=fPe(t,o);if(o.enabled===!1)return null;let i=o.state??Br;return hPe(e,r,n,i)}function fPe(e,t={}){let{className:o,style:r,render:n}=e,{state:i=Br,ref:s,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?XY(o,i):void 0,f=u?QY(r,i):void 0,m=u?ZY(i,l):Br,h=u&&a?mPe(a):void 0,p=u?I_(m,h)??{}:Br;return typeof document<"u"&&(u?Array.isArray(s)?p.ref=WY([p.ref,B4(n),...s]):p.ref=P_(p.ref,B4(n),s):P_(null,null)),u?(d!==void 0&&(p.className=I4(p.className,d)),f!==void 0&&(p.style=I_(p.style,f)),p):Br}function mPe(e){return Array.isArray(e)?JY(e):Wo(void 0,e)}var pPe=Symbol.for("react.lazy");function hPe(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=Wo(o,t.props);n.ref=o.ref;let i=t;return i?.$$typeof===pPe&&(i=Yp.Children.toArray(t)[0]),Yp.cloneElement(i,n)}if(e&&typeof e=="string")return gPe(e,o);throw new Error(Tr(8))}function gPe(e,t){return e==="button"?(0,O4.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,O4.createElement)("img",{alt:"",...t,key:t.key}):Yp.createElement(e,t)}var ze={};ps(ze,{cancelOpen:()=>GPe,chipRemovePress:()=>EPe,clearPress:()=>CPe,closePress:()=>xPe,closeWatcher:()=>DPe,decrementPress:()=>RPe,disabled:()=>$Pe,drag:()=>jPe,escapeKey:()=>NPe,focusOut:()=>MPe,imperativeAction:()=>KPe,incrementPress:()=>BPe,inputBlur:()=>OPe,inputChange:()=>PPe,inputClear:()=>IPe,inputPaste:()=>APe,inputPress:()=>LPe,itemPress:()=>_Pe,keyboard:()=>FPe,linkPress:()=>wPe,listNavigation:()=>VPe,none:()=>bPe,outsidePress:()=>SPe,pointer:()=>zPe,scrub:()=>UPe,siblingOpen:()=>WPe,swipe:()=>YPe,trackPress:()=>TPe,triggerFocus:()=>kPe,triggerHover:()=>vPe,triggerPress:()=>yPe,wheel:()=>HPe,windowResize:()=>qPe});var bPe="none",yPe="trigger-press",vPe="trigger-hover",kPe="trigger-focus",SPe="outside-press",_Pe="item-press",xPe="close-press",wPe="link-press",CPe="clear-press",EPe="chip-remove-press",TPe="track-press",BPe="increment-press",RPe="decrement-press",PPe="input-change",IPe="input-clear",OPe="input-blur",APe="input-paste",LPe="input-press",MPe="focus-out",NPe="escape-key",DPe="close-watcher",VPe="list-navigation",FPe="keyboard",zPe="pointer",jPe="drag",HPe="wheel",UPe="scrub",GPe="cancel-open",WPe="sibling-open",$Pe="disabled",KPe="imperative-action",YPe="swipe",qPe="window-resize";function kt(e,t,o,r){let n=!1,i=!1,s=r??Br;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){i=!0},get isCanceled(){return n},get isPropagationAllowed(){return i},trigger:o,...s}}var ZT=c(pe(),1);var ZPe=c(pe(),1),nq={...ZPe};var iq=0;function XPe(e,t="mui"){let[o,r]=ZT.useState(e),n=e||o;return ZT.useEffect(()=>{o==null&&(iq+=1,r(`${t}-${iq}`))},[o,t]),n}var sq=nq.useId;function lf(e,t){if(sq!==void 0){let o=sq();return e??(t?`${t}-${o}`:o)}return XPe(e,t)}function XT(e){return lf(e,"base-ui")}var zi=c(pe(),1);var cq=c(Kc(),1);var aq=c(pe(),1),QPe=[];function cf(e){aq.useEffect(e,QPe)}var QT=null,NJe=globalThis.requestAnimationFrame,A4=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let n=0;n<o.length;n+=1)o[n]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},JT=new A4,_o=class e{static create(){return new e}static request(t){return JT.request(t)}static cancel(t){return JT.cancel(t)}currentId=QT;request(t){this.cancel(),this.currentId=JT.request(()=>{this.currentId=QT,t()})}cancel=()=>{this.currentId!==QT&&(JT.cancel(this.currentId),this.currentId=QT)};disposeEffect=()=>this.cancel};function uf(){let e=Go(_o.create).current;return cf(e.disposeEffect),e}function lq(e){return e==null?e:"current"in e?e.current:e}var Ll=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),JPe={[Ll.startingStyle]:""},eIe={[Ll.endingStyle]:""},Nb={transitionStatus(e){return e==="starting"?JPe:e==="ending"?eIe:null}};function df(e,t=!1,o=!0){let r=uf();return Be((n,i=null)=>{r.cancel();let s=lq(e);if(s==null)return;let a=s,l=()=>{cq.flushSync(n)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function u(){Promise.all(a.getAnimations().map(d=>d.finished)).then(()=>{i?.aborted||l()}).catch(()=>{if(o){i?.aborted||l();return}let d=a.getAnimations();!i?.aborted&&d.length>0&&d.some(f=>f.pending||f.playState!=="finished")&&u()})}if(t){let d=Ll.startingStyle;if(!a.hasAttribute(d)){r.request(u);return}let f=new MutationObserver(()=>{a.hasAttribute(d)||(f.disconnect(),u())});f.observe(a,{attributes:!0,attributeFilter:[d]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}r.request(u)})}var L4=c(pe(),1);function eB(e,t=!1,o=!1){let[r,n]=L4.useState(e&&t?"idle":void 0),[i,s]=L4.useState(e);return e&&!i&&(s(!0),n("starting")),!e&&i&&r!=="ending"&&!o&&n("ending"),!e&&!i&&r==="ending"&&n(void 0),Ce(()=>{if(!e&&i&&r!=="ending"&&o){let a=_o.request(()=>{n("ending")});return()=>{_o.cancel(a)}}},[e,i,r,o]),Ce(()=>{if(!e||t)return;let a=_o.request(()=>{n(void 0)});return()=>{_o.cancel(a)}},[t,e]),Ce(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&n("starting");let a=_o.request(()=>{n("idle")});return()=>{_o.cancel(a)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}function uq(e){let{open:t,defaultOpen:o,onOpenChange:r,disabled:n}=e,i=t!==void 0,[s,a]=jY({controlled:t,default:o,name:"Collapsible",state:"open"}),{mounted:l,setMounted:u,transitionStatus:d}=eB(s,!0,!0),[f,m]=zi.useState(s),[{height:h,width:p},g]=zi.useState({height:void 0,width:void 0}),b=XT(),[v,y]=zi.useState(),k=v??b,[S,_]=zi.useState(!1),[x,E]=zi.useState(!1),T=zi.useRef(null),R=zi.useRef(null),B=zi.useRef(null),O=zi.useRef(null),I=df(O,!1),P=Be(M=>{let L=!s,j=kt(ze.triggerPress,M.nativeEvent);if(r(L,j),j.isCanceled)return;let V=O.current;R.current==="css-animation"&&V!=null&&V.style.removeProperty("animation-name"),!S&&!x&&(R.current!=null&&R.current!=="css-animation"&&!l&&L&&u(!0),R.current==="css-animation"&&(!f&&L&&m(!0),!l&&L&&u(!0))),a(L),R.current==="none"&&l&&!L&&u(!1)});return Ce(()=>{i&&R.current==="none"&&!s&&u(!1)},[i,s,t,u]),zi.useMemo(()=>({abortControllerRef:T,animationTypeRef:R,disabled:n,handleTrigger:P,height:h,mounted:l,open:s,panelId:k,panelRef:O,runOnceAnimationsFinish:I,setDimensions:g,setHiddenUntilFound:_,setKeepMounted:E,setMounted:u,setOpen:a,setPanelIdState:y,setVisible:m,transitionDimensionRef:B,transitionStatus:d,visible:f,width:p}),[T,R,n,P,h,l,s,k,O,I,g,_,E,u,a,m,B,d,f,p])}var tB=c(pe(),1),M4=tB.createContext(void 0);function oB(){let e=tB.useContext(M4);if(e===void 0)throw new Error(Tr(15));return e}var qp=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ll.startingStyle]="startingStyle",e[e.endingStyle=Ll.endingStyle]="endingStyle",e})({});var dq=(function(e){return e.panelOpen="data-panel-open",e})({});var tIe={[qp.open]:""},oIe={[qp.closed]:""},fq={open(e){return e?{[dq.panelOpen]:""}:null}},mq={open(e){return e?tIe:oIe}};var zb=c(pe(),1);function rB(){return typeof window<"u"}function Xp(e){return nB(e)?(e.nodeName||"").toLowerCase():"#document"}function xo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pa(e){var t;return(t=(nB(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nB(e){return rB()?e instanceof Node||e instanceof xo(e).Node:!1}function Ve(e){return rB()?e instanceof Element||e instanceof xo(e).Element:!1}function ar(e){return rB()?e instanceof HTMLElement||e instanceof xo(e).HTMLElement:!1}function Db(e){return!rB()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xo(e).ShadowRoot}function Vb(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function pq(e){return/^(table|td|th)$/.test(Xp(e))}function L_(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var rIe=/transform|translate|scale|rotate|perspective|filter/,nIe=/paint|layout|strict|content/,Zp=e=>!!e&&e!=="none",N4;function iB(e){let t=Ve(e)?cn(e):e;return Zp(t.transform)||Zp(t.translate)||Zp(t.scale)||Zp(t.rotate)||Zp(t.perspective)||!Fb()&&(Zp(t.backdropFilter)||Zp(t.filter))||rIe.test(t.willChange||"")||nIe.test(t.contain||"")}function hq(e){let t=Ra(e);for(;ar(t)&&!Ia(t);){if(iB(t))return t;if(L_(t))return null;t=Ra(t)}return null}function Fb(){return N4==null&&(N4=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),N4}function Ia(e){return/^(html|body|#document)$/.test(Xp(e))}function cn(e){return xo(e).getComputedStyle(e)}function M_(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ra(e){if(Xp(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Db(e)&&e.host||Pa(e);return Db(t)?t.host:t}function gq(e){let t=Ra(e);return Ia(t)?e.ownerDocument?e.ownerDocument.body:e.body:ar(t)&&Vb(t)?t:gq(t)}function ff(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=gq(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=xo(n);if(i){let a=sB(s);return t.concat(s,s.visualViewport||[],Vb(n)?n:[],a&&o?ff(a):[])}else return t.concat(n,ff(n,[],o))}function sB(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var aB=c(pe(),1),iIe=aB.createContext(void 0);function bq(e=!1){let t=aB.useContext(iIe);if(t===void 0&&!e)throw new Error(Tr(16));return t}var yq=c(pe(),1);function vq(e){let{focusableWhenDisabled:t,disabled:o,composite:r=!1,tabIndex:n=0,isNativeButton:i}=e,s=r&&t!==!1,a=r&&t===!1;return{props:yq.useMemo(()=>{let u={onKeyDown(d){o&&t&&d.key!=="Tab"&&d.preventDefault()}};return r||(u.tabIndex=n,!i&&o&&(u.tabIndex=t?n:-1)),(i&&(t||s)||!i&&o)&&(u["aria-disabled"]=o),i&&(!t||a)&&(u.disabled=o),u},[r,o,t,s,a,i,n])}}function V4(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:r=0,native:n=!0,composite:i}=e,s=zb.useRef(null),a=bq(!0),l=i??a!==void 0,{props:u}=vq({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:r,isNativeButton:n}),d=zb.useCallback(()=>{let h=s.current;D4(h)&&l&&t&&u.disabled===void 0&&h.disabled&&(h.disabled=!1)},[t,u.disabled,l]);Ce(d,[d]);let f=zb.useCallback((h={})=>{let{onClick:p,onMouseDown:g,onKeyUp:b,onKeyDown:v,onPointerDown:y,...k}=h;return Wo({type:n?"button":void 0,onClick(_){if(t){_.preventDefault();return}p?.(_)},onMouseDown(_){t||g?.(_)},onKeyDown(_){if(t||(A_(_),v?.(_),_.baseUIHandlerPrevented))return;let x=_.target===_.currentTarget,E=_.currentTarget,T=D4(E),R=!n&&sIe(E),B=x&&(n?T:!R),O=_.key==="Enter",I=_.key===" ",P=E.getAttribute("role"),M=P?.startsWith("menuitem")||P==="option"||P==="gridcell";if(x&&l&&I){if(_.defaultPrevented&&M)return;_.preventDefault(),R||n&&T?(E.click(),_.preventBaseUIHandler()):B&&(p?.(_),_.preventBaseUIHandler());return}B&&(!n&&(I||O)&&_.preventDefault(),!n&&O&&p?.(_))},onKeyUp(_){if(!t){if(A_(_),b?.(_),_.target===_.currentTarget&&n&&l&&D4(_.currentTarget)&&_.key===" "){_.preventDefault();return}_.baseUIHandlerPrevented||_.target===_.currentTarget&&!n&&!l&&_.key===" "&&p?.(_)}},onPointerDown(_){if(t){_.preventDefault();return}y?.(_)}},n?void 0:{role:"button"},u,k)},[t,u,l,n]),m=Be(h=>{s.current=h,d()});return{getButtonProps:f,buttonRef:m}}function D4(e){return ar(e)&&e.tagName==="BUTTON"}function sIe(e){return!!(e?.tagName==="A"&&e?.href)}var mf=typeof navigator<"u",F4=aIe(),kq=cIe(),lB=lIe(),Eet=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Tet=F4.platform==="MacIntel"&&F4.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(F4.platform),Bet=mf&&/firefox/i.test(lB),Sq=mf&&/apple/i.test(navigator.vendor),Ret=mf&&/Edg/i.test(lB),Pet=mf&&/android/i.test(kq)||/android/i.test(lB),_q=mf&&kq.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,xq=lB.includes("jsdom/");function aIe(){if(!mf)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function lIe(){if(!mf)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:o})=>`${t}/${o}`).join(" "):navigator.userAgent}function cIe(){if(!mf)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}var z4="data-base-ui-focusable",j4="active",H4="selected",U4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function cB(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Yt(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&Db(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function In(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Qp(e,t){if(!Ve(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(Yt(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function Os(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function wq(e){return e.matches("html,body")}function Cq(e){return ar(e)&&e.matches(U4)}function G4(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${U4}`)!=null}function Eq(e){if(!e||xq)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Oa(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...Oa(e,n.id,o)])}function Tq(e){return"nativeEvent"in e}function Jp(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Bq(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var Iq=["top","right","bottom","left"];var pf=Math.min,On=Math.max,hf=Math.round,D_=Math.floor,Aa=e=>({x:e,y:e}),uIe={left:"right",right:"left",bottom:"top",top:"bottom"};function V_(e,t,o){return On(e,pf(t,o))}function La(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function Ma(e){return e.split("-")[1]}function dB(e){return e==="x"?"y":"x"}function F_(e){return e==="y"?"height":"width"}function ii(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function z_(e){return dB(ii(e))}function Oq(e,t,o){o===void 0&&(o=!1);let r=Ma(e),n=z_(e),i=F_(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=N_(s)),[s,N_(s)]}function Aq(e){let t=N_(e);return[uB(e),t,uB(t)]}function uB(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Rq=["left","right"],Pq=["right","left"],dIe=["top","bottom"],fIe=["bottom","top"];function mIe(e,t,o){switch(e){case"top":case"bottom":return o?t?Pq:Rq:t?Rq:Pq;case"left":case"right":return t?dIe:fIe;default:return[]}}function Lq(e,t,o,r){let n=Ma(e),i=mIe(qr(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(uB)))),i}function N_(e){let t=qr(e);return uIe[t]+e.slice(t.length)}function pIe(e){return{top:0,right:0,bottom:0,left:0,...e}}function fB(e){return typeof e!="number"?pIe(e):{top:e,right:e,bottom:e,left:e}}function eh(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Rr(e){return e?.ownerDocument||document}var Ml=c(pe(),1);function ht(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}var Mq=(function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e})({});function Nq(e){let{abortControllerRef:t,animationTypeRef:o,externalRef:r,height:n,hiddenUntilFound:i,keepMounted:s,id:a,mounted:l,onOpenChange:u,open:d,panelRef:f,runOnceAnimationsFinish:m,setDimensions:h,setMounted:p,setOpen:g,setVisible:b,transitionDimensionRef:v,visible:y,width:k}=e,S=Ml.useRef(!1),_=Ml.useRef(null),x=Ml.useRef(d),E=Ml.useRef(d),T=uf(),R=Ml.useMemo(()=>o.current==="css-animation"?!y:!d&&!l,[d,l,y,o]),B=Be(I=>{if(!I)return;if(o.current==null||v.current==null){let L=getComputedStyle(I),j=L.animationName!=="none"&&L.animationName!=="",V=L.transitionDuration!=="0s"&&L.transitionDuration!=="";j&&V||(L.animationName==="none"&&L.transitionDuration!=="0s"?o.current="css-transition":L.animationName!=="none"&&L.transitionDuration==="0s"?o.current="css-animation":o.current="none"),I.getAttribute(Mq.orientation)==="horizontal"||L.transitionProperty.indexOf("width")>-1?v.current="width":v.current="height"}if(o.current!=="css-transition")return;(n===void 0||k===void 0)&&(h({height:I.scrollHeight,width:I.scrollWidth}),E.current&&I.style.setProperty("transition-duration","0s"));let P=-1,M=-1;return P=_o.request(()=>{E.current=!1,M=_o.request(()=>{setTimeout(()=>{I.style.removeProperty("transition-duration")})})}),()=>{_o.cancel(P),_o.cancel(M)}}),O=P_(r,f,B);return Ce(()=>{if(o.current!=="css-transition")return;let I=f.current;if(!I)return;let P=-1;if(t.current!=null&&(t.current.abort(),t.current=null),d){let M={"justify-content":I.style.justifyContent,"align-items":I.style.alignItems,"align-content":I.style.alignContent,"justify-items":I.style.justifyItems};Object.keys(M).forEach(L=>{I.style.setProperty(L,"initial","important")}),!E.current&&!s&&I.setAttribute(qp.startingStyle,""),h({height:I.scrollHeight,width:I.scrollWidth}),P=_o.request(()=>{Object.entries(M).forEach(([L,j])=>{j===""?I.style.removeProperty(L):I.style.setProperty(L,j)})})}else{if(I.scrollHeight===0&&I.scrollWidth===0)return;h({height:I.scrollHeight,width:I.scrollWidth});let M=new AbortController;t.current=M;let L=M.signal,j=null,V=qp.endingStyle;return j=new MutationObserver(D=>{D.some(W=>W.type==="attributes"&&W.attributeName===V)&&(j?.disconnect(),j=null,m(()=>{h({height:0,width:0}),I.style.removeProperty("content-visibility"),p(!1),t.current===M&&(t.current=null)},L))}),j.observe(I,{attributes:!0,attributeFilter:[V]}),()=>{j?.disconnect(),T.cancel(),t.current===M&&(M.abort(),t.current=null)}}return()=>{_o.cancel(P)}},[t,o,T,i,s,l,d,f,m,h,p]),Ce(()=>{if(o.current!=="css-animation")return;let I=f.current;I&&(_.current=I.style.animationName||_.current,I.style.setProperty("animation-name","none"),h({height:I.scrollHeight,width:I.scrollWidth}),!x.current&&!S.current&&I.style.removeProperty("animation-name"),d?(t.current!=null&&(t.current.abort(),t.current=null),p(!0),b(!0)):(t.current=new AbortController,m(()=>{p(!1),b(!1),t.current=null},t.current.signal)))},[t,o,d,f,m,h,p,b,y]),cf(()=>{let I=_o.request(()=>{x.current=!1});return()=>_o.cancel(I)}),Ce(()=>{if(!i)return;let I=f.current;if(!I)return;let P=-1,M=-1;return d&&S.current&&(I.style.transitionDuration="0s",h({height:I.scrollHeight,width:I.scrollWidth}),P=_o.request(()=>{S.current=!1,M=_o.request(()=>{setTimeout(()=>{I.style.removeProperty("transition-duration")})})})),()=>{_o.cancel(P),_o.cancel(M)}},[i,d,f,h]),Ce(()=>{let I=f.current;I&&i&&R&&(I.setAttribute("hidden","until-found"),o.current==="css-transition"&&I.setAttribute(qp.startingStyle,""))},[i,R,o,f]),Ml.useEffect(function(){let P=f.current;if(!P)return;function M(L){S.current=!0,g(!0),u(!0,kt(ze.none,L))}return ht(P,"beforematch",M)},[u,f,g]),Ml.useMemo(()=>({props:{hidden:R,id:a,ref:O}}),[R,a,O])}var Dq=c(pe(),1);function jb(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,i=Be(n),s=df(r,o,!1);Dq.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var Vq=c(pe(),1);function Fq(e){let t=Vq.useRef(!0);t.current&&(t.current=!1,e())}var j_=0,ji=class e{static create(){return new e}currentId=j_;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=j_,o()},t)}isStarted(){return this.currentId!==j_}clear=()=>{this.currentId!==j_&&(clearTimeout(this.currentId),this.currentId=j_)};disposeEffect=()=>this.clear};function Zc(){let e=Go(ji.create).current;return cf(e.disposeEffect),e}var si=c(pe(),1);function hIe(e,t){return t!=null&&!Jp(t)?0:typeof e=="function"?e():e}function th(e,t,o){let r=hIe(e,o);return typeof r=="number"?r:r?.[t]}function W4(e){return typeof e=="function"?e():e}function mB(e,t){return t||e==="click"||e==="mousedown"}var zq=c(C(),1),jq=si.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ji,currentIdRef:{current:null},currentContextRef:{current:null}});function $4(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=si.useRef(o),i=si.useRef(o),s=si.useRef(null),a=si.useRef(null),l=Zc();return(0,zq.jsx)(jq.Provider,{value:si.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:i,currentIdRef:s,timeoutMs:r,currentContextRef:a,timeout:l}),[r,l]),children:t})}function K4(e,t={open:!1}){let o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),{open:n}=t,i=si.useContext(jq),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:f,timeout:m}=i,[h,p]=si.useState(!1);return Ce(()=>{function g(){p(!1),d.current?.setIsInstantPhase(!1),s.current=null,d.current=null,a.current=u.current}if(s.current&&!n&&s.current===r){if(p(!1),l){let b=r;return m.start(l,()=>{o.select("open")||s.current&&s.current!==b||g()}),()=>{m.clear()}}g()}},[n,r,s,a,l,u,d,m,o]),Ce(()=>{if(!n)return;let g=d.current,b=s.current;m.clear(),d.current={onOpenChange:o.setOpen,setIsInstantPhase:p},s.current=r,a.current={open:0,close:th(u.current,"close")},b!==null&&b!==r?(p(!0),g?.setIsInstantPhase(!0),g?.onOpenChange(!1,kt(ze.none))):(p(!1),g?.setIsInstantPhase(!1))},[n,r,o,s,a,l,u,d,m]),Ce(()=>()=>{d.current=null},[d]),si.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:h}),[f,a,h])}function Na(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}function Da(e){let t=Go(gIe,e).current;return t.next=e,Ce(t.effect),t}function gIe(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Hb(e){return`data-base-ui-${e}`}var Hi=c(pe(),1),Gq=c(Kc(),1);var Hq={style:{transition:"none"}};var bIe="data-base-ui-swipe-ignore",yIe="data-swipe-ignore",wtt=`[${bIe}]`,Ctt=`[${yIe}]`;var Uq={fallbackAxisSide:"end"};var Wq=c(C(),1),vIe=Hi.createContext(null),kIe=()=>Hi.useContext(vIe),SIe=Hb("portal");function Y4(e={}){let{ref:t,container:o,componentProps:r=Br,elementProps:n}=e,i=lf(),a=kIe()?.portalNode,[l,u]=Hi.useState(null),[d,f]=Hi.useState(null),m=Be(b=>{b!==null&&f(b)}),h=Hi.useRef(null);Ce(()=>{if(o===null){h.current&&(h.current=null,f(null),u(null));return}if(i==null)return;let b=(o&&(nB(o)?o:o.current))??a??document.body;if(b==null){h.current&&(h.current=null,f(null),u(null));return}h.current!==b&&(h.current=b,f(null),u(b))},[o,a,i]);let p=sr("div",r,{ref:[t,m],props:[{id:i,[SIe]:""},n]});return{portalNode:d,portalSubtree:l&&p?Gq.createPortal(p,l):null}}var oh=c(pe(),1);function $q(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(r=>r(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var _Ie=c(C(),1),xIe=oh.createContext(null),wIe=oh.createContext(null),Ub=()=>oh.useContext(xIe)?.id||null,gf=e=>{let t=oh.useContext(wIe);return e??t};var An=c(pe(),1);function CIe(e,t){let o=null,r=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=i.width,d=i.height,f=i.x,m=i.y;return o==null&&t.x&&s&&(o=i.x-t.x),r==null&&t.y&&a&&(r=i.y-t.y),f-=o||0,m-=r||0,u=0,d=0,!n||l?(u=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,f=s&&t.x!=null?t.x:f,m=a&&t.y!=null?t.y:m):n&&!l&&(d=t.axis==="x"?i.height:d,u=t.axis==="y"?i.width:u),n=!0,{width:u,height:d,x:f,y:m,top:m,right:f+u,bottom:m+d,left:f}}}}function Kq(e){return e!=null&&e.clientX!=null}function q4(e,t={}){let o="rootStore"in e?e.rootStore:e,r=o.useState("open"),n=o.useState("floatingElement"),i=o.useState("domReferenceElement"),s=o.context.dataRef,{enabled:a=!0,axis:l="both"}=t,u=An.useRef(!1),d=An.useRef(null),[f,m]=An.useState(),[h,p]=An.useState([]),g=Be((S,_,x)=>{u.current||s.current.openEvent&&!Kq(s.current.openEvent)||o.set("positionReference",CIe(x??i,{x:S,y:_,axis:l,dataRef:s,pointerType:f}))}),b=Be(S=>{r?d.current||p([]):g(S.clientX,S.clientY,S.currentTarget)}),v=Jp(f)?n:r,y=An.useCallback(()=>{if(!v||!a)return;let S=xo(n);function _(x){let E=In(x);Yt(n,E)?(d.current?.(),d.current=null):g(x.clientX,x.clientY)}if(!s.current.openEvent||Kq(s.current.openEvent)){let x=()=>{d.current?.(),d.current=null};return d.current=ht(S,"mousemove",_),x}o.set("positionReference",i)},[v,a,n,s,i,o,g]);An.useEffect(()=>y(),[y,h]),An.useEffect(()=>{a&&!n&&(u.current=!1)},[a,n]),An.useEffect(()=>{!a&&r&&(u.current=!0)},[a,r]);let k=An.useMemo(()=>{function S(_){m(_.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:b,onMouseEnter:b}},[b]);return An.useMemo(()=>a?{reference:k,trigger:k}:{},[a,k])}var ai=c(pe(),1);var EIe={intentional:"onClick",sloppy:"onPointerDown"};function TIe(){return!1}function BIe(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Z4(e,t={}){let o="rootStore"in e?e.rootStore:e,r=o.useState("open"),n=o.useState("floatingElement"),{dataRef:i}=o.context,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:u="sloppy",referencePress:d=TIe,referencePressEvent:f="sloppy",bubbles:m,externalTree:h}=t,p=gf(h),g=Be(typeof l=="function"?l:()=>!1),b=typeof l=="function"?g:l,v=b!==!1,y=Be(()=>u),k=ai.useRef(!1),S=ai.useRef(!1),_=ai.useRef(!1),{escapeKey:x,outsidePress:E}=BIe(m),T=ai.useRef(null),R=Zc(),B=Zc(),O=Be(()=>{B.clear(),i.current.insideReactTree=!1}),I=ai.useRef(!1),P=ai.useRef(""),M=Be(d),L=Be(K=>{if(!r||!s||!a||K.key!=="Escape"||I.current)return;let ne=i.current.floatingContext?.nodeId,X=p?Oa(p.nodesRef.current,ne):[];if(!x&&X.length>0){let $=!0;if(X.forEach(Z=>{Z.context?.open&&!Z.context.dataRef.current.__escapeKeyBubbles&&($=!1)}),!$)return}let ee=Tq(K)?K.nativeEvent:K,Y=kt(ze.escapeKey,ee);o.setOpen(!1,Y),!x&&!Y.isPropagationAllowed&&K.stopPropagation()}),j=Be(()=>{i.current.insideReactTree=!0,B.start(0,O)});ai.useEffect(()=>{if(!r||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=E;let K=new ji,ne=new ji;function X(){K.clear(),I.current=!0}function ee(){K.start(Fb()?5:0,()=>{I.current=!1})}function Y(){_.current=!0,ne.start(0,()=>{_.current=!1})}function $(){k.current=!1,S.current=!1}function Z(){let le=P.current,fe=le==="pen"||!le?"mouse":le,Re=y(),Ze=typeof Re=="function"?Re():Re;return typeof Ze=="string"?Ze:Ze[fe]}function q(le){let fe=Z();return fe==="intentional"&&le.type!=="click"||fe==="sloppy"&&le.type==="click"}function J(le){let fe=i.current.floatingContext?.nodeId,Re=p&&Oa(p.nodesRef.current,fe).some(Ze=>Os(le,Ze.context?.elements.floating));return Os(le,o.select("floatingElement"))||Os(le,o.select("domReferenceElement"))||Re}function re(le){if(q(le)){O();return}if(i.current.insideReactTree){O();return}let fe=In(le),Re=`[${Hb("inert")}]`,Ze=Ve(fe)?fe.getRootNode():null,gt=Array.from((Db(Ze)?Ze:Rr(o.select("floatingElement"))).querySelectorAll(Re)),tt=o.context.triggerElements;if(fe&&(tt.hasElement(fe)||tt.hasMatchingElement(De=>Yt(De,fe))))return;let ut=Ve(fe)?fe:null;for(;ut&&!Ia(ut);){let De=Ra(ut);if(Ia(De)||!Ve(De))break;ut=De}if(gt.length&&Ve(fe)&&!wq(fe)&&!Yt(fe,o.select("floatingElement"))&&gt.every(De=>!Yt(ut,De)))return;if(ar(fe)&&!("touches"in le)){let De=Ia(fe),Ke=cn(fe),Ye=/auto|scroll/,bt=De||Ye.test(Ke.overflowX),eo=De||Ye.test(Ke.overflowY),vo=bt&&fe.clientWidth>0&&fe.scrollWidth>fe.clientWidth,de=eo&&fe.clientHeight>0&&fe.scrollHeight>fe.clientHeight,He=Ke.direction==="rtl",dt=de&&(He?le.offsetX<=fe.offsetWidth-fe.clientWidth:le.offsetX>fe.clientWidth),je=vo&&le.offsetY>fe.clientHeight;if(dt||je)return}if(J(le))return;if(Z()==="intentional"&&_.current){ne.clear(),_.current=!1;return}if(typeof b=="function"&&!b(le))return;let Mt=i.current.floatingContext?.nodeId,Le=p?Oa(p.nodesRef.current,Mt):[];if(Le.length>0){let De=!0;if(Le.forEach(Ke=>{Ke.context?.open&&!Ke.context.dataRef.current.__outsidePressBubbles&&(De=!1)}),!De)return}o.setOpen(!1,kt(ze.outsidePress,le)),O()}function ie(le){Z()!=="sloppy"||le.pointerType==="touch"||!o.select("open")||!s||Os(le,o.select("floatingElement"))||Os(le,o.select("domReferenceElement"))||re(le)}function ce(le){if(Z()!=="sloppy"||!o.select("open")||!s||Os(le,o.select("floatingElement"))||Os(le,o.select("domReferenceElement")))return;let fe=le.touches[0];fe&&(T.current={startTime:Date.now(),startX:fe.clientX,startY:fe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},R.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function _e(le,fe){let Re=In(le);if(!Re)return;let Ze=ht(Re,le.type,()=>{fe(le),Ze()})}function ae(le){P.current="touch",_e(le,ce)}function we(le){R.clear(),le.type==="pointerdown"&&(P.current=le.pointerType),!(le.type==="mousedown"&&T.current&&!T.current.dismissOnMouseDown)&&_e(le,fe=>{fe.type==="pointerdown"?ie(fe):re(fe)})}function Te(le){if(!k.current)return;let fe=S.current;if($(),Z()==="intentional"){if(le.type==="pointercancel"){fe&&Y();return}if(!J(le)){if(fe){Y();return}typeof b=="function"&&!b(le)||(ne.clear(),_.current=!0,O())}}}function Fe(le){if(Z()!=="sloppy"||!T.current||Os(le,o.select("floatingElement"))||Os(le,o.select("domReferenceElement")))return;let fe=le.touches[0];if(!fe)return;let Re=Math.abs(fe.clientX-T.current.startX),Ze=Math.abs(fe.clientY-T.current.startY),gt=Math.sqrt(Re*Re+Ze*Ze);gt>5&&(T.current.dismissOnTouchEnd=!0),gt>10&&(re(le),R.clear(),T.current=null)}function Qe(le){_e(le,Fe)}function Ae(le){Z()!=="sloppy"||!T.current||Os(le,o.select("floatingElement"))||Os(le,o.select("domReferenceElement"))||(T.current.dismissOnTouchEnd&&re(le),R.clear(),T.current=null)}function nt(le){_e(le,Ae)}let ke=Rr(n),Lt=Na(a&&Na(ht(ke,"keydown",L),ht(ke,"compositionstart",X),ht(ke,"compositionend",ee)),v&&Na(ht(ke,"click",we,!0),ht(ke,"pointerdown",we,!0),ht(ke,"pointerup",Te,!0),ht(ke,"pointercancel",Te,!0),ht(ke,"mousedown",we,!0),ht(ke,"mouseup",Te,!0),ht(ke,"touchstart",ae,!0),ht(ke,"touchmove",Qe,!0),ht(ke,"touchend",nt,!0)));return()=>{Lt(),K.clear(),ne.clear(),$(),_.current=!1}},[i,n,a,v,b,r,s,x,E,L,O,y,p,o,R]),ai.useEffect(O,[b,O]);let V=ai.useMemo(()=>({onKeyDown:L,[EIe[f]]:K=>{M()&&o.setOpen(!1,kt(ze.triggerPress,K.nativeEvent))},...f!=="intentional"&&{onClick(K){M()&&o.setOpen(!1,kt(ze.triggerPress,K.nativeEvent))}}}),[L,o,f,M]),D=Be(K=>{if(!r||!s||K.button!==0)return;let ne=In(K.nativeEvent);Yt(o.select("floatingElement"),ne)&&(k.current||(k.current=!0,S.current=!1))}),z=Be(K=>{!r||!s||(K.defaultPrevented||K.nativeEvent.defaultPrevented)&&k.current&&(S.current=!0)}),W=ai.useMemo(()=>({onKeyDown:L,onPointerDown:z,onMouseDown:z,onClickCapture:j,onMouseDownCapture(K){j(),D(K)},onPointerDownCapture(K){j(),D(K)},onMouseUpCapture:j,onTouchEndCapture:j,onTouchMoveCapture:j}),[L,j,D,z]);return ai.useMemo(()=>s?{reference:V,floating:W,trigger:V}:{},[s,V,W])}var Ln=c(pe(),1);function Yq(e,t,o){let{reference:r,floating:n}=e,i=ii(t),s=z_(t),a=F_(s),l=qr(t),u=i==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,m=r[a]/2-n[a]/2,h;switch(l){case"top":h={x:d,y:r.y-n.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-n.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Ma(t)){case"start":h[s]-=m*(o&&u?-1:1);break;case"end":h[s]+=m*(o&&u?-1:1);break}return h}async function Xq(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=La(t,e),p=fB(h),b=a[m?f==="floating"?"reference":"floating":f],v=eh(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(b)))==null||o?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},_=eh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:k,strategy:l}):y);return{top:(v.top-_.top+p.top)/S.y,bottom:(_.bottom-v.bottom+p.bottom)/S.y,left:(v.left-_.left+p.left)/S.x,right:(_.right-v.right+p.right)/S.x}}var RIe=50,Qq=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:Xq},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=Yq(u,r,l),m=r,h=0,p={};for(let g=0;g<i.length;g++){let b=i[g];if(!b)continue;let{name:v,fn:y}=b,{x:k,y:S,data:_,reset:x}=await y({x:d,y:f,initialPlacement:r,placement:m,strategy:n,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=k??d,f=S??f,p[v]={...p[v],..._},x&&h<RIe&&(h++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:d,y:f}=Yq(u,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:n,middlewareData:p}};var Jq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...b}=La(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let v=qr(n),y=ii(a),k=qr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=m||(k||!g?[N_(a)]:Aq(a)),x=p!=="none";!m&&x&&_.push(...Lq(a,g,p,S));let E=[a,..._],T=await l.detectOverflow(t,b),R=[],B=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(T[v]),f){let M=Oq(n,s,S);R.push(T[M[0]],T[M[1]])}if(B=[...B,{placement:n,overflows:R}],!R.every(M=>M<=0)){var O,I;let M=(((O=i.flip)==null?void 0:O.index)||0)+1,L=E[M];if(L&&(!(f==="alignment"?y!==ii(L):!1)||B.every(D=>ii(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:M,overflows:B},reset:{placement:L}};let j=(I=B.filter(V=>V.overflows[0]<=0).sort((V,D)=>V.overflows[1]-D.overflows[1])[0])==null?void 0:I.placement;if(!j)switch(h){case"bestFit":{var P;let V=(P=B.filter(D=>{if(x){let z=ii(D.placement);return z===y||z==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(z=>z>0).reduce((z,W)=>z+W,0)]).sort((D,z)=>D[1]-z[1])[0])==null?void 0:P[0];V&&(j=V);break}case"initialPlacement":j=a;break}if(n!==j)return{reset:{placement:j}}}return{}}}};function qq(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zq(e){return Iq.some(t=>e[t]>=0)}var eZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...i}=La(e,t);switch(n){case"referenceHidden":{let s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=qq(s,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Zq(a)}}}case"escaped":{let s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=qq(s,o.floating);return{data:{escapedOffsets:a,escaped:Zq(a)}}}default:return{}}}}};var tZ=new Set(["left","top"]);async function PIe(e,t){let{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=qr(o),a=Ma(o),l=ii(o)==="y",u=tZ.has(s)?-1:1,d=i&&l?-1:1,f=La(t,e),{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*d,y:m*u}:{x:m*u,y:h*d}}var oZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:i,placement:s,middlewareData:a}=t,l=await PIe(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},rZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:y,y:k}=v;return{x:y,y:k}}},...u}=La(e,t),d={x:o,y:r},f=await i.detectOverflow(t,u),m=ii(qr(n)),h=dB(m),p=d[h],g=d[m];if(s){let v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",k=p+f[v],S=p-f[y];p=V_(k,p,S)}if(a){let v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",k=g+f[v],S=g-f[y];g=V_(k,g,S)}let b=l.fn({...t,[h]:p,[m]:g});return{...b,data:{x:b.x-o,y:b.y-r,enabled:{[h]:s,[m]:a}}}}}},nZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=La(e,t),d={x:o,y:r},f=ii(n),m=dB(f),h=d[m],p=d[f],g=La(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let k=m==="y"?"height":"width",S=i.reference[m]-i.floating[k]+b.mainAxis,_=i.reference[m]+i.reference[k]-b.mainAxis;h<S?h=S:h>_&&(h=_)}if(u){var v,y;let k=m==="y"?"width":"height",S=tZ.has(qr(n)),_=i.reference[f]-i.floating[k]+(S&&((v=s.offset)==null?void 0:v[f])||0)+(S?0:b.crossAxis),x=i.reference[f]+i.reference[k]+(S?0:((y=s.offset)==null?void 0:y[f])||0)-(S?b.crossAxis:0);p<_?p=_:p>x&&(p=x)}return{[m]:h,[f]:p}}}},iZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=La(e,t),d=await s.detectOverflow(t,u),f=qr(n),m=Ma(n),h=ii(n)==="y",{width:p,height:g}=i.floating,b,v;f==="top"||f==="bottom"?(b=f,v=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,b=m==="end"?"top":"bottom");let y=g-d.top-d.bottom,k=p-d.left-d.right,S=pf(g-d[b],y),_=pf(p-d[v],k),x=!t.middlewareData.shift,E=S,T=_;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(T=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),x&&!m){let B=On(d.left,0),O=On(d.right,0),I=On(d.top,0),P=On(d.bottom,0);h?T=p-2*(B!==0||O!==0?B+O:On(d.left,d.right)):E=g-2*(I!==0||P!==0?I+P:On(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:E});let R=await s.getDimensions(a.floating);return p!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function cZ(e){let t=cn(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=ar(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=hf(o)!==i||hf(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function Q4(e){return Ve(e)?e:e.contextElement}function Gb(e){let t=Q4(e);if(!ar(t))return Aa(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:i}=cZ(t),s=(i?hf(o.width):o.width)/r,a=(i?hf(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var IIe=Aa(0);function uZ(e){let t=xo(e);return!Fb()||!t.visualViewport?IIe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OIe(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==xo(e)?!1:t}function rh(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),i=Q4(e),s=Aa(1);t&&(r?Ve(r)&&(s=Gb(r)):s=Gb(e));let a=OIe(i,o,r)?uZ(i):Aa(0),l=(n.left+a.x)/s.x,u=(n.top+a.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(i){let m=xo(i),h=r&&Ve(r)?xo(r):r,p=m,g=sB(p);for(;g&&r&&h!==p;){let b=Gb(g),v=g.getBoundingClientRect(),y=cn(g),k=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,S=v.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=k,u+=S,p=xo(g),g=sB(p)}}return eh({width:d,height:f,x:l,y:u})}function pB(e,t){let o=M_(e).scrollLeft;return t?t.left+o:rh(Pa(e)).left+o}function dZ(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-pB(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function AIe(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,i=n==="fixed",s=Pa(r),a=t?L_(t.floating):!1;if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},u=Aa(1),d=Aa(0),f=ar(r);if((f||!f&&!i)&&((Xp(r)!=="body"||Vb(s))&&(l=M_(r)),f)){let h=rh(r);u=Gb(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}let m=s&&!f&&!i?dZ(s,l):Aa(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-l.scrollLeft*u.x+d.x+m.x,y:o.y*u.y-l.scrollTop*u.y+d.y+m.y}}function LIe(e){return Array.from(e.getClientRects())}function MIe(e){let t=Pa(e),o=M_(e),r=e.ownerDocument.body,n=On(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=On(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+pB(e),a=-o.scrollTop;return cn(r).direction==="rtl"&&(s+=On(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:a}}var sZ=25;function NIe(e,t){let o=xo(e),r=Pa(e),n=o.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;let d=Fb();(!d||d&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}let u=pB(r);if(u<=0){let d=r.ownerDocument,f=d.body,m=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(r.clientWidth-f.clientWidth-h);p<=sZ&&(i-=p)}else u<=sZ&&(i+=u);return{width:i,height:s,x:a,y:l}}function DIe(e,t){let o=rh(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=ar(e)?Gb(e):Aa(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=n*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function aZ(e,t,o){let r;if(t==="viewport")r=NIe(e,o);else if(t==="document")r=MIe(Pa(e));else if(Ve(t))r=DIe(t,o);else{let n=uZ(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eh(r)}function fZ(e,t){let o=Ra(e);return o===t||!Ve(o)||Ia(o)?!1:cn(o).position==="fixed"||fZ(o,t)}function VIe(e,t){let o=t.get(e);if(o)return o;let r=ff(e,[],!1).filter(a=>Ve(a)&&Xp(a)!=="body"),n=null,i=cn(e).position==="fixed",s=i?Ra(e):e;for(;Ve(s)&&!Ia(s);){let a=cn(s),l=iB(s);!l&&a.position==="fixed"&&(n=null),(i?!l&&!n:!l&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Vb(s)&&!l&&fZ(e,s))?r=r.filter(d=>d!==s):n=a,s=Ra(s)}return t.set(e,r),r}function FIe(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?L_(t)?[]:VIe(t,this._c):[].concat(o),r],a=aZ(t,s[0],n),l=a.top,u=a.right,d=a.bottom,f=a.left;for(let m=1;m<s.length;m++){let h=aZ(t,s[m],n);l=On(h.top,l),u=pf(h.right,u),d=pf(h.bottom,d),f=On(h.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function zIe(e){let{width:t,height:o}=cZ(e);return{width:t,height:o}}function jIe(e,t,o){let r=ar(t),n=Pa(t),i=o==="fixed",s=rh(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=Aa(0);function u(){l.x=pB(n)}if(r||!r&&!i)if((Xp(t)!=="body"||Vb(n))&&(a=M_(t)),r){let h=rh(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else n&&u();i&&!r&&n&&u();let d=n&&!r&&!i?dZ(n,a):Aa(0),f=s.left+a.scrollLeft-l.x-d.x,m=s.top+a.scrollTop-l.y-d.y;return{x:f,y:m,width:s.width,height:s.height}}function X4(e){return cn(e).position==="static"}function lZ(e,t){if(!ar(e)||cn(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Pa(e)===o&&(o=o.ownerDocument.body),o}function mZ(e,t){let o=xo(e);if(L_(e))return o;if(!ar(e)){let n=Ra(e);for(;n&&!Ia(n);){if(Ve(n)&&!X4(n))return n;n=Ra(n)}return o}let r=lZ(e,t);for(;r&&pq(r)&&X4(r);)r=lZ(r,t);return r&&Ia(r)&&X4(r)&&!iB(r)?o:r||hq(e)||o}var HIe=async function(e){let t=this.getOffsetParent||mZ,o=this.getDimensions,r=await o(e.floating);return{reference:jIe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UIe(e){return cn(e).direction==="rtl"}var J4={convertOffsetParentRelativeRectToViewportRelativeRect:AIe,getDocumentElement:Pa,getClippingRect:FIe,getOffsetParent:mZ,getElementRects:HIe,getClientRects:LIe,getDimensions:zIe,getScale:Gb,isElement:Ve,isRTL:UIe};function pZ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function GIe(e,t){let o=null,r,n=Pa(e);function i(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();let u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=u;if(a||t(),!m||!h)return;let p=D_(f),g=D_(n.clientWidth-(d+m)),b=D_(n.clientHeight-(f+h)),v=D_(d),k={rootMargin:-p+"px "+-g+"px "+-b+"px "+-v+"px",threshold:On(0,pf(1,l))||1},S=!0;function _(x){let E=x[0].intersectionRatio;if(E!==l){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!pZ(u,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(_,{...k,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,k)}o.observe(e)}return s(!0),i}function H_(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Q4(e),d=n||i?[...u?ff(u):[],...t?ff(t):[]]:[];d.forEach(v=>{n&&v.addEventListener("scroll",o,{passive:!0}),i&&v.addEventListener("resize",o)});let f=u&&a?GIe(u,o):null,m=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),o()}),u&&!l&&h.observe(u),t&&h.observe(t));let p,g=l?rh(e):null;l&&b();function b(){let v=rh(e);g&&!pZ(g,v)&&o(),g=v,p=requestAnimationFrame(b)}return o(),()=>{var v;d.forEach(y=>{n&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),f?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var hZ=oZ;var gZ=rZ,bZ=Jq,yZ=iZ,vZ=eZ;var kZ=nZ,hB=(e,t,o)=>{let r=new Map,n={platform:J4,...o},i={...n.platform,_c:r};return Qq(e,t,{...n,platform:i})};var lr=c(pe(),1),_Z=c(pe(),1),xZ=c(Kc(),1),$Ie=typeof document<"u",KIe=function(){},gB=$Ie?_Z.useLayoutEffect:KIe;function bB(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!bB(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let i=n[r];if(!(i==="_owner"&&e.$$typeof)&&!bB(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wZ(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function SZ(e,t){let o=wZ(e);return Math.round(t*o)/o}function e3(e){let t=lr.useRef(e);return gB(()=>{t.current=e}),t}function CZ(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=lr.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=lr.useState(r);bB(m,r)||h(r);let[p,g]=lr.useState(null),[b,v]=lr.useState(null),y=lr.useCallback(D=>{D!==x.current&&(x.current=D,g(D))},[]),k=lr.useCallback(D=>{D!==E.current&&(E.current=D,v(D))},[]),S=i||p,_=s||b,x=lr.useRef(null),E=lr.useRef(null),T=lr.useRef(d),R=l!=null,B=e3(l),O=e3(n),I=e3(u),P=lr.useCallback(()=>{if(!x.current||!E.current)return;let D={placement:t,strategy:o,middleware:m};O.current&&(D.platform=O.current),hB(x.current,E.current,D).then(z=>{let W={...z,isPositioned:I.current!==!1};M.current&&!bB(T.current,W)&&(T.current=W,xZ.flushSync(()=>{f(W)}))})},[m,t,o,O,I]);gB(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[u]);let M=lr.useRef(!1);gB(()=>(M.current=!0,()=>{M.current=!1}),[]),gB(()=>{if(S&&(x.current=S),_&&(E.current=_),S&&_){if(B.current)return B.current(S,_,P);P()}},[S,_,P,B,R]);let L=lr.useMemo(()=>({reference:x,floating:E,setReference:y,setFloating:k}),[y,k]),j=lr.useMemo(()=>({reference:S,floating:_}),[S,_]),V=lr.useMemo(()=>{let D={position:o,left:0,top:0};if(!j.floating)return D;let z=SZ(j.floating,d.x),W=SZ(j.floating,d.y);return a?{...D,transform:"translate("+z+"px, "+W+"px)",...wZ(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:z,top:W}},[o,a,j.floating,d.x,d.y]);return lr.useMemo(()=>({...d,update:P,refs:L,elements:j,floatingStyles:V}),[d,P,L,j,V])}var t3=(e,t)=>{let o=hZ(e);return{name:o.name,fn:o.fn,options:[e,t]}},o3=(e,t)=>{let o=gZ(e);return{name:o.name,fn:o.fn,options:[e,t]}},r3=(e,t)=>({fn:kZ(e).fn,options:[e,t]}),n3=(e,t)=>{let o=bZ(e);return{name:o.name,fn:o.fn,options:[e,t]}},i3=(e,t)=>{let o=yZ(e);return{name:o.name,fn:o.fn,options:[e,t]}};var s3=(e,t)=>{let o=vZ(e);return{name:o.name,fn:o.fn,options:[e,t]}};var ft=(e,t,o,r,n,i,...s)=>{if(s.length>0)throw new Error(Tr(1));let a;if(e&&t&&o&&r&&n&&i)a=(l,u,d,f)=>{let m=e(l,u,d,f),h=t(l,u,d,f),p=o(l,u,d,f),g=r(l,u,d,f),b=n(l,u,d,f);return i(m,h,p,g,b,u,d,f)};else if(e&&t&&o&&r&&n)a=(l,u,d,f)=>{let m=e(l,u,d,f),h=t(l,u,d,f),p=o(l,u,d,f),g=r(l,u,d,f);return n(m,h,p,g,u,d,f)};else if(e&&t&&o&&r)a=(l,u,d,f)=>{let m=e(l,u,d,f),h=t(l,u,d,f),p=o(l,u,d,f);return r(m,h,p,u,d,f)};else if(e&&t&&o)a=(l,u,d,f)=>{let m=e(l,u,d,f),h=t(l,u,d,f);return o(m,h,u,d,f)};else if(e&&t)a=(l,u,d,f)=>{let m=e(l,u,d,f);return t(m,u,d,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var DZ=c(pe(),1),f3=c(l3(),1),VZ=c(OZ(),1);var AZ=c(pe(),1);var c3=[],u3;function LZ(){return u3}function MZ(e){c3.push(e)}function d3(e){let t=(o,r)=>{let n=Go(dOe).current,i;try{u3=n;for(let s of c3)s.before(n);i=e(o,r);for(let s of c3)s.after(n);n.didInitialize=!0}finally{u3=void 0}return i};return t.displayName=e.displayName||e.name,t}function NZ(e){return AZ.forwardRef(d3(e))}function dOe(){return{didInitialize:!1}}var fOe=Mb(19),mOe=fOe?hOe:gOe;function vB(e,t,o,r,n){return mOe(e,t,o,r,n)}function pOe(e,t,o,r,n){let i=DZ.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,f3.useSyncExternalStore)(e.subscribe,i,i)}MZ({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let r=e.syncHooks[o],n=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,n))&&(t=!0,r.value=n,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let n of e.syncHooks)o.add(n.store);let r=[];for(let n of o)r.push(n.subscribe(t));return()=>{for(let n of r)n()}}),(0,f3.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function hOe(e,t,o,r,n){let i=LZ();if(!i)return pOe(e,t,o,r,n);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,r)||!Object.is(a.a3,n))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=r,a.a3=n,a.didChange=!0)):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n),didChange:!1},i.syncHooks.push(a)),a.value}function gOe(e,t,o,r,n){return(0,VZ.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,r,n))}var kB=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let r of this.listeners){if(o!==this.updateTick)return;r(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,r,n){return vB(this,t,o,r,n)}};var nh=c(pe(),1);var $b=class extends kB{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){nh.useDebugValue(t),Ce(()=>{this.state[t]!==o&&this.set(t,o)},[t,o])}useSyncedValueWithCleanup(t,o){let r=this;Ce(()=>(r.state[t]!==o&&r.set(t,o),()=>{r.set(t,void 0)}),[r,t,o])}useSyncedValues(t){let o=this,r=Object.values(t);Ce(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){nh.useDebugValue(t);let r=o!==void 0;Ce(()=>{r&&!Object.is(this.state[t],o)&&super.setState({...this.state,[t]:o})},[t,o,r])}select(t,o,r,n){let i=this.selectors[t];return i(this.state,o,r,n)}useState(t,o,r,n){return nh.useDebugValue(t),vB(this,this.selectors[t],o,r,n)}useContextCallback(t,o){nh.useDebugValue(t);let r=Be(o??qc);this.context[t]=r}useStateSetter(t){let o=nh.useRef(void 0);return o.current===void 0&&(o.current=r=>{this.set(t,r)}),o.current}observe(t,o){let r;typeof t=="function"?r=t:r=this.selectors[t];let n=r(this.state);return o(n,n,this),this.subscribe(i=>{let s=r(i);if(!Object.is(n,s)){let a=n;n=s,o(s,a,this)}})}};var bOe={open:ft(e=>e.open),transitionStatus:ft(e=>e.transitionStatus),domReferenceElement:ft(e=>e.domReferenceElement),referenceElement:ft(e=>e.positionReference??e.referenceElement),floatingElement:ft(e=>e.floatingElement),floatingId:ft(e=>e.floatingId)},bf=class extends $b{constructor(t){let{syncOnly:o,nested:r,onOpenChange:n,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:$q(),nested:r,triggerElements:i},bOe),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Bq(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let r={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};var U_=c(pe(),1);function yOe(e,t){let o=U_.useRef(null),r=U_.useRef(null);return U_.useCallback(n=>{if(e!==void 0){if(o.current!==null){let i=o.current,s=r.current,a=t.context.triggerElements.getById(i);s&&a===s&&t.context.triggerElements.delete(i),o.current=null,r.current=null}n!==null&&(o.current=e,r.current=n,t.context.triggerElements.add(e,n))}},[t,e])}function FZ(e,t,o,r){let n=o.useState("isMountedByTrigger",e),i=yOe(e,o),s=Be(a=>{if(i(a),!a||!o.select("open"))return;let l=o.select("activeTriggerId");if(l===e){o.update({activeTriggerElement:a,...r});return}l==null&&o.update({activeTriggerId:e,activeTriggerElement:a,...r})});return Ce(()=>{n&&o.update({activeTriggerElement:t.current,...r})},[n,o,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:n}}function zZ(e){let t=e.useState("open");Ce(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){let o=e.context.triggerElements.entries().next();if(!o.done){let[r,n]=o.value;e.update({activeTriggerId:r,activeTriggerElement:n})}}},[t,e])}function jZ(e,t,o){let{mounted:r,setMounted:n,transitionStatus:i}=eB(e);t.useSyncedValues({mounted:r,transitionStatus:i});let s=Be(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)}),a=t.useState("preventUnmountingOnClose");return jb({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||s()}}),{forceUnmount:s,transitionStatus:i}}var yf=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,o){let r=this.idMap.get(t);r!==o&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(o),this.idMap.set(t,o))}delete(t){let o=this.idMap.get(t);o&&(this.elementsSet.delete(o),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let o of this.elementsSet)if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function HZ(){return new bf({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new yf,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function UZ(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:HZ(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Br,inactiveTriggerProps:Br,popupProps:Br}}var SB=ft(e=>e.triggerIdProp??e.activeTriggerId),GZ={open:ft(e=>e.openProp??e.open),mounted:ft(e=>e.mounted),transitionStatus:ft(e=>e.transitionStatus),floatingRootContext:ft(e=>e.floatingRootContext),preventUnmountingOnClose:ft(e=>e.preventUnmountingOnClose),payload:ft(e=>e.payload),activeTriggerId:SB,activeTriggerElement:ft(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ft((e,t)=>t!==void 0&&SB(e)===t),isOpenedByTrigger:ft((e,t)=>t!==void 0&&SB(e)===t&&e.open),isMountedByTrigger:ft((e,t)=>t!==void 0&&SB(e)===t&&e.mounted),triggerProps:ft((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ft(e=>e.popupProps),popupElement:ft(e=>e.popupElement),positionerElement:ft(e=>e.positionerElement)};function WZ(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=lf(),i=Ub()!=null,s=Go(()=>new bf({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new yf,floatingId:n,syncOnly:!1,nested:i})).current;return Ce(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=Ve(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),s.update(a)},[t,n,r.reference,r.floating,s]),s.context.onOpenChange=o,s.context.nested=i,s}function m3(e={}){let{nodeId:t,externalTree:o}=e,r=WZ(e),n=e.rootContext||r,i={reference:n.useState("referenceElement"),floating:n.useState("floatingElement"),domReference:n.useState("domReferenceElement")},[s,a]=Ln.useState(null),l=Ln.useRef(null),u=gf(o);Ce(()=>{i.domReference&&(l.current=i.domReference)},[i.domReference]);let d=CZ({...e,elements:{...i,...s&&{reference:s}}}),f=Ln.useCallback(T=>{let R=Ve(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;a(R),d.refs.setReference(R)},[d.refs]),[m,h]=Ln.useState(void 0),[p,g]=Ln.useState(null);n.useSyncedValue("referenceElement",m??null);let b=Ve(m)?m:null;n.useSyncedValue("domReferenceElement",m===void 0?i.domReference:b),n.useSyncedValue("floatingElement",p);let v=Ln.useCallback(T=>{(Ve(T)||T===null)&&(l.current=T,h(T)),(Ve(d.refs.reference.current)||d.refs.reference.current===null||T!==null&&!Ve(T))&&d.refs.setReference(T)},[d.refs,h]),y=Ln.useCallback(T=>{g(T),d.refs.setFloating(T)},[d.refs]),k=Ln.useMemo(()=>({...d.refs,setReference:v,setFloating:y,setPositionReference:f,domReference:l}),[d.refs,v,y,f]),S=Ln.useMemo(()=>({...d.elements,domReference:i.domReference}),[d.elements,i.domReference]),_=n.useState("open"),x=n.useState("floatingId"),E=Ln.useMemo(()=>({...d,dataRef:n.context.dataRef,open:_,onOpenChange:n.setOpen,events:n.context.events,floatingId:x,refs:k,elements:S,nodeId:t,rootStore:n}),[d,k,S,t,n,_,x]);return Ce(()=>{n.context.dataRef.current.floatingContext=E;let T=u?.nodesRef.current.find(R=>R.id===t);T&&(T.context=E)}),Ln.useMemo(()=>({...d,context:E,refs:k,elements:S,rootStore:n}),[d,k,S,E,n])}function p3(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,onOpenChange:r}=e,n=lf(),i=Ub()!=null,s=t.useState("open"),a=t.useState("activeTriggerElement"),l=t.useState(o?"popupElement":"positionerElement"),u=t.context.triggerElements,d=Go(()=>new bf({open:s,transitionStatus:void 0,referenceElement:a,floatingElement:l,triggerElements:u,onOpenChange:r,floatingId:n,syncOnly:!0,nested:i})).current;return Ce(()=>{let f={open:s,floatingId:n,referenceElement:a,floatingElement:l};Ve(a)&&(f.domReferenceElement=a),d.state.positionReference===d.state.referenceElement&&(f.positionReference=a),d.update(f)},[s,n,a,l,d]),d.context.onOpenChange=r,d.context.nested=i,d}var Nl=c(pe(),1);var h3=_q&&Sq;function g3(e,t={}){let o="rootStore"in e?e.rootStore:e,{events:r,dataRef:n}=o.context,{enabled:i=!0,delay:s}=t,a=Nl.useRef(!1),l=Nl.useRef(null),u=Zc(),d=Nl.useRef(!0);Nl.useEffect(()=>{let m=o.select("domReferenceElement");if(!i)return;let h=xo(m);function p(){let v=o.select("domReferenceElement");!o.select("open")&&ar(v)&&v===cB(Rr(v))&&(a.current=!0)}function g(){d.current=!0}function b(){d.current=!1}return Na(ht(h,"blur",p),h3&&ht(h,"keydown",g,!0),h3&&ht(h,"pointerdown",b,!0))},[o,i]),Nl.useEffect(()=>{if(!i)return;function m(h){if(h.reason===ze.triggerPress||h.reason===ze.escapeKey){let p=o.select("domReferenceElement");Ve(p)&&(l.current=p,a.current=!0)}}return r.on("openchange",m),()=>{r.off("openchange",m)}},[r,i,o]);let f=Nl.useMemo(()=>({onMouseLeave(){a.current=!1,l.current=null},onFocus(m){let h=m.currentTarget;if(a.current){if(l.current===h)return;a.current=!1,l.current=null}let p=In(m.nativeEvent);if(Ve(p)){if(h3&&!m.relatedTarget){if(!d.current&&!Cq(p))return}else if(!Eq(p))return}let g=Qp(m.relatedTarget,o.context.triggerElements),{nativeEvent:b,currentTarget:v}=m,y=typeof s=="function"?s():s;if(o.select("open")&&g||y===0||y===void 0){o.setOpen(!0,kt(ze.triggerFocus,b,v));return}u.start(y,()=>{a.current||o.setOpen(!0,kt(ze.triggerFocus,b,v))})},onBlur(m){a.current=!1,l.current=null;let h=m.relatedTarget,p=m.nativeEvent,g=Ve(h)&&h.hasAttribute(Hb("focus-guard"))&&h.getAttribute("data-type")==="outside";u.start(0,()=>{let b=o.select("domReferenceElement"),v=cB(Rr(b));!h&&v===b||Yt(n.current.floatingContext?.refs.floating.current,v)||Yt(b,v)||g||Qp(h??v,o.context.triggerElements)||o.setOpen(!1,kt(ze.triggerFocus,p))})}}),[n,o,u,s]);return Nl.useMemo(()=>i?{reference:f,trigger:f}:{},[i,f])}var G_=c(pe(),1);var b3=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new ji,this.restTimeout=new ji,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},_B=new WeakMap;function Kb(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&_B.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),_B.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function xB(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,i=_B.get(o);i&&i!==e&&Kb(i),Kb(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,_B.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function wB(e){let t=Go(b3.create).current,o=e.context.dataRef.current;return o.hoverInteractionState||(o.hoverInteractionState=t),cf(o.hoverInteractionState.disposeEffect),o.hoverInteractionState}function y3(e,t={}){let o="rootStore"in e?e.rootStore:e,r=o.useState("open"),n=o.useState("floatingElement"),i=o.useState("domReferenceElement"),{dataRef:s}=o.context,{enabled:a=!0,closeDelay:l=0,nodeId:u}=t,d=wB(o),f=gf(),m=Ub(),h=Be(()=>mB(s.current.openEvent?.type,d.interactedInside)),p=Be(()=>{let S=s.current.openEvent?.type;return S?.includes("mouse")&&S!=="mousedown"}),g=Be(S=>Qp(S,o.context.triggerElements)),b=G_.useCallback(S=>{let _=th(l,"close",d.pointerType),x=()=>{o.setOpen(!1,kt(ze.triggerHover,S)),f?.events.emit("floating.closed",S)};_?d.openChangeTimeout.start(_,x):(d.openChangeTimeout.clear(),x())},[l,o,d,f]),v=Be(()=>{Kb(d)}),y=Be(S=>{let _=In(S);if(!G4(_)){d.interactedInside=!1;return}d.interactedInside=_?.closest("[aria-haspopup]")!=null});Ce(()=>{r||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,v())},[r,d,v]),G_.useEffect(()=>v,[v]),Ce(()=>{if(a&&r&&d.handleCloseOptions?.blockPointerEvents&&p()&&Ve(i)&&n){let S=i,_=n,x=Rr(n),E=f?.nodesRef.current.find(R=>R.id===m)?.context?.elements.floating;E&&(E.style.pointerEvents="");let T=d.handleCloseOptions?.getScope?.()??d.pointerEventsScopeElement??E??S.closest("[data-rootownerid]")??x.body;return xB(d,{scopeElement:T,referenceElement:S,floatingElement:_}),()=>{v()}}},[a,r,i,n,d,p,f,m,v]);let k=Zc();G_.useEffect(()=>{if(!a)return;function S(){d.openChangeTimeout.clear(),k.clear(),f?.events.off("floating.closed",x),v()}function _(T){if(f&&m&&Oa(f.nodesRef.current,m).length>0){f.events.on("floating.closed",x);return}if(g(T.relatedTarget))return;let R=s.current.floatingContext?.nodeId??u,B=T.relatedTarget;if(!(f&&R&&Ve(B)&&Oa(f.nodesRef.current,R,!1).some(I=>Yt(I.context?.elements.floating,B)))){if(d.handler){d.handler(T);return}v(),h()||b(T)}}function x(T){!f||!m||Oa(f.nodesRef.current,m).length>0||k.start(0,()=>{f.events.off("floating.closed",x),o.setOpen(!1,kt(ze.triggerHover,T)),f.events.emit("floating.closed",T)})}let E=n;return Na(E&&ht(E,"mouseenter",S),E&&ht(E,"mouseleave",_),E&&ht(E,"pointerdown",y,!0),()=>{f?.events.off("floating.closed",x)})},[a,n,o,s,u,h,g,b,v,y,d,f,m,k])}var vf=c(pe(),1),$Z=c(Kc(),1);var vOe={current:null};function v3(e,t={}){let o="rootStore"in e?e.rootStore:e,{dataRef:r,events:n}=o.context,{enabled:i=!0,delay:s=0,handleClose:a=null,mouseOnly:l=!1,restMs:u=0,move:d=!0,triggerElementRef:f=vOe,externalTree:m,isActiveTrigger:h=!0,getHandleCloseContext:p,isClosing:g}=t,b=gf(m),v=wB(o),y=vf.useRef(!1),k=Da(a),S=Da(s),_=Da(u),x=Da(i),E=Da(g);h&&(v.handleCloseOptions=k.current?.__options);let T=Be(()=>mB(r.current.openEvent?.type,v.interactedInside)),R=Be(M=>Qp(M,o.context.triggerElements)),B=Be((M,L,j)=>{let V=o.context.triggerElements;if(V.hasElement(L))return!M||!Yt(M,L);if(!Ve(j))return!1;let D=j;return V.hasMatchingElement(z=>Yt(z,D))&&(!M||!Yt(M,D))}),O=Be((M,L=!0)=>{let j=th(S.current,"close",v.pointerType);j?v.openChangeTimeout.start(j,()=>{o.setOpen(!1,kt(ze.triggerHover,M)),b?.events.emit("floating.closed",M)}):L&&(v.openChangeTimeout.clear(),o.setOpen(!1,kt(ze.triggerHover,M)),b?.events.emit("floating.closed",M))}),I=Be(()=>{if(!v.handler)return;Rr(o.select("domReferenceElement")).removeEventListener("mousemove",v.handler),v.handler=void 0}),P=Be(()=>{Kb(v)});return vf.useEffect(()=>I,[I]),vf.useEffect(()=>{if(!i)return;function M(L){L.open?y.current=!1:(y.current=L.reason===ze.triggerHover,I(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return n.on("openchange",M),()=>{n.off("openchange",M)}},[i,n,v,I]),vf.useEffect(()=>{if(!i)return;let M=f.current??(h?o.select("domReferenceElement"):null);if(!Ve(M))return;function L(V){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,l&&!Jp(v.pointerType))return;let D=W4(_.current),z=th(S.current,"open",v.pointerType),W=In(V),K=V.currentTarget??null,ne=o.select("domReferenceElement"),X=K;if(Ve(W)&&!o.context.triggerElements.hasElement(W)){for(let ce of o.context.triggerElements.elements())if(Yt(ce,W)){X=ce;break}}Ve(K)&&Ve(ne)&&!o.context.triggerElements.hasElement(K)&&Yt(K,ne)&&(X=ne);let ee=X==null?!1:B(ne,X,W),Y=o.select("open"),$=E.current?.()??o.select("transitionStatus")==="ending",Z=!Y&&$&&y.current,q=!ee&&Ve(X)&&Ve(ne)&&Yt(ne,X)&&Z,J=D>0&&!z,re=ee&&(Y||Z)||q,ie=!Y||ee;if(re){o.setOpen(!0,kt(ze.triggerHover,V,X));return}J||(z?v.openChangeTimeout.start(z,()=>{ie&&o.setOpen(!0,kt(ze.triggerHover,V,X))}):ie&&o.setOpen(!0,kt(ze.triggerHover,V,X)))}function j(V){if(T()){P();return}I();let D=o.select("domReferenceElement"),z=Rr(D);v.restTimeout.clear(),v.restTimeoutPending=!1;let W=r.current.floatingContext??p?.();if(R(V.relatedTarget))return;if(k.current&&W){o.select("open")||v.openChangeTimeout.clear();let X=f.current;v.handler=k.current({...W,tree:b,x:V.clientX,y:V.clientY,onClose(){P(),I(),x.current&&!T()&&X===o.select("domReferenceElement")&&O(V,!0)}}),z.addEventListener("mousemove",v.handler),v.handler(V);return}(v.pointerType!=="touch"||!Yt(o.select("floatingElement"),V.relatedTarget))&&O(V)}return d?Na(ht(M,"mousemove",L,{once:!0}),ht(M,"mouseenter",L),ht(M,"mouseleave",j)):Na(ht(M,"mouseenter",L),ht(M,"mouseleave",j))},[I,P,r,S,O,o,i,k,v,h,B,T,R,l,d,_,f,b,x,p,E]),vf.useMemo(()=>{if(!i)return;function M(L){v.pointerType=L.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(L){let{nativeEvent:j}=L,V=L.currentTarget,D=o.select("domReferenceElement"),z=o.select("open"),W=B(D,V,L.target);if(l&&!Jp(v.pointerType))return;if(z&&W&&v.handleCloseOptions?.blockPointerEvents){let X=o.select("floatingElement");if(X){let ee=v.handleCloseOptions?.getScope?.()??V.ownerDocument.body;xB(v,{scopeElement:ee,referenceElement:V,floatingElement:X})}}let K=W4(_.current);if(z&&!W||K===0||!W&&v.restTimeoutPending&&L.movementX**2+L.movementY**2<2)return;v.restTimeout.clear();function ne(){if(v.restTimeoutPending=!1,T())return;let X=o.select("open");!v.blockMouseMove&&(!X||W)&&o.setOpen(!0,kt(ze.triggerHover,j,V))}v.pointerType==="touch"?$Z.flushSync(()=>{ne()}):W&&z?ne():(v.restTimeoutPending=!0,v.restTimeout.start(K,ne))}}},[i,v,T,B,l,o,_])}var ih=c(pe(),1);function k3(e=[]){let t=e.map(u=>u?.reference),o=e.map(u=>u?.floating),r=e.map(u=>u?.item),n=e.map(u=>u?.trigger),i=ih.useCallback(u=>CB(u,e,"reference"),t),s=ih.useCallback(u=>CB(u,e,"floating"),o),a=ih.useCallback(u=>CB(u,e,"item"),r),l=ih.useCallback(u=>CB(u,e,"trigger"),n);return ih.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a,getTriggerProps:l}),[i,s,a,l])}function CB(e,t,o){let r=new Map,n=o==="item",i={};o==="floating"&&(i.tabIndex=-1,i[z4]="");for(let s in e)n&&e&&(s===j4||s===H4)||(i[s]=e[s]);for(let s=0;s<t.length;s+=1){let a,l=t[s]?.[o];typeof l=="function"?a=e?l(e):null:a=l,a&&KZ(i,a,n,r)}return KZ(i,e,n,r),i}function KZ(e,t,o,r){for(let n in t){let i=t[n];o&&(n===j4||n===H4)||(n.startsWith("on")?(r.has(n)||r.set(n,[]),typeof i=="function"&&(r.get(n)?.push(i),e[n]=(...s)=>r.get(n)?.map(a=>a(...s)).find(a=>a!==void 0))):e[n]=i)}}var YZ=.1,kOe=YZ*YZ,Nt=.5;function EB(e,t,o,r,n,i){return r>=t!=i>=t&&e<=(n-o)*(t-r)/(i-r)+o}function TB(e,t,o,r,n,i,s,a,l,u){let d=!1;return EB(e,t,o,r,n,i)&&(d=!d),EB(e,t,n,i,s,a)&&(d=!d),EB(e,t,s,a,l,u)&&(d=!d),EB(e,t,l,u,o,r)&&(d=!d),d}function SOe(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function BB(e,t,o,r,n,i){let s=Math.min(o,n),a=Math.max(o,n),l=Math.min(r,i),u=Math.max(r,i);return e>=s&&e<=a&&t>=l&&t<=u}function S3(e={}){let{blockPointerEvents:t=!1}=e,o=new ji,r=({x:n,y:i,placement:s,elements:a,onClose:l,nodeId:u,tree:d})=>{let f=s?.split("-")[0],m=!1,h=null,p=null,g=typeof performance<"u"?performance.now():0;function b(y,k){let S=performance.now(),_=S-g;if(h===null||p===null||_===0)return h=y,p=k,g=S,!1;let x=y-h,E=k-p,T=x*x+E*E,R=_*_*kOe;return h=y,p=k,g=S,T<R}function v(){o.clear(),l()}return function(k){o.clear();let S=a.domReference,_=a.floating;if(!S||!_||f==null||n==null||i==null)return;let{clientX:x,clientY:E}=k,T=In(k),R=k.type==="mouseleave",B=Yt(_,T),O=Yt(S,T);if(B&&(m=!0,!R))return;if(O&&(m=!1,!R)){m=!0;return}if(R&&Ve(k.relatedTarget)&&Yt(_,k.relatedTarget))return;function I(){return!!(d&&Oa(d.nodesRef.current,u).length>0)}function P(){I()||v()}if(I())return;let M=S.getBoundingClientRect(),L=_.getBoundingClientRect(),j=n>L.right-L.width/2,V=i>L.bottom-L.height/2,D=L.width>M.width,z=L.height>M.height,W=(D?M:L).left,K=(D?M:L).right,ne=(z?M:L).top,X=(z?M:L).bottom;if(f==="top"&&i>=M.bottom-1||f==="bottom"&&i<=M.top+1||f==="left"&&n>=M.right-1||f==="right"&&n<=M.left+1){P();return}let ee=!1;switch(f){case"top":ee=BB(x,E,W,M.top+1,K,L.bottom-1);break;case"bottom":ee=BB(x,E,W,L.top+1,K,M.bottom-1);break;case"left":ee=BB(x,E,L.right-1,X,M.left+1,ne);break;case"right":ee=BB(x,E,M.right-1,X,L.left+1,ne);break;default:}if(ee)return;if(m&&!SOe(x,E,M)){P();return}if(!R&&b(x,E)){P();return}let Y=!1;switch(f){case"top":{let $=D?Nt/2:Nt*4,Z=D||j?n+$:n-$,q=D?n-$:j?n+$:n-$,J=i+Nt+1,re=j||D?L.bottom-Nt:L.top,ie=j?D?L.bottom-Nt:L.top:L.bottom-Nt;Y=TB(x,E,Z,J,q,J,L.left,re,L.right,ie);break}case"bottom":{let $=D?Nt/2:Nt*4,Z=D||j?n+$:n-$,q=D?n-$:j?n+$:n-$,J=i-Nt,re=j||D?L.top+Nt:L.bottom,ie=j?D?L.top+Nt:L.bottom:L.top+Nt;Y=TB(x,E,Z,J,q,J,L.left,re,L.right,ie);break}case"left":{let $=z?Nt/2:Nt*4,Z=z||V?i+$:i-$,q=z?i-$:V?i+$:i-$,J=n+Nt+1,re=V||z?L.right-Nt:L.left,ie=V?z?L.right-Nt:L.left:L.right-Nt;Y=TB(x,E,re,L.top,ie,L.bottom,J,Z,J,q);break}case"right":{let $=z?Nt/2:Nt*4,Z=z||V?i+$:i-$,q=z?i-$:V?i+$:i-$,J=n-Nt,re=V||z?L.left+Nt:L.right,ie=V?z?L.left+Nt:L.right:L.left+Nt;Y=TB(x,E,J,Z,J,q,re,L.top,ie,L.bottom);break}default:}Y?m||o.start(40,P):P()}};return r.__options={...e,blockPointerEvents:t},r}var _3=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ll.startingStyle]="startingStyle",e[e.endingStyle=Ll.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),W_=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),_Oe={[W_.popupOpen]:""},Fnt={[W_.popupOpen]:"",[W_.pressed]:""},xOe={[_3.open]:""},wOe={[_3.closed]:""},COe={[_3.anchorHidden]:""},qZ={open(e){return e?_Oe:null}};var Yb={open(e){return e?xOe:wOe},anchorHidden(e){return e?COe:null}};function ZZ(e){return Mb(19)?e:e?"true":void 0}var Ui=c(pe(),1);var EOe=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:f="real"}=La(e,t)||{};if(u==null)return{};let m=fB(d),h={x:o,y:r},p=z_(n),g=F_(p),b=await s.getDimensions(u),v=p==="y",y=v?"top":"left",k=v?"bottom":"right",S=v?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[p]-h[p]-i.floating[g],x=h[p]-i.reference[p],E=f==="real"?await s.getOffsetParent?.(u):a.floating,T=a.floating[S]||i.floating[g];(!T||!await s.isElement?.(E))&&(T=a.floating[S]||i.floating[g]);let R=_/2-x/2,B=T/2-b[g]/2-1,O=Math.min(m[y],B),I=Math.min(m[k],B),P=O,M=T-b[g]-I,L=T/2-b[g]/2+R,j=V_(P,L,M),V=!l.arrow&&Ma(n)!=null&&L!==j&&i.reference[g]/2-(L<P?O:I)-b[g]/2<0,D=V?L<P?L-P:L-M:0;return{[p]:h[p]+D,data:{[p]:j,centerOffset:L-j-D,...V&&{alignmentOffset:D}},reset:V}}}),XZ=(e,t)=>({...EOe(e),options:[e,t]});var QZ={name:"hide",async fn(e){let{width:t,height:o,x:r,y:n}=e.rects.reference,i=t===0&&o===0&&r===0&&n===0;return{data:{referenceHidden:(await s3().fn(e)).data?.referenceHidden||i}}}};var $_={sideX:"left",sideY:"top"},JZ={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:i,strategy:s,placement:a}=e,l=xo(n),u=l.getComputedStyle(n);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:o,data:$_};let f=await i.getOffsetParent?.(n),m={width:0,height:0};if(s==="fixed"&&l?.visualViewport)m={width:l.visualViewport.width,height:l.visualViewport.height};else if(f===l){let y=Rr(n);m={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(m=await i.getDimensions(f));let h=qr(a),p=t,g=o;h==="left"&&(p=m.width-(t+r.width)),h==="top"&&(g=m.height-(o+r.height));let b=h==="left"?"right":$_.sideX,v=h==="top"?"bottom":$_.sideY;return{x:p,y:g,data:{sideX:b,sideY:v}}}};function oX(e,t,o){let r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?o?"inline-start":"inline-end":"right",bottom:"bottom",left:r?o?"inline-end":"inline-start":"left"}[t]}function eX(e,t,o){let{rects:r,placement:n}=e;return{side:oX(t,qr(n),o),align:Ma(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function rX(e){let{anchor:t,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:m=!1,floatingRootContext:h,mounted:p,collisionAvoidance:g,shiftCrossAxis:b=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:k=!1,externalTree:S}=e,[_,x]=Ui.useState(null);!p&&_!==null&&x(null);let E=g.side||"flip",T=g.align||"flip",R=g.fallbackAxisSide||"end",B=typeof t=="function"?t:void 0,O=Be(B),I=B?O:t,P=Da(t),M=Da(p),j=Lb()==="rtl",V=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":j?"left":"right","inline-start":j?"right":"left"}[r],D=i==="center"?V:`${V}-${i}`,z=l,W=1,K=r==="bottom"?W:0,ne=r==="top"?W:0,X=r==="right"?W:0,ee=r==="left"?W:0;typeof z=="number"?z={top:z+K,right:z+ee,bottom:z+ne,left:z+X}:z&&(z={top:(z.top||0)+K,right:(z.right||0)+ee,bottom:(z.bottom||0)+ne,left:(z.left||0)+X});let Y={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:z},$=Ui.useRef(null),Z=Da(n),q=Da(s),ie=[t3(de=>{let He=eX(de,r,j),dt=typeof Z.current=="function"?Z.current(He):Z.current,je=typeof q.current=="function"?q.current(He):q.current;return{mainAxis:dt,crossAxis:je,alignmentAxis:je}},[typeof n!="function"?n:0,typeof s!="function"?s:0,j,r])],ce=T==="none"&&E!=="shift",_e=!ce&&(u||b||E==="shift"),ae=E==="none"?null:n3({...Y,padding:{top:z.top+W,right:z.right+W,bottom:z.bottom+W,left:z.left+W},mainAxis:!b&&E==="flip",crossAxis:T==="flip"?"alignment":!1,fallbackAxisSideDirection:R}),we=ce?null:o3(de=>{let He=Rr(de.elements.floating).documentElement;return{...Y,rootBoundary:b?{x:0,y:0,width:He.clientWidth,height:He.clientHeight}:void 0,mainAxis:T!=="none",crossAxis:_e,limiter:u||b?void 0:r3(dt=>{if(!$.current)return{};let{width:je,height:ve}=$.current.getBoundingClientRect(),ot=ii(qr(dt.placement)),st=ot==="y"?je:ve,zr=ot==="y"?z.left+z.right:z.top+z.bottom;return{offset:st/2+zr/2}})}},[Y,u,b,z,T]);E==="shift"||T==="shift"||i==="center"?ie.push(we,ae):ie.push(ae,we),ie.push(i3({...Y,apply({elements:{floating:de},availableWidth:He,availableHeight:dt,rects:je}){if(!M.current)return;let ve=de.style;ve.setProperty("--available-width",`${He}px`),ve.setProperty("--available-height",`${dt}px`);let ot=xo(de).devicePixelRatio||1,{x:st,y:zr,width:jr,height:_n}=je.reference,Ee=(Math.round((st+jr)*ot)-Math.round(st*ot))/ot,co=(Math.round((zr+_n)*ot)-Math.round(zr*ot))/ot;ve.setProperty("--anchor-width",`${Ee}px`),ve.setProperty("--anchor-height",`${co}px`)}}),XZ(()=>({element:$.current||Rr($.current).createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(de){let{elements:He,middlewareData:dt,placement:je,rects:ve,y:ot}=de,st=qr(je),zr=ii(st),jr=$.current,_n=dt.arrow?.x||0,Ee=dt.arrow?.y||0,co=jr?.clientWidth||0,mr=jr?.clientHeight||0,wl=_n+co/2,Pc=Ee+mr/2,Ng=Math.abs(dt.shift?.y||0),Dg=ve.reference.height/2,ha=typeof n=="function"?n(eX(de,r,j)):n,me=Ng>ha,$t={top:`${wl}px calc(100% + ${ha}px)`,bottom:`${wl}px ${-ha}px`,left:`calc(100% + ${ha}px) ${Pc}px`,right:`${-ha}px ${Pc}px`}[st],Oe=`${wl}px ${ve.reference.y+Dg-ot}px`;return He.floating.style.setProperty("--transform-origin",_e&&zr==="y"&&me?Oe:$t),{}}},QZ,y),Ce(()=>{!p&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[p,h]);let Te=Ui.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Fe,elements:Qe,x:Ae,y:nt,middlewareData:ke,update:Lt,placement:le,context:fe,isPositioned:Re,floatingStyles:Ze}=m3({rootContext:h,open:m?p:void 0,placement:D,middleware:ie,strategy:o,whileElementsMounted:m?void 0:(...de)=>H_(...de,Te),nodeId:v,externalTree:S}),{sideX:gt,sideY:tt}=ke.adaptiveOrigin||$_,ut=Re?o:"fixed",Mt=Ui.useMemo(()=>{let de=y?{position:ut,[gt]:Ae,[tt]:nt}:{position:ut,...Ze};return Re||(de.opacity=0),de},[y,ut,gt,Ae,tt,nt,Ze,Re]),Le=Ui.useRef(null);Ce(()=>{if(!p)return;let de=P.current,He=typeof de=="function"?de():de,je=(tX(He)?He.current:He)||null||null;je!==Le.current&&(Fe.setPositionReference(je),Le.current=je)},[p,Fe,I,P]),Ui.useEffect(()=>{if(!p)return;let de=P.current;typeof de!="function"&&tX(de)&&de.current!==Le.current&&(Fe.setPositionReference(de.current),Le.current=de.current)},[p,Fe,I,P]),Ui.useEffect(()=>{if(m&&p&&Qe.domReference&&Qe.floating)return H_(Qe.domReference,Qe.floating,Lt,Te)},[m,p,Qe,Lt,Te]);let De=qr(le),Ke=oX(r,De,j),Ye=Ma(le)||"center",bt=!!ke.hide?.referenceHidden;Ce(()=>{k&&p&&Re&&x(De)},[k,p,Re,De]);let eo=Ui.useMemo(()=>({position:"absolute",top:ke.arrow?.y,left:ke.arrow?.x}),[ke.arrow]),vo=ke.arrow?.centerOffset!==0;return Ui.useMemo(()=>({positionerStyles:Mt,arrowStyles:eo,arrowRef:$,arrowUncentered:vo,side:Ke,align:Ye,physicalSide:De,anchorHidden:bt,refs:Fe,context:fe,isPositioned:Re,update:Lt}),[Mt,eo,$,vo,Ke,Ye,De,bt,Fe,fe,Re,Lt])}function tX(e){return e!=null&&"current"in e}function RB(e){return e==="starting"?Hq:Br}function nX(e,t,{styles:o,transitionStatus:r,props:n,refs:i,hidden:s,inert:a=!1}){let l={...o};return a&&(l.pointerEvents="none"),sr("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:l},RB(r),n],stateAttributesMapping:Yb})}var kf={};ps(kf,{Panel:()=>lX,Root:()=>sX,Trigger:()=>aX});var K_=c(pe(),1);var PB={...mq,...Nb};var iX=c(C(),1),sX=K_.forwardRef(function(t,o){let{render:r,className:n,defaultOpen:i=!1,disabled:s=!1,onOpenChange:a,open:l,style:u,...d}=t,f=Be(a),m=uq({open:l,defaultOpen:i,onOpenChange:f,disabled:s}),h=K_.useMemo(()=>({open:m.open,disabled:m.disabled,transitionStatus:m.transitionStatus}),[m.open,m.disabled,m.transitionStatus]),p=K_.useMemo(()=>({...m,onOpenChange:f,state:h}),[m,f,h]),g=sr("div",t,{state:h,ref:o,props:d,stateAttributesMapping:PB});return(0,iX.jsx)(M4.Provider,{value:p,children:g})});var IB=c(pe(),1);var TOe={...fq,...Nb},aX=IB.forwardRef(function(t,o){let{panelId:r,open:n,handleTrigger:i,state:s,disabled:a}=oB(),{className:l,disabled:u=a,id:d,render:f,nativeButton:m=!0,style:h,...p}=t,{getButtonProps:g,buttonRef:b}=V4({disabled:u,focusableWhenDisabled:!0,native:m}),v=IB.useMemo(()=>({"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i}),[r,n,i]);return sr("button",t,{state:s,ref:[o,b],props:[v,p,g],stateAttributesMapping:TOe})});var OB=c(pe(),1);var x3=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});var lX=OB.forwardRef(function(t,o){let{className:r,hiddenUntilFound:n,keepMounted:i,render:s,id:a,style:l,...u}=t,{abortControllerRef:d,animationTypeRef:f,height:m,mounted:h,onOpenChange:p,open:g,panelId:b,panelRef:v,runOnceAnimationsFinish:y,setDimensions:k,setHiddenUntilFound:S,setKeepMounted:_,setMounted:x,setPanelIdState:E,setOpen:T,setVisible:R,state:B,transitionDimensionRef:O,visible:I,width:P,transitionStatus:M}=oB(),L=n??!1,j=i??!1;Ce(()=>{if(a)return E(a),()=>{E(void 0)}},[a,E]),Ce(()=>{S(L)},[S,L]),Ce(()=>{_(j)},[_,j]);let{props:V}=Nq({abortControllerRef:d,animationTypeRef:f,externalRef:o,height:m,hiddenUntilFound:L,id:b,keepMounted:j,mounted:h,onOpenChange:p,open:g,panelRef:v,runOnceAnimationsFinish:y,setDimensions:k,setMounted:x,setOpen:T,setVisible:R,transitionDimensionRef:O,visible:I,width:P});jb({open:g&&M==="idle",ref:v,onComplete(){g&&k({height:void 0,width:void 0})}});let D=OB.useMemo(()=>({...B,transitionStatus:M}),[B,M]),z=sr("div",t,{state:D,ref:[o,v],props:[V,{style:{[x3.collapsiblePanelHeight]:m===void 0?"auto":`${m}px`,[x3.collapsiblePanelWidth]:P===void 0?"auto":`${P}px`}},u],stateAttributesMapping:PB});return j||L||h?z:null});var un=c(pe(),1),pX=c(Kc(),1);var cX=c(pe(),1);function uX(e){let[t,o]=cX.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var sh=c(pe(),1);function w3(e){let t=cn(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=ar(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r;return(hf(o)!==i||hf(r)!==s)&&(o=i,r=s),{width:o,height:r}}var BOe=()=>!0;function fX(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,enabled:i=BOe,onMeasureLayout:s,onMeasureLayoutComplete:a,side:l,direction:u}=e,d=df(t,!0,!1),f=uf(),m=sh.useRef(null),h=sh.useRef(null),p=sh.useRef(!0),g=sh.useRef(qc),b=Be(s),v=Be(a),y=sh.useMemo(()=>{let k=l==="top",S=l==="left";return u==="rtl"?(k=k||l==="inline-end",S=S||l==="inline-end"):(k=k||l==="inline-start",S=S||l==="inline-start"),k?{position:"absolute",[l==="top"?"bottom":"top"]:"0",[S?"right":"left"]:"0"}:Br},[l,u]);Ce(()=>{if(!n||!i()||typeof ResizeObserver!="function"){g.current=qc,p.current=!0,m.current=null,h.current=null;return}if(!t||!o)return;g.current=dX(t,y);let k=new ResizeObserver(P=>{let M=P[0];M&&(h.current={width:Math.ceil(M.borderBoxSize[0].inlineSize),height:Math.ceil(M.borderBoxSize[0].blockSize)})});k.observe(t),AB(t,"auto");let S=LB(t,"position","static"),_=LB(t,"transform","none"),x=LB(t,"scale","1"),E=dX(o,{"--available-width":"max-content","--available-height":"max-content"});function T(){S(),_(),E()}function R(){T(),x()}if(b?.(),p.current||m.current===null){Y_(o,"max-content");let P=w3(t);return m.current=P,Y_(o,P),R(),v?.(null,P),p.current=!1,()=>{k.disconnect(),g.current(),g.current=qc}}AB(t,"auto"),Y_(o,"max-content");let B=m.current??h.current,O=w3(t);if(m.current=O,!B)return Y_(o,O),R(),v?.(null,O),()=>{k.disconnect(),f.cancel(),g.current(),g.current=qc};AB(t,B),R(),v?.(B,O),Y_(o,O);let I=new AbortController;return f.request(()=>{AB(t,O),d(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},I.signal)}),()=>{k.disconnect(),I.abort(),f.cancel(),g.current(),g.current=qc}},[r,t,o,d,f,i,n,b,v,y])}function LB(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function dX(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(LB(e,r,n));return o.length?()=>{o.forEach(r=>r())}:qc}function AB(e,t){let o=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",r)}function Y_(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",r)}var qb=c(C(),1);function hX(e){let{store:t,side:o,cssVars:r,children:n}=e,i=Lb(),s=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),l=t.useState("open"),u=t.useState("payload"),d=t.useState("mounted"),f=t.useState("popupElement"),m=t.useState("positionerElement"),h=uX(l?s:null),p=IOe(a,u),g=un.useRef(null),[b,v]=un.useState(null),[y,k]=un.useState(null),S=un.useRef(null),_=un.useRef(null),x=df(S,!0,!1),E=uf(),[T,R]=un.useState(null),[B,O]=un.useState(!1);Ce(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let I=Be(()=>{S.current?.style.setProperty("animation","none"),S.current?.style.setProperty("transition","none"),_.current?.style.setProperty("display","none")}),P=Be(D=>{S.current?.style.removeProperty("animation"),S.current?.style.removeProperty("transition"),_.current?.style.removeProperty("display"),D&&R(D)}),M=un.useRef(null);Ce(()=>{if(s&&h&&s!==h&&M.current!==s&&g.current){v(g.current),O(!0);let D=POe(h,s);k(D),E.request(()=>{pX.flushSync(()=>{O(!1)}),x(()=>{v(null),R(null),g.current=null})}),M.current=s}},[s,h,b,x,E]),Ce(()=>{let D=S.current;if(!D)return;let z=Rr(D).createElement("div");for(let W of Array.from(D.childNodes))z.appendChild(W.cloneNode(!0));g.current=z});let L=b!=null,j;L?j=(0,qb.jsxs)(un.Fragment,{children:[(0,qb.jsx)("div",{"data-previous":!0,inert:ZZ(!0),ref:_,style:{...T?{[r.popupWidth]:`${T.width}px`,[r.popupHeight]:`${T.height}px`}:null,position:"absolute"},"data-ending-style":B?void 0:""},"previous"),(0,qb.jsx)("div",{"data-current":!0,ref:S,"data-starting-style":B?"":void 0,children:n},p)]}):j=(0,qb.jsx)("div",{"data-current":!0,ref:S,children:n},p),Ce(()=>{let D=_.current;!D||!b||D.replaceChildren(...Array.from(b.childNodes))},[b]),fX({popupElement:f,positionerElement:m,mounted:d,content:u,onMeasureLayout:I,onMeasureLayoutComplete:P,side:o,direction:i});let V={activationDirection:ROe(y),transitioning:L};return{children:j,state:V}}function ROe(e){if(e)return`${mX(e.horizontal,5,"right","left")} ${mX(e.vertical,5,"down","up")}`}function mX(e,t,o,r){return e>t?o:e<-t?r:""}function POe(e,t){let o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n={x:o.left+o.width/2,y:o.top+o.height/2},i={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:i.x-n.x,vertical:i.y-n.y}}function IOe(e,t){let[o,r]=un.useState(0),n=un.useRef(e),i=un.useRef(t),s=un.useRef(!1);return Ce(()=>{let a=n.current,l=i.current,u=e!==a,d=t!==l;u?(r(f=>f+1),s.current=!d):s.current&&d&&(r(f=>f+1),s.current=!1),n.current=e,i.current=t},[e,t]),`${e??"current"}-${o}`}var MB=c(pe(),1),gX=c(Kc(),1);var bX=c(C(),1),yX=MB.forwardRef(function(t,o){let{children:r,container:n,className:i,render:s,style:a,...l}=t,{portalNode:u,portalSubtree:d}=Y4({container:n,ref:o,componentProps:t,elementProps:l});return!d&&!u?null:(0,bX.jsxs)(MB.Fragment,{children:[d,u&&gX.createPortal(r,u)]})});var li={};ps(li,{Arrow:()=>MX,Handle:()=>q_,Popup:()=>AX,Portal:()=>RX,Positioner:()=>IX,Provider:()=>NX,Root:()=>_X,Trigger:()=>EX,Viewport:()=>FX,createHandle:()=>zX});var Dl=c(pe(),1);var NB=c(pe(),1),C3=NB.createContext(void 0);function As(e){let t=NB.useContext(C3);if(t===void 0&&!e)throw new Error(Tr(72));return t}var vX=c(pe(),1),kX=c(Kc(),1);var OOe={...GZ,disabled:ft(e=>e.disabled),instantType:ft(e=>e.instantType),isInstantPhase:ft(e=>e.isInstantPhase),trackCursorAxis:ft(e=>e.trackCursorAxis),disableHoverablePopup:ft(e=>e.disableHoverablePopup),lastOpenChangeReason:ft(e=>e.openChangeReason),closeOnClick:ft(e=>e.closeOnClick),closeDelay:ft(e=>e.closeDelay),hasViewport:ft(e=>e.hasViewport)},Zb=class e extends $b{constructor(t){super({...AOe(),...t},{popupRef:vX.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new yf},OOe)}setOpen=(t,o)=>{let r=o.reason,n=r===ze.triggerHover,i=t&&r===ze.triggerFocus,s=!t&&(r===ze.triggerPress||r===ze.escapeKey);if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,o);let a=()=>{let l={open:t,openChangeReason:r};i?l.instantType="focus":s?l.instantType="dismiss":r===ze.triggerHover&&(l.instantType=void 0);let u=o.trigger?.id??null;(u||t)&&(l.activeTriggerId=u,l.activeTriggerElement=o.trigger??null),this.update(l)};n?kX.flushSync(a):a()};static useStore(t,o){let r=Go(()=>new e(o)).current,n=t??r,i=p3({popupStore:n,onOpenChange:n.setOpen});return n.state.floatingRootContext=i,n}};function AOe(){return{...UZ(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var SX=c(C(),1),_X=d3(function(t){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:f,defaultTriggerId:m=null,children:h}=t,p=Zb.useStore(d?.store,{open:r,openProp:n,activeTriggerId:m,triggerIdProp:f});Fq(()=>{n===void 0&&p.state.open===!1&&r===!0&&p.update({open:!0,activeTriggerId:m})}),p.useControlledProp("openProp",n),p.useControlledProp("triggerIdProp",f),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let g=p.useState("open"),b=!o&&g,v=p.useState("activeTriggerId"),y=p.useState("payload");p.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i}),Ce(()=>{g&&o&&p.setOpen(!1,kt(ze.disabled))},[g,o,p]),p.useSyncedValue("disabled",o),zZ(p);let{forceUnmount:k,transitionStatus:S}=jZ(b,p),_=p.select("floatingRootContext"),x=p.useState("isInstantPhase"),E=p.useState("instantType"),T=p.useState("lastOpenChangeReason"),R=Dl.useRef(null);Ce(()=>{S==="ending"&&T===ze.none||S!=="ending"&&x?(E!=="delay"&&(R.current=E),p.set("instantType","delay")):R.current!==null&&(p.set("instantType",R.current),R.current=null)},[S,x,T,E,p]),Ce(()=>{b&&v==null&&p.set("payload",void 0)},[p,v,b]);let B=Dl.useCallback(()=>{p.setOpen(!1,kt(ze.imperativeAction))},[p]);Dl.useImperativeHandle(a,()=>({unmount:k,close:B}),[k,B]);let O=Z4(_,{enabled:!o,referencePress:()=>p.select("closeOnClick")}),I=q4(_,{enabled:!o&&s!=="none",axis:s==="none"?void 0:s}),{getReferenceProps:P,getFloatingProps:M,getTriggerProps:L}=k3([O,I]),j=Dl.useMemo(()=>P(),[P]),V=Dl.useMemo(()=>L(),[L]),D=Dl.useMemo(()=>M(),[M]);return p.useSyncedValues({activeTriggerProps:j,inactiveTriggerProps:V,popupProps:D}),(0,SX.jsx)(C3.Provider,{value:p,children:typeof h=="function"?h({payload:y}):h})});var CX=c(pe(),1);var DB=c(pe(),1),E3=DB.createContext(void 0);function xX(){return DB.useContext(E3)}var wX=(function(e){return e[e.popupOpen=W_.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var EX=NZ(function(t,o){let{className:r,render:n,handle:i,payload:s,disabled:a,delay:l,closeOnClick:u=!0,closeDelay:d,id:f,style:m,...h}=t,p=As(!0),g=i?.store??p;if(!g)throw new Error(Tr(82));let b=XT(f),v=g.useState("isTriggerActive",b),y=g.useState("isOpenedByTrigger",b),k=g.useState("floatingRootContext"),S=CX.useRef(null),_=l??600,x=d??0,{registerTrigger:E,isMountedByThisTrigger:T}=FZ(b,S,g,{payload:s,closeOnClick:u,closeDelay:x}),R=xX(),{delayRef:B,isInstantPhase:O,hasProvider:I}=K4(k,{open:y});g.useSyncedValue("isInstantPhase",O);let P=g.useState("disabled"),M=a??P,L=g.useState("trackCursorAxis"),j=g.useState("disableHoverablePopup"),V=v3(k,{enabled:!M,mouseOnly:!0,move:!1,handleClose:!j&&L!=="both"?S3():null,restMs(){let ne=R?.delay,X=typeof B.current=="object"?B.current.open:void 0,ee=_;return I&&(X!==0?ee=l??ne??_:ee=0),ee},delay(){let ne=typeof B.current=="object"?B.current.close:void 0,X=x;return d==null&&I&&(X=ne),{close:X}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>g.select("transitionStatus")==="ending"}),D=g3(k,{enabled:!M}).reference,z={open:y},W=g.useState("triggerProps",T);return sr("button",t,{state:z,ref:[o,E,S],props:[V,D,W,{onPointerDown(){g.set("closeOnClick",u)},id:b,[wX.triggerDisabled]:M?"":void 0},h],stateAttributesMapping:qZ})});var BX=c(pe(),1);var VB=c(pe(),1),T3=VB.createContext(void 0);function TX(){let e=VB.useContext(T3);if(e===void 0)throw new Error(Tr(70));return e}var B3=c(C(),1),RX=BX.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return As().useState("mounted")||r?(0,B3.jsx)(T3.Provider,{value:r,children:(0,B3.jsx)(yX,{ref:o,...n})}):null});var zB=c(pe(),1);var FB=c(pe(),1),R3=FB.createContext(void 0);function Xb(){let e=FB.useContext(R3);if(e===void 0)throw new Error(Tr(71));return e}var PX=c(C(),1),IX=zB.forwardRef(function(t,o){let{render:r,className:n,anchor:i,positionMethod:s="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:h=5,sticky:p=!1,disableAnchorTracking:g=!1,collisionAvoidance:b=Uq,style:v,...y}=t,k=As(),S=TX(),_=k.useState("open"),x=k.useState("mounted"),E=k.useState("trackCursorAxis"),T=k.useState("disableHoverablePopup"),R=k.useState("floatingRootContext"),B=k.useState("instantType"),O=k.useState("transitionStatus"),I=k.useState("hasViewport"),P=rX({anchor:i,positionMethod:s,floatingRootContext:R,mounted:x,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:f,collisionPadding:m,sticky:p,arrowPadding:h,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:b,adaptiveOrigin:I?JZ:void 0}),M=zB.useMemo(()=>({open:_,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:E!=="none"?"tracking-cursor":B}),[_,P.side,P.align,P.anchorHidden,E,B]),L=nX(t,M,{styles:P.positionerStyles,transitionStatus:O,props:y,refs:[o,k.useStateSetter("positionerElement")],hidden:!x,inert:!_||E==="both"||T});return(0,PX.jsx)(R3.Provider,{value:P,children:L})});var OX=c(pe(),1);var LOe={...Yb,...Nb},AX=OX.forwardRef(function(t,o){let{className:r,render:n,style:i,...s}=t,a=As(),{side:l,align:u}=Xb(),d=a.useState("open"),f=a.useState("instantType"),m=a.useState("transitionStatus"),h=a.useState("popupProps"),p=a.useState("floatingRootContext");jb({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}});let g=a.useState("disabled"),b=a.useState("closeDelay");return y3(p,{enabled:!g,closeDelay:b}),sr("div",t,{state:{open:d,side:l,align:u,instant:f,transitionStatus:m},ref:[o,a.context.popupRef,a.useStateSetter("popupElement")],props:[h,RB(m),s],stateAttributesMapping:LOe})});var LX=c(pe(),1);var MX=LX.forwardRef(function(t,o){let{className:r,render:n,style:i,...s}=t,a=As(),l=a.useState("open"),u=a.useState("instantType"),{arrowRef:d,side:f,align:m,arrowUncentered:h,arrowStyles:p}=Xb();return sr("div",t,{state:{open:l,side:f,align:m,uncentered:h,instant:u},ref:[o,d],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:Yb})});var P3=c(pe(),1);var I3=c(C(),1),NX=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,i=P3.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),s=P3.useMemo(()=>({open:o,close:r}),[o,r]);return(0,I3.jsx)(E3.Provider,{value:i,children:(0,I3.jsx)($4,{delay:s,timeoutMs:n,children:t.children})})};var VX=c(pe(),1);var DX=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var MOe={activationDirection:e=>e?{"data-activation-direction":e}:null},FX=VX.forwardRef(function(t,o){let{render:r,className:n,style:i,children:s,...a}=t,l=As(),u=Xb(),d=l.useState("instantType"),{children:f,state:m}=hX({store:l,side:u.side,cssVars:DX,children:s}),h={activationDirection:m.activationDirection,transitioning:m.transitioning,instant:d};return sr("div",t,{state:h,ref:o,props:[a,{children:f}],stateAttributesMapping:MOe})});var q_=class{constructor(){this.store=new Zb}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(Tr(81,t));this.store.setOpen(!0,kt(ze.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,kt(ze.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}};function zX(){return new q_}function dn(e){return sr(e.defaultTagName??"div",e,e)}var UX=c(A(),1),O3="data-wp-hash";function A3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&DOe(document)),e.__wpStyleRuntime}function NOe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${O3}]`))if(o.getAttribute(O3)===t)return!0;return!1}function GX(e,t,o){if(!e.head)return;let r=A3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(NOe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(O3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function DOe(e){let t=A3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)GX(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function WX(e,t){let o=A3();o.styles.set(e,t);for(let r of o.documents.keys())GX(r,e,t)}typeof process>"u",WX("0c8601dd83",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}');var jX={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",WX("1fb29d3a3c","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");var HX={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},Xc=(0,UX.forwardRef)(function({variant:t="body-md",render:o,className:r,...n},i){return dn({render:o,defaultTagName:"span",ref:i,props:Wo(n,{className:U(jX.text,HX.heading,HX.p,jX[t],r)})})});var qX=c(C(),1),L3="data-wp-hash";function M3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&FOe(document)),e.__wpStyleRuntime}function VOe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${L3}]`))if(o.getAttribute(L3)===t)return!0;return!1}function YX(e,t,o){if(!e.head)return;let r=M3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(VOe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(L3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function FOe(e){let t=M3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)YX(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function zOe(e,t){let o=M3();o.styles.set(e,t);for(let r of o.documents.keys())YX(r,e,t)}typeof process>"u",zOe("d6a685e1aa","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6be);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee995);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c6f7cd);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-fg-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}");var $X={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},N3=(0,KX.forwardRef)(function({intent:t="none",className:o,...r},n){return(0,qX.jsx)(Xc,{ref:n,className:U($X.badge,$X[`is-${t}-intent`],o),...r,variant:"body-sm"})});var ZX=c(A(),1),XX=c(te(),1),QX=c(C(),1),D3=(0,ZX.forwardRef)(function({icon:t,size:o=24,...r},n){return(0,QX.jsx)(XX.SVG,{ref:n,fill:"currentColor",...t.props,...r,width:o,height:o})});var Vl={};ps(Vl,{Content:()=>UB,FullBleed:()=>lQ,Header:()=>HB,Root:()=>jB,Title:()=>uQ});var JX=c(A(),1),V3="data-wp-hash";function F3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&HOe(document)),e.__wpStyleRuntime}function jOe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${V3}]`))if(o.getAttribute(V3)===t)return!0;return!1}function eQ(e,t,o){if(!e.head)return;let r=F3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(jOe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(V3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function HOe(e){let t=F3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)eQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function tQ(e,t){let o=F3();o.styles.set(e,t);for(let r of o.documents.keys())eQ(r,e,t)}typeof process>"u",tQ("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var UOe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",tQ("7bb6e0116a","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");var GOe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},jB=(0,JX.forwardRef)(function({render:t,...o},r){let n=U(GOe.root,UOe["box-sizing"]);return dn({defaultTagName:"div",render:t,ref:r,props:Wo({className:n},o)})});var oQ=c(A(),1),z3="data-wp-hash";function j3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&$Oe(document)),e.__wpStyleRuntime}function WOe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${z3}]`))if(o.getAttribute(z3)===t)return!0;return!1}function rQ(e,t,o){if(!e.head)return;let r=j3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(WOe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(z3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function $Oe(e){let t=j3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)rQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function KOe(e,t){let o=j3();o.styles.set(e,t);for(let r of o.documents.keys())rQ(r,e,t)}typeof process>"u",KOe("7bb6e0116a","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");var YOe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},HB=(0,oQ.forwardRef)(function({render:t,...o},r){return dn({defaultTagName:"div",render:t,ref:r,props:Wo({className:YOe.header},o)})});var nQ=c(A(),1),H3="data-wp-hash";function U3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&ZOe(document)),e.__wpStyleRuntime}function qOe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${H3}]`))if(o.getAttribute(H3)===t)return!0;return!1}function iQ(e,t,o){if(!e.head)return;let r=U3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(qOe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(H3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function ZOe(e){let t=U3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)iQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function XOe(e,t){let o=U3();o.styles.set(e,t);for(let r of o.documents.keys())iQ(r,e,t)}typeof process>"u",XOe("7bb6e0116a","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");var QOe={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},UB=(0,nQ.forwardRef)(function({render:t,...o},r){return dn({defaultTagName:"div",render:t,ref:r,props:Wo({className:QOe.content},o)})});var sQ=c(A(),1),G3="data-wp-hash";function W3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&e2e(document)),e.__wpStyleRuntime}function JOe(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${G3}]`))if(o.getAttribute(G3)===t)return!0;return!1}function aQ(e,t,o){if(!e.head)return;let r=W3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(JOe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(G3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function e2e(e){let t=W3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)aQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function t2e(e,t){let o=W3();o.styles.set(e,t);for(let r of o.documents.keys())aQ(r,e,t)}typeof process>"u",t2e("7bb6e0116a","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");var o2e={root:"_02872bf298eadc43__root",header:"bbccc92e6ba5662d__header",content:"_5dffdaf2a6e669ac__content",fullbleed:"c1fa192587e1b4a6__fullbleed"},lQ=(0,sQ.forwardRef)(function({render:t,...o},r){return dn({defaultTagName:"div",render:t,ref:r,props:Wo({className:o2e.fullbleed},o)})});var cQ=c(A(),1);var $3=c(C(),1),r2e=(0,$3.jsx)("div",{}),uQ=(0,cQ.forwardRef)(function({render:t=r2e,children:o,...r},n){return(0,$3.jsx)(Xc,{ref:n,variant:"heading-lg",render:t,...r,children:o})});var dQ=c(A(),1),fQ=c(C(),1),K3=(0,dQ.forwardRef)(function(t,o){return(0,fQ.jsx)(kf.Panel,{ref:o,...t})});var mQ=c(A(),1),pQ=c(C(),1),Y3=(0,mQ.forwardRef)(function(t,o){return(0,pQ.jsx)(kf.Root,{ref:o,...t})});var hQ=c(A(),1),gQ=c(C(),1),q3=(0,hQ.forwardRef)(function(t,o){return(0,gQ.jsx)(kf.Trigger,{ref:o,...t})});var ah={};ps(ah,{Content:()=>TQ,Header:()=>_Q,HeaderDescription:()=>wQ,Root:()=>yQ});var bQ=c(A(),1);var X3=c(C(),1),yQ=(0,bQ.forwardRef)(function({render:t,...o},r){return(0,X3.jsx)(Y3,{ref:r,render:(0,X3.jsx)(jB,{render:t}),...o})});var Jb=c(A(),1);var vQ=c(A(),1),GB=(0,vQ.createContext)({setDescriptionId:()=>{}});var Qc=c(C(),1),Q3="data-wp-hash";function J3(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&i2e(document)),e.__wpStyleRuntime}function n2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Q3}]`))if(o.getAttribute(Q3)===t)return!0;return!1}function SQ(e,t,o){if(!e.head)return;let r=J3(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(n2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Q3,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function i2e(e){let t=J3();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)SQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function ez(e,t){let o=J3();o.styles.set(e,t);for(let r of o.documents.keys())SQ(r,e,t)}typeof process>"u",ez("f1b9bb6252","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer wp-ui-compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}");var Qb={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content",overflowVisible:"_165c4572592944b2__overflowVisible","content-inner":"_41bfdbf7b6c087c2__content-inner"};typeof process>"u",ez("1fb29d3a3c","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");var kQ={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",ez("2a5ab8f3a7","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");var s2e={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"},_Q=(0,Jb.forwardRef)(function({children:t,className:o,render:r,...n},i){let[s,a]=(0,Jb.useState)(),l=(0,Jb.useMemo)(()=>({setDescriptionId:a}),[a]);return dn({defaultTagName:"div",render:r,ref:i,props:Wo(n,{className:U(kQ.heading,Qb["heading-wrapper"],o),children:(0,Qc.jsx)(GB.Provider,{value:l,children:(0,Qc.jsxs)(q3,{className:Qb.header,render:(0,Qc.jsx)(HB,{}),nativeButton:!1,"aria-describedby":s,children:[(0,Qc.jsx)("div",{className:Qb["header-content"],children:t}),(0,Qc.jsx)("div",{className:U(Qb["header-trigger-positioner"]),children:(0,Qc.jsx)("div",{className:U(Qb["header-trigger-wrapper"],kQ.div,s2e["outset-ring--focus-parent-visible"]),children:(0,Qc.jsx)(D3,{icon:Ur,className:Qb["header-trigger"]})})})]})})})})});var Sf=c(A(),1);var xQ=c(C(),1),wQ=(0,Sf.forwardRef)(function({children:t,className:o,...r},n){let i=(0,Sf.useId)(),{setDescriptionId:s}=(0,Sf.useContext)(GB);return(0,Sf.useEffect)(()=>(s(i),()=>s(void 0)),[i,s]),(0,xQ.jsx)("div",{ref:n,id:i,"aria-hidden":"true",className:o,...r,children:t})});var CQ=c(A(),1);var rz=c(C(),1),oz="data-wp-hash";function nz(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&l2e(document)),e.__wpStyleRuntime}function a2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${oz}]`))if(o.getAttribute(oz)===t)return!0;return!1}function EQ(e,t,o){if(!e.head)return;let r=nz(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(a2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oz,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function l2e(e){let t=nz();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)EQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function c2e(e,t){let o=nz();o.styles.set(e,t);for(let r of o.documents.keys())EQ(r,e,t)}typeof process>"u",c2e("f1b9bb6252","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer wp-ui-compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}");var tz={"heading-wrapper":"_626190151275d6d3__heading-wrapper","header-content":"cab17c7a373cb60d__header-content","header-trigger-positioner":"dd89d27c4f15912d__header-trigger-positioner","header-trigger-wrapper":"bcfab5f2448bafef__header-trigger-wrapper","header-trigger":"_3106f8d2b0330faa__header-trigger",header:"_5d2dfcb4085c6d0f__header",content:"e34cf37ccd0d81e0__content",overflowVisible:"_165c4572592944b2__overflowVisible","content-inner":"_41bfdbf7b6c087c2__content-inner"},TQ=(0,CQ.forwardRef)(function({className:t,render:o,children:r,hiddenUntilFound:n=!0,...i},s){return(0,rz.jsx)(K3,{ref:s,className:a=>U(tz.content,a.open&&a.transitionStatus==="idle"&&tz.overflowVisible,t),hiddenUntilFound:n,...i,children:(0,rz.jsx)(UB,{className:tz["content-inner"],render:o,children:r})})});var PQ=c(A(),1);function iz(e,t,o){return(0,PQ.cloneElement)(e??t,{children:o})}var IQ=c(Yw(),1),{lock:ect,unlock:OQ}=(0,IQ.__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/ui");var AQ=c(A(),1),sz="data-wp-hash";function az(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&d2e(document)),e.__wpStyleRuntime}function u2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${sz}]`))if(o.getAttribute(sz)===t)return!0;return!1}function LQ(e,t,o){if(!e.head)return;let r=az(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(u2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(sz,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function d2e(e){let t=az();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)LQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function f2e(e,t){let o=az();o.styles.set(e,t);for(let r of o.documents.keys())LQ(r,e,t)}typeof process>"u",f2e("b51ff41489","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");var m2e={stack:"_19ce0419607e1896__stack"},p2e={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},Ne=(0,AQ.forwardRef)(function({direction:t,gap:o,align:r,justify:n,wrap:i,render:s,...a},l){let u={gap:o&&p2e[o],alignItems:r,justifyContent:n,flexDirection:t,flexWrap:i};return dn({render:s,ref:l,props:Wo(a,{style:u,className:m2e.stack})})});var lt={};ps(lt,{Popup:()=>YQ,Portal:()=>WB,Positioner:()=>$B,Provider:()=>tJ,Root:()=>JQ,Trigger:()=>XQ});var WQ=c(A(),1),$Q=c(RQ(),1);var FQ=c(A(),1);var lz="data-wp-hash";function cz(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&g2e(document)),e.__wpStyleRuntime}function h2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${lz}]`))if(o.getAttribute(lz)===t)return!0;return!1}function NQ(e,t,o){if(!e.head)return;let r=cz(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(h2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(lz,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function g2e(e){let t=cz();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)NQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function b2e(e,t){let o=cz();o.styles.set(e,t);for(let r of o.documents.keys())NQ(r,e,t)}typeof process>"u",b2e("45eb1fe20f","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui-utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}");var MQ={slot:"_11fc52b637ff8a7e__slot"},DQ="data-wp-compat-overlay-slot";function y2e(){return typeof document>"u"?null:document}function v2e(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var Jc=null;function k2e(e){let t=e.createElement("div");return t.setAttribute(DQ,""),MQ.slot&&t.classList.add(MQ.slot),e.body.appendChild(t),t}function VQ(){if(typeof window>"u"||!v2e()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=y2e();if(!e||!e.body)return;if(Jc&&Jc.ownerDocument===e&&Jc.isConnected)return Jc;let t=e.querySelector(`[${DQ}]`);return t instanceof HTMLDivElement?(Jc=t,t):(Jc?.isConnected&&Jc.remove(),Jc=k2e(e),Jc)}var zQ=c(C(),1),WB=(0,FQ.forwardRef)(function({container:t,...o},r){return(0,zQ.jsx)(li.Portal,{container:t??VQ(),...o,ref:r})});var jQ=c(A(),1),GQ=c(C(),1),uz="data-wp-hash";function dz(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_2e(document)),e.__wpStyleRuntime}function S2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${uz}]`))if(o.getAttribute(uz)===t)return!0;return!1}function HQ(e,t,o){if(!e.head)return;let r=dz(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(S2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(uz,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function _2e(e){let t=dz();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)HQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function UQ(e,t){let o=dz();o.styles.set(e,t);for(let r of o.documents.keys())HQ(r,e,t)}typeof process>"u",UQ("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var x2e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",UQ("8293efbb49",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-sm,2px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}');var w2e={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},$B=(0,jQ.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...i},s){return(0,GQ.jsx)(li.Positioner,{ref:s,align:t,side:r,sideOffset:n,...i,className:U(x2e["box-sizing"],w2e.positioner,o)})});var Z_=c(C(),1),fz="data-wp-hash";function mz(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&E2e(document)),e.__wpStyleRuntime}function C2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${fz}]`))if(o.getAttribute(fz)===t)return!0;return!1}function KQ(e,t,o){if(!e.head)return;let r=mz(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(C2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(fz,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function E2e(e){let t=mz();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)KQ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function T2e(e,t){let o=mz();o.styles.set(e,t);for(let r of o.documents.keys())KQ(r,e,t)}typeof process>"u",T2e("8293efbb49",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-sm,2px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}');var B2e={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},R2e=OQ($Q.privateApis).ThemeProvider,YQ=(0,WQ.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...i},s){let a=(0,Z_.jsx)(R2e,{color:{bg:"#1e1e1e"},children:(0,Z_.jsx)(li.Popup,{ref:s,className:U(B2e.popup,n),...i,children:r})}),l=iz(o,(0,Z_.jsx)($B,{}),a);return iz(t,(0,Z_.jsx)(WB,{}),l)});var qQ=c(A(),1),ZQ=c(C(),1),XQ=(0,qQ.forwardRef)(function(t,o){return(0,ZQ.jsx)(li.Trigger,{ref:o,...t})});var QQ=c(C(),1);function JQ(e){return(0,QQ.jsx)(li.Root,{...e})}var eJ=c(C(),1);function tJ({...e}){return(0,eJ.jsx)(li.Provider,{...e})}var oJ=c(A(),1),pz="data-wp-hash";function hz(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&I2e(document)),e.__wpStyleRuntime}function P2e(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${pz}]`))if(o.getAttribute(pz)===t)return!0;return!1}function rJ(e,t,o){if(!e.head)return;let r=hz(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(P2e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(pz,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),n.add(t)}function I2e(e){let t=hz();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)rJ(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function O2e(e,t){let o=hz();o.styles.set(e,t);for(let r of o.documents.keys())rJ(r,e,t)}typeof process>"u",O2e("c46e8cb841","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}");var A2e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},ct=(0,oJ.forwardRef)(function({render:t,...o},r){return dn({render:t,ref:r,props:Wo({className:A2e["visually-hidden"]},o,{"data-visually-hidden":""})})});var Nf=c(F(),1),wx=c(oe(),1),jre=c(G(),1);var ey=c(F(),1),ty=c(A(),1),iJ=c(N(),1),X_=c(C(),1),nJ=[(0,ty.createInterpolateElement)((0,ey.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,X_.jsx)("kbd",{})}),(0,ty.createInterpolateElement)((0,ey.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,X_.jsx)("kbd",{})}),(0,ty.createInterpolateElement)((0,ey.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,X_.jsx)("kbd",{})}),(0,ey.__)("Drag files into the editor to automatically insert media blocks."),(0,ey.__)("Change a block's type by pressing the block icon on the toolbar.")];function L2e(){let[e]=(0,ty.useState)(()=>Math.floor(Math.random()*nJ.length));return(0,X_.jsx)(iJ.Tip,{children:nJ[e]})}var sJ=L2e;var Sy=c(Q(),1),xoe=c(A(),1),woe=c(F(),1);var lh=c(N(),1);var KB=c(G(),1),aJ=c(Je(),1),_f=c(F(),1);var YB=c(Q(),1);var Zr=c(C(),1),{Badge:M2e}=H(lh.privateApis);function N2e({children:e,onClick:t}){return t?(0,Zr.jsx)(lh.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-card__parent-select-button",onClick:t,children:e}):e}function D2e({title:e,icon:t,description:o,blockType:r,className:n,name:i,allowParentNavigation:s,parentClientId:a,isChild:l,children:u,clientId:d,controls:f}){r&&((0,aJ.default)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:o}=r);let{parentBlockClientId:m,parentBlockName:h}=(0,KB.useSelect)(b=>{if(a||l||!s)return{};let{getBlockParents:v,getBlockName:y}=b(w),S=v(d,!1).find(_=>{let x=y(_);return x==="core/navigation"||(0,YB.hasBlockSupport)(x,"listView")});return{parentBlockClientId:S,parentBlockName:S?y(S):null}},[d,s,l,a]),{selectBlock:p}=(0,KB.useDispatch)(w),g=a?"div":"h2";return(0,Zr.jsx)("div",{className:U("block-editor-block-card",{"is-parent":a,"is-child":l},n),children:(0,Zr.jsxs)(Ne,{direction:"column",gap:"sm",children:[(0,Zr.jsxs)(Ne,{direction:"row",align:"center",justify:"space-between",children:[(0,Zr.jsxs)(Ne,{direction:"row",align:"center",justify:"flex-start",children:[m&&(0,Zr.jsx)(lh.Button,{onClick:()=>p(m),label:h?(0,_f.sprintf)((0,_f.__)('Go to "%s" block'),(0,YB.getBlockType)(h)?.title):(0,_f.__)("Go to parent block"),style:{minWidth:24,padding:0},icon:(0,_f.isRTL)()?pr:xn,size:"small"}),l&&(0,Zr.jsx)("span",{className:"block-editor-block-card__child-indicator-icon",children:(0,Zr.jsx)(lh.Icon,{icon:(0,_f.isRTL)()?lS:cS})}),(0,Zr.jsxs)(N2e,{onClick:a?()=>{p(a)}:void 0,children:[(0,Zr.jsx)(rt,{icon:t,showColors:!0}),(0,Zr.jsxs)(Ne,{direction:"column",gap:"xs",children:[(0,Zr.jsxs)(g,{className:"block-editor-block-card__title",children:[(0,Zr.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!a&&!l&&!!i?.length&&(0,Zr.jsx)(M2e,{children:e})]}),u]})]})]}),f]}),!a&&!l&&o&&(0,Zr.jsx)(Xc,{className:"block-editor-block-card__description",children:o})]})})}var Q_=D2e;var MR=c(oe(),1),i6=c(G(),1),mh=c(A(),1),n6=c(Je(),1);var BJ=c(G(),1),xf=c(A(),1),RJ=c(N(),1),Va=c(cJ(),1);var uJ=c(A(),1),oy=c(G(),1),dJ=c(oe(),1);var qB=c(C(),1);function V2e(e,t,o){if(!o)return t;let r=e.get(t);return r||(r=(0,oy.createRegistry)({},t),r.registerStore(ko,sb),e.set(t,r)),r}var F2e=(0,dJ.createHigherOrderComponent)(e=>function({useSubRegistry:o=!0,...r}){let n=(0,oy.useRegistry)(),[i]=(0,uJ.useState)(()=>new WeakMap),s=V2e(i,n,o);return s===n?(0,qB.jsx)(e,{registry:n,...r}):(0,qB.jsx)(oy.RegistryProvider,{value:s,children:(0,qB.jsx)(e,{registry:s,...r})})},"withRegistryProvider"),fJ=F2e;var Mn=c(A(),1),gJ=c(G(),1),bJ=c(Q(),1);var mJ=c(A(),1),z2e=()=>{},ZB=(0,mJ.createContext)({getSelection:()=>{},onChangeSelection:z2e});var pJ=()=>{};function yJ(e,t){let o=(0,bJ.cloneBlock)(e);return t.externalToInternal.set(e.clientId,o.clientId),t.internalToExternal.set(o.clientId,e.clientId),e.innerBlocks?.length&&(o.innerBlocks=e.innerBlocks.map(r=>yJ(r,t))),o}function vJ(e,t){return e.map(o=>{let r=t.internalToExternal.get(o.clientId);return{...o,clientId:r??o.clientId,innerBlocks:vJ(o.innerBlocks,t)}})}function hJ(e,t){let{selectionStart:o,selectionEnd:r,initialPosition:n}=e,i=s=>{if(!s?.clientId)return s;let a=t.internalToExternal.get(s.clientId);return{...s,clientId:a??s.clientId}};return{selectionStart:i(o),selectionEnd:i(r),initialPosition:n}}function XB({clientId:e=null,value:t,onChange:o=pJ,onInput:r=pJ}){let n=(0,gJ.useRegistry)(),{getSelection:i,onChangeSelection:s}=(0,Mn.useContext)(ZB),{resetBlocks:a,resetSelection:l,replaceInnerBlocks:u,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(w),{getBlockName:m,getBlocks:h,getSelectionStart:p,getSelectionEnd:g}=n.select(w),b=(0,Mn.useRef)({incoming:null,outgoing:[]}),v=(0,Mn.useRef)(!1),y=(0,Mn.useRef)({externalToInternal:new Map,internalToExternal:new Map}),k=(0,Mn.useRef)(null),S=(0,Mn.useRef)(!1),_=()=>{let B=i();if(!B?.selectionStart?.clientId||B===k.current)return;let O=B.selectionStart.clientId;if(e?y.current.externalToInternal.has(O):!!m(O)){k.current=B;let P=M=>!M?.clientId||!e?M:{...M,clientId:y.current.externalToInternal.get(M.clientId)??M.clientId};S.current=!0,l(P(B.selectionStart),P(B.selectionEnd),B.initialPosition),S.current=!1}},x=()=>{t&&(e?n.batch(()=>{y.current.externalToInternal.clear(),y.current.internalToExternal.clear();let B=t.map(O=>yJ(O,y.current));d(e,!0),v.current&&(b.current.incoming=B),f(),u(e,B),k.current=null}):(v.current&&(b.current.incoming=t),f(),a(t)))},E=()=>{f(),e?(d(e,!1),f(),u(e,[])):a([])},T=(0,Mn.useRef)(r),R=(0,Mn.useRef)(o);(0,Mn.useEffect)(()=>{T.current=r,R.current=o},[r,o]),(0,Mn.useEffect)(()=>{let B=b.current.outgoing.includes(t),O=h(e)===t;B?b.current.outgoing[b.current.outgoing.length-1]===t&&(b.current.outgoing=[]):O||(b.current.outgoing=[],x(),_())},[t,e]),(0,Mn.useEffect)(()=>{let{getSelectedBlocksInitialCaretPosition:B,isLastBlockChangePersistent:O,__unstableIsLastBlockChangeIgnored:I,areInnerBlocksControlled:P,getBlockParents:M}=n.select(w),L=h(e),j=O(),V=!1,D=p(),z=g();v.current=!0;let W=n.subscribe(()=>{if(e!==null&&m(e)===null)return;let K=O(),ne=h(e),X=ne!==L;if(L=ne,X&&(b.current.incoming||I())){b.current.incoming=null,j=K;return}let Y=X||V&&!X&&K&&!j,$=p(),Z=g(),q=$!==D||Z!==z;q&&(D=$,z=Z),(Y||q)&&n.batch(()=>{if(Y){j=K;let J=e?vJ(L,y.current):L,re={selectionStart:$,selectionEnd:Z,initialPosition:B()},ie=e?hJ(re,y.current):re;b.current.outgoing.push(J),(j?R.current:T.current)(J,{selection:ie})}if(q&&!Y&&$?.clientId&&!S.current&&(e?y.current.internalToExternal.has($.clientId):!M($.clientId).some(re=>P(re)))){let re={selectionStart:$,selectionEnd:Z,initialPosition:B()};s(e?hJ(re,y.current):re)}}),V=X},w);return()=>{v.current=!1,W()}},[n,e]),(0,Mn.useEffect)(()=>()=>{E()},[])}var kJ=c(A(),1),SJ=c(G(),1),_J=c(Ba(),1),$o=c(F(),1);function xJ(){return null}function j2e(){let{registerShortcut:e}=(0,SJ.useDispatch)(_J.store);return(0,kJ.useEffect)(()=>{e({name:"core/block-editor/copy",category:"block",description:(0,$o.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,$o.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,$o.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,$o.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,$o.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,$o.__)("Paste the copied style to the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"v"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,$o.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,$o.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:(0,$o.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/stop-editing-as-blocks",category:"block",description:(0,$o.__)("Finish editing a design."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/select-all",category:"selection",description:(0,$o.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:(0,$o.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,$o.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,$o.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,$o.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,$o.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,$o.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,$o.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,$o.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}}),e({name:"core/block-editor/rename",category:"block",description:(0,$o.__)("Rename the selected block."),keyCombination:{modifier:"primaryAlt",character:"r"}})},[e]),null}xJ.Register=j2e;var QB=xJ;var wJ=c(A(),1);function H2e(e={}){return(0,wJ.useMemo)(()=>({mediaUpload:e.mediaUpload,mediaSideload:e.mediaSideload,mediaFinalize:e.mediaFinalize,mediaDelete:e.mediaDelete,maxUploadFileSize:e.maxUploadFileSize,allowedMimeTypes:e.allowedMimeTypes,allImageSizes:e.allImageSizes,bigImageSizeThreshold:e.bigImageSizeThreshold}),[e])}var CJ=H2e;var eu=c(C(),1),JB=()=>{},EJ=!1,ry=null,ny=null,TJ=["image/heic","image/heif"];function PJ(){if(ry!==null)return ry;if(!window.__clientSideMediaProcessing||typeof Va.detectClientSideMediaSupport!="function")return ry=!1,!1;let e=(0,Va.detectClientSideMediaSupport)();return!e||!e.supported?(EJ||(console.info(`Client-side media processing unavailable: ${e.reason}. Using server-side processing.`),EJ=!0),ry=!1,!1):(ry=!0,!0)}function U2e(){return ny!==null?ny:PJ()||!window.__heicUploadSupport||typeof Va.isHeicCanvasSupported!="function"||!(0,Va.isHeicCanvasSupported)()?(ny=!1,!1):(ny=!0,!0)}function G2e(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=JB,onFileChange:s,onSuccess:a,onBatchSuccess:l}){e.dispatch(Va.store).addItems({files:Array.from(n),onChange:s,onSuccess:u=>{t?.[nS]?.(u),a?.(u)},onBatchSuccess:l,onError:u=>i(typeof u=="string"?u:u?.message??""),additionalData:r,allowedTypes:o})}function W2e(e,t,{allowedTypes:o,additionalData:r={},filesList:n,onError:i=JB,onFileChange:s,onSuccess:a,onBatchSuccess:l}){let u=Array.from(n),d=u.filter(g=>TJ.includes(g.type)),f=u.filter(g=>!TJ.includes(g.type)),m=d.length>0&&f.length>0&&t?.mediaUpload,h=m?2:1,p=m?()=>{h--,h<=0&&l?.()}:l;d.length>0&&e.dispatch(Va.store).addItems({files:d,onChange:s,onSuccess:g=>{t?.[nS]?.(g),a?.(g)},onBatchSuccess:p,onError:g=>i(typeof g=="string"?g:g?.message??""),additionalData:r,allowedTypes:o}),f.length>0&&t?.mediaUpload&&t.mediaUpload({allowedTypes:o,additionalData:r,filesList:f,onError:i,onFileChange:s,onSuccess:a,onBatchSuccess:p})}function $2e(e){return XB(e),null}var iy=fJ(e=>{let{settings:t,registry:o,stripExperimentalSettings:r=!1}=e,n=CJ(t),i=PJ(),s=U2e(),a=i||s,l=!!t?.mediaUpload?.__isMediaUploadInterceptor,u=(0,xf.useMemo)(()=>{if(a&&t?.mediaUpload&&!l){let v=(i?G2e:W2e).bind(null,o,t);return v.__isMediaUploadInterceptor=!0,{...t,mediaUpload:v}}return t},[t,o,a,i,l]),{__experimentalUpdateSettings:d}=H((0,BJ.useDispatch)(w));(0,xf.useEffect)(()=>{d({...u,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})},[u,r,d]);let f=(0,xf.useRef)(e.selection);f.current=e.selection;let m=(0,xf.useRef)(e.onChangeSelection??JB);m.current=e.onChangeSelection??JB;let h=(0,xf.useMemo)(()=>({getSelection:()=>f.current,onChangeSelection:(...b)=>m.current(...b)}),[]),p=(0,eu.jsxs)(RJ.SlotFillProvider,{passthrough:!0,children:[!u?.isPreviewMode&&(0,eu.jsx)(QB.Register,{}),(0,eu.jsx)(s$,{children:e.children})]}),g=(0,eu.jsxs)(ZB.Provider,{value:h,children:[(0,eu.jsx)($2e,{clientId:e.clientId,value:e.value,onChange:e.onChange,onInput:e.onInput}),p]});return a&&!l?(0,eu.jsx)(Va.MediaUploadProvider,{settings:n,useSubRegistry:!1,children:g}):g}),K2e=e=>(0,eu.jsx)(iy,{...e,stripExperimentalSettings:!0,children:e.children}),IJ=K2e;var hx=c(oe(),1),moe=c(G(),1),LR=c(A(),1),poe=c(N(),1);var ch=c(A(),1),gee=c(F(),1),ou=c(oe(),1),bee=c(N(),1),Sz=c(G(),1);var cee=c(G(),1),uee=c(F(),1),ox=c(oe(),1),dee=c(A(),1);var OJ=c(oe(),1),AJ=c(G(),1);function Y2e(e){let{isMultiSelecting:t,getMultiSelectedBlockClientIds:o,hasMultiSelection:r,getSelectedBlockClientId:n,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(w);return{isMultiSelecting:t(),multiSelectedBlockClientIds:o(),hasMultiSelection:r(),selectedBlockClientId:n(),initialPosition:i(),isFullSelection:s()}}function LJ(){let{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:o,hasMultiSelection:r,selectedBlockClientId:n,isFullSelection:i}=(0,AJ.useSelect)(Y2e,[]);return(0,OJ.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;if(e==null||!r||t)return;let{length:u}=o;u<2||i&&(s.contentEditable=!0,s.focus(),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var sy=c(at(),1),gz=c(Bt(),1),eR=c(G(),1),tR=c(oe(),1),J_=c(A(),1);var bz=c(C(),1);function MJ(){let e=(0,J_.useRef)(),t=(0,J_.useRef)(),o=(0,J_.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:n,getBlockCount:i,getBlockOrder:s,getLastFocus:a,getSectionRootClientId:l,isZoomOut:u}=H((0,eR.useSelect)(w)),{setLastFocus:d}=H((0,eR.useDispatch)(w)),f=(0,J_.useRef)();function m(v){let y=e.current.ownerDocument===v.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement;if(f.current)f.current=null;else if(r())e.current.focus();else if(n())a()?.current?a().current.focus():e.current.querySelector(`[data-block="${n()}"]`).focus();else if(u()){let k=l(),S=s(k);S.length?e.current.querySelector(`[data-block="${S[0]}"]`).focus():k?e.current.querySelector(`[data-block="${k}"]`).focus():y.focus()}else{let k=v.target.compareDocumentPosition(y)&v.target.DOCUMENT_POSITION_FOLLOWING,S=sy.focus.tabbable.find(e.current);S.length&&(k?S[0]:S[S.length-1]).focus()}}let h=(0,bz.jsx)("div",{ref:t,tabIndex:"0",onFocus:m}),p=(0,bz.jsx)("div",{ref:o,tabIndex:"0",onFocus:m}),g=(0,tR.useRefEffect)(v=>{function y(E){if(E.defaultPrevented||E.keyCode!==gz.TAB||!o.current||!t.current)return;let{target:T,shiftKey:R}=E,B=R?"findPrevious":"findNext",O=sy.focus.tabbable[B](T),I=T.closest("[data-block]"),P=I&&O&&(rY(I,O)||Al(I,O));if((0,sy.isFormElement)(O)&&P)return;let M=R?t:o;f.current=!0,M.current.focus({preventScroll:!0})}function k(E){d({...a(),current:E.target});let{ownerDocument:T}=v;!E.relatedTarget&&E.target.hasAttribute("data-block")&&T.activeElement===T.body&&i()===0&&v.focus()}function S(E){if(E.keyCode!==gz.TAB||E.target?.getAttribute("role")==="region"||e.current===E.target)return;let R=E.shiftKey?"findPrevious":"findNext",B=sy.focus.tabbable[R](E.target);(B===t.current||B===o.current)&&(E.preventDefault(),B.focus({preventScroll:!0}))}let{ownerDocument:_}=v,{defaultView:x}=_;return x.addEventListener("keydown",S),v.addEventListener("keydown",y),v.addEventListener("focusout",k),()=>{x.removeEventListener("keydown",S),v.removeEventListener("keydown",y),v.removeEventListener("focusout",k)}},[]),b=(0,tR.useMergeRefs)([e,g]);return[h,b,p]}var Ko=c(at(),1),Fl=c(Bt(),1),oR=c(G(),1),NJ=c(oe(),1);function q2e(e,t,o){let r=t===Fl.UP||t===Fl.DOWN,{tagName:n}=e,i=e.getAttribute("type");return r&&!o?n==="INPUT"?!["date","datetime-local","month","number","range","time","week"].includes(i):!0:n==="INPUT"?["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i):n!=="TEXTAREA"}function yz(e,t,o,r){let n=Ko.focus.focusable.find(o);t&&n.reverse(),n=n.slice(n.indexOf(e)+1);let i;r&&(i=e.getBoundingClientRect());function s(a){if(a.contentEditable!=="true"&&Ps(a)&&Ko.focus.focusable.find(a).filter(l=>!(0,Ko.isFormElement)(l)).length!==0||!Ko.focus.tabbable.isTabbableIndex(a)||a.isContentEditable&&a.contentEditable!=="true")return!1;if(r){let l=a.getBoundingClientRect();if(l.left>=i.right||l.right<=i.left)return!1}return!0}return n.find(s)}function DJ(){let{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:o,hasMultiSelection:r,__unstableIsFullySelected:n}=(0,oR.useSelect)(w),{selectBlock:i}=(0,oR.useDispatch)(w);return(0,NJ.useRefEffect)(s=>{let a;function l(){a=null}function u(f,m){let h=yz(f,m,s);return h&&Ps(h)}function d(f){if(f.defaultPrevented)return;let{keyCode:m,target:h,shiftKey:p,ctrlKey:g,altKey:b,metaKey:v}=f,y=m===Fl.UP,k=m===Fl.DOWN,S=m===Fl.LEFT,_=m===Fl.RIGHT,x=y||S,E=S||_,T=y||k,R=E||T,B=p||g||b||v,O=T?Ko.isVerticalEdge:Ko.isHorizontalEdge,{ownerDocument:I}=s,{defaultView:P}=I;if(!R||o().isPreviewMode)return;if(r()){if(p||!n())return;f.preventDefault(),x?i(e()):i(t(),-1);return}if(!q2e(h,m,B))return;T?a||(a=(0,Ko.computeCaretRect)(P)):a=null;let M=(0,Ko.isRTL)(h)?!x:x,{keepCaretInsideBlock:L}=o();if(p)u(h,x)&&O(h,x)&&(s.contentEditable=!0,s.focus());else if(T&&(0,Ko.isVerticalEdge)(h,x)&&(!b||(0,Ko.isHorizontalEdge)(h,M))&&!L){let j=yz(h,x,s,!0);j&&((0,Ko.placeCaretAtVerticalEdge)(j,b?!x:x,b?void 0:a),f.preventDefault())}else if(E&&P.getSelection().isCollapsed&&(0,Ko.isHorizontalEdge)(h,M)&&!L){let j=yz(h,M,s);(0,Ko.placeCaretAtHorizontalEdge)(j,x),f.preventDefault()}}return s.addEventListener("mousedown",l),s.addEventListener("keydown",d),()=>{s.removeEventListener("mousedown",l),s.removeEventListener("keydown",d)}},[])}var VJ=c(oe(),1),FJ=c(G(),1),zl=c(Bt(),1);function zJ(){let e=(0,FJ.useSelect)(t=>t(w).getSettings().isPreviewMode,[]);return(0,VJ.useRefEffect)(t=>{if(!e)return;function o(r){let{keyCode:n,shiftKey:i,target:s}=r,a=n===zl.TAB,l=n===zl.UP,u=n===zl.DOWN,d=n===zl.LEFT;if(!a&&!(l||u||d||n===zl.RIGHT))return;let h=a?i:l||d,p=Array.from(t.querySelectorAll("[data-block]"));if(!p.length)return;let g=s.closest("[data-block]"),b=g?p.indexOf(g):-1;if(b===-1||a&&(h&&b===0||!h&&b===p.length-1))return;let v;h?v=b<=0?p.length-1:b-1:v=b===-1||b>=p.length-1?0:b+1,r.preventDefault(),p[v].focus()}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[e])}var jJ=c(at(),1),rR=c(G(),1),HJ=c(Ba(),1),UJ=c(oe(),1);function GJ(){let{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:o}=(0,rR.useSelect)(w),{multiSelect:r,selectBlock:n}=(0,rR.useDispatch)(w),i=(0,HJ.__unstableUseShortcutEventMatch)();return(0,UJ.useRefEffect)(s=>{function a(l){if(!i("core/block-editor/select-all",l))return;let u=t();if(u.length<2&&!(0,jJ.isEntirelySelected)(l.target))return;l.preventDefault();let{ownerDocument:d}=l.target,[f]=u,m=Ps(d.activeElement);if(m&&m!==f&&!Al(d.getElementById("block-"+f),d.activeElement)){n(m);return}let h=o(f),p=e(h);if(u.length===p.length){h&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),n(h));return}r(p[0],p[p.length-1])}return s.addEventListener("keydown",a),()=>{s.removeEventListener("keydown",a)}},[])}var nR=c(G(),1),$J=c(oe(),1);function WJ(e,t){e.contentEditable=t,t&&e.focus()}function KJ(){let{startMultiSelect:e,stopMultiSelect:t}=(0,nR.useDispatch)(w),{getSettings:o,isSelectionEnabled:r,hasSelectedBlock:n,isDraggingBlocks:i,isMultiSelecting:s}=(0,nR.useSelect)(w);return(0,$J.useRefEffect)(a=>{let{ownerDocument:l}=a,{defaultView:u}=l,d,f;function m(){t(),u.removeEventListener("mouseup",m),f=u.requestAnimationFrame(()=>{if(!n())return;WJ(a,!1);let b=u.getSelection();if(b.rangeCount){let v=b.getRangeAt(0),{commonAncestorContainer:y}=v,k=v.cloneRange();d.contains(y)&&(d.focus(),b.removeAllRanges(),b.addRange(k))}})}let h;function p({target:b}){h=b}function g({buttons:b,target:v,relatedTarget:y}){v.contains(h)&&(v.contains(y)||i()||b===1&&(s()||a!==v&&(v.getAttribute("contenteditable")!=="true"&&!o().isPreviewMode||r()&&(d=v,e(),u.addEventListener("mouseup",m),WJ(a,!0)))))}return a.addEventListener("mouseout",g),a.addEventListener("mousedown",p),()=>{a.removeEventListener("mouseout",g),u.removeEventListener("mouseup",m),u.cancelAnimationFrame(f)}},[e,t,r,n])}var aR=c(G(),1),qJ=c(oe(),1),sR=c(Wr(),1),ZJ=c(at(),1);function Z2e(e){let{anchorNode:t,anchorOffset:o}=e;return t.nodeType===t.TEXT_NODE||o===0?t:t.childNodes[o-1]}function X2e(e){let{focusNode:t,focusOffset:o}=e;return t.nodeType===t.TEXT_NODE||o===t.childNodes.length?t:o===0&&(0,ZJ.isSelectionForward)(e)?t.previousSibling??t.parentElement:t.childNodes[o]}function Q2e(e,t){let o=0;for(;e[o]===t[o];)o++;return o}function YJ(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function iR(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function XJ(){let{multiSelect:e,selectBlock:t,selectionChange:o}=(0,aR.useDispatch)(w),{getBlockParents:r,getBlockSelectionStart:n,isMultiSelecting:i}=(0,aR.useSelect)(w);return(0,qJ.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;function u(d){let f=l.getSelection();if(!f.rangeCount)return;let m=Z2e(f),h=X2e(f);if(!s.contains(m)||!s.contains(h))return;let p=d.shiftKey&&d.type==="mouseup";if(f.isCollapsed&&!p){if(s.contentEditable==="true"&&!i()){YJ(s,!1);let y=m.nodeType===m.ELEMENT_NODE?m:m.parentElement;y=y?.closest("[contenteditable]"),y?.focus()}return}let g=Ps(m),b=Ps(h);if(p){let y=n(),k=Ps(d.target),S=k!==b;(g===b&&f.isCollapsed||!b||S)&&(b=k),g!==y&&(g=y)}if(g===void 0&&b===void 0){YJ(s,!1);return}if(d.type==="mouseup"&&!d.shiftKey&&!i()&&g===b){let y=Ps(d.target);if(y&&y!==g){f.removeAllRanges();return}}if(g===b)if(i())e(g,g);else{let y=!f.isCollapsed&&(iR(m)||iR(h));if(y&&a.activeElement!==y){let k=f.getRangeAt(0),S=(0,sR.create)({element:y,range:k,__unstableIsEditableTree:!0});o({start:{clientId:g,attributeKey:y.dataset.wpBlockAttributeKey,offset:S.start??0},end:{clientId:g,attributeKey:y.dataset.wpBlockAttributeKey,offset:S.end}})}else t(g)}else{let y=[...r(g),g],k=[...r(b),b],S=Q2e(y,k);if(y[S]!==g||k[S]!==b){e(y[S],k[S]);return}let _=iR(m),x=iR(h);if(_&&x){let E=f.getRangeAt(0),T=(0,sR.create)({element:_,range:E,__unstableIsEditableTree:!0}),R=(0,sR.create)({element:x,range:E,__unstableIsEditableTree:!0}),B=T.start??T.end,O=R.start??R.end;o({start:{clientId:g,attributeKey:_.dataset.wpBlockAttributeKey,offset:B},end:{clientId:b,attributeKey:x.dataset.wpBlockAttributeKey,offset:O}})}else e(g,b)}}return a.addEventListener("selectionchange",u),l.addEventListener("mouseup",u),()=>{a.removeEventListener("selectionchange",u),l.removeEventListener("mouseup",u)}},[e,t,o,r])}var lR=c(G(),1),QJ=c(oe(),1);function JJ(){let{selectBlock:e}=(0,lR.useDispatch)(w),{isSelectionEnabled:t,getBlockSelectionStart:o,hasMultiSelection:r}=(0,lR.useSelect)(w);return(0,QJ.useRefEffect)(n=>{function i(s){if(!t()||s.button!==0)return;let a=o(),l=Ps(s.target);s.shiftKey?a&&a!==l&&(n.contentEditable=!0,n.focus()):r()&&e(l)}return n.addEventListener("mousedown",i),()=>{n.removeEventListener("mousedown",i)}},[e,t,o,r])}var cR=c(G(),1),eee=c(oe(),1),tu=c(Bt(),1),Fa=c(Q(),1);function tee(){let{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:o,__unstableIsSelectionMergeable:r,hasMultiSelection:n,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:a,getSelectionStart:l,getSelectionEnd:u,getBlockAttributes:d}=(0,cR.useSelect)(w),{replaceBlocks:f,__unstableSplitSelection:m,removeBlocks:h,__unstableDeleteSelection:p,__unstableExpandSelection:g,__unstableMarkAutomaticChange:b}=(0,cR.useDispatch)(w);return(0,eee.useRefEffect)(v=>{function y(_){v.contentEditable==="true"&&_.preventDefault()}function k(_){if(!_.defaultPrevented){if(!n()){if(_.keyCode===tu.ENTER){if(_.shiftKey||e())return;let x=o(),E=i(x),T=l(),R=u();if(T.attributeKey===R.attributeKey){let B=d(x)[T.attributeKey],O=(0,Fa.getBlockTransforms)("from").filter(({type:P})=>P==="enter"),I=(0,Fa.findTransform)(O,P=>P.regExp.test(B));if(I){f(x,I.transform({content:B})),b();return}}if(!(0,Fa.hasBlockSupport)(E,"splitting",!1)&&!_.__deprecatedOnSplit)return;(s((0,Fa.getDefaultBlockName)(),a(x))||s(E,a(x)))&&(m(),_.preventDefault())}return}_.keyCode===tu.ENTER?(v.contentEditable=!1,_.preventDefault(),e()?f(t(),(0,Fa.createBlock)((0,Fa.getDefaultBlockName)())):m()):_.keyCode===tu.BACKSPACE||_.keyCode===tu.DELETE?(v.contentEditable=!1,_.preventDefault(),e()?h(t()):r()?p(_.keyCode===tu.DELETE):g()):_.key.length===1&&!(_.metaKey||_.ctrlKey)&&(v.contentEditable=!1,r()?p(_.keyCode===tu.DELETE):(_.preventDefault(),v.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function S(_){n()&&(v.contentEditable=!1,r()?p():(_.preventDefault(),v.ownerDocument.defaultView.getSelection().removeAllRanges()))}return v.addEventListener("beforeinput",y),v.addEventListener("keydown",k),v.addEventListener("compositionstart",S),()=>{v.removeEventListener("beforeinput",y),v.removeEventListener("keydown",k),v.removeEventListener("compositionstart",S)}},[])}var jl=c(Q(),1),dR=c(at(),1),cy=c(G(),1),lee=c(oe(),1);var oee=c(A(),1),ree=c(Q(),1),ex=c(G(),1),Ls=c(F(),1),nee=c(Ni(),1);function ay(){let{getBlockName:e}=(0,ex.useSelect)(w),{getBlockType:t}=(0,ex.useSelect)(ree.store),{createSuccessNotice:o}=(0,ex.useDispatch)(nee.store);return(0,oee.useCallback)((r,n)=>{let i="";if(r==="copyStyles")i=(0,Ls.__)("Styles copied to clipboard.");else if(n.length===1){let s=n[0],a=t(e(s))?.title;r==="copy"?i=(0,Ls.sprintf)((0,Ls.__)('Copied "%s" to clipboard.'),a):i=(0,Ls.sprintf)((0,Ls.__)('Moved "%s" to clipboard.'),a)}else r==="copy"?i=(0,Ls.sprintf)((0,Ls._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",n.length),n.length):i=(0,Ls.sprintf)((0,Ls._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",n.length),n.length);o(i,{type:"snackbar"})},[o,e,t])}var see=c(at(),1),Ms=c(Q(),1);var iee=c(at(),1);function J2e(e){let t="<!--StartFragment-->",o=e.indexOf(t);if(o>-1)e=e.substring(o+t.length);else return e;let n=e.indexOf("<!--EndFragment-->");return n>-1&&(e=e.substring(0,n)),e}function eAe(e){let t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(t.length):e}function ly({clipboardData:e}){let t="",o="";try{t=e.getData("text/plain"),o=e.getData("text/html")}catch{return}o=J2e(o),o=eAe(o);let r=(0,iee.getFilesFromDataTransfer)(e);return r.length&&!tAe(r,o)?{files:r}:{html:o,plainText:t,files:[]}}function tAe(e,t){if(t&&e?.length===1&&e[0].type.indexOf("image/")===0){let o=/<\s*img\b/gi;if(t.match(o)?.length!==1)return!0;let r=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(r))return!0}return!1}var vz=Symbol("requiresWrapperOnCopy");function uR(e,t,o){let r=t,[n]=t;if(n&&o.select(Ms.store).getBlockType(n.name)[vz]){let{getBlockRootClientId:a,getBlockName:l,getBlockAttributes:u}=o.select(w),d=a(n.clientId),f=l(d);f&&(r=(0,Ms.createBlock)(f,u(d),r))}let i=(0,Ms.serialize)(r);e.clipboardData.setData("text/plain",oAe(i)),e.clipboardData.setData("text/html",i)}function aee(e,t){let{plainText:o,html:r,files:n}=ly(e),i=[];if(n.length){let s=(0,Ms.getBlockTransforms)("from");i=n.reduce((a,l)=>{let u=(0,Ms.findTransform)(s,d=>d.type==="files"&&d.isMatch([l]));return u&&a.push(u.transform([l])),a},[]).flat()}else i=(0,Ms.pasteHandler)({HTML:r,plainText:o,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}function oAe(e){return e=e.replace(/<br>/g,`
`),(0,see.__unstableStripHTML)(e).trim().replace(/\n\n+/g,`

`)}function tx(){let e=(0,cy.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:o,hasMultiSelection:r,getSettings:n,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:a,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:f}=(0,cy.useSelect)(w),{flashBlock:m,removeBlocks:h,replaceBlocks:p,__unstableDeleteSelection:g,__unstableExpandSelection:b,__unstableSplitSelection:v}=(0,cy.useDispatch)(w),y=ay();return(0,lee.useRefEffect)(k=>{function S(_){if(_.defaultPrevented)return;let x=o();if(x.length===0)return;if(!r()){let{target:O}=_,{ownerDocument:I}=O;if(_.type==="copy"||_.type==="cut"?(0,dR.documentHasUncollapsedSelection)(I):(0,dR.documentHasSelection)(I)&&!I.activeElement.isContentEditable)return}let{activeElement:E}=_.target.ownerDocument;if(!k.contains(E))return;let T=l(),R=a()||s(),B=!R&&!T;if(_.type==="copy"||_.type==="cut")if(_.preventDefault(),x.length===1&&m(x[0]),B)b();else{y(_.type,x);let O;if(R)O=t(x);else{let[I,P]=u(),M=t(x.slice(1,x.length-1));O=[I,...M,P]}uR(_,O,e)}if(_.type==="cut")R&&!B?h(x):(_.target.ownerDocument.activeElement.contentEditable=!1,g());else if(_.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:O,mediaUpload:I}=n();if(_.clipboardData.getData("rich-text")==="true")return;let{plainText:M,html:L,files:j}=ly(_),V=s(),D=[];if(j.length){if(!I){_.preventDefault();return}let ne=(0,jl.getBlockTransforms)("from");D=j.reduce((X,ee)=>{let Y=(0,jl.findTransform)(ne,$=>$.type==="files"&&$.isMatch([ee]));return Y&&X.push(Y.transform([ee])),X},[]).flat()}else D=(0,jl.pasteHandler)({HTML:L,plainText:M,mode:V?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:O});if(typeof D=="string")return;if(V){p(x,D,D.length-1,-1),_.preventDefault();return}if(!r()&&!(0,jl.hasBlockSupport)(i(x[0]),"splitting",!1)&&!_.__deprecatedOnSplit)return;let[z]=x,W=f(z),K=[];for(let ne of D)if(d(ne.name,W))K.push(ne);else{let X=i(W),ee=ne.name!==X?(0,jl.switchToBlockType)(ne,X):[ne];if(!ee)return;for(let Y of ee)for(let $ of Y.innerBlocks)K.push($)}v(K),_.preventDefault()}}return k.ownerDocument.addEventListener("copy",S),k.ownerDocument.addEventListener("cut",S),k.ownerDocument.addEventListener("paste",S),()=>{k.ownerDocument.removeEventListener("copy",S),k.ownerDocument.removeEventListener("cut",S),k.ownerDocument.removeEventListener("paste",S)}},[])}var uy=c(C(),1);function kz(){let[e,t,o]=MJ(),r=(0,cee.useSelect)(n=>n(w).hasMultiSelection(),[]);return[e,(0,ox.useMergeRefs)([t,tx(),tee(),KJ(),XJ(),JJ(),LJ(),GJ(),DJ(),zJ(),(0,ox.useRefEffect)(n=>(n.tabIndex=0,n.dataset.hasMultiSelection=r,r?(n.setAttribute("aria-label",(0,uee.__)("Multiple selected blocks")),()=>{delete n.dataset.hasMultiSelection,n.removeAttribute("aria-label")}):()=>{delete n.dataset.hasMultiSelection}),[r])]),o]}function rAe({children:e,...t},o){let[r,n,i]=kz();return(0,uy.jsxs)(uy.Fragment,{children:[r,(0,uy.jsx)("div",{...t,ref:(0,ox.useMergeRefs)([n,o]),className:U(t.className,"block-editor-writing-flow"),children:e}),i]})}var fR=(0,dee.forwardRef)(rAe);var mR=null;function fee(){return mR||(mR=Array.from(document.styleSheets).reduce((e,t)=>{try{t.cssRules}catch{return e}let{ownerNode:o,cssRules:r}=t;if(o===null||!r||o.id.startsWith("wp-")||!o.id)return e;function n(i){return Array.from(i).find(({selectorText:s,conditionText:a,cssRules:l})=>a?n(l):s&&(s.includes(".editor-styles-wrapper")||s.includes(".wp-block")))}if(n(r)){let i=o.tagName==="STYLE";if(i){let s=o.id.replace("-inline-css","-css"),a=document.getElementById(s);a&&e.push(a.cloneNode(!0))}if(e.push(o.cloneNode(!0)),!i){let s=o.id.replace("-css","-inline-css"),a=document.getElementById(s);a&&e.push(a.cloneNode(!0))}}return e},[]),mR)}var ci=c(A(),1),rx=c(oe(),1);function mee({frameSize:e,containerWidth:t,maxContainerWidth:o,scaleContainerWidth:r}){return(Math.min(t,o)-e*2)/r}function nAe(e,t){let{scaleValue:o,scrollHeight:r}=e,{frameSize:n,scaleValue:i}=t;return r*(i/o)+n*2}function iAe(e,t){let{containerHeight:o,frameSize:r,scaleValue:n,scrollTop:i}=e,{containerHeight:s,frameSize:a,scaleValue:l,scrollHeight:u}=t,d=i;d=(d+o/2-r)/n-o/2,d=(d+s/2)*l+a-s/2,d=i<=r?0:d;let f=u-s;return Math.round(Math.min(Math.max(0,d),Math.max(0,f)))}function sAe(e,t){let{scaleValue:o,frameSize:r,scrollTop:n}=e,{scaleValue:i,frameSize:s,scrollTop:a}=t;return[{translate:"0 0",scale:o,paddingTop:`${r/o}px`,paddingBottom:`${r/o}px`},{translate:`0 ${n-a}px`,scale:i,paddingTop:`${s/i}px`,paddingBottom:`${s/i}px`}]}function pee({frameSize:e,iframeDocument:t,maxContainerWidth:o=750,scale:r}){let[n,{height:i}]=(0,rx.useResizeObserver)(),[s,{width:a,height:l}]=(0,rx.useResizeObserver)(),u=(0,ci.useRef)(0),d=r!==1,f=(0,rx.useReducedMotion)(),m=r==="auto-scaled",h=(0,ci.useRef)(!1),p=(0,ci.useRef)(null);(0,ci.useEffect)(()=>{d||(u.current=a)},[a,d]);let g=Math.max(u.current,a),b=m?mee({frameSize:e,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:g}):r,v=(0,ci.useRef)({scaleValue:b,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),y=(0,ci.useRef)({scaleValue:b,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),k=(0,ci.useCallback)(()=>{let{scrollTop:x}=v.current,{scrollTop:E}=y.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`${x}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`${E}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",v.current.scrollHeight===v.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(sAe(v.current,y.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})},[t]),S=(0,ci.useCallback)(()=>{h.current=!1,p.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",y.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${y.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=y.current.scrollTop,t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior"),v.current=y.current},[t]),_=(0,ci.useRef)(!1);return(0,ci.useEffect)(()=>{if(!t)return;let x=_.current!==d;if(_.current=d,!!x&&(h.current=!0,!!d))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}},[t,d]),(0,ci.useEffect)(()=>{if(t&&(m&&v.current.scaleValue!==1&&(v.current.scaleValue=mee({frameSize:v.current.frameSize,containerWidth:a,maxContainerWidth:o,scaleContainerWidth:a})),b<1&&(h.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",b),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${e}px`)),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`${i}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`${l}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`${a}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale-container-width",`${g}px`)),h.current))if(h.current=!1,p.current){p.current.reverse();let x=v.current,E=y.current;v.current=E,y.current=x}else v.current.scrollTop=t.documentElement.scrollTop,v.current.scrollHeight=t.documentElement.scrollHeight,v.current.containerHeight=l,y.current={scaleValue:b,frameSize:e,containerHeight:t.documentElement.clientHeight},y.current.scrollHeight=nAe(v.current,y.current),y.current.scrollTop=iAe(v.current,y.current),p.current=k(),f?S():p.current.onfinish=S},[k,S,f,m,b,e,t,i,a,l,o,g]),{isZoomedOut:d,scaleContainerWidth:g,contentResizeListener:n,containerResizeListener:s}}var za=c(C(),1);function yee(e,t,o){let r={};for(let s in e)r[s]=e[s];if(e instanceof o.contentDocument.defaultView.MouseEvent){let s=o.getBoundingClientRect();r.clientX+=s.left,r.clientY+=s.top}let n=new t(e.type,r);r.defaultPrevented&&n.preventDefault(),!o.dispatchEvent(n)&&e.preventDefault()}function aAe(e){return(0,ou.useRefEffect)(()=>{let{defaultView:t}=e;if(!t)return;let{frameElement:o}=t,r=e.documentElement,n=["dragover","mousemove"],i={};for(let s of n)i[s]=a=>{let u=Object.getPrototypeOf(a).constructor.name,d=window[u];yee(a,d,o)},r.addEventListener(s,i[s]);return()=>{for(let s of n)r.removeEventListener(s,i[s])}})}var hee=new WeakMap,lAe=globalThis.FinalizationRegistry?new globalThis.FinalizationRegistry(e=>URL.revokeObjectURL(e)):void 0;function cAe(e){let t=hee.get(e);if(t)return t;let o=`<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<base href="${window.location.href}">
		<style>
			html{
				height: auto !important;
				min-height: 100%;
			}
			/* Lowest specificity to not override global styles */
			:where(body) {
				margin: 0;
				/* Default background color in case zoom out mode background
				colors the html element */
				background-color: white;
			}
		</style>
		${e.styles??""}
		${e.scripts??""}
	</head>
	<body>
		<script>document.currentScript.parentElement.remove()<\/script>
	</body>
</html>`;return t=URL.createObjectURL(new Blob([o],{type:"text/html"})),hee.set(e,t),lAe?.register(e,t),t}function uAe({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,readonly:i,forwardedRef:s,title:a=(0,gee.__)("Editor canvas"),...l}){let{resolvedAssets:u,isPreviewMode:d}=(0,Sz.useSelect)(P=>{let M=P(w).getSettings();return{resolvedAssets:M.__unstableResolvedAssets,isPreviewMode:M.isPreviewMode}},[]),[f,m]=(0,ch.useState)(),[h,p]=(0,ch.useState)([]),[g,b,v]=kz(),y=(0,ou.useRefEffect)(P=>{let M;function L(z){z.preventDefault()}function j(z){z.target.tagName==="A"&&z.target.getAttribute("href")?.startsWith("#")&&(z.preventDefault(),M.defaultView.location.hash=z.target.getAttribute("href").slice(1))}let{ownerDocument:V}=P;p(Array.from(V.body.classList).filter(z=>z.startsWith("admin-color-")||z.startsWith("post-type-")||z==="wp-embed-responsive"));function D(){let{contentDocument:z}=P,{documentElement:W}=z;M=z,m(z),W.classList.add("block-editor-iframe__html"),z.dir=V.dir;for(let K of fee())z.getElementById(K.id)||(z.head.appendChild(K.cloneNode(!0)),d||console.warn(`${K.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,K));M.addEventListener("dragover",L,!1),M.addEventListener("drop",L,!1),M.addEventListener("click",j)}return P.addEventListener("load",D),()=>{m(void 0),P.removeEventListener("load",D),M?.removeEventListener("dragover",L),M?.removeEventListener("drop",L),M?.removeEventListener("click",j)}},[]),{contentResizeListener:k,containerResizeListener:S,isZoomedOut:_,scaleContainerWidth:x}=pee({scale:r,frameSize:parseInt(n),iframeDocument:f}),E=(0,ou.useDisabled)({isDisabled:!i}),T=(0,ou.useMergeRefs)([aAe(f),e,b,E]),R=(0,ou.useRefEffect)(P=>P.ownerDocument.defaultView?(T(P),()=>T(null)):()=>{},[T]),B=cAe(u),O=o>=0&&!d,I=(0,za.jsxs)(za.Fragment,{children:[O&&g,(0,za.jsx)("iframe",{...l,style:{...l.style,height:l.style?.height,border:0},ref:(0,ou.useMergeRefs)([s,y]),tabIndex:o,src:B,title:a,onKeyDown:P=>{if(l.onKeyDown&&l.onKeyDown(P),P.currentTarget.ownerDocument!==P.target.ownerDocument){let{stopPropagation:M}=P.nativeEvent;P.nativeEvent.stopPropagation=()=>{},P.stopPropagation(),P.nativeEvent.stopPropagation=M,yee(P,window.KeyboardEvent,P.currentTarget)}},children:f&&(0,ch.createPortal)((0,za.jsxs)("body",{ref:R,className:U("block-editor-iframe__body","editor-styles-wrapper",...h),children:[k,(0,za.jsx)(bee.__experimentalStyleProvider,{document:f,children:t})]}),f.documentElement)}),O&&v]});return(0,za.jsxs)("div",{className:"block-editor-iframe__container",children:[S,(0,za.jsx)("div",{className:U("block-editor-iframe__scale-container",_&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":_&&`${x}px`},children:I})]})}function dAe(e,t){return(0,Sz.useSelect)(r=>r(w).getSettings().__internalIsInitialized,[])?(0,za.jsx)(uAe,{...e,forwardedRef:t}):null}var dy=(0,ch.forwardRef)(dAe);var doe=c(N(),1),yy=c(A(),1),foe=c(G(),1);var hR={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},fAe=new Set(["combinator","comma"]);var mAe=e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(hR[e].source.replace("(?<argument>\xB6*)","(?<argument>.*)"),"gu");default:return hR[e]}};function pAe(e,t){let o=0,r="";for(;t<e.length;t++){let n=e[t];switch(n){case"(":++o;break;case")":--o;break}if(r+=n,o===0)return r}return r}function hAe(e,t=hR){if(!e)return[];let o=[e];for(let[n,i]of Object.entries(t))for(let s=0;s<o.length;s++){let a=o[s];if(typeof a!="string")continue;i.lastIndex=0;let l=i.exec(a);if(!l)continue;let u=l.index-1,d=[],f=l[0],m=a.slice(0,u+1);m&&d.push(m),d.push({...l.groups,type:n,content:f});let h=a.slice(u+f.length+1);h&&d.push(h),o.splice(s,1,...d)}let r=0;for(let n of o)switch(typeof n){case"string":throw new Error(`Unexpected sequence ${n} found at index ${r}`);case"object":r+=n.content.length,n.pos=[r-n.content.length,r],fAe.has(n.type)&&(n.content=n.content.trim()||" ");break}return o}var gAe=/(['"])([^\\\n]+?)\1/g,bAe=/\\./g;function _z(e,t=hR){if(e=e.trim(),e==="")return[];let o=[];e=e.replace(bAe,(i,s)=>(o.push({value:i,offset:s}),"\uE000".repeat(i.length))),e=e.replace(gAe,(i,s,a,l)=>(o.push({value:i,offset:l}),`${s}${"\uE001".repeat(a.length)}${s}`));{let i=0,s;for(;(s=e.indexOf("(",i))>-1;){let a=pAe(e,s);o.push({value:a,offset:s}),e=`${e.substring(0,s)}(${"\xB6".repeat(a.length-2)})${e.substring(s+a.length)}`,i=s+a.length}}let r=hAe(e,t),n=new Set;for(let i of o.reverse())for(let s of r){let{offset:a,value:l}=i;if(!(s.pos[0]<=a&&a+l.length<=s.pos[1]))continue;let{content:u}=s,d=a-s.pos[0];s.content=u.slice(0,d)+l+u.slice(d+l.length),s.content!==u&&n.add(s)}for(let i of n){let s=mAe(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let a=s.exec(i.content);if(!a)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,a.groups)}return r}function*pR(e,t){switch(e.type){case"list":for(let o of e.list)yield*pR(o,e);break;case"complex":yield*pR(e.left,e),yield*pR(e.right,e);break;case"compound":yield*e.list.map(o=>[o,e]);break;default:yield[e,t]}}function vee(e){let t;return Array.isArray(e)?t=e:t=[...pR(e)].map(([o])=>o),t.map(o=>o.content).join("")}var soe=c(Fte(),1),aoe=c(yR(),1),loe=c(Hte(),1),coe=c(noe(),1),ioe=new Map,uoe=[{type:"type",content:"body"},{type:"type",content:"html"},{type:"pseudo-class",content:":root"},{type:"pseudo-class",content:":where(body)"},{type:"pseudo-class",content:":where(:root)"},{type:"pseudo-class",content:":where(html)"}];function RLe(e,t){let o=_z(t),r=o.findLastIndex(({content:s,type:a})=>uoe.some(l=>s===l.content&&a===l.type)),n=-1;for(let s=r+1;s<o.length;s++)if(o[s].type==="combinator"){n=s;break}let i=_z(e);return o.splice(n===-1?o.length:n,0,{type:"combinator",content:" "},...i),vee(o)}function PLe({css:e,ignoredSelectors:t=[],baseURL:o},r="",n){if(!r&&!o)return e;try{let i=[...t,...n?.ignoredSelectors??[],r];return new soe.default([r&&(0,loe.default)({prefix:r,transform(s,a,l){return i.some(d=>d instanceof RegExp?a.match(d):a.includes(d))?a:uoe.some(d=>a.startsWith(d.content))?RLe(s,a):l}}),o&&(0,coe.default)({rootUrl:o})].filter(Boolean)).process(e,{}).css}catch(i){return i instanceof aoe.default?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i.message+`
`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}var ILe=(e,t="",o)=>{let r=ioe.get(t);return r||(r=new WeakMap,ioe.set(t,r)),e.map(n=>{let i=r.get(n);return i||(i=PLe(n,t,o),r.set(n,i)),i})},by=ILe;var Tf=c(C(),1);yd([vd,zg]);function OLe(e,t){return(0,yy.useCallback)(o=>{if(!o)return;let{ownerDocument:r}=o,{defaultView:n,body:i}=r,s=t?r.querySelector(t):i,a;if(s)a=n?.getComputedStyle(s,null).getPropertyValue("background-color");else{let u=r.createElement("div");u.classList.add("editor-styles-wrapper"),i.appendChild(u),a=n?.getComputedStyle(u,null).getPropertyValue("background-color"),i.removeChild(u)}let l=to(a);l.luminance()>.5||l.alpha()===0?i.classList.remove("is-dark-theme"):i.classList.add("is-dark-theme")},[e,t])}function ALe({styles:e,scope:t,transformOptions:o}){let r=(0,foe.useSelect)(s=>H(s(w)).getStyleOverrides(),[]),[n,i]=(0,yy.useMemo)(()=>{let s=Object.values(e??[]);for(let[a,l]of r){let u=s.findIndex(({id:f})=>a===f),d={...l,id:a};u===-1?s.push(d):s[u]=d}return[by(s.filter(a=>a?.css),t,o),s.filter(a=>a.__unstableType==="svgs").map(a=>a.assets).join("")]},[e,r,t,o]);return(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)("style",{ref:OLe(n,t)}),n.map((s,a)=>(0,Tf.jsx)("style",{children:s},a)),(0,Tf.jsx)(doe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:i}})]})}var ru=(0,yy.memo)(ALe);var Ns=c(C(),1),LLe=(0,LR.memo)(vy),r6=2e3,MLe=[];function NLe({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=MLe}){e||(e=t);let[n,{height:i}]=(0,hx.useResizeObserver)(),{styles:s}=(0,moe.useSelect)(d=>({styles:d(w).getSettings().styles}),[]),a=(0,LR.useMemo)(()=>s&&[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r],[s,r]),l=t/e,u=i?t/(i*l):0;return(0,Ns.jsx)(poe.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:u,maxHeight:i>r6?r6*l:void 0,minHeight:o},children:(0,Ns.jsxs)(dy,{contentRef:(0,hx.useRefEffect)(d=>{let{ownerDocument:{documentElement:f}}=d;f.classList.add("block-editor-block-preview__content-iframe"),f.style.position="absolute",f.style.width="100%",d.style.boxSizing="border-box",d.style.position="absolute",d.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:r6,minHeight:l!==0&&l<1&&o?o/l:o},children:[(0,Ns.jsx)(ru,{styles:a}),n,(0,Ns.jsx)(LLe,{renderAppender:!1})]})})}function hoe(e){let[t,{width:o}]=(0,hx.useResizeObserver)();return(0,Ns.jsxs)(Ns.Fragment,{children:[(0,Ns.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Ns.jsx)("div",{className:"block-editor-block-preview__container",children:!!o&&(0,Ns.jsx)(NLe,{...e,containerWidth:o})})]})}var ky=c(A(),1),voe=c(boe(),1),yoe=(0,voe.createQueue)();function koe({children:e,placeholder:t}){let[o,r]=(0,ky.useState)(!1);return(0,ky.useEffect)(()=>{let n={};return yoe.add(n,()=>{(0,ky.flushSync)(()=>{r(!0)})}),()=>{yoe.cancel(n)}},[]),o?e:t}var ph=c(C(),1),DLe=[];function VLe({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=DLe,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,n6.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],(0,n6.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,i6.useSelect)(u=>u(w).getSettings(),[]),a=(0,mh.useMemo)(()=>({...s,focusMode:!1,isPreviewMode:!0}),[s]),l=(0,mh.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,ph.jsx)(iy,{value:l,settings:a,children:(0,ph.jsx)(hoe,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var Soe=(0,mh.memo)(VLe);Soe.Async=koe;var ui=Soe;function _oe({blocks:e,props:t={},layout:o}){let r=(0,i6.useSelect)(u=>u(w).getSettings(),[]),n=(0,mh.useMemo)(()=>({...r,styles:void 0,focusMode:!1,isPreviewMode:!0}),[r]),i=(0,MR.useDisabled)(),s=(0,MR.useMergeRefs)([t.ref,i]),a=(0,mh.useMemo)(()=>Array.isArray(e)?e:[e],[e]),l=(0,ph.jsxs)(iy,{value:a,settings:n,children:[(0,ph.jsx)(ru,{}),(0,ph.jsx)(gx,{renderAppender:!1,layout:o})]});return{...t,ref:s,className:U(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}var Bf=c(C(),1);function FLe({item:e}){let{name:t,title:o,icon:r,description:n,initialAttributes:i,example:s}=e,a=(0,Sy.isReusableBlock)(e),l=(0,xoe.useMemo)(()=>s?(0,Sy.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks}):(0,Sy.createBlock)(t,i),[t,s,i]),u=144,d=280,f=s?.viewportWidth??500,m=d/f,h=m!==0&&m<1&&u?u/m:u;return(0,Bf.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,Bf.jsx)("div",{className:"block-editor-inserter__preview",children:a||s?(0,Bf.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,Bf.jsx)(ui,{blocks:l,viewportWidth:f,minHeight:u,additionalStyles:[{css:`
										body { 
											padding: 24px;
											min-height:${Math.round(h)}px;
											display:flex;
											align-items:center;
										}
										.is-root-container { width: 100%; }
									`}]})}):(0,Bf.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,woe.__)("No preview available.")})}),!a&&(0,Bf.jsx)(Q_,{title:o,icon:r,description:n})]})}var Coe=FLe;var By=c(F(),1),su=c(A(),1),f6=c(oe(),1);var Foe=c(Q(),1),zoe=c(oe(),1);var Ty=c(A(),1),Rf=c(Q(),1),Doe=c(N(),1),bx=c(Bt(),1);var Aoe=c(N(),1),Loe=c(A(),1);var _y=c(A(),1),Eoe=c(F(),1),Toe=c(Cr(),1),Boe=c(C(),1);function zLe(e,t){let[o,r]=(0,_y.useState)(!1);return(0,_y.useEffect)(()=>{o&&(0,Toe.speak)((0,Eoe.__)("Use left and right arrow keys to move through blocks"))},[o]),(0,Boe.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:n=>{!n.currentTarget.contains(n.relatedTarget)&&r(!1)},...e})}var s6=(0,_y.forwardRef)(zLe);var Roe=c(A(),1),Poe=c(N(),1),Ioe=c(C(),1);function jLe(e,t){return(0,Ioe.jsx)(Poe.Composite.Group,{role:"presentation",ref:t,...e})}var a6=(0,Roe.forwardRef)(jLe);var DR=c(N(),1),Ooe=c(A(),1),NR=c(C(),1);function HLe({isFirst:e,as:t,children:o,...r},n){return(0,NR.jsx)(DR.Composite.Item,{ref:n,role:"option",accessibleWhenDisabled:!0,...r,render:i=>{let s={...i,tabIndex:e?0:i.tabIndex};return t?(0,NR.jsx)(t,{...s,children:o}):typeof o=="function"?o(s):(0,NR.jsx)(DR.Button,{__next40pxDefaultSize:!0,...s,children:o})}})}var l6=(0,Ooe.forwardRef)(HLe);var c6=c(C(),1);function ULe({key:e,children:t}){return(0,c6.jsx)(Loe.Fragment,{children:t},e)}function GLe({children:e}){return(0,c6.jsx)(Aoe.Composite,{focusShift:!0,focusWrap:"horizontal",render:ULe,children:e})}var xy=GLe;var Moe=c(N(),1),FR=c(Q(),1),zR=c(G(),1),Noe=c(A(),1);var Cy=c(F(),1),wy=c(N(),1);var Ha=c(C(),1);function VR({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,Cy.__)("Pattern");return(0,Ha.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,Ha.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,Ha.jsxs)(wy.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,Ha.jsx)(wy.FlexItem,{children:t?(0,Ha.jsx)(rt,{icon:t}):n||(0,Cy.sprintf)((0,Cy._n)("%d block","%d blocks",e),e)}),(0,Ha.jsx)(wy.FlexItem,{children:(0,Ha.jsx)(rt,{icon:fS})}),r&&(0,Ha.jsx)(wy.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,Ha.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var u6=c(C(),1),WLe=({isEnabled:e,blocks:t,icon:o,children:r,pattern:n})=>{let i=t.length===1?t[0].name:void 0,s=(0,zR.useSelect)(f=>i&&f(FR.store).getBlockType(i)?.icon,[i]),{startDragging:a,stopDragging:l}=H((0,zR.useDispatch)(w)),u=(0,Noe.useMemo)(()=>n?.type===fo.user&&n?.syncStatus!=="unsynced"?[(0,FR.createBlock)("core/block",{ref:n.id})]:void 0,[n?.type,n?.syncStatus,n?.id]);if(!e)return r({draggable:!1,onDragStart:void 0,onDragEnd:void 0});let d=u??t;return(0,u6.jsx)(Moe.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:d},onDragStart:f=>{a();let m=new Set;for(let h of d){let p=`wp-block:${h.name}`;m.has(p)||(f.dataTransfer.items.add("",p),m.add(p))}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,u6.jsx)(VR,{count:t.length,icon:o||!n&&s,isPattern:!!n}),children:({onDraggableStart:f,onDraggableEnd:m})=>r({draggable:!0,onDragStart:f,onDragEnd:m})})},Ey=WLe;var nu=c(C(),1);function $Le({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,Ty.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},u=(0,Ty.useMemo)(()=>[(0,Rf.createBlock)(o.name,o.initialAttributes,(0,Rf.createBlocksFromInnerBlocksTemplate)(o.innerBlocks))],[o.name,o.initialAttributes,o.innerBlocks]),d=(0,Rf.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,Rf.isTemplatePart)(o);return(0,nu.jsx)(Ey,{isEnabled:i&&!o.isDisabled,blocks:u,icon:o.icon,children:({draggable:f,onDragStart:m,onDragEnd:h})=>(0,nu.jsx)("div",{className:U("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:f,onDragStart:p=>{a.current=!0,m&&(n(null),m(p))},onDragEnd:p=>{a.current=!1,h&&h(p)},children:(0,nu.jsxs)(l6,{isFirst:t,className:U("block-editor-block-types-list__item",e),disabled:o.isDisabled,onClick:p=>{p.preventDefault(),r(o,(0,bx.isAppleOS)()?p.metaKey:p.ctrlKey),n(null)},onKeyDown:p=>{let{keyCode:g}=p;g===bx.ENTER&&(p.preventDefault(),r(o,(0,bx.isAppleOS)()?p.metaKey:p.ctrlKey),n(null))},onMouseEnter:()=>{a.current||n(o)},onMouseLeave:()=>n(null),...s,children:[(0,nu.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:l,children:(0,nu.jsx)(rt,{icon:o.icon,showColors:!0})}),(0,nu.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,nu.jsx)(Doe.__experimentalTruncate,{numberOfLines:3,children:o.title})})]})})})}var Voe=(0,Ty.memo)($Le);var yx=c(C(),1);function KLe(e,t){let o=[];for(let r=0,n=e.length;r<n;r+=t)o.push(e.slice(r,r+t));return o}function joe({items:e=[],onSelect:t,onHover:o=()=>{},children:r,label:n,isDraggable:i=!0}){let s="block-editor-block-types-list",a=(0,zoe.useInstanceId)(joe,s);return(0,yx.jsxs)(s6,{className:s,"aria-label":n,children:[KLe(e,3).map((l,u)=>(0,yx.jsx)(a6,{children:l.map((d,f)=>(0,yx.jsx)(Voe,{item:d,className:(0,Foe.getBlockMenuDefaultClassName)(d.id),onSelect:t,onHover:o,isDraggable:i&&!d.isDisabled,isFirst:u===0&&f===0,rowId:`${a}-${u}`},d.id))},u)),r]})}var hh=joe;var Hoe=c(N(),1),iu=c(C(),1);function YLe({title:e,icon:t,children:o}){return(0,iu.jsxs)(iu.Fragment,{children:[(0,iu.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,iu.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,iu.jsx)(Hoe.Icon,{icon:t})]}),(0,iu.jsx)("div",{className:"block-editor-inserter__panel-content",children:o})]})}var Pf=YLe;var Uoe=c(F(),1),d6=c(C(),1);function qLe(){return(0,d6.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,d6.jsx)("p",{children:(0,Uoe.__)("No results found.")})})}var Ua=qLe;var gr=c(C(),1),ZLe=e=>e.name.split("/")[0],XLe=6,QLe=[];function Goe({items:e,collections:t,categories:o,onSelectItem:r,onHover:n,showMostUsedBlocks:i,className:s}){let a=(0,su.useMemo)(()=>Tl(e,"frecency","desc").slice(0,XLe),[e]),l=(0,su.useMemo)(()=>e.filter(p=>!p.category),[e]),u=(0,su.useMemo)(()=>{let p={...t};return Object.keys(t).forEach(g=>{p[g]=e.filter(b=>ZLe(b)===g),p[g].length===0&&delete p[g]}),p},[e,t]);(0,su.useEffect)(()=>()=>n(null),[]);let d=(0,f6.useAsyncList)(o),f=o.length===d.length,m=(0,su.useMemo)(()=>Object.entries(t),[t]),h=(0,f6.useAsyncList)(f?m:QLe);return(0,gr.jsxs)("div",{className:s,children:[i&&e.length>3&&!!a.length&&(0,gr.jsx)(Pf,{title:(0,By._x)("Most used","blocks"),children:(0,gr.jsx)(hh,{items:a,onSelect:r,onHover:n,label:(0,By._x)("Most used","blocks")})}),d.map(p=>{let g=e.filter(b=>b.category===p.slug);return!g||!g.length?null:(0,gr.jsx)(Pf,{title:p.title,icon:p.icon,children:(0,gr.jsx)(hh,{items:g,onSelect:r,onHover:n,label:p.title})},p.slug)}),f&&l.length>0&&(0,gr.jsx)(Pf,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,By.__)("Uncategorized"),children:(0,gr.jsx)(hh,{items:l,onSelect:r,onHover:n,label:(0,By.__)("Uncategorized")})}),h.map(([p,g])=>{let b=u[p];return!b||!b.length?null:(0,gr.jsx)(Pf,{title:g.title,icon:g.icon,children:(0,gr.jsx)(hh,{items:b,onSelect:r,onHover:n,label:g.title})},p)})]})}function JLe({rootClientId:e,onInsert:t,onHover:o,showMostUsedBlocks:r},n){let[i,s,a,l]=Ud(e,t);if(!i.length)return(0,gr.jsx)(Ua,{});let u=[],d=[];for(let f of i)f.category!=="reusable"&&(f.isSearchOnly||(f.isAllowedInCurrentRoot?u.push(f):d.push(f)));return(0,gr.jsx)(xy,{children:(0,gr.jsxs)("div",{ref:n,children:[!!u.length&&(0,gr.jsx)(gr.Fragment,{children:(0,gr.jsx)(Goe,{items:u,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,gr.jsx)(Goe,{items:d,categories:s,collections:a,onSelectItem:l,onHover:o,showMostUsedBlocks:r,className:"block-editor-inserter__all-blocks"})]})})}var Woe=(0,su.forwardRef)(JLe);var fre=c(A(),1),mre=c(oe(),1),pre=c(N(),1),hre=c(F(),1);var sre=c(N(),1),y6=c(A(),1),are=c(F(),1);var jR=c(N(),1),m6=c(F(),1),au=c(C(),1);function eMe({selectedCategory:e,patternCategories:t,onClickCategory:o}){let r="block-editor-block-patterns-explorer__sidebar";return(0,au.jsx)("div",{className:`${r}__categories-list`,children:t.map(({name:n,label:i})=>(0,au.jsx)(jR.Button,{__next40pxDefaultSize:!0,label:i,className:`${r}__categories-list__item`,isPressed:e===n,onClick:()=>{o(n)},children:i},n))})}function tMe({searchValue:e,setSearchValue:t}){return(0,au.jsx)("div",{className:"block-editor-block-patterns-explorer__search",children:(0,au.jsx)(jR.SearchControl,{onChange:t,value:e,label:(0,m6.__)("Search"),placeholder:(0,m6.__)("Search")})})}function oMe({selectedCategory:e,patternCategories:t,onClickCategory:o,searchValue:r,setSearchValue:n}){return(0,au.jsxs)("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[(0,au.jsx)(tMe,{searchValue:r,setSearchValue:n}),!r&&(0,au.jsx)(eMe,{selectedCategory:e,patternCategories:t,onClickCategory:o})]})}var $oe=oMe;var lu=c(A(),1),Oy=c(F(),1),tre=c(oe(),1),ore=c(N(),1),rre=c(Cr(),1);var Koe=c(Q(),1),Ul=c(A(),1),vx=c(N(),1);var Yoe=c(oe(),1),qoe=c(F(),1);var di=c(N(),1),Ds=c(F(),1),fn=c(C(),1);function HR({currentPage:e,numPages:t,changePage:o,totalItems:r}){return(0,fn.jsxs)(di.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,fn.jsx)(di.__experimentalText,{variant:"muted",children:(0,Ds.sprintf)((0,Ds._n)("%s item","%s items",r),r)}),t>1&&(0,fn.jsxs)(di.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,fn.jsxs)(di.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,fn.jsx)(di.Button,{variant:"tertiary",onClick:()=>o(1),disabled:e===1,"aria-label":(0,Ds.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,fn.jsx)("span",{children:"\xAB"})}),(0,fn.jsx)(di.Button,{variant:"tertiary",onClick:()=>o(e-1),disabled:e===1,"aria-label":(0,Ds.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,fn.jsx)("span",{children:"\u2039"})})]}),(0,fn.jsx)(di.__experimentalText,{variant:"muted",children:(0,Ds.sprintf)((0,Ds._x)("%1$s of %2$s","paging"),e,t)}),(0,fn.jsxs)(di.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,fn.jsx)(di.Button,{variant:"tertiary",onClick:()=>o(e+1),disabled:e===t,"aria-label":(0,Ds.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,fn.jsx)("span",{children:"\u203A"})}),(0,fn.jsx)(di.Button,{variant:"tertiary",onClick:()=>o(t),disabled:e===t,"aria-label":(0,Ds.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,fn.jsx)("span",{children:"\xBB"})})]})]})]})}var qt=c(C(),1),rMe=({showTooltip:e,title:t,children:o})=>e?(0,qt.jsxs)(lt.Root,{children:[(0,qt.jsx)(lt.Trigger,{render:o}),(0,qt.jsx)(lt.Popup,{children:t})]}):(0,qt.jsx)(qt.Fragment,{children:o});function Zoe({id:e,isDraggable:t,pattern:o,onClick:r,onHover:n,showTitlesAsTooltip:i,category:s,isSelected:a}){let[l,u]=(0,Ul.useState)(!1),{blocks:d,viewportWidth:f}=o,h=`block-editor-block-patterns-list__item-description-${(0,Yoe.useInstanceId)(Zoe)}`,p=o.type===fo.user,g=(0,Ul.useMemo)(()=>!s||!t?d:(d??[]).map(b=>{let v=(0,Koe.cloneBlock)(b);return v.attributes.metadata?.categories?.includes(s)&&(v.attributes.metadata.categories=[s]),v}),[d,t,s]);return(0,qt.jsx)(Ey,{isEnabled:t,blocks:g,pattern:o,children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,qt.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:b,onDragStart:k=>{u(!0),v&&(n?.(null),v(k))},onDragEnd:k=>{u(!1),y&&y(k)},children:(0,qt.jsx)(rMe,{showTooltip:i&&!p,title:o.title,children:(0,qt.jsxs)(vx.Composite.Item,{render:(0,qt.jsx)("div",{role:"option","aria-label":o.title,"aria-describedby":o.description?h:void 0,className:U("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":o.type===fo.user&&!o.syncStatus,"is-selected":a})}),id:e,onClick:()=>{r(o,d),n?.(null)},onMouseEnter:()=>{l||n?.(o)},onMouseLeave:()=>n?.(null),children:[(0,qt.jsx)(ui.Async,{placeholder:(0,qt.jsx)(nMe,{}),children:(0,qt.jsx)(ui,{blocks:d,viewportWidth:f})}),(!i||p)&&(0,qt.jsxs)(vx.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[p&&!o.syncStatus&&(0,qt.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,qt.jsx)(We,{className:"block-editor-patterns__pattern-icon",icon:Ss})}),(0,qt.jsx)(Xc,{render:(0,qt.jsx)("div",{}),className:"block-editor-block-patterns-list__item-title",variant:"body-sm",children:o.title})]}),!!o.description&&(0,qt.jsx)(ct,{id:h,children:o.description})]})})})})}function nMe(){return(0,qt.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function iMe({isDraggable:e,blockPatterns:t,onHover:o,onClickPattern:r,orientation:n,label:i=(0,qoe.__)("Block patterns"),category:s,showTitlesAsTooltip:a,pagingProps:l},u){let[d,f]=(0,Ul.useState)(void 0),[m,h]=(0,Ul.useState)(null);(0,Ul.useEffect)(()=>{let g=t[0]?.name;f(g)},[t]);let p=(g,b)=>{h(g.name),r(g,b)};return(0,qt.jsxs)(vx.Composite,{orientation:n,activeId:d,setActiveId:f,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:u,children:[t.map(g=>(0,qt.jsx)(Zoe,{id:g.name,pattern:g,onClick:p,onHover:o,isDraggable:e,showTitlesAsTooltip:a,category:s,isSelected:!!m&&m===g.name},g.name)),l&&(0,qt.jsx)(HR,{...l})]})}var Gl=(0,Ul.forwardRef)(iMe);var gh=c(G(),1),Qoe=c(Q(),1),UR=c(F(),1),Joe=c(Cr(),1),p6=c(A(),1);function Xoe({destinationRootClientId:e,destinationIndex:t,rootClientId:o,registry:r}){if(o===e)return t;let n=["",...r.select(w).getBlockParents(e),e],i=n.indexOf(o);return i!==-1?r.select(w).getBlockIndex(n[i+1])+1:r.select(w).getBlockOrder(o).length}function sMe({rootClientId:e="",insertionIndex:t,clientId:o,isAppender:r,onSelect:n,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){let a=(0,gh.useRegistry)(),{getSelectedBlock:l,getClosestAllowedInsertionPoint:u,isBlockInsertionPointVisible:d}=H((0,gh.useSelect)(w)),{destinationRootClientId:f,destinationIndex:m}=(0,gh.useSelect)(S=>{let{getSelectedBlockClientId:_,getBlockRootClientId:x,getBlockIndex:E,getBlockOrder:T,getInsertionPoint:R}=H(S(w)),B=_(),O=e,I,P=R();return t!==void 0?I=t:P&&P.hasOwnProperty("index")?(O=P?.rootClientId?P.rootClientId:e,I=P.index):o?I=E(o):!r&&B?(O=x(B),I=E(B)+1):I=T(O).length,{destinationRootClientId:O,destinationIndex:I}},[e,t,o,r]),{replaceBlocks:h,insertBlocks:p,showInsertionPoint:g,hideInsertionPoint:b,setLastFocus:v}=H((0,gh.useDispatch)(w)),y=(0,p6.useCallback)((S,_,x=!1,E)=>{(x||i||s)&&v(null);let T=l();!r&&T&&(0,Qoe.isUnmodifiedDefaultBlock)(T,"content")?h(T.clientId,S,null,i||x?0:null,_):p(S,r||E===void 0?m:Xoe({destinationRootClientId:f,destinationIndex:m,rootClientId:E,registry:a}),r||E===void 0?f:E,s,i||x?0:null,_);let R=Array.isArray(S)?S.length:1,B=(0,UR.sprintf)((0,UR._n)("%d block added.","%d blocks added.",R),R);(0,Joe.speak)(B),n&&n(S)},[r,l,h,p,f,m,n,i,s,v,a]),k=(0,p6.useCallback)(S=>{if(S&&!d()){let _=u(S.name,f);_!==null&&g(_,Xoe({destinationRootClientId:f,destinationIndex:m,rootClientId:_,registry:a}))}else b()},[u,d,g,b,f,m,a]);return[f,y,k]}var If=sMe;var Ry=c(A(),1),GR=c(Q(),1),Py=c(G(),1),WR=c(F(),1),ere=c(Ni(),1);var aMe=(e,t,o,r)=>{let n=(0,Ry.useMemo)(()=>({[Nd]:!!r}),[r]),i=(0,Py.useSelect)(p=>{let{getSettings:g}=H(p(w));return g()[sC]??!1},[]),{patternCategories:s,patterns:a,userPatternCategories:l}=(0,Py.useSelect)(p=>{let{getSettings:g,__experimentalGetAllowedPatterns:b}=H(p(w)),v=g(),y=v[Ac];return{patterns:b(t,n),userPatternCategories:y?y(p):v.__experimentalUserPatternCategories,patternCategories:v.__experimentalBlockPatternCategories}},[t,n]),u=(0,Ry.useMemo)(()=>a.filter(p=>!(p.categories?.includes("navigation")&&!i)),[a,i]),{getClosestAllowedInsertionPointForPattern:d}=H((0,Py.useSelect)(w)),f=(0,Ry.useMemo)(()=>{let p=[...s];return l?.forEach(g=>{p.find(b=>b.name===g.name)||p.push(g)}),p},[s,l]),{createSuccessNotice:m}=(0,Py.useDispatch)(ere.store),h=(0,Ry.useCallback)((p,g)=>{let b=r?t:d(p,t);if(b===null)return;let v=p.type===fo.user&&p.syncStatus!=="unsynced"?[(0,GR.createBlock)("core/block",{ref:p.id})]:g;e((v??[]).map(y=>{let k=(0,GR.cloneBlock)(y);return k.attributes.metadata?.categories?.includes(o)&&(k.attributes.metadata.categories=[o]),k}),p.name,!1,b),m((0,WR.sprintf)((0,WR.__)('Block pattern "%s" inserted.'),p.title),{type:"snackbar",id:"inserter-notice"})},[m,e,o,t,d,r]);return[u,f,h]},Of=aMe;var Iy=c(A(),1),h6=c(oe(),1),g6=c(at(),1),$R=20;function KR(e,t,o,r=""){let[n,i]=(0,Iy.useState)(1),s=(0,h6.usePrevious)(t),a=(0,h6.usePrevious)(r);(s!==t||a!==r)&&n!==1&&i(1);let l=e.length,u=n-1,d=(0,Iy.useMemo)(()=>e.slice(u*$R,u*$R+$R),[u,e]),f=Math.ceil(e.length/$R),m=h=>{(0,g6.getScrollContainer)(o?.current)?.scrollTo(0,0),i(h)};return(0,Iy.useEffect)(function(){(0,g6.getScrollContainer)(o?.current)?.scrollTo(0,0)},[t,o]),{totalItems:l,categoryPatterns:d,numPages:f,changePage:m,currentPage:n}}var Ga=c(C(),1);function lMe({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,Ga.jsx)(ore.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:(0,Oy.sprintf)((0,Oy._n)("%d pattern found","%d patterns found",t),t)}):null}function cMe({searchValue:e,selectedCategory:t,patternCategories:o,rootClientId:r,onModalClose:n}){let i=(0,lu.useRef)(),s=(0,tre.useDebounce)(rre.speak,500),[a,l]=If({rootClientId:r,shouldFocusBlock:!0}),[u,,d]=Of(l,a,t),f=(0,lu.useMemo)(()=>o.map(v=>v.name),[o]),m=(0,lu.useMemo)(()=>{let v=u.filter(y=>{if(t===Ip.name||t===Nc.name&&y.type===fo.user||t===tb.name&&y.blockTypes?.includes("core/post-content"))return!0;if(t==="uncategorized"){let k=y.categories?.some(S=>f.includes(S))??!1;return!y.categories?.length||!k}return y.categories?.includes(t)});return e?XS(v,e):v},[e,u,t,f]);(0,lu.useEffect)(()=>{if(!e)return;let v=m.length,y=(0,Oy.sprintf)((0,Oy._n)("%d result found.","%d results found.",v),v);s(y)},[e,s,m.length]);let h=KR(m,t,i),[p,g]=(0,lu.useState)(e);e!==p&&(g(e),h.changePage(1));let b=!!m?.length;return(0,Ga.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:[(0,Ga.jsx)(lMe,{filterValue:e,filteredBlockPatternsLength:m.length}),(0,Ga.jsx)(xy,{children:b&&(0,Ga.jsxs)(Ga.Fragment,{children:[(0,Ga.jsx)(Gl,{blockPatterns:h.categoryPatterns,onClickPattern:(v,y)=>{d(v,y),n()},isDraggable:!1}),(0,Ga.jsx)(HR,{...h})]})})]})}var nre=cMe;var b6=c(A(),1),Ay=c(F(),1),ire=c(Cr(),1);function uMe(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(o=>t.some(r=>r.name===o))}function Ly(e,t="all"){let[o,r]=Of(void 0,e),n=(0,b6.useMemo)(()=>t==="all"?o:o.filter(s=>!uE(s,t)),[t,o]);return(0,b6.useMemo)(()=>{let s=r.filter(a=>n.some(l=>l.categories?.includes(a.name))).sort((a,l)=>a.label.localeCompare(l.label));return n.some(a=>!uMe(a,r))&&!s.find(a=>a.name==="uncategorized")&&s.push({name:"uncategorized",label:(0,Ay._x)("Uncategorized")}),n.some(a=>a.blockTypes?.includes("core/post-content"))&&s.unshift(tb),n.some(a=>a.type===fo.user)&&s.unshift(Nc),n.length>0&&s.unshift({name:Ip.name,label:Ip.label}),(0,ire.speak)((0,Ay.sprintf)((0,Ay._n)("%d category button displayed.","%d category buttons displayed.",s.length),s.length)),s},[r,n])}var bh=c(C(),1);function dMe({initialCategory:e,rootClientId:t,onModalClose:o}){let[r,n]=(0,y6.useState)(""),[i,s]=(0,y6.useState)(e?.name),a=Ly(t);return(0,bh.jsxs)("div",{className:"block-editor-block-patterns-explorer",children:[(0,bh.jsx)($oe,{selectedCategory:i,patternCategories:a,onClickCategory:s,searchValue:r,setSearchValue:n}),(0,bh.jsx)(nre,{searchValue:r,selectedCategory:i,patternCategories:a,rootClientId:t,onModalClose:o})]})}function fMe({onModalClose:e,...t}){return(0,bh.jsx)(sre.Modal,{title:(0,are.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,bh.jsx)(dMe,{onModalClose:e,...t})})}var lre=fMe;var My=c(F(),1),po=c(N(),1);var Pr=c(C(),1);function mMe({title:e}){return(0,Pr.jsx)(po.__experimentalVStack,{spacing:0,children:(0,Pr.jsx)(po.__experimentalView,{children:(0,Pr.jsx)(po.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,Pr.jsxs)(po.__experimentalHStack,{spacing:2,children:[(0,Pr.jsx)(po.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,My.isRTL)()?pr:xn,size:"small",label:(0,My.__)("Back")}),(0,Pr.jsx)(po.__experimentalSpacer,{children:(0,Pr.jsx)(po.__experimentalHeading,{level:5,children:e})})]})})})})}function YR({categories:e,children:t}){return(0,Pr.jsxs)(po.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,Pr.jsx)(po.Navigator.Screen,{path:"/",children:(0,Pr.jsx)(po.__experimentalItemGroup,{children:e.map(o=>(0,Pr.jsx)(po.Navigator.Button,{path:`/category/${o.name}`,as:po.__experimentalItem,isAction:!0,children:(0,Pr.jsxs)(po.__experimentalHStack,{children:[(0,Pr.jsx)(po.FlexBlock,{children:o.label}),(0,Pr.jsx)(We,{icon:(0,My.isRTL)()?xn:pr})]})},o.name))})}),e.map(o=>(0,Pr.jsxs)(po.Navigator.Screen,{path:`/category/${o.name}`,children:[(0,Pr.jsx)(mMe,{title:(0,My.__)("Back")}),t(o)]},o.name))]})}var Vs=c(A(),1),v6=c(F(),1),Wa=c(N(),1);var mi=c(N(),1),fi=c(F(),1);var qR=c(A(),1);var Xr=c(C(),1),cre=e=>e!=="all"&&e!=="user",pMe=e=>e.name===Nc.name,hMe=[{value:"all",label:(0,fi._x)("All","patterns")},{value:fo.directory,label:(0,fi.__)("Pattern Directory")},{value:fo.theme,label:(0,fi.__)("Theme & Plugins")},{value:fo.user,label:(0,fi.__)("User")}];function ure({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:o,patternSourceFilter:r,scrollContainerRef:n,category:i}){let s=i.name===Nc.name?fo.user:r,a=cre(s),l=pMe(i),u=(0,qR.useMemo)(()=>[{value:"all",label:(0,fi._x)("All","patterns")},{value:FS.full,label:(0,fi._x)("Synced","patterns"),disabled:a},{value:FS.unsynced,label:(0,fi._x)("Not synced","patterns"),disabled:a}],[a]);function d(f){t(f),cre(f)&&e("all")}return(0,Xr.jsx)(Xr.Fragment,{children:(0,Xr.jsx)(mi.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,fi.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,Xr.jsx)(We,{icon:(0,Xr.jsx)(mi.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Xr.jsx)(mi.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,Xr.jsxs)(Xr.Fragment,{children:[!l&&(0,Xr.jsx)(mi.MenuGroup,{label:(0,fi.__)("Source"),children:(0,Xr.jsx)(mi.MenuItemsChoice,{choices:hMe,onSelect:f=>{d(f),n.current?.scrollTo(0,0)},value:s})}),(0,Xr.jsx)(mi.MenuGroup,{label:(0,fi.__)("Type"),children:(0,Xr.jsx)(mi.MenuItemsChoice,{choices:u,onSelect:f=>{e(f),n.current?.scrollTo(0,0)},value:o})}),(0,Xr.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,qR.createInterpolateElement)((0,fi.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,Xr.jsx)(mi.ExternalLink,{href:(0,fi.__)("https://wordpress.org/patterns/")})})})]})})})}var Nn=c(C(),1),gMe=()=>{};function ZR({rootClientId:e,onInsert:t,onHover:o=gMe,category:r,showTitlesAsTooltip:n}){let[i,,s]=Of(t,e,r?.name),[a,l]=(0,Vs.useState)("all"),[u,d]=(0,Vs.useState)("all"),f=Ly(e,u),m=(0,Vs.useRef)(),h=(0,Vs.useMemo)(()=>i.filter(y=>uE(y,u,a)?!1:r.name===Ip.name||r.name===Nc.name&&y.type===fo.user||r.name===tb.name&&y.blockTypes?.includes("core/post-content")?!0:r.name==="uncategorized"?y.categories?!y.categories.some(k=>f.some(S=>S.name===k)):!0:y.categories?.includes(r.name)),[i,f,r.name,u,a]),p=KR(h,r,m),{changePage:g}=p;(0,Vs.useEffect)(()=>()=>o(null),[]);let b=(0,Vs.useCallback)(y=>{l(y),g(1)},[l,g]),v=(0,Vs.useCallback)(y=>{d(y),g(1)},[d,g]);return(0,Nn.jsxs)(Nn.Fragment,{children:[(0,Nn.jsxs)(Wa.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,Nn.jsxs)(Wa.__experimentalHStack,{children:[(0,Nn.jsx)(Wa.FlexBlock,{children:(0,Nn.jsx)(Wa.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:r.label})}),(0,Nn.jsx)(ure,{patternSyncFilter:a,patternSourceFilter:u,setPatternSyncFilter:b,setPatternSourceFilter:v,scrollContainerRef:m,category:r})]}),!h.length&&(0,Nn.jsx)(Wa.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,v6.__)("No results found")})]}),h.length>0&&(0,Nn.jsxs)(Nn.Fragment,{children:[(0,Nn.jsx)(Wa.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,v6.__)("Drag and drop patterns into the canvas.")}),(0,Nn.jsx)(Gl,{ref:m,blockPatterns:p.categoryPatterns,onClickPattern:s,onHover:o,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:n,patternFilter:u,pagingProps:p})]})]})}var QR=c(oe(),1),JR=c(N(),1),dre=c(A(),1);var yh=c(C(),1),{Tabs:XR}=H(JR.privateApis);function bMe({categories:e,selectedCategory:t,onSelectCategory:o,children:r}){let s={type:"tween",duration:(0,QR.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},a=(0,QR.usePrevious)(t),l=t?t.name:null,[u,d]=(0,dre.useState)(),f=e?.[0]?.name;return l===null&&!u&&f&&d(f),(0,yh.jsxs)(XR,{selectOnMove:!1,selectedTabId:l,orientation:"vertical",onSelect:m=>{o(e.find(h=>h.name===m))},activeTabId:u,onActiveTabIdChange:d,children:[(0,yh.jsx)(XR.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(m=>(0,yh.jsx)(XR.Tab,{tabId:m.name,"aria-current":m===t?"true":void 0,children:m.label},m.name))}),e.map(m=>(0,yh.jsx)(XR.TabPanel,{tabId:m.name,focusable:!1,children:(0,yh.jsx)(JR.__unstableMotion.div,{className:"block-editor-inserter__category-panel",initial:a?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:s,children:r})},m.name))]})}var eP=bMe;var Gi=c(C(),1);function yMe({onSelectCategory:e,selectedCategory:t,onInsert:o,rootClientId:r,children:n}){let[i,s]=(0,fre.useState)(!1),a=Ly(r),l=(0,mre.useViewportMatch)("medium","<");return a.length?(0,Gi.jsxs)(Gi.Fragment,{children:[!l&&(0,Gi.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,Gi.jsx)(eP,{categories:a,selectedCategory:t,onSelectCategory:e,children:n}),(0,Gi.jsx)(pre.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,hre.__)("Explore all patterns")})]}),l&&(0,Gi.jsx)(YR,{categories:a,children:u=>(0,Gi.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,Gi.jsx)(ZR,{onInsert:o,rootClientId:r,category:u},u.name)})}),i&&(0,Gi.jsx)(lre,{initialCategory:t||a[0],patternCategories:a,onModalClose:()=>s(!1),rootClientId:r})]}):(0,Gi.jsx)(Ua,{})}var gre=yMe;var Are=c(F(),1),Lre=c(oe(),1),Mre=c(N(),1),rP=c(A(),1);var oP=c(N(),1),Rre=c(F(),1),Pre=c(oe(),1);var wre=c(N(),1),Cre=c(F(),1);var Oo=c(N(),1),Wi=c(F(),1),Wl=c(A(),1),S6=c(Q(),1);var kx=c(G(),1),kre=c(Ni(),1),Sre=c(k6(),1),_re=c(Ai(),1);var yre=c(Q(),1),vre=c(C(),1),vMe={image:"img",video:"video",audio:"audio"};function tP(e,t){let o={id:e.id||void 0,caption:e.caption||void 0},r=e.url,n=e.alt||void 0;t==="image"?(o.url=r,o.alt=n):["video","audio"].includes(t)&&(o.src=r);let i=vMe[t],s=(0,vre.jsx)(i,{src:e.previewUrl||r,alt:n,controls:t==="audio"?!0:void 0,inert:"true",onError:({currentTarget:a})=>{a.src===e.previewUrl&&(a.src=r)}});return[(0,yre.createBlock)(`core/${t}`,o),s]}var Ct=c(C(),1),kMe=["image"],SMe={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function _Me({category:e,media:t}){if(!e.getReportUrl)return null;let o=e.getReportUrl(t);return(0,Ct.jsx)(Oo.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,Wi.__)("Options"),popoverProps:SMe,icon:Li,children:()=>(0,Ct.jsx)(Oo.MenuGroup,{children:(0,Ct.jsx)(Oo.MenuItem,{onClick:()=>window.open(o,"_blank").focus(),icon:gD,children:(0,Wi.sprintf)((0,Wi.__)("Report %s"),e.mediaType)})})})}function xMe({onClose:e,onSubmit:t}){return(0,Ct.jsxs)(Oo.Modal,{title:(0,Wi.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,Ct.jsxs)(Oo.__experimentalVStack,{spacing:3,children:[(0,Ct.jsx)("p",{children:(0,Wi.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,Ct.jsx)("p",{children:(0,Wi.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,Ct.jsxs)(Oo.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Ct.jsx)(Oo.FlexItem,{children:(0,Ct.jsx)(Oo.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Wi.__)("Cancel")})}),(0,Ct.jsx)(Oo.FlexItem,{children:(0,Ct.jsx)(Oo.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,Wi.__)("Insert")})})]})]})}function xre({media:e,onClick:t,category:o}){let[r,n]=(0,Wl.useState)(!1),[i,s]=(0,Wl.useState)(!1),[a,l]=(0,Wl.useState)(!1),[u,d]=(0,Wl.useMemo)(()=>tP(e,o.mediaType),[e,o.mediaType]),{createErrorNotice:f,createSuccessNotice:m}=(0,kx.useDispatch)(kre.store),{getSettings:h,getBlock:p}=(0,kx.useSelect)(w),{updateBlockAttributes:g}=(0,kx.useDispatch)(w),b=(0,Wl.useCallback)(S=>{if(a)return;let _=h(),x=(0,S6.cloneBlock)(S),{id:E,url:T,caption:R}=x.attributes;if(!E&&!_.mediaUpload){n(!0);return}if(E){t(x);return}l(!0),window.fetch(T).then(B=>B.blob()).then(B=>{let O=(0,_re.getFilename)(T)||"image.jpg",I=new File([B],O,{type:B.type});_.mediaUpload({filesList:[I],additionalData:{caption:R},onFileChange([P]){(0,Sre.isBlobURL)(P.url)||(p(x.clientId)?g(x.clientId,{...x.attributes,id:P.id,url:P.url}):(t({...x,attributes:{...x.attributes,id:P.id,url:P.url}}),m((0,Wi.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),l(!1))},allowedTypes:kMe,onError(P){f(P,{type:"snackbar",id:"inserter-notice"}),l(!1)}})}).catch(()=>{n(!0),l(!1)})},[a,h,t,m,g,f,p]),v=typeof e.title=="string"?e.title:e.title?.rendered||(0,Wi.__)("no title"),y=(0,Wl.useCallback)(()=>s(!0),[]),k=(0,Wl.useCallback)(()=>s(!1),[]);return(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(Ey,{isEnabled:!0,blocks:[u],children:({draggable:S,onDragStart:_,onDragEnd:x})=>(0,Ct.jsx)("div",{className:U("block-editor-inserter__media-list__list-item",{"is-hovered":i}),draggable:S,onDragStart:_,onDragEnd:x,children:(0,Ct.jsxs)("div",{onMouseEnter:y,onMouseLeave:k,children:[(0,Ct.jsxs)(lt.Root,{children:[(0,Ct.jsx)(lt.Trigger,{render:(0,Ct.jsx)(Oo.Composite.Item,{render:(0,Ct.jsx)("div",{"aria-label":v,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>b(u),children:(0,Ct.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[d,a&&(0,Ct.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,Ct.jsx)(Oo.Spinner,{})})]})})}),(0,Ct.jsx)(lt.Popup,{children:v})]}),!a&&(0,Ct.jsx)(_Me,{category:o,media:e})]})})}),r&&(0,Ct.jsx)(xMe,{onClose:()=>n(!1),onSubmit:()=>{t((0,S6.cloneBlock)(u)),m((0,Wi.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),n(!1)}})]})}var _6=c(C(),1);function wMe({mediaList:e,category:t,onClick:o,label:r=(0,Cre.__)("Media List")}){return(0,_6.jsx)(wre.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":r,children:e.map((n,i)=>(0,_6.jsx)(xre,{media:n,category:t,onClick:o},n.id||n.sourceId||i))})}var Ere=wMe;var cu=c(A(),1),x6=c(G(),1);function Tre(e,t={}){let[o,r]=(0,cu.useState)(),[n,i]=(0,cu.useState)(!1),s=(0,cu.useRef)();return(0,cu.useEffect)(()=>{(async()=>{let a=JSON.stringify({category:e.name,...t});s.current=a,i(!0),r([]);let l=await e.fetch?.(t);a===s.current&&(r(l),i(!1))})()},[e.name,...Object.values(t)]),{mediaList:o,isLoading:n}}function Bre(e){let[t,o]=(0,cu.useState)([]),r=(0,x6.useSelect)(a=>H(a(w)).getInserterMediaCategories(),[]),{canInsertImage:n,canInsertVideo:i,canInsertAudio:s}=(0,x6.useSelect)(a=>{let{canInsertBlockType:l}=a(w);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return(0,cu.useEffect)(()=>{(async()=>{let a=[];if(!r)return;let l=new Map(await Promise.all(r.map(async d=>{if(d.isExternalResource)return[d.name,!0];let f=[];try{f=await d.fetch({per_page:1})}catch{}return[d.name,!!f.length]}))),u={image:n,video:i,audio:s};r.forEach(d=>{u[d.mediaType]&&l.get(d.name)&&a.push(d)}),a.length&&o(a)})()},[n,i,s,r]),t}var Af=c(C(),1),CMe=10;function Sx({rootClientId:e,onInsert:t,category:o}){let[r,n,i]=(0,Pre.useDebouncedInput)(),{mediaList:s,isLoading:a}=Tre(o,{per_page:i?20:CMe,search:i}),l="block-editor-inserter__media-panel",u=o.labels.search_items||(0,Rre.__)("Search");return(0,Af.jsxs)("div",{className:l,children:[(0,Af.jsx)(oP.SearchControl,{className:`${l}-search`,onChange:n,value:r,label:u,placeholder:u}),a&&(0,Af.jsx)("div",{className:`${l}-spinner`,children:(0,Af.jsx)(oP.Spinner,{})}),!a&&!s?.length&&(0,Af.jsx)(Ua,{}),!a&&!!s?.length&&(0,Af.jsx)(Ere,{rootClientId:e,onClick:t,mediaList:s,category:o})]})}var Ire=c(G(),1);function EMe({fallback:e=null,children:t}){return(0,Ire.useSelect)(r=>{let{getSettings:n}=r(w);return!!n().mediaUpload},[])?t:e}var $a=EMe;var Ore=c(N(),1),TMe=()=>null,Lf=(0,Ore.withFilters)("editor.MediaUpload")(TMe);var $i=c(C(),1),BMe=["image","video","audio"];function RMe({rootClientId:e,selectedCategory:t,onSelectCategory:o,onInsert:r,children:n}){let i=Bre(e),s=(0,Lre.useViewportMatch)("medium","<"),a="block-editor-inserter__media-tabs",l=(0,rP.useCallback)(d=>{if(!d?.url)return;let f=window.__experimentalDataViewsMediaModal&&d.mime_type?d.mime_type.split("/")[0]:d.type,[m]=tP(d,f);r(m)},[r]),u=(0,rP.useMemo)(()=>i.map(d=>({...d,label:d.labels.name})),[i]);return u.length?(0,$i.jsxs)($i.Fragment,{children:[!s&&(0,$i.jsxs)("div",{className:`${a}-container`,children:[(0,$i.jsx)(eP,{categories:u,selectedCategory:t,onSelectCategory:o,children:n}),(0,$i.jsx)($a,{children:(0,$i.jsx)(Lf,{multiple:!1,onSelect:l,allowedTypes:BMe,render:({open:d})=>(0,$i.jsx)(Mre.Button,{__next40pxDefaultSize:!0,onClick:f=>{f.target.focus(),d()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,Are.__)("Open Media Library")})})})]}),s&&(0,$i.jsx)(YR,{categories:u,children:d=>(0,$i.jsx)(Sx,{onInsert:r,rootClientId:e,category:d})})]}):(0,$i.jsx)(Ua,{})}var w6=RMe;var _x=c(A(),1),Mf=c(F(),1);var iP=c(oe(),1),Vre=c(Cr(),1),Fre=c(G(),1);var Nre=c(N(),1),{Fill:Dre,Slot:PMe}=(0,Nre.createSlotFill)("__unstableInserterMenuExtension");Dre.Slot=PMe;var nP=Dre;var pi=c(C(),1),IMe=9,OMe=[];function AMe({filterValue:e,onSelect:t,onHover:o,onHoverPattern:r,rootClientId:n,clientId:i,isAppender:s,__experimentalInsertionIndex:a,maxBlockPatterns:l,maxBlockTypes:u,showBlockDirectory:d=!1,isDraggable:f=!0,shouldFocusBlock:m=!0,prioritizePatterns:h,selectBlockOnInsert:p,isQuick:g}){let b=(0,iP.useDebounce)(Vre.speak,500),{prioritizedBlocks:v}=(0,Fre.useSelect)(V=>({prioritizedBlocks:V(w).getBlockListSettings(n)?.prioritizedInserterBlocks||OMe}),[n]),[y,k]=If({onSelect:t,rootClientId:n,clientId:i,isAppender:s,insertionIndex:a,shouldFocusBlock:m,selectBlockOnInsert:p}),[S,_,x,E]=Ud(y,k,g),[T,,R]=Of(k,y,void 0,g),B=(0,_x.useMemo)(()=>{if(l===0)return[];let V=XS(T,e);return l!==void 0?V.slice(0,l):V},[e,T,l]),O=u;h&&B.length>2&&(O=0);let I=(0,_x.useMemo)(()=>{if(O===0)return[];let V=S.filter(W=>W.name!=="core/block"),D=Tl(V,"frecency","desc");!e&&v.length&&(D=LE(D,v));let z=IE(D,_,x,e);return O!==void 0?z.slice(0,O):z},[e,S,_,x,O,v]);(0,_x.useEffect)(()=>{if(!e)return;let V=I.length+B.length,D=(0,Mf.sprintf)((0,Mf._n)("%d result found.","%d results found.",V),V);b(D)},[e,b,I,B]);let P=(0,iP.useAsyncList)(I,{step:IMe}),M=I.length>0||B.length>0,L=!!I.length&&(0,pi.jsx)(Pf,{title:(0,pi.jsx)(ct,{children:(0,Mf.__)("Blocks")}),children:(0,pi.jsx)(hh,{items:P,onSelect:E,onHover:o,label:(0,Mf.__)("Blocks"),isDraggable:f})}),j=!!B.length&&(0,pi.jsx)(Pf,{title:(0,pi.jsx)(ct,{children:(0,Mf.__)("Block patterns")}),children:(0,pi.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,pi.jsx)(Gl,{blockPatterns:B,onClickPattern:R,onHover:r,isDraggable:f})})});return(0,pi.jsxs)(xy,{children:[!d&&!M&&(0,pi.jsx)(Ua,{}),h?j:L,!!I.length&&!!B.length&&(0,pi.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),h?L:j,d&&(0,pi.jsx)(nP.Slot,{fillProps:{onSelect:E,onHover:o,filterValue:e,hasItems:M,rootClientId:y},children:V=>V.length?V:M?null:(0,pi.jsx)(Ua,{})})]})}var sP=AMe;var lP=c(N(),1),zre=c(A(),1);var uu=c(C(),1),{Tabs:aP}=H(lP.privateApis);function LMe({defaultTabId:e,onClose:t,onSelect:o,selectedTab:r,tabs:n,closeButtonLabel:i},s){return(0,uu.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,uu.jsxs)(aP,{selectOnMove:!1,defaultTabId:e,onSelect:o,selectedTabId:r,children:[(0,uu.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,uu.jsx)(lP.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:gp,label:i,onClick:()=>t(),size:"compact"}),(0,uu.jsx)(aP.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:n.map(a=>(0,uu.jsx)(aP.Tab,{tabId:a.name,className:"block-editor-tabbed-sidebar__tab",children:a.title},a.name))})]}),n.map(a=>(0,uu.jsx)(aP.TabPanel,{tabId:a.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:a.panelRef,children:a.panel},a.name))]})})}var cP=(0,zre.forwardRef)(LMe);var uP=c(G(),1),Ny=c(A(),1);function xx(e=!0){let{setZoomLevel:t,resetZoomLevel:o}=H((0,uP.useDispatch)(w)),{isZoomedOut:r,isZoomOut:n}=(0,uP.useSelect)(a=>{let{isZoomOut:l}=H(a(w));return{isZoomedOut:l(),isZoomOut:l}},[]),i=(0,Ny.useRef)(!1),s=(0,Ny.useRef)(e);(0,Ny.useEffect)(()=>{r!==s.current&&(i.current=!1)},[r]),(0,Ny.useEffect)(()=>(s.current=e,e!==n()&&(i.current=!0,e?t("auto-scaled"):o()),()=>{i.current&&n()&&o()}),[e,n,o,t])}var St=c(C(),1),Hre=()=>{};function MMe({rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,onSelect:n,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:a="",shouldFocusBlock:l=!0,onPatternCategorySelection:u,onClose:d,__experimentalInitialTab:f,__experimentalInitialCategory:m},h){let{isZoomOutMode:p,hasSectionRootClientId:g}=(0,jre.useSelect)(Ae=>{let{isZoomOut:nt,getSectionRootClientId:ke}=H(Ae(w));return{isZoomOutMode:nt(),hasSectionRootClientId:!!ke()}},[]),[b,v,y]=(0,wx.useDebouncedInput)(a),[k,S]=(0,Et.useState)(null),[_,x]=(0,Et.useState)(m),[E,T]=(0,Et.useState)("all"),[R,B]=(0,Et.useState)(null),O=(0,wx.useViewportMatch)("large"),P=(0,wx.useViewportMatch)("medium","<")?d:Hre;function M(){return f||(p?"patterns":"blocks")}let[L,j]=(0,Et.useState)(M());xx(g&&(L==="patterns"||L==="media")&&O);let[D,z,W]=If({rootClientId:e,clientId:t,isAppender:o,insertionIndex:r,shouldFocusBlock:l}),K=(0,Et.useRef)(),ne=(0,Et.useCallback)((Ae,nt,ke,Lt)=>{z(Ae,nt,ke,Lt),n(Ae),P(),window.requestAnimationFrame(()=>{!l&&!K.current?.contains(h.current.ownerDocument.activeElement)&&K.current?.querySelector("button").focus()})},[z,P,n,h,l]),X=(0,Et.useCallback)((Ae,nt,...ke)=>{W(!1),z(Ae,{patternName:nt},...ke),n(),P()},[z,P,n,W]),ee=(0,Et.useCallback)(Ae=>{W(Ae),S(Ae)},[W,S]),Y=(0,Et.useCallback)((Ae,nt)=>{x(Ae),T(nt),u?.()},[x,u]),$=L==="patterns"&&!y&&!!_,Z=L==="media"&&!!R,[q,J]=(0,Et.useState)(!1),re=(0,Et.useRef)(null),ie=(0,Et.useRef)(null),ce=(0,Et.useRef)(null);(0,Et.useEffect)(()=>{let Ae=ke=>{J(ke.currentTarget.scrollTop>0)},nt=[re.current,ie.current,ce.current].filter(Boolean);return nt.forEach(ke=>ke.addEventListener("scroll",Ae)),()=>{nt.forEach(ke=>ke.removeEventListener("scroll",Ae))}},[]);let _e=(0,Et.useMemo)(()=>L==="media"?null:(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(dP.SearchControl,{className:U("block-editor-inserter__search",{"is-scrolled":q}),onChange:Ae=>{k&&S(null),v(Ae)},value:b,label:(0,Nf.__)("Search"),placeholder:(0,Nf.__)("Search")}),!!y&&(0,St.jsx)(sP,{filterValue:y,onSelect:n,onHover:ee,rootClientId:e,clientId:t,isAppender:o,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:L==="patterns"})]}),[L,k,S,v,b,y,n,ee,l,t,e,r,o,q]),ae=(0,Et.useMemo)(()=>(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,St.jsx)(Woe,{ref:K,rootClientId:D,onInsert:ne,onHover:ee,showMostUsedBlocks:s})}),i&&(0,St.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,St.jsx)(ct,{render:(0,St.jsx)("h2",{}),children:(0,Nf.__)("A tip for using the block editor")}),(0,St.jsx)(sJ,{})]})]}),[D,ne,ee,s,i]),we=(0,Et.useMemo)(()=>(0,St.jsx)(gre,{rootClientId:D,onInsert:X,onSelectCategory:Y,selectedCategory:_,children:$&&(0,St.jsx)(ZR,{rootClientId:D,onInsert:X,category:_,patternFilter:E,showTitlesAsTooltip:!0})}),[D,X,Y,E,_,$]),Te=(0,Et.useMemo)(()=>(0,St.jsx)(w6,{rootClientId:D,selectedCategory:R,onSelectCategory:B,onInsert:ne,children:Z&&(0,St.jsx)(Sx,{rootClientId:D,onInsert:ne,category:R})}),[D,ne,R,B,Z]),Fe=Ae=>{Ae!=="patterns"&&x(null),j(Ae)},Qe=(0,Et.useRef)();return(0,Et.useLayoutEffect)(()=>{Qe.current&&window.requestAnimationFrame(()=>{Qe.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()})},[]),(0,St.jsxs)("div",{className:U("block-editor-inserter__menu",{"show-panel":$||Z,"is-zoom-out":p}),ref:h,children:[(0,St.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,St.jsx)(cP,{ref:Qe,onSelect:Fe,onClose:d,selectedTab:L,closeButtonLabel:(0,Nf.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,Nf.__)("Blocks"),panelRef:re,panel:(0,St.jsxs)(St.Fragment,{children:[_e,L==="blocks"&&!y&&ae]})},{name:"patterns",title:(0,Nf.__)("Patterns"),panelRef:ie,panel:(0,St.jsxs)(St.Fragment,{children:[_e,L==="patterns"&&!y&&we]})},{name:"media",title:(0,Nf.__)("Media"),panelRef:ce,panel:(0,St.jsxs)(St.Fragment,{children:[_e,Te]})}]})}),i&&k&&(0,St.jsx)(dP.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,St.jsx)(Coe,{item:k})})]})}var C6=(0,Et.forwardRef)(MMe);function NMe(e,t){return(0,St.jsx)(C6,{...e,onPatternCategorySelection:Hre,ref:t})}var Ure=(0,Et.forwardRef)(NMe);var fP=c(A(),1),Cx=c(F(),1),mP=c(N(),1),Gre=c(G(),1);var vh=c(C(),1),DMe=6,VMe=6,FMe=2;function pP({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n,hasSearch:i=!0}){let[s,a]=(0,fP.useState)(""),[l,u]=If({onSelect:e,rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:n}),[d]=Ud(l,u,!0),{setInserterIsOpened:f,insertionIndex:m}=(0,Gre.useSelect)(g=>{let{getSettings:b,getBlockIndex:v,getBlockCount:y}=g(w),k=b(),S=v(o),_=y();return{setInserterIsOpened:k.__experimentalSetIsInserterOpened,insertionIndex:S===-1?_:S}},[o]),h=i&&d.length>DMe;(0,fP.useEffect)(()=>{f&&f(!1)},[f]);let p=()=>{f({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:m})};return(0,vh.jsxs)("div",{className:U("block-editor-inserter__quick-inserter",{"has-search":h,"has-expand":f}),children:[h&&(0,vh.jsx)(mP.SearchControl,{className:"block-editor-inserter__search",value:s,onChange:g=>{a(g)},label:(0,Cx.__)("Search"),placeholder:(0,Cx.__)("Search")}),(0,vh.jsx)("div",{className:"block-editor-inserter__quick-inserter-results",children:(0,vh.jsx)(sP,{filterValue:s,onSelect:e,rootClientId:t,clientId:o,isAppender:r,maxBlockPatterns:s?FMe:0,maxBlockTypes:VMe,isDraggable:!1,selectBlockOnInsert:n,isQuick:!0})}),f&&(0,vh.jsx)(mP.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__quick-inserter-expand",onClick:p,"aria-label":(0,Cx.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,Cx.__)("Browse all")})]})}var zMe=50;function Wre(e,t){if(!e||!e.attributes||!t?.__experimentalLabel)return null;let o=t.__experimentalLabel(e.attributes,{context:"appender"});return typeof o=="string"&&o.length<zMe&&o.length>0?o:null}var Ex=c(C(),1),jMe=({onToggle:e,disabled:t,isOpen:o,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s={}})=>{let{as:a=hP.Button,label:l,onClick:u,...d}=s,f=l;!f&&i?f=i:!f&&n?f=(0,du.sprintf)((0,du._x)("Add %s","directly add the only allowed block"),r.toLowerCase()):f||(f=(0,du._x)("Add block","Generic label for block inserter button"));function m(h){e&&e(h),u&&u(h)}return(0,Ex.jsx)(a,{__next40pxDefaultSize:s.as?void 0:!0,icon:ks,label:f,tooltipPosition:"bottom",onClick:m,className:"block-editor-inserter__toggle","aria-haspopup":n?!1:"true","aria-expanded":n?!1:o,isPressed:!n&&o,disabled:t,...d})},HMe=class extends Kre.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){let{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){let{disabled:o,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s,hasItems:a,renderToggle:l=jMe}=this.props;return l({onToggle:e,isOpen:t,disabled:o||!a,blockTitle:r,hasSingleBlockType:n,appenderLabel:i,toggleProps:s})}renderContent({onClose:e}){let{rootClientId:t,clientId:o,isAppender:r,showInserterHelpPanel:n,__experimentalIsQuick:i,onSelectOrClose:s,selectBlockOnInsert:a}=this.props;return i?(0,Ex.jsx)(pP,{onSelect:l=>{let u=Array.isArray(l)&&l?.length?l[0]:l;s&&typeof s=="function"&&s(u),e()},rootClientId:t,clientId:o,isAppender:r,selectBlockOnInsert:a}):(0,Ex.jsx)(Ure,{onSelect:()=>{e()},onClose:e,rootClientId:t,clientId:o,isAppender:r,showInserterHelpPanel:n})}render(){let{position:e,hasSingleBlockType:t,blockToInsert:o,insertOnlyAllowedBlock:r,__experimentalIsQuick:n,onSelectOrClose:i}=this.props;return t||o?this.renderToggle({onToggle:r}):(0,Ex.jsx)(hP.Dropdown,{className:"block-editor-inserter",contentClassName:U("block-editor-inserter__popover",{"is-quick":n}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,du.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}},Fs=(0,bP.compose)([(0,gP.withSelect)((e,{clientId:t,rootClientId:o,shouldDirectInsert:r=!0})=>{let{getBlockRootClientId:n,hasInserterItems:i,getAllowedBlocks:s,getDirectInsertBlock:a,getBlockListSettings:l}=e(w),{getBlockVariations:u,getBlockType:d}=e(yP.store);o=o||n(t)||void 0;let f=s(o),m=r&&a(o),{defaultBlock:h}=l(o)??{},p=f?.length===1&&u(f[0].name,"inserter")?.length===0,g=p?f[0]:null,b=m||null;!b&&p&&h?.name===g.name&&(b=h);let v=m?d(m.name):null,y=Wre(m,v);return{hasItems:i(o),hasSingleBlockType:p,blockTitle:g?g.title:"",allowedBlockType:g,blockToInsert:b,appenderLabel:y,rootClientId:o}}),(0,gP.withDispatch)((e,t,{select:o})=>({insertOnlyAllowedBlock(){let{rootClientId:r,clientId:n,isAppender:i,hasSingleBlockType:s,allowedBlockType:a,blockToInsert:l,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!s&&!l)return;let f=l?.name??a.name;function m(y){if(!y?.length)return{};let{getBlock:k,getPreviousBlockClientId:S}=o(w),_;if(n){let x=k(n),E=k(S(n));x?.name===E?.name&&(_=E?.attributes)}else if(r){let x=k(r)?.innerBlocks?.at(-1);x?.name===f&&(_=x.attributes)}return _?Object.fromEntries(y.filter(x=>x in _).map(x=>[x,_[x]])):{}}function h(){let{getBlockIndex:y,getBlockSelectionEnd:k,getBlockOrder:S,getBlockRootClientId:_}=o(w);if(n)return y(n);let x=k();return!i&&x&&_(x)===r?y(x)+1:S(r).length}let{insertBlock:p}=e(w),g=m(l?.attributesToCopy),b=(0,yP.createBlock)(f,{...l?.attributes||{},...g});p(b,h(),r,d),u&&u(b);let v=(0,du.sprintf)((0,du.__)("%s block added"),a.title);(0,$re.speak)(v)}})),(0,bP.ifCondition)(({hasItems:e,isAppender:t,rootClientId:o,clientId:r})=>e||!t&&!o&&!r)])(HMe);var Tx=c(C(),1),UMe="\uFEFF";function Dy({rootClientId:e}){let{showPrompt:t,isLocked:o,placeholder:r,isManualGrid:n}=(0,vP.useSelect)(u=>{let{getBlockCount:d,getSettings:f,getTemplateLock:m,getBlockAttributes:h}=u(w),p=!d(e),{bodyPlaceholder:g}=f();return{showPrompt:p,isLocked:!!m(e),placeholder:g,isManualGrid:h(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:i,startTyping:s}=(0,vP.useDispatch)(w);if(o||n)return null;let a=(0,Yre.decodeEntities)(r)||(0,E6.__)("Type / to choose a block"),l=()=>{i(void 0,e),s()};return(0,Tx.jsxs)("div",{"data-root-client-id":e||"",className:U("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,Tx.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,E6.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:u=>{(kP.ENTER===u.keyCode||kP.SPACE===u.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?a:UMe}),(0,Tx.jsx)(Fs,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}var qre=c(N(),1),T6=c(A(),1),Bx=c(F(),1);var Zre=c(Je(),1);var SP=c(C(),1);function Xre({rootClientId:e,className:t,onFocus:o,tabIndex:r,onSelect:n},i){return(0,SP.jsx)(Fs,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...s)=>{n&&typeof n=="function"&&n(...s)},renderToggle:({onToggle:s,disabled:a,isOpen:l,blockTitle:u,hasSingleBlockType:d,appenderLabel:f})=>{let m=!d,h;return f?h=f:d?h=(0,Bx.sprintf)((0,Bx._x)("Add %s","directly add the only allowed block"),u.toLowerCase()):h=(0,Bx._x)("Add block","Generic label for block inserter button"),(0,SP.jsx)(qre.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:o,tabIndex:r,className:U(t,"block-editor-button-block-appender"),onClick:s,"aria-haspopup":m?"true":void 0,"aria-expanded":m?l:void 0,disabled:a,label:h,showTooltip:!0,children:(0,SP.jsx)(We,{icon:ks})})},isAppender:!0})}var Qre=(0,T6.forwardRef)((e,t)=>((0,Zre.default)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),Xre(e,t))),Df=(0,T6.forwardRef)(Xre);var Vy=c(C(),1);function GMe({rootClientId:e}){return(0,B6.useSelect)(o=>o(w).canInsertBlockType((0,Jre.getDefaultBlockName)(),e))?(0,Vy.jsx)(Dy,{rootClientId:e}):(0,Vy.jsx)(Df,{rootClientId:e,className:"block-list-appender__toggle"})}function ene({rootClientId:e,CustomAppender:t,className:o,tagName:r="div"}){let n=(0,B6.useSelect)(i=>{let{getBlockInsertionPoint:s,isBlockInsertionPointVisible:a,getBlockCount:l}=i(w),u=s();return a()&&e===u?.rootClientId&&l(e)===0},[e]);return(0,Vy.jsx)(r,{tabIndex:-1,className:U("block-list-appender wp-block",o,{"is-drag-over":n}),contentEditable:!1,"data-block":!0,children:t?(0,Vy.jsx)(t,{}):(0,Vy.jsx)(GMe,{rootClientId:e})})}var hne=c(oe(),1),Px=c(G(),1),gne=c(A(),1),bne=c(F(),1);var Fy=c(G(),1),Ff=c(A(),1),wP=c(N(),1),mne=c(oe(),1);var rne=c(G(),1),Vf=c(A(),1),nne=c(N(),1),ine=c(F(),1);var one=c(oe(),1),R6=c(at(),1),tne=new WeakMap;function WMe(e){let t=(0,one.useRefEffect)(o=>{function r(i){let{deltaX:s,deltaY:a,target:l}=i,u=e.current,d=tne.get(u);d||(d=(0,R6.getScrollContainer)(u),tne.set(u,d));let f=(0,R6.getScrollContainer)(l);o.contains(f)||d.scrollBy(s,a)}let n={passive:!0};return o.addEventListener("wheel",r,n),()=>{o.removeEventListener("wheel",r,n)}},[e]);return e?t:null}var kh=WMe;var P6=c(C(),1),$Me=Number.MAX_SAFE_INTEGER;function KMe({previousClientId:e,nextClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,operation:i="insert",nearestSide:s="right",...a}){let[l,u]=(0,Vf.useReducer)(y=>(y+1)%$Me,0),{orientation:d,rootClientId:f,isVisible:m}=(0,rne.useSelect)(y=>{let{getBlockListSettings:k,getBlockRootClientId:S,isBlockVisible:_}=y(w),x=S(e??t);return{orientation:k(x)?.orientation||"vertical",rootClientId:x,isVisible:_(e)&&_(t)}},[e,t]),h=Rt(e),p=Rt(t),g=d==="vertical",b=(0,Vf.useMemo)(()=>l<0||!h&&!p||!m?void 0:{contextElement:i==="group"?p||h:h||p,getBoundingClientRect(){let k=h?h.getBoundingClientRect():null,S=p?p.getBoundingClientRect():null,_=0,x=0,E=0,T=0;if(i==="group"){let R=S||k;x=R.top,E=0,T=R.bottom-R.top,_=s==="left"?R.left-2:R.right-2}else g?(x=k?k.bottom:S.top,E=k?k.width:S.width,T=S&&k?S.top-k.bottom:0,_=k?k.left:S.left):(x=k?k.top:S.top,T=k?k.height:S.height,(0,ine.isRTL)()?(_=S?S.right:k.left,E=k&&S?k.left-S.right:0):(_=k?k.right:S.left,E=k&&S?S.left-k.right:0),E=Math.max(E,0));return new window.DOMRect(_,x,E,T)}},[h,p,l,g,m,i,s]),v=kh(n);return(0,Vf.useLayoutEffect)(()=>{if(!h)return;let y=new window.MutationObserver(u);return y.observe(h,{attributes:!0}),()=>{y.disconnect()}},[h]),(0,Vf.useLayoutEffect)(()=>{if(!p)return;let y=new window.MutationObserver(u);return y.observe(p,{attributes:!0}),()=>{y.disconnect()}},[p]),(0,Vf.useLayoutEffect)(()=>{if(h)return h.ownerDocument.defaultView.addEventListener("resize",u),()=>{h.ownerDocument.defaultView?.removeEventListener("resize",u)}},[h]),!h&&!p||!m?null:(0,P6.jsx)(nne.Popover,{ref:v,animate:!1,anchor:b,focusOnMount:!1,__unstableSlotName:r,inline:!r,...a,className:U("block-editor-block-popover","block-editor-block-popover__inbetween",a.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,P6.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:o})},t+"--"+f)}var _P=KMe;var cne=c(G(),1),une=c(oe(),1),dne=c(N(),1);var mu=c(A(),1);var sne=c(oe(),1),ane=c(N(),1),fu=c(A(),1);var I6=c(C(),1),YMe=Number.MAX_SAFE_INTEGER;function qMe({clientId:e,bottomClientId:t,children:o,__unstablePopoverSlot:r,__unstableContentRef:n,shift:i=!0,...s},a){let l=Rt(e),u=Rt(t??e),d=(0,sne.useMergeRefs)([a,kh(n)]),[f,m]=(0,fu.useReducer)(p=>(p+1)%YMe,0);(0,fu.useLayoutEffect)(()=>{if(!l)return;let p,g=new window.MutationObserver(()=>{p||(p=window.requestAnimationFrame(()=>{p=null,m()}))});return g.observe(l,{attributes:!0}),()=>{g.disconnect(),p&&window.cancelAnimationFrame(p)}},[l]);let h=(0,fu.useMemo)(()=>{if(!(f<0||!l||t&&!u))return{getBoundingClientRect(){return u?g4(Rb(l),Rb(u)):Rb(l)},contextElement:l}},[f,l,t,u]);return!l||t&&!u?null:(0,I6.jsx)(ane.Popover,{ref:d,animate:!1,focusOnMount:!1,anchor:h,__unstableSlotName:r,inline:!r,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:U("block-editor-block-popover",s.className),variant:"unstyled",children:o})}var Sh=(0,fu.forwardRef)(qMe),ZMe=({clientId:e,bottomClientId:t,children:o,...r},n)=>(0,I6.jsx)(Sh,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:n,children:o}),lne=(0,fu.forwardRef)(ZMe);var xP=c(C(),1);function XMe({clientId:e,bottomClientId:t,children:o,shift:r=!1,additionalStyles:n,...i},s){t??=e;let a=Rt(e);return(0,xP.jsx)(Sh,{ref:s,clientId:e,bottomClientId:t,shift:r,...i,children:a&&e===t?(0,xP.jsx)(QMe,{selectedElement:a,additionalStyles:n,children:o}):o})}function QMe({selectedElement:e,additionalStyles:t={},children:o}){let[r,n]=(0,mu.useState)(e.offsetWidth),[i,s]=(0,mu.useState)(e.offsetHeight);(0,mu.useEffect)(()=>{let l=new window.ResizeObserver(()=>{n(e.offsetWidth),s(e.offsetHeight)});return l.observe(e,{box:"border-box"}),()=>l.disconnect()},[e]);let a=(0,mu.useMemo)(()=>({position:"absolute",width:r,height:i,...t}),[r,i,t]);return(0,xP.jsx)("div",{style:a,children:o})}var zs=(0,mu.forwardRef)(XMe);var O6=c(C(),1),Rx={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function JMe({__unstablePopoverSlot:e,__unstableContentRef:t}){let{clientId:o}=(0,cne.useSelect)(n=>{let{getBlockOrder:i,getBlockInsertionPoint:s}=n(w),a=s(),l=i(a.rootClientId);return l.length?{clientId:l[a.index]}:{}},[]),r=(0,une.useReducedMotion)();return(0,O6.jsx)(zs,{clientId:o,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,O6.jsx)(dne.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?Rx.show:Rx.hide,animate:Rx.show,exit:r?Rx.show:Rx.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}var fne=JMe;var pu=c(C(),1),zy=(0,Ff.createContext)();zy.displayName="InsertionPointOpenRefContext";function eNe({__unstablePopoverSlot:e,__unstableContentRef:t,operation:o="insert",nearestSide:r="right"}){let{selectBlock:n,hideInsertionPoint:i}=(0,Fy.useDispatch)(w),s=(0,Ff.useContext)(zy),a=(0,Ff.useRef)(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:f,isInserterShown:m,isDistractionFree:h,isZoomOutMode:p}=(0,Fy.useSelect)(R=>{let{getBlockOrder:B,getBlockListSettings:O,getBlockInsertionPoint:I,isBlockBeingDragged:P,getPreviousBlockClientId:M,getNextBlockClientId:L,getSettings:j,isZoomOut:V}=H(R(w)),D=I(),z=B(D.rootClientId);if(!z.length)return{};let W=z[D.index-1],K=z[D.index];for(;P(W);)W=M(W);for(;P(K);)K=L(K);let ne=j();return{previousClientId:W,nextClientId:K,orientation:O(D.rootClientId)?.orientation||"vertical",rootClientId:D.rootClientId,isDistractionFree:ne.isDistractionFree,isInserterShown:D?.__unstableWithInserter,isZoomOutMode:V()}},[]),{getBlockEditingMode:g}=(0,Fy.useSelect)(w),b=(0,mne.useReducedMotion)();function v(R){R.target===a.current&&d&&g(d)!=="disabled"&&n(d,-1)}function y(R){R.target===a.current&&!s.current&&i()}function k(R){R.target!==a.current&&(s.current=!0)}let S=(0,Ff.useCallback)(R=>{!R&&s.current&&(s.current=!1)},[s]),_={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:m?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},x={start:{scale:b?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(h||p&&o!=="insert")return null;let T=U("block-editor-block-list__insertion-point",l==="horizontal"||o==="group"?"is-horizontal":"is-vertical");return(0,pu.jsx)(_P,{previousClientId:u,nextClientId:d,__unstablePopoverSlot:e,__unstableContentRef:t,operation:o,nearestSide:r,children:(0,pu.jsxs)(wP.__unstableMotion.div,{layout:!b,initial:b?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:a,tabIndex:-1,onClick:v,onFocus:k,className:U(T,{"is-with-inserter":m}),onHoverEnd:y,children:[(0,pu.jsx)(wP.__unstableMotion.div,{variants:_,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),m&&(0,pu.jsx)(wP.__unstableMotion.div,{variants:x,className:U("block-editor-block-list__insertion-point-inserter"),children:(0,pu.jsx)(Fs,{ref:S,position:"bottom center",clientId:d,rootClientId:f,__experimentalIsQuick:!0,onToggle:R=>{s.current=R},onSelectOrClose:()=>{s.current=!1}})})]})})}function pne(e){let{insertionPoint:t,isVisible:o,isBlockListEmpty:r}=(0,Fy.useSelect)(n=>{let{getBlockInsertionPoint:i,isBlockInsertionPointVisible:s,getBlockCount:a}=n(w),l=i();return{insertionPoint:l,isVisible:s(),isBlockListEmpty:a(l?.rootClientId)===0}},[]);return!o||r?null:t.operation==="replace"?(0,pu.jsx)(fne,{...e},`${t.rootClientId}-${t.index}`):(0,pu.jsx)(eNe,{operation:t.operation,nearestSide:t.nearestSide,...e})}function yne(){let e=(0,gne.useContext)(zy),t=(0,Px.useSelect)(g=>{let b=g(w).getSettings();return b.isDistractionFree||b.isPreviewMode||H(g(w)).isZoomOut()},[]),{getBlockListSettings:o,getBlockIndex:r,isMultiSelecting:n,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:a,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:u,getBlockName:d,getBlockAttributes:f,getParentSectionBlock:m}=H((0,Px.useSelect)(w)),{showInsertionPoint:h,hideInsertionPoint:p}=(0,Px.useDispatch)(w);return(0,hne.useRefEffect)(g=>{if(t)return;function b(v){if(e===void 0||e.current||v.target.nodeType===v.target.TEXT_NODE||n())return;if(!v.target.classList.contains("block-editor-block-list__layout")){p();return}let y;if(v.target.classList.contains("is-root-container")||(y=(v.target.getAttribute("data-block")?v.target:v.target.closest("[data-block]")).getAttribute("data-block")),a(y)||u(y)==="disabled"||d(y)==="core/block"||y&&f(y).layout?.isManualPlacement)return;let k=o(y),S=k?.orientation||"vertical",_=!!k?.__experimentalCaptureToolbars,x=v.clientY,E=v.clientX,R=Array.from(v.target.children).find(P=>{let M=P.getBoundingClientRect();return P.classList.contains("wp-block")&&S==="vertical"&&M.top>x||P.classList.contains("wp-block")&&S==="horizontal"&&((0,bne.isRTL)()?M.right<E:M.left>E)});if(!R){p();return}if(!R.id&&(R=R.firstElementChild,!R)){p();return}let B=R.id.slice(6);if(!B||l(B)||m(B)||i().includes(B)&&S==="vertical"&&!_&&!s().hasFixedToolbar)return;let O=R.getBoundingClientRect();if(S==="horizontal"&&(v.clientY>O.bottom||v.clientY<O.top)||S==="vertical"&&(v.clientX>O.right||v.clientX<O.left)){p();return}let I=r(B);if(I===0){p();return}h(y,I,{__unstableWithInserter:!0})}return g.addEventListener("mousemove",b),()=>{g.removeEventListener("mousemove",b)}},[e,o,r,n,h,p,i,t])}var CP=c(G(),1),vne=c(oe(),1);var kne=c(C(),1);function _h(){let{getSettings:e,hasSelectedBlock:t,hasMultiSelection:o}=(0,CP.useSelect)(w),{clearSelectedBlock:r}=(0,CP.useDispatch)(w),{clearBlockSelection:n}=e();return(0,vne.useRefEffect)(i=>{if(!n)return;function s(a){!t()&&!o()||a.target===i&&r()}return i.addEventListener("mousedown",s),()=>{i.removeEventListener("mousedown",s)}},[t,o,r,n])}function Sne(e){return(0,kne.jsx)("div",{ref:_h(),...e})}var Hne=c(oe(),1),Hy=c(A(),1),Une=c(G(),1),Eh=c(Q(),1);var _ne=c(C(),1);function xne({showSeparator:e,isFloating:t,onAddBlock:o,isToggle:r}){let{clientId:n}=Xe();return(0,_ne.jsx)(Df,{className:U({"block-list-appender__toggle":r}),rootClientId:n,showSeparator:e,isFloating:t,onAddBlock:o})}var wne=c(C(),1);function Cne(){let{clientId:e}=Xe();return(0,wne.jsx)(Dy,{rootClientId:e})}var TP=c(A(),1),Bne=c(G(),1),EP=c(Je(),1),Rne=c(Ix(),1);var Ox=new WeakMap;function tNe(){let e;return t=>((e===void 0||!(0,Rne.isShallowEqual)(e,t))&&(e=t),e)}function Tne(e){let[t]=(0,TP.useState)(tNe);return t(e)}function Pne(e,t,o,r,n,i,s,a,l,u,d,f){let m=(0,Bne.useRegistry)(),h=Tne(o),p=Tne(r),g=l===void 0||t==="contentOnly"?t:l;(0,TP.useLayoutEffect)(()=>{let b={allowedBlocks:h,prioritizedInserterBlocks:p,templateLock:g};if(u!==void 0&&(b.__experimentalCaptureToolbars=u),d!==void 0)b.orientation=d;else{let v=Cs(f?.type);b.orientation=v.getOrientation(f)}s!==void 0&&((0,EP.default)("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),b.defaultBlock=s),n!==void 0&&(b.defaultBlock=n),a!==void 0&&((0,EP.default)("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),b.directInsert=a),i!==void 0&&(b.directInsert=i),b.directInsert!==void 0&&typeof b.directInsert!="boolean"&&(0,EP.default)("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),Ox.get(m)||Ox.set(m,{}),Ox.get(m)[e]=b,window.queueMicrotask(()=>{let v=Ox.get(m);if(Object.keys(v).length){let{updateBlockListSettings:y}=m.dispatch(w);y(v),Ox.set(m,{})}})},[e,h,p,g,n,i,s,a,u,d,f,m])}var A6=c(fp(),1),BP=c(A(),1),Ine=c(G(),1),One=c(Q(),1);function Ane(e,t,o,r){let n=(0,Ine.useRegistry)(),i=(0,BP.useRef)(null);(0,BP.useLayoutEffect)(()=>{let s=!1,{getBlocks:a,getSelectedBlocksInitialCaretPosition:l,isBlockSelected:u}=n.select(w),{replaceInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=n.dispatch(w);return window.queueMicrotask(()=>{if(s)return;let m=a(e),h=m.length===0||o==="all"||o==="contentOnly",p=!(0,A6.default)(t,i.current);if(!h||!p)return;i.current=t;let g=(0,One.synchronizeBlocksWithTemplate)(m,t);(0,A6.default)(g,m)||(f(),d(e,g,m.length===0&&r&&g.length!==0&&u(e),l()))}),()=>{s=!0}},[t,o,e,n,r])}var Lne=c(Q(),1),Mne=c(G(),1);function Nne(e){return(0,Mne.useSelect)(t=>{let o=t(w).getBlock(e);if(!o)return;let r=t(Lne.store).getBlockType(o.name);if(r&&Object.keys(r.providesContext).length!==0)return Object.fromEntries(Object.entries(r.providesContext).map(([n,i])=>[n,o.attributes[i]]))},[e])}var Ch=c(G(),1),IP=c(A(),1),OP=c(oe(),1),zne=c(F(),1),jy=c(Q(),1);var L6=c(A(),1),Ki=c(Q(),1),xh=c(G(),1),Dne=c(at(),1);function M6(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch{return t}return t}function oNe(e,t,o,r,n,i,s,a,l){return u=>{let{srcRootClientId:d,srcClientIds:f,type:m,blocks:h}=M6(u);if(m==="inserter"){s();let p=h.map(g=>(0,Ki.cloneBlock)(g));i(p,!0,null)}if(m==="block"){let p=o(f[0]);if(d===e&&p===t||f.includes(e)||r(f).some(y=>y===e))return;if(a==="group"){let y=f.map(k=>l(k));i(y,!0,null,f);return}let g=d===e,b=f.length,v=g&&p<t?t-b:t;n(f,d,v)}}}function rNe(e,t,o,r,n){return i=>{if(!t().mediaUpload)return;let s=(0,Ki.findTransform)((0,Ki.getBlockTransforms)("from"),a=>a.type==="files"&&r(a.blockName,e)&&a.isMatch(i));if(s){let a=s.transform(i,o);n(a)}}}function nNe(e){return t=>{let o=(0,Ki.pasteHandler)({HTML:t,mode:"BLOCKS"});o.length&&e(o)}}function RP(e,t,o={}){let{operation:r="insert",nearestSide:n="right"}=o,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:a,getBlockOrder:l,getBlocksByClientId:u,getSettings:d,getBlock:f}=(0,xh.useSelect)(w),{getGroupingBlockName:m}=(0,xh.useSelect)(Ki.store),{insertBlocks:h,moveBlocksToPosition:p,updateBlockAttributes:g,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:y}=(0,xh.useDispatch)(w),k=(0,xh.useRegistry)(),S=(0,L6.useCallback)((R,B=!0,O=0,I=[])=>{Array.isArray(R)||(R=[R]);let M=l(e)[t];if(r==="replace")v(M,R,void 0,O);else if(r==="group"){let L=f(M);n==="left"?R.push(L):R.unshift(L);let j=R.map(W=>(0,Ki.createBlock)(W.name,W.attributes,W.innerBlocks)),V=R.every(W=>W.name==="core/image"),D=i("core/gallery",e),z=(0,Ki.createBlock)(V&&D?"core/gallery":m(),{layout:{type:"flex",flexWrap:V&&D?null:"nowrap"}},j);v([M,...I],z,void 0,O)}else h(R,t,e,B,O)},[l,e,t,r,v,f,n,i,m,h]),_=(0,L6.useCallback)((R,B,O)=>{if(r==="replace"){let I=u(R),M=l(e)[t];k.batch(()=>{y(R,!1),v(M,I,void 0,0)})}else p(R,B,e,O)},[r,l,u,p,k,y,v,t,e]),x=oNe(e,t,s,a,_,S,b,r,f),E=rNe(e,d,g,i,S),T=nNe(S);return R=>{let B=(0,Dne.getFilesFromDataTransfer)(R.dataTransfer),O=R.dataTransfer.getData("text/html");O?T(O):B.length?E(B):x(R)}}function iNe(e,t,o){let r=o==="top"||o==="bottom",{x:n,y:i}=e,s=r?n:i,a=r?i:n,l=r?t.left:t.top,u=r?t.right:t.bottom,d=t[o],f;return s>=l&&s<=u?f=s:s<u?f=l:f=u,Math.sqrt((s-f)**2+(a-d)**2)}function wh(e,t,o=["top","bottom","left","right"]){let r,n;return o.forEach(i=>{let s=iNe(e,t,i);(r===void 0||s<r)&&(r=s,n=i)}),[r,n]}function PP(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function Vne(e,t){return t.top<=e.y&&t.bottom>=e.y}var N6=30,sNe=120,aNe=120;function lNe(e,t,o="vertical",r={}){let n=o==="horizontal"?["left","right"]:["top","bottom"],i=0,s="before",a=1/0,l=null,u="right",{dropZoneElement:d,parentBlockOrientation:f,rootBlockIndex:m=0}=r;if(d&&f!=="horizontal"){let v=d.getBoundingClientRect(),[y,k]=wh(t,v,["top","bottom"]);if(v.height>sNe&&y<N6){if(k==="top")return[m,"before"];if(k==="bottom")return[m+1,"after"]}}let h=(0,zne.isRTL)();if(d&&f==="horizontal"){let v=d.getBoundingClientRect(),[y,k]=wh(t,v,["left","right"]);if(v.width>aNe&&y<N6){if(h&&k==="right"||!h&&k==="left")return[m,"before"];if(h&&k==="left"||!h&&k==="right")return[m+1,"after"]}}e.forEach(({isUnmodifiedDefaultBlock:v,getBoundingClientRect:y,blockIndex:k,blockOrientation:S})=>{let _=y();if(!_)return;let[x,E]=wh(t,_,n),[T,R]=wh(t,_,["left","right"]),B=PP(t,_);v&&B?x=0:o==="vertical"&&S!=="horizontal"&&(B&&T<N6||!B&&Vne(t,_))&&(l=k,u=R),x<a&&(s=E==="bottom"||!h&&E==="right"||h&&E==="left"?"after":"before",a=x,i=k)});let p=i+(s==="after"?1:-1),g=!!e[i]?.isUnmodifiedDefaultBlock,b=!!e[p]?.isUnmodifiedDefaultBlock;return l!==null?[l,"group",u]:!g&&!b?[s==="after"?i+1:i,"insert"]:[g?i:p,"replace"]}function AP(e,t,o,r){let n=!0;if(t){let a=t?.map(({name:l})=>l);n=o.every(l=>a?.includes(l))}let s=o.map(a=>e(a)).every(a=>{let[l]=a?.parent||[];return l?l===r:!0});return n&&s}function Fne(e,t){let{defaultView:o}=t;return!!(o&&e instanceof o.HTMLElement&&e.closest("[data-is-insertion-point]"))}function jne({dropZoneElement:e,rootClientId:t="",parentClientId:o="",isDisabled:r=!1}={}){let n=(0,Ch.useRegistry)(),[i,s]=(0,IP.useState)({index:null,operation:"insert"}),{getBlockType:a,getBlockVariations:l,getGroupingBlockName:u}=(0,Ch.useSelect)(jy.store),{canInsertBlockType:d,getBlockListSettings:f,getBlocks:m,getBlockIndex:h,getDraggedBlockClientIds:p,getBlockNamesByClientId:g,getAllowedBlocks:b,isDragging:v,isGroupable:y,isZoomOut:k,getSectionRootClientId:S,getBlockParents:_}=H((0,Ch.useSelect)(w)),{showInsertionPoint:x,hideInsertionPoint:E,startDragging:T,stopDragging:R}=H((0,Ch.useDispatch)(w)),B=RP(i.operation==="before"||i.operation==="after"?o:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),O=(0,OP.useThrottle)((0,IP.useCallback)((I,P)=>{v()||T();let M=p(),L=[t,..._(t,!0)];if(M.some(J=>L.includes(J)))return;let V=b(t),D=g([t])[0],z=g(M);if(!AP(a,V,z,D))return;let K=S();if(k()&&K!==t)return;let ne=m(t).filter(J=>!((0,jy.hasBlockSupport)(J.name,"visibility",!0)&&J.attributes?.metadata?.blockVisibility===!1));if(ne.length===0){n.batch(()=>{s({index:0,operation:"insert"}),x(t,0,{operation:"insert"})});return}let X=ne.map(J=>{let re=J.clientId;return{isUnmodifiedDefaultBlock:(0,jy.isUnmodifiedDefaultBlock)(J),getBoundingClientRect:()=>{let ie=P.getElementById(`block-${re}`);return ie?ie.getBoundingClientRect():null},blockIndex:h(re),blockOrientation:f(re)?.orientation}}),ee=lNe(X,{x:I.clientX,y:I.clientY},f(t)?.orientation,{dropZoneElement:e,parentBlockClientId:o,parentBlockOrientation:o?f(o)?.orientation:void 0,rootBlockIndex:h(t)}),[Y,$,Z]=ee,q=X[Y]?.isUnmodifiedDefaultBlock;if(!(k()&&!q&&$!=="insert")){if($==="group"){let J=ne[Y],re=[J.name,...z].every(we=>we==="core/image"),ie=d("core/gallery",t),ce=y([J.clientId,p()]),_e=l(u(),"block"),ae=_e&&_e.find(({name:we})=>we==="group-row");if(re&&!ie&&(!ce||!ae)||!re&&(!ce||!ae))return}n.batch(()=>{s({index:Y,operation:$,nearestSide:Z});let J=["before","after"].includes($)?o:t;x(J,Y,{operation:$,nearestSide:Z})})}},[v,b,t,g,p,a,S,k,m,f,e,o,h,n,T,x,d,y,l,u]),200);return(0,OP.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:r,onDrop:B,onDragOver(I){O(I,I.currentTarget.ownerDocument)},onDragLeave(I){let{ownerDocument:P}=I.currentTarget;Fne(I.relatedTarget,P)||Fne(I.target,P)||(O.cancel(),E())},onDragEnd(){O.cancel(),R(),E()}})}var hu=c(C(),1),cNe={};function uNe({children:e,clientId:t}){let o=Nne(t);return(0,hu.jsx)(Xw,{value:o,children:e})}var dNe=(0,Hy.memo)(gx);function Gne(e){let{clientId:t,allowedBlocks:o,prioritizedInserterBlocks:r,defaultBlock:n,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:a,template:l,templateLock:u,wrapperRef:d,templateInsertUpdatesSelection:f,__experimentalCaptureToolbars:m,__experimentalAppenderTagName:h,renderAppender:p,orientation:g,placeholder:b,layout:v,name:y,blockType:k,parentLock:S,defaultLayout:_}=e;Pne(t,S,o,r,n,i,s,a,u,m,g,v),Ane(t,l,u,f);let x=(0,Eh.getBlockSupport)(y,"layout")||(0,Eh.getBlockSupport)(y,"__experimentalLayout")||cNe,{allowSizingOnChildren:E=!1}=x,T=v||x,R=(0,Hy.useMemo)(()=>({..._,...T,...E&&{allowSizingOnChildren:!0}}),[_,T,E]),B=(0,hu.jsx)(dNe,{rootClientId:t,renderAppender:p,__experimentalAppenderTagName:h,layout:R,wrapperRef:d,placeholder:b});return!k?.providesContext||Object.keys(k.providesContext).length===0?B:(0,hu.jsx)(uNe,{clientId:t,children:B})}function fNe(e){return XB(e),(0,hu.jsx)(Gne,{...e})}var LP=(0,Hy.forwardRef)((e,t)=>{let o=Th({ref:t},e);return(0,hu.jsx)("div",{className:"block-editor-inner-blocks",children:(0,hu.jsx)("div",{...o})})});function Th(e={},t={}){let{__unstableDisableLayoutClassNames:o,__unstableDisableDropZone:r,dropZoneElement:n}=t,{clientId:i,layout:s=null,__unstableLayoutClassNames:a=""}=Xe(),l=(0,Une.useSelect)(S=>{let{getBlockName:_,isZoomOut:x,getTemplateLock:E,getBlockRootClientId:T,getBlockEditingMode:R,getBlockSettings:B,getSectionRootClientId:O}=H(S(w));if(!i){let z=O();return{isDropZoneDisabled:x()&&z!==""}}let{hasBlockSupport:I,getBlockType:P}=S(Eh.store),M=_(i),L=R(i),j=T(i),[V]=B(i,"layout"),D=L==="disabled";if(x()){let z=O();D=i!==z}return{__experimentalCaptureToolbars:I(M,"__experimentalExposeControlsToChildren",!1),name:M,blockType:P(M),parentLock:E(j),parentClientId:j,isDropZoneDisabled:D,defaultLayout:V}},[i]),{__experimentalCaptureToolbars:u,name:d,blockType:f,parentLock:m,parentClientId:h,isDropZoneDisabled:p,defaultLayout:g}=l,b=jne({dropZoneElement:n,rootClientId:i,parentClientId:h}),v=(0,Hne.useMergeRefs)([e.ref,r||p||s?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:b]),y={__experimentalCaptureToolbars:u,layout:s,name:d,blockType:f,parentLock:m,defaultLayout:g,...t},k=y.value&&y.onChange?fNe:Gne;return{...e,ref:v,className:U(e.className,"block-editor-block-list__layout",o?"":a),children:i?(0,hu.jsx)(k,{...y,clientId:i}):(0,hu.jsx)(gx,{...t})}}Th.save=Eh.__unstableGetInnerBlocksProps;LP.DefaultBlockAppender=Cne;LP.ButtonBlockAppender=xne;LP.Content=()=>Th.save().children;var Ax=LP;var Lx=c(oe(),1),Uy=c(G(),1),D6=c(at(),1),mn=c(Bt(),1);var Wne=c(C(),1),mNe=new Set([mn.UP,mn.RIGHT,mn.DOWN,mn.LEFT,mn.ENTER,mn.BACKSPACE]);function pNe(e){let{keyCode:t,shiftKey:o}=e;return!o&&mNe.has(t)}function Mx(){let e=(0,Uy.useSelect)(o=>o(w).isTyping(),[]),{stopTyping:t}=(0,Uy.useDispatch)(w);return(0,Lx.useRefEffect)(o=>{if(!e)return;let{ownerDocument:r}=o,n,i;function s(a){let{clientX:l,clientY:u}=a;n&&i&&(n!==l||i!==u)&&t(),n=l,i=u}return r.addEventListener("mousemove",s),()=>{r.removeEventListener("mousemove",s)}},[e,t])}function Nx(){let e=(0,Uy.useSelect)(i=>i(w).isTyping(),[]),{startTyping:t,stopTyping:o}=(0,Uy.useDispatch)(w),r=Mx(),n=(0,Lx.useRefEffect)(i=>{if(e){let d=function(p){let{target:g}=p;h=i.ownerDocument.defaultView.setTimeout(()=>{(0,D6.isTextField)(g)||o()})},f=function(p){let{keyCode:g}=p;(g===mn.ESCAPE||g===mn.TAB)&&o()},m=function(){i.ownerDocument.defaultView.getSelection().isCollapsed||o()};var s=d,a=f,l=m;let h;return i.addEventListener("focus",d),i.addEventListener("keydown",f),i.ownerDocument.addEventListener("selectionchange",m),()=>{i.ownerDocument.defaultView.clearTimeout(h),i.removeEventListener("focus",d),i.removeEventListener("keydown",f),i.ownerDocument.removeEventListener("selectionchange",m)}}function u(d){let{type:f,target:m}=d;!(0,D6.isTextField)(m)||!i.contains(m)||f==="keydown"&&!pNe(d)||t()}return i.addEventListener("keypress",u),i.addEventListener("keydown",u),()=>{i.removeEventListener("keypress",u),i.removeEventListener("keydown",u)}},[e,t,o]);return(0,Lx.useMergeRefs)([r,n])}function hNe({children:e}){return(0,Wne.jsx)("div",{ref:Nx(),children:e})}var $ne=hNe;var Dx=c(N(),1),Kne=c(oe(),1),Yne=c(G(),1),qne=c(A(),1),Zne=c(F(),1);var MP=c(C(),1);function V6({clientId:e,rootClientId:t="",position:o="top"}){let[r,n]=(0,qne.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:a,blockInsertionPointVisible:l,blockInsertionPoint:u,blocksBeingDragged:d}=(0,Yne.useSelect)(_=>{let{getInsertionPoint:x,getBlockOrder:E,getSectionRootClientId:T,isBlockInsertionPointVisible:R,getBlockInsertionPoint:B,getDraggedBlockClientIds:O}=H(_(w)),I=T(),P=E(I);return{sectionRootClientId:I,sectionClientIds:P,insertionPoint:x(),blockInsertionPoint:B(),blockInsertionPointVisible:R(),blocksBeingDragged:O()}},[]),f=(0,Kne.useReducedMotion)();if(!e)return;let m=!1;if(!(t===i&&s&&s.includes(e)))return null;let p=a?.index===0&&e===s[a.index],g=a&&a.hasOwnProperty("index")&&e===s[a.index-1];o==="top"&&(m=p||l&&u.index===0&&e===s[u.index]),o==="bottom"&&(m=g||l&&e===s[u.index-1]);let b=d[0],v=d.includes(e),y=s.indexOf(b),S=(y>0?s[y-1]:null)===e;return(v||S)&&(m=!1),(0,MP.jsx)(Dx.__unstableAnimatePresence,{children:m&&(0,MP.jsx)(Dx.__unstableMotion.div,{initial:{height:0},animate:{height:"calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"},exit:{height:0},transition:{type:"tween",duration:f?0:.2,ease:[.6,0,.4,1]},className:U("block-editor-block-list__zoom-out-separator",{"is-dragged-over":r}),"data-is-insertion-point":"true",onDragOver:()=>n(!0),onDragLeave:()=>n(!1),children:(0,MP.jsx)(Dx.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,Zne.__)("Drop pattern.")})})})}var Dn=c(C(),1),DT=(0,zf.createContext)();DT.displayName="IntersectionObserverContext";var NP=new WeakMap,gNe={trailing:!0};function bNe({className:e,...t}){let{isOutlineMode:o,isFocusMode:r,isPreviewMode:n,editedContentOnlySection:i}=(0,js.useSelect)(f=>{let{getSettings:m,isTyping:h,hasBlockSpotlight:p,getEditedContentOnlySection:g}=H(f(w)),{outlineMode:b,focusMode:v,isPreviewMode:y}=m();return{isOutlineMode:b&&!h(),isFocusMode:v||p(),isPreviewMode:y,editedContentOnlySection:g()}},[]),s=(0,js.useRegistry)(),{setBlockVisibility:a}=(0,js.useDispatch)(w),l=(0,DP.useDebounce)((0,zf.useCallback)(()=>{let f={};NP.get(s).forEach(([m,h])=>{f[m]=h}),a(f)},[s]),300,gNe),u=(0,zf.useMemo)(()=>{let{IntersectionObserver:f}=window;if(f)return new f(m=>{NP.get(s)||NP.set(s,[]);for(let h of m){let p=h.target.getAttribute("data-block");NP.get(s).push([p,h.isIntersecting])}l()})},[]),d=Th({ref:(0,DP.useMergeRefs)([_h(),yne(),Nx()]),className:U("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r,"is-preview-mode":n})},t);return(0,Dn.jsxs)(DT.Provider,{value:u,children:[(0,Dn.jsx)("div",{...d}),!!i&&(0,Dn.jsx)(yNe,{clientId:i})]})}function yNe({clientId:e}){let{stopEditingContentOnlySection:t}=H((0,js.useDispatch)(w)),o=(0,js.useSelect)(r=>{let{isBlockSelected:n,hasSelectedInnerBlock:i,getBlockSelectionStart:s}=r(w);return!s()||n(e)||i(e,!0)},[e]);return(0,zf.useEffect)(()=>{o||t()},[o,t]),null}function vy(e){return(0,Dn.jsx)($w,{value:mN,children:(0,Dn.jsx)(bNe,{...e})})}var vNe=[],kNe=new Set;function SNe({placeholder:e,rootClientId:t,renderAppender:o,__experimentalAppenderTagName:r,layout:n=bF}){let i=o!==!1,s=!!o,{order:a,isZoomOut:l,selectedBlocks:u,visibleBlocks:d,shouldRenderAppender:f}=(0,js.useSelect)(m=>{let{getSettings:h,getBlockOrder:p,getSelectedBlockClientIds:g,__unstableGetVisibleBlocks:b,getTemplateLock:v,getBlockEditingMode:y,isSectionBlock:k,isContainerInsertableToInContentOnlyMode:S,getBlockName:_,isZoomOut:x,canInsertBlockType:E}=H(m(w)),T=p(t);if(h().isPreviewMode)return{order:T,selectedBlocks:vNe,visibleBlocks:kNe};let R=g(),B=R[0],O=!t&&!B&&(!T.length||!E((0,Xne.getDefaultBlockName)(),t)),I=!!(t&&B&&t===B),P=v(t);return{order:T,selectedBlocks:R,visibleBlocks:b(),isZoomOut:x(),shouldRenderAppender:(!k(t)||S(_(B),t))&&y(t)!=="disabled"&&(!P||P==="contentOnly")&&i&&!x()&&(s||I||O)}},[t,i,s]);return(0,Dn.jsxs)(DW,{value:n,children:[a.map(m=>(0,Dn.jsxs)(js.AsyncModeProvider,{value:!d.has(m)&&!u.includes(m),children:[l&&(0,Dn.jsx)(V6,{clientId:m,rootClientId:t,position:"top"}),(0,Dn.jsx)(VY,{rootClientId:t,clientId:m}),l&&(0,Dn.jsx)(V6,{clientId:m,rootClientId:t,position:"bottom"})]},m)),a.length<1&&e,f&&(0,Dn.jsx)(ene,{tagName:r,rootClientId:t,CustomAppender:o})]})}function gx(e){return(0,Dn.jsx)(js.AsyncModeProvider,{value:!1,children:(0,Dn.jsx)(SNe,{...e})})}var hv=c(G(),1),Oj=c(at(),1),Aj=c(N(),1),Wle=c(Ba(),1),dO=c(A(),1),gv=c(Q(),1),Lj=c(Cr(),1),bv=c(F(),1);var Rie=c(oe(),1),Pie=c(G(),1),Iie=c(at(),1),Kl=c(A(),1);var Yi=c(F(),1),Rh=c(Q(),1),$P=c(N(),1),xie=c(oe(),1),wie=c(G(),1),KP=c(A(),1);var zx=c(N(),1),sie=c(c_(),1),aie=c(Je(),1),Wy=c(A(),1);var Qr=c(N(),1),Qne=(0,Qr.createSlotFill)("InspectorControls"),_Ne=(0,Qr.createSlotFill)("InspectorAdvancedControls"),xNe=(0,Qr.createSlotFill)("InspectorControlsBindings"),wNe=(0,Qr.createSlotFill)("InspectorControlsBackground"),CNe=(0,Qr.createSlotFill)("InspectorControlsBorder"),ENe=(0,Qr.createSlotFill)("InspectorControlsColor"),TNe=(0,Qr.createSlotFill)("InspectorControlsFilter"),BNe=(0,Qr.createSlotFill)("InspectorControlsDimensions"),RNe=(0,Qr.createSlotFill)("InspectorControlsLayout"),PNe=(0,Qr.createSlotFill)("InspectorControlsPosition"),INe=(0,Qr.createSlotFill)("InspectorControlsTypography"),ONe=(0,Qr.createSlotFill)("InspectorControlsListView"),ANe=(0,Qr.createSlotFill)("InspectorControlsStyles"),LNe=(0,Qr.createSlotFill)("InspectorControlsEffects"),MNe=(0,Qr.createSlotFill)("InspectorControlsContent"),NNe={default:Qne,advanced:_Ne,background:wNe,bindings:xNe,border:CNe,color:ENe,content:MNe,dimensions:BNe,effects:LNe,filter:TNe,layout:RNe,list:ONe,position:PNe,settings:Qne,styles:ANe,typography:INe},Ka=NNe,Vx=(0,Qr.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));var VP=c(A(),1);var Fx="default",$l={viewport:Fx,pseudo:Fx},Jne=(0,VP.createContext)($l),eie=Jne.Provider;function Hs(){return(0,VP.useContext)(Jne)}function gu(e){return!!e?.viewport&&e.viewport!==Fx}function bu(e){return!!e?.pseudo&&e.pseudo!==Fx}function Ir(e){return!gu(e)&&!bu(e)}function tie(e){return Ir(e)?[]:[e.viewport,e.pseudo].filter(t=>t&&t!==Fx)}function Jr(e,t){let o=tie(t);return o.length?ya(e,o):e}function hi(e,t,o){let r=tie(t);return r.length?ye(ge(e,r,o)):ye(o)}function oie(e,t){return!t||Ir(e)?t:o=>{let r=Jr(o?.style,e)||{},n=t({style:r}),i=n&&typeof n=="object"&&!Array.isArray(n)&&Object.prototype.hasOwnProperty.call(n,"style")?n.style:n;return{style:hi(o?.style,e,i)}}}var Gy=c(N(),1),zP=c(A(),1),rie=c(oe(),1),jP=c(G(),1);var FP=c(C(),1),nie=Symbol("ListViewContentPopover"),{Fill:iie,Slot:DNe}=(0,Gy.createSlotFill)(nie);function VNe(){return(0,rie.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:35,resize:!1}}}function HP({listViewRef:e}){let{popoverProps:t}=VNe(),o=(0,Gy.__experimentalUseSlotFills)(nie),r=!!(o&&o.length),{selectedClientId:n,isOpen:i}=(0,jP.useSelect)(u=>{let{getSelectedBlockClientId:d}=u(w),f=H(u(w));return{selectedClientId:d(),isOpen:f.isListViewContentPanelOpen()}},[]),[s,a]=(0,zP.useState)(null);(0,zP.useLayoutEffect)(()=>{if(!n||!e?.current){a(null);return}let u=e.current.querySelector(`[data-block="${n}"]`);a(u)},[n,e]);let{closeListViewContentPanel:l}=H((0,jP.useDispatch)(w));return!i||!r||!s?null:(0,FP.jsx)(Gy.Popover,{...t??{},className:"block-editor-inspector-list-view-content-popover",anchor:s,onClose:l,children:(0,FP.jsx)("div",{style:{width:"280px"},children:(0,FP.jsx)(DNe,{})})})}var jf=c(C(),1),FNe=["content","list"],zNe=["default","settings","advanced"];function Bh({children:e,group:t="default",__experimentalGroup:o,resetAllFilter:r}){o&&((0,aie.default)("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=o);let n=Xe(),i=Ka[t]?.Fill;if(!i)return(0,sie.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(n[bd]){let s=n.name==="core/template-part",a=zNe.includes(t),l=FNe.includes(t);if(!(s&&a||l))return null}return!n[bd]&&!n[ga]?null:t==="content"&&n[Jk]&&n[bd]?n[ga]?(0,jf.jsx)(zx.__experimentalStyleProvider,{document,children:(0,jf.jsx)(iie,{children:e})}):null:(0,jf.jsx)(zx.__experimentalStyleProvider,{document,children:(0,jf.jsx)(i,{children:s=>(0,jf.jsx)(HNe,{fillProps:s,children:e,resetAllFilter:r})})})}function jNe({resetAllFilter:e,children:t}){let{registerResetAllFilter:o,deregisterResetAllFilter:r}=(0,Wy.useContext)(zx.__experimentalToolsPanelContext),n=Hs(),i=(0,Wy.useMemo)(()=>oie(n,e),[e,n]);return(0,Wy.useEffect)(()=>{if(i&&o&&r)return o(i),()=>{r(i)}},[i,o,r]),t}function HNe({children:e,resetAllFilter:t,fillProps:o}){let{forwardedContext:r=[]}=o,n=(0,jf.jsx)(jNe,{resetAllFilter:t,children:e});return r.reduce((i,[s,a])=>(0,jf.jsx)(s,{...a,children:i}),n)}var hie=c(N(),1),gie=c(A(),1),bie=c(c_(),1),yie=c(Je(),1);var cie=c(N(),1),UP=c(G(),1),uie=c(A(),1);var lie=c(oe(),1);function Ao(){return(0,lie.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function $y(e,t){if(!e||!t)return t;let o=e.split(","),r=t.split(","),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`${i.trim()} ${s.trim()}`)})}),n.join(", ")}var die=c(C(),1);function fie({children:e,group:t,label:o}){let{updateBlockAttributes:r}=(0,UP.useDispatch)(w),{getBlockAttributes:n,getBlockName:i,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,UP.useSelect)(w),u=Ao(),d=a(),f=(0,uie.useCallback)((m=[])=>{let h={},p=l()?s():[d];p.forEach(g=>{let b=n(g)||{},{style:v}=b,y={style:v},k={attributes:b,clientId:g,name:i(g)};m.forEach(S=>{y={...y,...S(y,k)}}),y={...y,style:ye(y.style)},h[g]=y}),r(p,h,!0)},[n,i,s,l,d,r]);return(0,die.jsx)(cie.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:o,resetAll:f,panelId:d,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:u,children:e},d)}var F6=c(N(),1),GP=c(A(),1),mie=c(C(),1);function pie({Slot:e,fillProps:t,...o}){let r=(0,GP.useContext)(F6.__experimentalToolsPanelContext),n=(0,GP.useMemo)(()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[F6.__experimentalToolsPanelContext.Provider,{value:r}]]}),[r,t]);return(0,mie.jsx)(e,{...o,fillProps:n,bubblesVirtually:!0})}var WP=c(C(),1);function UNe({__experimentalGroup:e,group:t="default",label:o,fillProps:r,...n},i){e&&((0,yie.default)("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);let s=Ka[t],a=(0,hie.__experimentalUseSlotFills)(s?.name);if(!s)return(0,bie.default)(`Unknown InspectorControls group "${t}" provided.`),null;if(!a?.length)return null;let{Slot:l}=s;return o?(0,WP.jsx)(fie,{group:t,label:o,children:(0,WP.jsx)(pie,{...n,fillProps:r,Slot:l})}):(0,WP.jsx)(l,{...n,ref:i,fillProps:r,bubblesVirtually:!0})}var z6=(0,gie.forwardRef)(UNe);var j6=c(C(),1),vie=Bh;vie.Slot=z6;var Hf=e=>(0,j6.jsx)(Bh,{...e,group:"advanced"});Hf.Slot=function(t){return(0,j6.jsx)(z6,{...t,group:"advanced"})};Hf.slotName="InspectorAdvancedControls";var he=vie;var Sie=c(G(),1),Uf=c(Q(),1),jx=c(F(),1);function kie(e){let t=e?.style?.position?.type;return t==="sticky"?(0,jx.__)("Sticky"):t==="fixed"?(0,jx.__)("Fixed"):null}function ro(e){return(0,Sie.useSelect)(t=>{if(!e)return null;let{getBlockName:o,getBlockAttributes:r,__experimentalGetParsedPattern:n}=t(w),{getBlockType:i,getActiveBlockVariation:s}=t(Uf.store),a=o(e),l=i(a);if(!l)return null;let u=r(e),d=u?.metadata?.patternName;if(d){let v=n(d),y=kie(u);return{isSynced:!1,title:(0,jx.__)("Pattern"),icon:Ss,description:v?.description||(0,jx.__)("A block pattern."),anchor:u?.anchor,positionLabel:y,positionType:u?.style?.position?.type,name:v?.title||u?.metadata?.name}}let f=s(a,u),m=(0,Uf.isReusableBlock)(l)||(0,Uf.isTemplatePart)(l),p=(m?(0,Uf.__experimentalGetBlockLabel)(l,u):void 0)||l.title,g=kie(u),b={isSynced:m,title:p,icon:l.icon,description:l.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type,name:u?.metadata?.name};return f?{isSynced:m,title:f.title||l.title,icon:f.icon||l.icon,description:f.description||l.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type,name:u?.metadata?.name}:b},[e])}var Hx=c(C(),1),Ux="position",H6={key:"default",value:"",name:(0,Yi.__)("Default")},U6={key:"sticky",value:"sticky",name:(0,Yi._x)("Sticky","Name for the value of the CSS position property"),hint:(0,Yi.__)("The block will stick to the top of the window instead of scrolling.")},_ie={key:"fixed",value:"fixed",name:(0,Yi._x)("Fixed","Name for the value of the CSS position property"),hint:(0,Yi.__)("The block will not move when the page is scrolled.")},GNe=["top","right","bottom","left"],WNe=["sticky","fixed"];function $Ne({selector:e,style:t}){let o="",{type:r}=t?.position||{};return WNe.includes(r)&&(o+=`${e} {`,o+=`position: ${r};`,GNe.forEach(n=>{t?.position?.[n]!==void 0&&(o+=`${n}: ${t.position[n]};`)}),(r==="sticky"||r==="fixed")&&(o+="z-index: 10"),o+="}"),o}function KNe(e){let t=(0,Rh.getBlockSupport)(e,Ux);return!!(t===!0||t?.sticky)}function YNe(e){let t=(0,Rh.getBlockSupport)(e,Ux);return!!(t===!0||t?.fixed)}function qNe(e){return!!(0,Rh.getBlockSupport)(e,Ux)}function Cie(e){let t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function Eie({name:e}={}){let[t,o]=xe("position.fixed","position.sticky"),r=!t&&!o;return!qNe(e)||r}function ZNe({style:e={},clientId:t,name:o,setAttributes:r}){let n=YNe(o),i=KNe(o),s=e?.position?.type,{firstParentClientId:a}=(0,wie.useSelect)(h=>{let{getBlockParents:p}=h(w),g=p(t);return{firstParentClientId:g[g.length-1]}},[t]),l=ro(a),u=i&&s===U6.value&&l?(0,Yi.sprintf)((0,Yi.__)("The block will stick to the scrollable area of the parent %s block."),l.title):null,d=(0,KP.useMemo)(()=>{let h=[H6];return(i||s===U6.value)&&h.push(U6),(n||s===_ie.value)&&h.push(_ie),h},[n,i,s]),f=h=>{let g={...e,position:{...e?.position,type:h,top:h==="sticky"||h==="fixed"?"0px":void 0}};r({style:ye(g)})},m=s&&d.find(h=>h.value===s)||H6;return KP.Platform.select({web:d.length>1?(0,Hx.jsx)(he,{group:"position",children:(0,Hx.jsx)($P.BaseControl,{help:u,children:(0,Hx.jsx)($P.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,Yi.__)("Position"),hideLabelFromVision:!0,describedBy:(0,Yi.sprintf)((0,Yi.__)("Currently selected position: %s"),m.name),options:d,value:m,onChange:({selectedItem:h})=>{f(h.value)},size:"__unstable-large"})})}):null,native:null})}var G6={edit:function(t){return Eie(t)?null:(0,Hx.jsx)(ZNe,{...t})},useBlockProps:QNe,attributeKeys:["style"],hasSupport(e){return(0,Rh.hasBlockSupport)(e,Ux)}},XNe={};function QNe({name:e,style:t}){let o=(0,Rh.hasBlockSupport)(e,Ux),r=Eie({name:e}),n=o&&!r,i=(0,xie.useInstanceId)(XNe),s=`.wp-container-${i}.wp-container-${i}`,a;n&&(a=$Ne({selector:s,style:t})||"");let l=U({[`wp-container-${i}`]:n&&!!a,[`is-position-${t?.position?.type}`]:n&&!!a&&!!t?.position?.type});return gi({css:a}),{className:l}}var Oie={placement:"top-start"},Tie={...Oie,flip:!1,shift:!0},JNe={...Oie,flip:!0,shift:!1};function Bie(e,t,o,r,n){if(!e||!t)return Tie;let i=o?.scrollTop||0,s=Rb(t),a=e.getBoundingClientRect(),l=i+a.top,u=e.ownerDocument.documentElement.clientHeight,d=l+r,f=s.top>d,m=s.height>u-r;return!n&&(f||m)?Tie:JNe}function YP({contentElement:e,clientId:t}){let o=Rt(t),[r,n]=(0,Kl.useState)(0),{blockIndex:i,isSticky:s}=(0,Pie.useSelect)(m=>{let{getBlockIndex:h,getBlockAttributes:p}=m(w);return{blockIndex:h(t),isSticky:Cie(p(t))}},[t]),a=(0,Kl.useMemo)(()=>{if(e)return(0,Iie.getScrollContainer)(e)},[e]),[l,u]=(0,Kl.useState)(()=>Bie(e,o,a,r,s)),d=(0,Rie.useRefEffect)(m=>{n(m.offsetHeight)},[]),f=(0,Kl.useCallback)(()=>u(Bie(e,o,a,r,s)),[e,o,a,r]);return(0,Kl.useLayoutEffect)(f,[i,f]),(0,Kl.useLayoutEffect)(()=>{if(!e||!o)return;let m=e?.ownerDocument?.defaultView;m?.addEventHandler?.("resize",f);let h,p=o?.ownerDocument?.defaultView;return p.ResizeObserver&&(h=new p.ResizeObserver(f),h.observe(o)),()=>{m?.removeEventHandler?.("resize",f),h&&h.disconnect()}},[f,e,o]),{...l,ref:d}}var Aie=c(G(),1);function qP(e){return(0,Aie.useSelect)(o=>{let{getBlockRootClientId:r,getBlockParents:n,__experimentalGetBlockListSettingsForBlocks:i,isBlockInsertionPointVisible:s,getBlockInsertionPoint:a,getBlockOrder:l,hasMultiSelection:u,getLastMultiSelectedBlockClientId:d}=o(w),f=n(e),m=i(f),h=f.find(g=>m[g]?.__experimentalCaptureToolbars),p=!1;if(s()){let g=a();p=l(g.rootClientId)[g.index]===e}return{capturingClientId:h,isInsertionPointVisible:p,lastClientId:u()?d():null,rootClientId:r(e)}},[e])}var ZP=c(C(),1);function Lie({clientId:e,__unstableContentRef:t}){let{capturingClientId:o,isInsertionPointVisible:r,lastClientId:n,rootClientId:i}=qP(e),s=YP({contentElement:t?.current,clientId:e});return(0,ZP.jsx)(zs,{clientId:o||e,bottomClientId:n,className:U("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":r}),__unstableContentRef:t,...s,children:(0,ZP.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,ZP.jsx)(Fs,{position:"bottom right",rootClientId:i,clientId:e,__experimentalIsQuick:!0})})})}var Lle=c(G(),1),pv=c(A(),1),Mle=c(Ba(),1);var Rle=c(F(),1),Ple=c(G(),1),Bj=c(A(),1),Ile=c(oe(),1),Ru=c(Q(),1),Ole=c(N(),1);var Ph=c(N(),1),Wie=c(G(),1),$ie=c(F(),1);var Fie=c(Q(),1),zie=c(N(),1),Gx=c(G(),1),Wx=c(A(),1),jie=c(oe(),1);var Nie=c(at(),1),Yl=c(A(),1),XP=50,Die=25,eDe=1e3,Mie=eDe*(Die/1e3);function Vie(){let e=(0,Yl.useRef)(null),t=(0,Yl.useRef)(null),o=(0,Yl.useRef)(null),r=(0,Yl.useRef)(null);(0,Yl.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]);let n=(0,Yl.useCallback)(a=>{e.current=a.clientY,o.current=(0,Nie.getScrollContainer)(a.target),r.current=setInterval(()=>{if(o.current&&t.current){let l=o.current.scrollTop+t.current;o.current.scroll({top:l})}},Die)},[]),i=(0,Yl.useCallback)(a=>{if(!o.current)return;let l=o.current.offsetHeight,u=e.current-o.current.offsetTop,d=a.clientY-o.current.offsetTop;if(a.clientY>u){let f=Math.max(l-u-XP,0),m=Math.max(d-u-XP,0),h=f===0||m===0?0:m/f;t.current=Mie*h}else if(a.clientY<u){let f=Math.max(u-XP,0),m=Math.max(u-d-XP,0),h=f===0||m===0?0:m/f;t.current=-Mie*h}else t.current=0},[]);return[n,i,()=>{e.current=null,o.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}var W6=c(C(),1),tDe=({appendToOwnerDocument:e,children:t,clientIds:o,cloneClassname:r,elementId:n,onDragStart:i,onDragEnd:s,fadeWhenDisabled:a=!1,dragComponent:l})=>{let{srcRootClientId:u,isDraggable:d,icon:f,visibleInserter:m,getBlockType:h}=(0,Gx.useSelect)(B=>{let{canMoveBlocks:O,getBlockRootClientId:I,getBlockName:P,getBlockAttributes:M,isBlockInsertionPointVisible:L}=B(w),{getBlockType:j,getActiveBlockVariation:V}=B(Fie.store),D=I(o[0]),z=P(o[0]),W=V(z,M(o[0]));return{srcRootClientId:D,isDraggable:O(o),icon:W?.icon||j(z)?.icon,visibleInserter:L(),getBlockType:j}},[o]),p=(0,Wx.useRef)(!1),[g,b,v]=Vie(),{getAllowedBlocks:y,getBlockNamesByClientId:k,getBlockRootClientId:S}=(0,Gx.useSelect)(w),{startDraggingBlocks:_,stopDraggingBlocks:x}=(0,Gx.useDispatch)(w);(0,Wx.useEffect)(()=>()=>{p.current&&x()},[]);let T=Rt(o[0])?.closest("body");return(0,Wx.useEffect)(()=>{if(!T||!a)return;let O=(0,jie.throttle)(I=>{if(!I.target.closest("[data-block]"))return;let P=k(o),M=I.target.closest("[data-block]").getAttribute("data-block"),L=y(M),j=k([M])[0],V;if(L?.length===0){let D=S(M),z=k([D])[0],W=y(D);V=AP(h,W,P,z)}else V=AP(h,L,P,j);!V&&!m?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return T.addEventListener("dragover",O),()=>{T.removeEventListener("dragover",O)}},[o,T,a,y,k,S,h,m]),d?(0,W6.jsx)(zie.Draggable,{appendToOwnerDocument:e,cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:{type:"block",srcClientIds:o,srcRootClientId:u},onDragStart:B=>{window.requestAnimationFrame(()=>{_(o),p.current=!0,g(B),i&&i()})},onDragOver:b,onDragEnd:()=>{x(),p.current=!1,v(),s&&s()},__experimentalDragComponent:l!==void 0?l:(0,W6.jsx)(VR,{count:o.length,icon:f,fadeWhenDisabled:!0}),elementId:n,children:({onDraggableStart:B,onDraggableEnd:O})=>t({draggable:!0,onDragStart:B,onDragEnd:O})}):t({draggable:!1})},QP=tDe;var Uie=c(Q(),1),Gie=c(N(),1);var JP=c(oe(),1),eI=c(G(),1),Ky=c(A(),1),Us=c(F(),1),$6=c(Bt(),1);var Ie=c(F(),1),Gf=(e,t)=>e==="up"?t==="horizontal"?(0,Ie.isRTL)()?"right":"left":"up":e==="down"?t==="horizontal"?(0,Ie.isRTL)()?"left":"right":"down":null;function Hie(e,t,o,r,n,i,s){let a=o+1;if(e>1)return oDe(e,o,r,n,i,s);if(r&&n)return(0,Ie.sprintf)((0,Ie.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!n){let l=Gf("down",s);if(l==="down")return(0,Ie.sprintf)((0,Ie.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if(l==="left")return(0,Ie.sprintf)((0,Ie.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if(l==="right")return(0,Ie.sprintf)((0,Ie.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&n){let l=Gf("down",s);if(l==="down")return(0,Ie.sprintf)((0,Ie.__)("Block %1$s is at the end of the content and can\u2019t be moved down"),t);if(l==="left")return(0,Ie.sprintf)((0,Ie.__)("Block %1$s is at the end of the content and can\u2019t be moved left"),t);if(l==="right")return(0,Ie.sprintf)((0,Ie.__)("Block %1$s is at the end of the content and can\u2019t be moved right"),t)}if(i<0&&!r){let l=Gf("up",s);if(l==="up")return(0,Ie.sprintf)((0,Ie.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if(l==="left")return(0,Ie.sprintf)((0,Ie.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if(l==="right")return(0,Ie.sprintf)((0,Ie.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){let l=Gf("up",s);if(l==="up")return(0,Ie.sprintf)((0,Ie.__)("Block %1$s is at the beginning of the content and can\u2019t be moved up"),t);if(l==="left")return(0,Ie.sprintf)((0,Ie.__)("Block %1$s is at the beginning of the content and can\u2019t be moved left"),t);if(l==="right")return(0,Ie.sprintf)((0,Ie.__)("Block %1$s is at the beginning of the content and can\u2019t be moved right"),t)}}function oDe(e,t,o,r,n,i){let s=t+1;if(o&&r)return(0,Ie.__)("All blocks are selected, and cannot be moved");if(n>0&&!r){let a=Gf("down",i);if(a==="down")return(0,Ie.sprintf)((0,Ie.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if(a==="left")return(0,Ie.sprintf)((0,Ie.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,Ie.sprintf)((0,Ie.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n>0&&r){let a=Gf("down",i);if(a==="down")return(0,Ie.__)("Blocks cannot be moved down as they are already at the bottom");if(a==="left")return(0,Ie.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,Ie.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(n<0&&!o){let a=Gf("up",i);if(a==="up")return(0,Ie.sprintf)((0,Ie.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if(a==="left")return(0,Ie.sprintf)((0,Ie.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if(a==="right")return(0,Ie.sprintf)((0,Ie.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(n<0&&o){let a=Gf("up",i);if(a==="up")return(0,Ie.__)("Blocks cannot be moved up as they are already at the top");if(a==="left")return(0,Ie.__)("Blocks cannot be moved left as they are already are at the leftmost position");if(a==="right")return(0,Ie.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}var yu=c(C(),1),rDe=(e,t)=>e==="up"?t==="horizontal"?(0,Us.isRTL)()?pr:xn:hp:e==="down"?t==="horizontal"?(0,Us.isRTL)()?xn:pr:Ur:null,nDe=(e,t)=>e==="up"?t==="horizontal"?(0,Us.isRTL)()?(0,Us.__)("Move right"):(0,Us.__)("Move left"):(0,Us.__)("Move up"):e==="down"?t==="horizontal"?(0,Us.isRTL)()?(0,Us.__)("Move left"):(0,Us.__)("Move right"):(0,Us.__)("Move down"):null,K6=(0,Ky.forwardRef)(({clientIds:e,direction:t,orientation:o,...r},n)=>{let i=(0,JP.useInstanceId)(K6),s=(0,Ky.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=s.length,l=(0,JP.useViewportMatch)("small","<"),{blockType:u,isDisabled:d,rootClientId:f,isFirst:m,isLast:h,firstIndex:p,orientation:g="vertical"}=(0,eI.useSelect)(_=>{let{getBlockIndex:x,getBlockRootClientId:E,getBlockOrder:T,getBlock:R,getBlockListSettings:B}=_(w),O=s[0],I=E(O),P=x(O),M=x(s[s.length-1]),L=T(I),j=R(O),V=P===0,D=M===L.length-1,{orientation:z}=B(I)||{};return{blockType:j?(0,Uie.getBlockType)(j.name):null,isDisabled:t==="up"?V:D,rootClientId:I,firstIndex:P,isFirst:V,isLast:D,orientation:o||z}},[t,o,s]),{moveBlocksDown:b,moveBlocksUp:v}=(0,eI.useDispatch)(w),y=t==="up"?v:b,k=_=>{y(e,f),r.onClick&&r.onClick(_)},S=`block-editor-block-mover-button__description-${i}`;return(0,yu.jsxs)(yu.Fragment,{children:[(0,yu.jsx)(Gie.Button,{__next40pxDefaultSize:!0,ref:n,className:U("block-editor-block-mover-button",`is-${t}-button`),icon:rDe(t,g),label:nDe(t,g),tooltipPosition:!l&&t==="down"&&g==="vertical"?"bottom":"top","aria-describedby":S,...r,onClick:d?null:k,disabled:d,accessibleWhenDisabled:!0,shortcut:t==="up"?$6.displayShortcut.secondary("t"):$6.displayShortcut.secondary("y")}),(0,yu.jsx)(ct,{id:S,children:Hie(a,u&&u.title,p,m,h,t==="up"?-1:1,g)})]})}),tI=(0,Ky.forwardRef)((e,t)=>(0,yu.jsx)(K6,{direction:"up",ref:t,...e})),oI=(0,Ky.forwardRef)((e,t)=>(0,yu.jsx)(K6,{direction:"down",ref:t,...e}));var ql=c(C(),1);function iDe({clientIds:e,hideDragHandle:t}){let{canMove:o,rootClientId:r,isFirst:n,isLast:i,orientation:s,isManualGrid:a}=(0,Wie.useSelect)(l=>{let{getBlockIndex:u,getBlockListSettings:d,canMoveBlocks:f,getBlockOrder:m,getBlockRootClientId:h,getBlockAttributes:p}=l(w),g=Array.isArray(e)?e:[e],b=g[0],v=h(b),y=u(b),k=u(g[g.length-1]),S=m(v),{layout:_={}}=p(v)??{};return{canMove:f(e),rootClientId:v,isFirst:y===0,isLast:k===S.length-1,orientation:d(v)?.orientation,isManualGrid:_.type==="grid"&&_.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!o||n&&i&&!r||t&&a?null:(0,ql.jsxs)(Ph.ToolbarGroup,{className:U("block-editor-block-mover",{"is-horizontal":s==="horizontal"}),children:[!t&&(0,ql.jsx)(QP,{clientIds:e,fadeWhenDisabled:!0,children:l=>(0,ql.jsx)(Ph.Button,{__next40pxDefaultSize:!0,icon:fS,className:"block-editor-block-mover__drag-handle",label:(0,$ie.__)("Drag"),tabIndex:"-1",...l})}),!a&&(0,ql.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,ql.jsx)(Ph.ToolbarItem,{children:l=>(0,ql.jsx)(tI,{clientIds:e,...l})}),(0,ql.jsx)(Ph.ToolbarItem,{children:l=>(0,ql.jsx)(oI,{clientIds:e,...l})})]})]})}var rI=iDe;var qie=c(N(),1),iI=c(G(),1),sI=c(F(),1),Zie=c(A(),1);var $x=c(G(),1),Wf=c(A(),1);var{clearTimeout:Kie,setTimeout:sDe}=window,Yie=200;function aDe({ref:e,isFocused:t,highlightParent:o,debounceTimeout:r=Yie}){let{getSelectedBlockClientId:n,getBlockRootClientId:i}=(0,$x.useSelect)(w),{toggleBlockHighlight:s}=(0,$x.useDispatch)(w),a=(0,Wf.useRef)(),l=(0,$x.useSelect)(g=>g(w).getSettings().isDistractionFree,[]),u=g=>{if(g&&l)return;let b=n(),v=o?i(b):b;s(v,g)},d=()=>e?.current&&e.current.matches(":hover"),f=()=>{let g=d();return!t&&!g},m=()=>{let g=a.current;g&&Kie&&Kie(g)},h=g=>{g&&g.stopPropagation(),m(),u(!0)},p=g=>{g&&g.stopPropagation(),m(),a.current=sDe(()=>{f()&&u(!1)},r)};return(0,Wf.useEffect)(()=>()=>{u(!1),m()},[]),{debouncedShowGestures:h,debouncedHideGestures:p}}function Yy({ref:e,highlightParent:t=!1,debounceTimeout:o=Yie}){let[r,n]=(0,Wf.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=aDe({ref:e,debounceTimeout:o,isFocused:r,highlightParent:t}),a=(0,Wf.useRef)(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,Wf.useEffect)(()=>{let u=e.current,d=()=>{l()&&(n(!0),i())},f=()=>{l()||(n(!1),s())};return u&&!a.current&&(u.addEventListener("focus",d,!0),u.addEventListener("blur",f,!0),a.current=!0),()=>{u&&(u.removeEventListener("focus",d),u.removeEventListener("blur",f))}},[e,a,n,i,s]),{onMouseMove:i,onMouseLeave:s}}var nI=c(C(),1);function Xie(){let{selectBlock:e}=(0,iI.useDispatch)(w),{parentClientId:t}=(0,iI.useSelect)(i=>{let{getBlockParents:s,getSelectedBlockClientId:a,getParentSectionBlock:l}=H(i(w)),u=a(),d=l(u),f=s(u);return{parentClientId:d??f[f.length-1]}},[]),o=ro(t),r=(0,Zie.useRef)(),n=Yy({ref:r,highlightParent:!0});return(0,nI.jsx)("div",{className:"block-editor-block-parent-selector",ref:r,...n,children:(0,nI.jsx)(qie.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,sI.sprintf)((0,sI.__)("Select parent block: %s"),o?.title),showTooltip:!0,icon:(0,nI.jsx)(rt,{icon:o?.icon})})},t)}var aI=c(N(),1);var qy=c(N(),1),lDe=(0,qy.createSlotFill)("BlockControls"),cDe=(0,qy.createSlotFill)("BlockControlsBlock"),uDe=(0,qy.createSlotFill)("BlockFormatControls"),dDe=(0,qy.createSlotFill)("BlockControlsOther"),fDe=(0,qy.createSlotFill)("BlockControlsParent"),mDe={default:lDe,block:cDe,inline:uDe,other:dDe,parent:fDe},Kx=mDe;function Qie(e,t){let o=Xe();return o[ga]?Kx[e]?.Fill:o[Vg]&&t?Kx.parent.Fill:null}var vu=c(C(),1);function Y6({group:e="default",controls:t,children:o,__experimentalShareWithChildBlocks:r=!1}){let n=Qie(e,r);if(!n)return null;let i=(0,vu.jsxs)(vu.Fragment,{children:[e==="default"&&(0,vu.jsx)(aI.ToolbarGroup,{controls:t}),o]});return(0,vu.jsx)(aI.__experimentalStyleProvider,{document,children:(0,vu.jsx)(n,{children:s=>{let{forwardedContext:a=[]}=s;return a.reduce((l,[u,d])=>(0,vu.jsx)(u,{...d,children:l}),i)}})})}var Yx=c(A(),1),ku=c(N(),1),ese=c(c_(),1);var q6=c(C(),1),{ComponentsContext:Jie}=H(ku.privateApis);function Z6({group:e="default",...t}){let o=(0,Yx.useContext)(ku.__experimentalToolbarContext),r=(0,Yx.useContext)(Jie),n=(0,Yx.useMemo)(()=>({forwardedContext:[[ku.__experimentalToolbarContext.Provider,{value:o}],[Jie.Provider,{value:r}]]}),[o,r]),i=Kx[e],s=(0,ku.__experimentalUseSlotFills)(i.name);if(!i)return(0,ese.default)(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;let{Slot:a}=i,l=(0,q6.jsx)(a,{...t,bubblesVirtually:!0,fillProps:n});return e==="default"?l:(0,q6.jsx)(ku.ToolbarGroup,{children:l})}var X6=c(C(),1),tse=Y6;tse.Slot=Z6;var Q6=e=>(0,X6.jsx)(Y6,{group:"inline",...e});Q6.Slot=function(t){return(0,X6.jsx)(Z6,{group:"inline",...t})};var mo=tse;var ose=c(N(),1),{Fill:rse,Slot:pDe}=(0,ose.createSlotFill)("__unstableBlockToolbarLastItem");rse.Slot=pDe;var lI=rse;var BI=c(N(),1);var ev=c(Q(),1),Vn=c(N(),1),Yf=c(G(),1);var EI=c(A(),1),Ws=c(F(),1),iae=c(Ba(),1),xu=c(oe(),1);var Xy=c(G(),1),$f=c(Q(),1);var kse=c(A(),1),Zx=c(Q(),1),qx=c(G(),1),Sse=c(Ni(),1),Su=c(F(),1);var qi=c(Q(),1),nse=c(A(),1),hDe="align";var ise="__experimentalBorder",cI="color",gDe="customClassName",sse="typography.__experimentalFontFamily",ase="typography.fontSize",bDe="typography.lineHeight",yDe="typography.__experimentalFontStyle",vDe="typography.__experimentalFontWeight",lse="typography.textAlign",kDe="typography.textColumns",SDe="typography.__experimentalTextDecoration",_De="typography.__experimentalWritingMode",xDe="typography.__experimentalTextTransform",wDe="typography.__experimentalLetterSpacing",CDe="layout",EDe=[bDe,ase,yDe,vDe,sse,lse,kDe,SDe,xDe,_De,wDe],TDe=["shadow"],BDe="spacing",RDe=[...TDe,...EDe,ise,cI,BDe],cse=e=>(0,qi.hasBlockSupport)(e,hDe);function use(e,t="any"){if(nse.Platform.OS!=="web")return!1;let o=(0,qi.getBlockSupport)(e,ise);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}var dse=e=>{let t=(0,qi.getBlockSupport)(e,cI);return t!==null&&typeof t=="object"&&!!t.gradients},fse=e=>{let t=(0,qi.getBlockSupport)(e,cI);return t&&t.background!==!1},mse=e=>(0,qi.hasBlockSupport)(e,lse);var pse=e=>{let t=(0,qi.getBlockSupport)(e,cI);return t&&t.text!==!1};var hse=e=>(0,qi.hasBlockSupport)(e,gDe,!0);var gse=e=>(0,qi.hasBlockSupport)(e,sse);var bse=e=>(0,qi.hasBlockSupport)(e,ase);var yse=e=>(0,qi.hasBlockSupport)(e,CDe);var vse=e=>RDe.some(t=>(0,qi.hasBlockSupport)(e,t));function PDe(e){try{let t=(0,Zx.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}var IDe={align:cse,borderColor:e=>use(e,"color"),backgroundColor:fse,textAlign:mse,textColor:pse,gradient:dse,className:hse,fontFamily:gse,fontSize:bse,layout:yse,style:vse};function ODe(e,t){return Object.entries(IDe).reduce((o,[r,n])=>(n(e.name)&&n(t.name)&&(o[r]=e.attributes[r]),o),{})}function J6(e,t,o){for(let r=0;r<Math.min(t.length,e.length);r+=1)o(e[r].clientId,ODe(t[r],e[r])),J6(e[r].innerBlocks,t[r].innerBlocks,o)}function Zy(){let e=(0,qx.useRegistry)(),{updateBlockAttributes:t}=(0,qx.useDispatch)(w),{createSuccessNotice:o,createWarningNotice:r,createErrorNotice:n}=(0,qx.useDispatch)(Sse.store);return(0,kse.useCallback)(async i=>{let s="";try{if(!window.navigator.clipboard){n((0,Su.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});return}s=await window.navigator.clipboard.readText()}catch{n((0,Su.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!s||!PDe(s)){r((0,Su.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}let a=(0,Zx.parse)(s);if(a.length===1?e.batch(()=>{J6(i,i.map(()=>a[0]),t)}):e.batch(()=>{J6(i,a,t)}),i.length===1){let l=(0,Zx.getBlockType)(i[0].name)?.title;o((0,Su.sprintf)((0,Su.__)("Pasted styles to %s."),l),{type:"snackbar"})}else o((0,Su.sprintf)((0,Su.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})},[e.batch,t,o,r,n])}function _se({clientIds:e,children:t,__experimentalUpdateSelection:o}){let{getDefaultBlockName:r,getGroupingBlockName:n}=(0,Xy.useSelect)($f.store),i=(0,Xy.useSelect)(k=>{let{canInsertBlockType:S,getBlockRootClientId:_,getBlocksByClientId:x,getDirectInsertBlock:E,canRemoveBlocks:T}=k(w),R=x(e),B=_(e[0]),O=S(r(),B),I=B?E(B):null;return{canRemove:T(e),canInsertBlock:R.every(P=>(O||!!I)&&S(P.name,B)),canCopyStyles:R.every(P=>!!P&&((0,$f.hasBlockSupport)(P.name,"color")||(0,$f.hasBlockSupport)(P.name,"typography"))),canDuplicate:R.every(P=>!!P&&(0,$f.hasBlockSupport)(P.name,"multiple",!0)&&S(P.name,B))}},[e,r]),{getBlocksByClientId:s,getBlocks:a}=(0,Xy.useSelect)(w),{canRemove:l,canInsertBlock:u,canCopyStyles:d,canDuplicate:f}=i,{removeBlocks:m,replaceBlocks:h,duplicateBlocks:p,insertAfterBlock:g,insertBeforeBlock:b,flashBlock:v}=(0,Xy.useDispatch)(w),y=Zy();return t({canCopyStyles:d,canDuplicate:f,canInsertBlock:u,canRemove:l,onDuplicate(){return p(e,o)},onRemove(){return m(e,o)},onInsertBefore(){b(e[0])},onInsertAfter(){g(e[e.length-1])},onGroup(){if(!e.length)return;let k=n(),S=(0,$f.switchToBlockType)(s(e),k);S&&h(e,S)},onUngroup(){if(!e.length)return;let k=a(e[0]);k.length&&h(e,k)},onCopy(){e.length===1&&v(e[0])},async onPasteStyles(){await y(s(e))}})}var xse=c(N(),1),ADe=(0,xse.createSlotFill)(Symbol("NoteIconSlotFill")),uI=ADe;var wse=c(F(),1),Cse=c(N(),1),dI=c(Q(),1),fI=c(G(),1);var Ese=c(C(),1);function LDe({clientId:e}){let t=(0,fI.useSelect)(r=>r(w).getBlock(e),[e]),{replaceBlocks:o}=(0,fI.useDispatch)(w);return!t||t.name!=="core/html"?null:(0,Ese.jsx)(Cse.MenuItem,{onClick:()=>o(e,(0,dI.rawHandler)({HTML:(0,dI.getBlockContent)(t)})),children:(0,wse.__)("Convert to Blocks")})}var Tse=LDe;var Bse=c(N(),1),{Fill:Rse,Slot:MDe}=(0,Bse.createSlotFill)("__unstableBlockSettingsMenuFirstItem");Rse.Slot=MDe;var mI=Rse;var Jy=c(N(),1),Xse=c(Q(),1),Qse=c(G(),1);var tj=c(N(),1),oj=c(F(),1),Ose=c(Q(),1),gI=c(G(),1),Ase=c(Bt(),1);var Pse=c(Q(),1),Ise=c(G(),1);function Xx(e){return(0,Ise.useSelect)(t=>{let{getBlocksByClientId:o,getSelectedBlockClientIds:r,isUngroupable:n,isGroupable:i}=t(w),{getGroupingBlockName:s,getBlockType:a}=t(Pse.store),l=e?.length?e:r(),u=o(l),[d]=u,f=l.length===1&&n(l[0]);return{clientIds:l,isGroupable:i(l),isUngroupable:f,blocksSelection:u,groupingBlockName:s(),onUngroup:f&&a(d.name)?.transforms?.ungroup}},[e])}var pI=c(G(),1),hI=c(Q(),1),Ih=c(N(),1);var Qx=c(F(),1);var Oh=c(C(),1),NDe={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function DDe(){let{blocksSelection:e,clientIds:t,groupingBlockName:o,isGroupable:r}=Xx(),{replaceBlocks:n}=(0,pI.useDispatch)(w),{canRemove:i,variations:s}=(0,pI.useSelect)(p=>{let{canRemoveBlocks:g}=p(w),{getBlockVariations:b}=p(hI.store);return{canRemove:g(t),variations:b(o,"transform")}},[t,o]),a=p=>{let g=(0,hI.switchToBlockType)(e,o);typeof p!="string"&&(p="group"),g&&g.length>0&&(g[0].attributes.layout=NDe[p],n(t,g))},l=()=>a("row"),u=()=>a("stack"),d=()=>a("grid");if(!r||!i)return null;let f=!!s.find(({name:p})=>p==="group-row"),m=!!s.find(({name:p})=>p==="group-stack"),h=!!s.find(({name:p})=>p==="group-grid");return(0,Oh.jsxs)(Ih.ToolbarGroup,{children:[(0,Oh.jsx)(Ih.ToolbarButton,{icon:hS,label:(0,Qx._x)("Group","action: convert blocks to group"),onClick:a}),f&&(0,Oh.jsx)(Ih.ToolbarButton,{icon:Y5,label:(0,Qx._x)("Row","action: convert blocks to row"),onClick:l}),m&&(0,Oh.jsx)(Ih.ToolbarButton,{icon:cV,label:(0,Qx._x)("Stack","action: convert blocks to stack"),onClick:u}),h&&(0,Oh.jsx)(Ih.ToolbarButton,{icon:pS,label:(0,Qx._x)("Grid","action: convert blocks to grid"),onClick:d})]})}var ej=DDe;var Ah=c(C(),1);function Lse({clientIds:e,isGroupable:t,isUngroupable:o,onUngroup:r,blocksSelection:n,groupingBlockName:i,onClose:s=()=>{}}){let{getSelectedBlockClientIds:a}=(0,gI.useSelect)(w),{replaceBlocks:l}=(0,gI.useDispatch)(w),u=()=>{let m=(0,Ose.switchToBlockType)(n,i);m&&l(e,m)},d=()=>{let m=n[0].innerBlocks;m.length&&(r&&(m=r(n[0].attributes,n[0].innerBlocks)),l(e,m))};if(!t&&!o)return null;let f=a();return(0,Ah.jsxs)(Ah.Fragment,{children:[t&&(0,Ah.jsx)(tj.MenuItem,{shortcut:f.length>1?Ase.displayShortcut.primary("g"):void 0,onClick:()=>{u(),s()},children:(0,oj._x)("Group","verb")}),o&&(0,Ah.jsx)(tj.MenuItem,{onClick:()=>{d(),s()},children:(0,oj._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}var rj=c(F(),1),Dse=c(A(),1),Vse=c(N(),1);var Mse=c(G(),1);function Zi(e){return(0,Mse.useSelect)(t=>{let{canLockBlockType:o,getBlockName:r,isEditLockedBlock:n,isMoveLockedBlock:i,isRemoveLockedBlock:s,isLockedBlock:a}=H(t(w));return{isEditLocked:n(e),isMoveLocked:i(e),isRemoveLocked:s(e),canLock:o(r(e)),isLocked:a(e)}},[e])}var Gs=c(F(),1),Jx=c(A(),1),Yo=c(N(),1);var bI=c(G(),1),Nse=c(Q(),1);var no=c(C(),1),VDe=["core/navigation"];function FDe(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function yI({clientId:e,onClose:t}){let[o,r]=(0,Jx.useState)({move:!1,remove:!1}),{isEditLocked:n,isMoveLocked:i,isRemoveLocked:s}=Zi(e),{allowsEditLocking:a,templateLock:l,hasTemplateLock:u}=(0,bI.useSelect)(v=>{let{getBlockName:y,getBlockAttributes:k}=v(w),S=y(e),_=(0,Nse.getBlockType)(S);return{allowsEditLocking:VDe.includes(S),templateLock:k(e)?.templateLock,hasTemplateLock:!!_?.attributes?.templateLock}},[e]),[d,f]=(0,Jx.useState)(!!l),{updateBlockAttributes:m}=(0,bI.useDispatch)(w),h=ro(e);(0,Jx.useEffect)(()=>{r({move:i,remove:s,...a?{edit:n}:{}})},[n,i,s,a]);let p=Object.values(o).every(Boolean),g=Object.values(o).some(Boolean)&&!p,b=o.move!==i||o.remove!==s||a&&o.edit!==n||u&&d!==!!l;return(0,no.jsx)(Yo.Modal,{title:(0,Gs.sprintf)((0,Gs.__)("Lock %s"),h.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,no.jsxs)("form",{onSubmit:v=>{v.preventDefault(),b&&(m([e],{lock:o,templateLock:d?FDe(o):void 0}),t())},children:[(0,no.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,no.jsx)("legend",{children:(0,Gs.__)("Select the features you want to lock")}),(0,no.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,no.jsxs)("li",{children:[(0,no.jsx)(Yo.CheckboxControl,{className:"block-editor-block-lock-modal__options-all",label:(0,Gs.__)("Lock all"),checked:p,indeterminate:g,onChange:v=>r({move:v,remove:v,...a?{edit:v}:{}})}),(0,no.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[a&&(0,no.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,no.jsx)(Yo.CheckboxControl,{label:(0,Gs.__)("Lock editing"),checked:!!o.edit,onChange:v=>r(y=>({...y,edit:v}))}),(0,no.jsx)(Yo.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.edit?xp:Mc})]}),(0,no.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,no.jsx)(Yo.CheckboxControl,{label:(0,Gs.__)("Lock movement"),checked:o.move,onChange:v=>r(y=>({...y,move:v}))}),(0,no.jsx)(Yo.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.move?xp:Mc})]}),(0,no.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,no.jsx)(Yo.CheckboxControl,{label:(0,Gs.__)("Lock removal"),checked:o.remove,onChange:v=>r(y=>({...y,remove:v}))}),(0,no.jsx)(Yo.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:o.remove?xp:Mc})]})]})]})}),u&&(0,no.jsx)(Yo.ToggleControl,{className:"block-editor-block-lock-modal__template-lock",label:(0,Gs.__)("Apply to all blocks inside"),checked:d,disabled:o.move&&!o.remove,onChange:()=>f(!d)})]}),(0,no.jsxs)(Yo.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,no.jsx)(Yo.FlexItem,{children:(0,no.jsx)(Yo.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,Gs.__)("Cancel")})}),(0,no.jsx)(Yo.FlexItem,{children:(0,no.jsx)(Yo.Button,{variant:"primary",type:"submit",disabled:!b,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Gs.__)("Apply")})})]})]})})}var Lh=c(C(),1);function nj({clientId:e}){let{canLock:t,isLocked:o}=Zi(e),[r,n]=(0,Dse.useReducer)(s=>!s,!1);if(!t)return null;let i=o?(0,rj.__)("Unlock"):(0,rj.__)("Lock");return(0,Lh.jsxs)(Lh.Fragment,{children:[(0,Lh.jsx)(Vse.MenuItem,{icon:o?Mc:_5,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog",children:i}),r&&(0,Lh.jsx)(yI,{clientId:e,onClose:n})]})}var vI=c(F(),1),kI=c(N(),1),Qy=c(A(),1);var Kf=c(C(),1);function ij({clientId:e}){let{canLock:t,isLocked:o}=Zi(e),[r,n]=(0,Qy.useReducer)(a=>!a,!1),i=(0,Qy.useRef)(!1);if((0,Qy.useEffect)(()=>{o&&(i.current=!0)},[o]),!o&&!i.current)return null;let s=o?(0,vI.__)("Unlock"):(0,vI.__)("Lock");return!t&&o&&(s=(0,vI.__)("Locked")),(0,Kf.jsxs)(Kf.Fragment,{children:[(0,Kf.jsx)(kI.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,Kf.jsx)(kI.ToolbarButton,{disabled:!t,icon:o?xp:Mc,label:s,onClick:n,"aria-expanded":r,"aria-haspopup":"dialog"})}),r&&(0,Kf.jsx)(yI,{clientId:e,onClose:n})]})}var sj=c(F(),1),Fse=c(N(),1),SI=c(Q(),1),_I=c(G(),1);var zse=c(C(),1),zDe=()=>{};function jse({clientId:e,onToggle:t=zDe}){let{blockType:o,mode:r,enabled:n}=(0,_I.useSelect)(a=>{let{getBlock:l,getBlockMode:u,getSettings:d}=a(w),f=l(e);return{mode:u(e),blockType:f?(0,SI.getBlockType)(f.name):null,enabled:d().codeEditingEnabled&&!!f?.isValid}},[e]),{toggleBlockMode:i}=(0,_I.useDispatch)(w);if(!o||!(0,SI.hasBlockSupport)(o,"html",!0)||!n)return null;let s=r==="visual"?(0,sj.__)("Edit as HTML"):(0,sj.__)("Edit visually");return(0,zse.jsx)(Fse.MenuItem,{onClick:()=>{i(e),t()},children:s})}var Wse=c(N(),1),$se=c(F(),1),Kse=c(A(),1),Yse=c(G(),1),qse=c(Ba(),1);var qa=c(N(),1),Ya=c(F(),1),Use=c(A(),1),Gse=c(Cr(),1),xI=c(G(),1);function Hse(e){return e?.trim()?.length===0}var _u=c(C(),1);function Mh({clientId:e,onClose:t}){let[o,r]=(0,Use.useState)(),n=ro(e),{metadata:i}=(0,xI.useSelect)(b=>{let{getBlockAttributes:v}=b(w);return{metadata:v(e)?.metadata}},[e]),{updateBlockAttributes:s}=(0,xI.useDispatch)(w),a=i?.name||"",l=n?.title,u=!!a&&!!i?.bindings&&Object.values(i.bindings).some(b=>b.source==="core/pattern-overrides"),d=o!==void 0&&o!==a,f=o===l,m=Hse(o),h=d||f,p=b=>b.target.select(),g=()=>{let b=f||m?void 0:o,v=f||m?(0,Ya.sprintf)((0,Ya.__)('Block name reset to: "%s".'),o):(0,Ya.sprintf)((0,Ya.__)('Block name changed to: "%s".'),o);(0,Gse.speak)(v,"assertive"),s([e],{metadata:ye({...i,name:b})}),t()};return(0,_u.jsx)(qa.Modal,{title:(0,Ya.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,_u.jsx)("form",{onSubmit:b=>{b.preventDefault(),h&&g()},children:(0,_u.jsxs)(qa.__experimentalVStack,{spacing:"3",children:[(0,_u.jsx)(qa.TextControl,{__next40pxDefaultSize:!0,value:o??a,label:(0,Ya.__)("Name"),help:u?(0,Ya.__)("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:l,onChange:r,onFocus:p}),(0,_u.jsxs)(qa.__experimentalHStack,{justify:"right",children:[(0,_u.jsx)(qa.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,Ya.__)("Cancel")}),(0,_u.jsx)(qa.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!h,variant:"primary",type:"submit",children:(0,Ya.__)("Save")})]})]})})})}var Nh=c(C(),1);function aj({clientId:e}){let[t,o]=(0,Kse.useState)(!1),r=(0,Yse.useSelect)(n=>n(qse.store).getShortcutRepresentation("core/block-editor/rename"),[]);return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(Wse.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":t,"aria-haspopup":"dialog",shortcut:r,children:(0,$se.__)("Rename")}),t&&(0,Nh.jsx)(Mh,{clientId:e,onClose:()=>o(!1)})]})}var Zse=c(Q(),1);function Dh(e){return{canRename:!!e&&(0,Zse.getBlockSupport)(e,"renaming",!0)}}var Za=c(C(),1),{Fill:jDe,Slot:HDe}=(0,Jy.createSlotFill)("BlockSettingsMenuControls"),UDe=({fillProps:e,clientIds:t=null})=>{let{selectedBlocks:o,selectedClientIds:r,isContentOnly:n,canToggleSelectedBlocksVisibility:i,canEdit:s}=(0,Qse.useSelect)(b=>{let{getBlocksByClientId:v,getBlockNamesByClientId:y,getSelectedBlockClientIds:k,getBlockEditingMode:S,canEditBlock:_}=b(w),x=t!==null?t:k();return{selectedBlocks:y(x),selectedClientIds:x,isContentOnly:S(x[0])==="contentOnly",canToggleSelectedBlocksVisibility:v(x).every(E=>(0,Xse.hasBlockSupport)(E.name,"visibility",!0)),canEdit:_(x[0])}},[t]),{canLock:a}=Zi(r[0]),{canRename:l}=Dh(o[0]),u=r.length===1&&a&&!n,d=r.length===1&&l&&!n,f=i&&!n,m=Xx(r),{isGroupable:h,isUngroupable:p}=m,g=(h||p)&&!n;return(0,Za.jsx)(HDe,{fillProps:{...e,canEdit:s,selectedBlocks:o,selectedClientIds:r},children:b=>!b?.length>0&&!g&&!u?null:(0,Za.jsxs)(Jy.MenuGroup,{children:[g&&(0,Za.jsx)(Lse,{...m,onClose:e?.onClose}),s&&u&&(0,Za.jsx)(nj,{clientId:r[0]}),s&&d&&(0,Za.jsx)(aj,{clientId:r[0]}),s&&f&&(0,Za.jsx)(x4,{clientIds:r}),b,s&&e?.count===1&&!n&&(0,Za.jsx)(jse,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function Jse({...e}){return(0,Za.jsx)(Jy.__experimentalStyleProvider,{document,children:(0,Za.jsx)(jDe,{...e})})}Jse.Slot=UDe;var wI=Jse;var eae=c(A(),1),tae=c(N(),1),oae=c(oe(),1),rae=c(G(),1),CI=c(F(),1);var lj=c(C(),1);function nae({parentClientId:e,parentBlockType:t}){let o=(0,oae.useViewportMatch)("medium","<"),{selectBlock:r}=(0,rae.useDispatch)(w),n=(0,eae.useRef)(),i=Yy({ref:n,highlightParent:!0});return o?(0,lj.jsx)(tae.MenuItem,{...i,ref:n,icon:(0,lj.jsx)(rt,{icon:t.icon}),onClick:()=>r(e),children:(0,CI.sprintf)((0,CI.__)("Select parent block (%s)"),t.title)}):null}var Tt=c(C(),1),GDe={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function cj({clientIds:e,onCopy:t,label:o,shortcut:r,eventType:n="copy",__experimentalUpdateSelection:i=!1}){let{getBlocksByClientId:s}=(0,Yf.useSelect)(w),{removeBlocks:a}=(0,Yf.useDispatch)(w),l=ay(),u=(0,xu.useCopyToClipboard)(()=>(0,ev.serialize)(s(e)),()=>{switch(n){case"copy":case"copyStyles":t(),l(n,e);break;case"cut":l(n,e),a(e,i);break;default:break}}),d=o||(0,Ws.__)("Copy");return(0,Tt.jsx)(Vn.MenuItem,{ref:u,shortcut:r,children:d})}function uj({block:e,clientIds:t,children:o,__experimentalSelectBlock:r,isContentOnlyListView:n,...i}){let s=t.length,a=t[0],{firstParentClientId:l,parentBlockType:u,previousBlockClientId:d,selectedBlockClientIds:f,isContentOnly:m,isZoomOut:h,canEdit:p,canMove:g,isFirst:b,isLast:v}=(0,Yf.useSelect)(I=>{let{getBlockName:P,getBlockRootClientId:M,getPreviousBlockClientId:L,getSelectedBlockClientIds:j,getBlockAttributes:V,getBlockEditingMode:D,isZoomOut:z,canEditBlock:W,canMoveBlocks:K,getBlockIndex:ne,getBlockCount:X}=H(I(w)),{getActiveBlockVariation:ee}=I(ev.store),Y=M(a),$=Y&&P(Y);return{firstParentClientId:Y,parentBlockType:Y&&(ee($,V(Y))||(0,ev.getBlockType)($)),previousBlockClientId:L(a),selectedBlockClientIds:j(),isContentOnly:D(a)==="contentOnly",isZoomOut:z(),canEdit:W(a),canMove:K(t),isFirst:ne(a)===0,isLast:ne(a)===X(Y)-1}},[a,t]),{getBlockOrder:y,getSelectedBlockClientIds:k}=(0,Yf.useSelect)(w),{moveBlocksDown:S,moveBlocksUp:_}=(0,Yf.useDispatch)(w),x=(0,Yf.useSelect)(I=>{let{getShortcutRepresentation:P}=I(iae.store);return{copy:P("core/block-editor/copy"),cut:P("core/block-editor/cut"),duplicate:P("core/block-editor/duplicate"),remove:P("core/block-editor/remove"),insertAfter:P("core/block-editor/insert-after"),insertBefore:P("core/block-editor/insert-before")}},[]),E=f.length>0;async function T(I){if(!r)return;let P=await I;P&&P[0]&&r(P[0],!1)}function R(){if(!r)return;let I=d||l;I||(I=y()[0]);let P=E&&k().length===0;r(I,P)}let O=!f?.includes(l)&&!!l;return(0,Tt.jsx)(_se,{clientIds:t,__experimentalUpdateSelection:!r,children:({canCopyStyles:I,canDuplicate:P,canInsertBlock:M,canRemove:L,onDuplicate:j,onInsertAfter:V,onInsertBefore:D,onRemove:z,onCopy:W,onPasteStyles:K})=>!L&&!P&&!M&&m?null:(0,Tt.jsx)(Vn.DropdownMenu,{icon:Li,label:(0,Ws.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:GDe,noIcons:!0,...i,children:({onClose:X})=>(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsxs)(Vn.MenuGroup,{children:[(0,Tt.jsx)(mI.Slot,{fillProps:{onClose:X}}),O&&(0,Tt.jsx)(nae,{parentClientId:l,parentBlockType:u}),g&&n&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(Vn.MenuItem,{icon:hp,disabled:b,accessibleWhenDisabled:!0,onClick:(0,xu.pipe)(X,()=>{_(t,l)}),children:(0,Ws.__)("Move up")}),(0,Tt.jsx)(Vn.MenuItem,{icon:Ur,disabled:v,accessibleWhenDisabled:!0,onClick:(0,xu.pipe)(X,()=>{S(t,l)}),children:(0,Ws.__)("Move down")})]}),p&&s===1&&(0,Tt.jsx)(Tse,{clientId:a}),!m&&(0,Tt.jsx)(cj,{clientIds:t,onCopy:W,shortcut:x.copy}),L&&!m&&(0,Tt.jsx)(cj,{clientIds:t,label:(0,Ws.__)("Cut"),eventType:"cut",shortcut:x.cut,__experimentalUpdateSelection:!r}),P&&(0,Tt.jsx)(Vn.MenuItem,{onClick:(0,xu.pipe)(X,j,T),shortcut:x.duplicate,children:(0,Ws.__)("Duplicate")}),M&&!h&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(Vn.MenuItem,{onClick:(0,xu.pipe)(X,D),shortcut:x.insertBefore,children:(0,Ws.__)("Add before")}),(0,Tt.jsx)(Vn.MenuItem,{onClick:(0,xu.pipe)(X,V),shortcut:x.insertAfter,children:(0,Ws.__)("Add after")})]}),p&&s===1&&(0,Tt.jsx)(uI.Slot,{fillProps:{clientId:a,onClose:X}})]}),I&&!m&&(0,Tt.jsxs)(Vn.MenuGroup,{children:[(0,Tt.jsx)(cj,{clientIds:t,onCopy:W,label:(0,Ws.__)("Copy styles"),eventType:"copyStyles"}),p&&(0,Tt.jsx)(Vn.MenuItem,{onClick:K,children:(0,Ws.__)("Paste styles")})]}),!m&&(0,Tt.jsx)(wI.Slot,{fillProps:{onClose:X,count:s,firstBlockClientId:a},clientIds:t}),typeof o=="function"?o({onClose:X}):EI.Children.map(ee=>(0,EI.cloneElement)(ee,{onClose:X})),L&&(0,Tt.jsx)(Vn.MenuGroup,{children:(0,Tt.jsx)(Vn.MenuItem,{onClick:(0,xu.pipe)(X,z,R),shortcut:x.remove,children:(0,Ws.__)("Delete")})})]})})})}var sae=uj;var aae=c(N(),1),WDe=(0,aae.createSlotFill)(Symbol("NoteIconToolbarSlotFill")),TI=WDe;var tv=c(C(),1);function $De({clientIds:e,...t}){return(0,tv.jsxs)(BI.ToolbarGroup,{children:[(0,tv.jsx)(TI.Slot,{}),(0,tv.jsx)(BI.ToolbarItem,{children:o=>(0,tv.jsx)(sae,{clientIds:e,toggleProps:o,...t})})]})}var RI=$De;var PI=c(N(),1),lae=c(F(),1),II=c(G(),1);var dj=c(C(),1);function cae({clientIds:e}){let t=e.length===1?e[0]:void 0,o=(0,II.useSelect)(n=>!!t&&n(w).getBlockMode(t)==="html",[t]),{toggleBlockMode:r}=(0,II.useDispatch)(w);return o?(0,dj.jsx)(PI.ToolbarGroup,{children:(0,dj.jsx)(PI.ToolbarButton,{onClick:()=>{r(t)},children:(0,lae.__)("Edit visually")})}):null}var OI=c(N(),1),Fn=c(A(),1),fae=c(G(),1),mae=c(Je(),1),mj=c(at(),1),pae=c(Ba(),1),hae=c(Bt(),1);var fj=c(C(),1);function KDe(e){let t="toolbarItem";return!e.some(o=>!(t in o.dataset))}function uae(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function dae(e){return e.contains(e.ownerDocument.activeElement)}function YDe(e){let[t]=mj.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}function qDe(e){let[o,r]=(0,Fn.useState)(!0),n=(0,Fn.useCallback)(()=>{let i=mj.focus.tabbable.find(e.current),s=KDe(i);s||(0,mae.default)("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),r(s)},[e]);return(0,Fn.useLayoutEffect)(()=>{let i=new window.MutationObserver(n);return i.observe(e.current,{childList:!0,subtree:!0}),()=>i.disconnect()},[n,o,e]),o}function ZDe({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:o,defaultIndex:r,onIndexChange:n,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){let[a]=(0,Fn.useState)(t),[l]=(0,Fn.useState)(r),u=(0,Fn.useCallback)(()=>{YDe(e.current)},[e]);(0,pae.useShortcut)("core/block-editor/focus-toolbar",()=>{i&&u()}),(0,Fn.useEffect)(()=>{a&&u()},[o,a,u]),(0,Fn.useEffect)(()=>{let m=e.current,h=0;return!a&&!dae(m)&&(h=window.requestAnimationFrame(()=>{let p=uae(m),g=l||0;p[g]&&dae(m)&&p[g].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(h),!n||!m)return;let g=uae(m).findIndex(b=>b.tabIndex===0);n(g)}},[l,a,n,e]);let{getLastFocus:f}=H((0,fae.useSelect)(w));(0,Fn.useEffect)(()=>{let m=e.current;if(s){let h=p=>{let g=f();p.keyCode===hae.ESCAPE&&g?.current&&(p.preventDefault(),g.current.focus())};return m.addEventListener("keydown",h),()=>{m.removeEventListener("keydown",h)}}},[s,f,e])}function ov({children:e,focusOnMount:t,focusEditorOnEscape:o=!1,shouldUseKeyboardFocusShortcut:r=!0,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,orientation:s="horizontal",...a}){let l=(0,Fn.useRef)(),u=qDe(l);return ZDe({toolbarRef:l,focusOnMount:t,defaultIndex:n,onIndexChange:i,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:r,focusEditorOnEscape:o}),u?(0,fj.jsx)(OI.Toolbar,{label:a["aria-label"],ref:l,orientation:s,...a,children:e}):(0,fj.jsx)(OI.NavigableMenu,{orientation:s,role:"toolbar",ref:l,...a,children:e})}var gae=c(G(),1),AI=c(Q(),1);function LI(){return(0,gae.useSelect)(t=>{let{getBlockEditingMode:o,getBlockName:r,getBlockSelectionStart:n}=t(w),i=n(),s=i&&(0,AI.getBlockType)(r(i));return s&&(0,AI.hasBlockSupport)(s,"__experimentalToolbar",!0)&&o(i)!=="disabled"},[])}var qf=c(N(),1),bae=c(F(),1),yae=c(Q(),1),vae=c(A(),1),MI=c(G(),1);var rv=c(C(),1),pj=[],XDe=6,QDe={placement:"bottom-start"};function kae({clientId:e}){let{categories:t,currentPatternName:o,patterns:r}=(0,MI.useSelect)(a=>{let{getBlockAttributes:l,getBlockRootClientId:u,__experimentalGetAllowedPatterns:d}=a(w),f=l(e),m=f?.metadata?.categories||pj,h=u(e),p=m.length>0?d(h):pj;return{categories:m,currentPatternName:f?.metadata?.patternName,patterns:p}},[e]),{replaceBlocks:n}=(0,MI.useDispatch)(w),i=(0,vae.useMemo)(()=>t.length===0||!r||r.length===0?pj:r.filter(a=>{let l=a.source==="core"||a.source?.startsWith("pattern-directory")&&a.source!=="pattern-directory/theme";return a.blocks.length===1&&!l&&o!==a.name&&a.categories?.some(u=>t.includes(u))&&(a.syncStatus==="unsynced"||!a.id)}).slice(0,XDe),[t,o,r]);if(i.length<2)return null;let s=a=>{let l=(a.blocks??[]).map(u=>(0,yae.cloneBlock)(u));l[0].attributes.metadata={...l[0].attributes.metadata,categories:t},n(e,l)};return(0,rv.jsx)(qf.Dropdown,{popoverProps:QDe,renderToggle:({onToggle:a,isOpen:l})=>(0,rv.jsx)(qf.ToolbarGroup,{children:(0,rv.jsx)(qf.ToolbarButton,{onClick:()=>a(!l),"aria-expanded":l,children:(0,bae.__)("Change design")})}),renderContent:()=>(0,rv.jsx)(qf.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,rv.jsx)(Gl,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}var Qa=c(N(),1),Yae=c(F(),1),qI=c(G(),1);var VI=c(G(),1),Xf=c(Q(),1),Cae=c(A(),1);var hj=c(NI(),1),_ae=c(F(),1);function xae(e,t){for(let o of new hj.default(t).values()){if(o.indexOf("is-style-")===-1)continue;let r=o.substring(9),n=e?.find(({name:i})=>i===r);if(n)return n}return DI(e)}function Zf(e,t,o){let r=new hj.default(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+o.name),r.value}function wae(e){return!e||e.length===0?[]:DI(e)?e:[{name:"default",label:(0,_ae._x)("Default","block style"),isDefault:!0},...e]}function DI(e){return e?.find(t=>t.isDefault)}function JDe(e,t){return(0,Cae.useMemo)(()=>{let o=t?.example,r=t?.name;if(o&&r)return(0,Xf.getBlockFromExample)(r,{attributes:o.attributes,innerBlocks:o.innerBlocks});if(e)return(0,Xf.cloneBlock)(e)},[e,t?.example,t?.name])}function nv({clientId:e,onSwitch:t}){let o=m=>{let{getBlock:h}=m(w),p=h(e);if(!p)return{};let g=(0,Xf.getBlockType)(p.name),{getBlockStyles:b}=m(Xf.store);return{block:g?.example?null:p,blockType:g,styles:b(p.name),className:p.attributes.className||""}},{styles:r,block:n,blockType:i,className:s}=(0,VI.useSelect)(o,[e]),{updateBlockAttributes:a}=(0,VI.useDispatch)(w),l=wae(r),u=xae(l,s),d=JDe(n,i);return{onSelect:m=>{let h=Zf(s,u,m);a(e,{className:h}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:s}}var s0=c(Q(),1),n0=c(G(),1),YI=c(A(),1);function Eae(e,t,o){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let r=t.pop(),n=e;for(let i of t){let s=n[i];n=n[i]=Array.isArray(s)?[...s]:{...s}}return n[r]=o,e}var cr=(e,t,o)=>{let r=Array.isArray(t)?t:t.split("."),n=e;return r.forEach(i=>{n=n?.[i]}),n??o};var Bae=c(JS(),1);var e5e="1600px",t5e="320px",o5e=1,r5e=.25,n5e=.75,i5e="14px";function Tae({minimumFontSize:e,maximumFontSize:t,fontSize:o,minimumViewportWidth:r=t5e,maximumViewportWidth:n=e5e,scaleFactor:i=o5e,minimumFontSizeLimit:s}){if(s=Zl(s)?s:i5e,o){let k=Zl(o);if(!k?.unit||!k?.value)return null;let S=Zl(s,{coerceTo:k.unit});if(S?.value&&!e&&!t&&k?.value<=S?.value)return null;if(t||(t=`${k.value}${k.unit}`),!e){let _=k.unit==="px"?k.value:k.value*16,x=Math.min(Math.max(1-.075*Math.log2(_),r5e),n5e),E=e0(k.value*x,3);S?.value&&E<S?.value?e=`${S.value}${S.unit}`:e=`${E}${k.unit}`}}let a=Zl(e),l=a?.unit||"rem",u=Zl(t,{coerceTo:l});if(!a||!u)return null;let d=Zl(e,{coerceTo:"rem"}),f=Zl(n,{coerceTo:l}),m=Zl(r,{coerceTo:l});if(!f||!m||!d)return null;let h=f.value-m.value;if(!h)return null;let p=e0(m.value/100,3),g=e0(p,3)+l,b=100*((u.value-a.value)/h),v=e0((b||1)*i,3),y=`${d.value}${d.unit} + ((1vw - ${g}) * ${v})`;return`clamp(${e}, ${y}, ${t})`}function Zl(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:o,rootSizeValue:r,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=n?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),a=e.toString().match(s);if(!a||a.length<3)return null;let[,l,u]=a,d=parseFloat(l);return o==="px"&&(u==="em"||u==="rem")&&(d=d*r,u=o),u==="px"&&(o==="em"||o==="rem")&&(d=d/r,u=o),(o==="em"||o==="rem")&&(u==="em"||u==="rem")&&(u=o),u?{value:e0(d,3),unit:u}:null}function e0(e,t=3){let o=Math.pow(10,t);return Math.round(e*o)/o}function gj(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function s5e(e){let t=e?.typography??{},o=e?.layout,r=Zl(o?.wideSize)?o?.wideSize:null;return gj(t)&&r?{fluid:{maxViewportWidth:r,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function wu(e,t){let{size:o}=e;if(!o||o==="0"||e?.fluid===!1||!gj(t?.typography)&&!gj(e))return o;let r=s5e(t)?.fluid??{},n=Tae({minimumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.min,maximumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.max,fontSize:o,minimumFontSizeLimit:typeof r=="object"?r?.minFontSize:void 0,maximumViewportWidth:typeof r=="object"?r?.maxViewportWidth:void 0,minimumViewportWidth:typeof r=="object"?r?.minViewportWidth:void 0});return n||o}var Ql="body",t0=":root";function Xl(e){if(!e.includes(","))return[e];let t=[],o="",r=0;for(let n of e){if(n==="(")r++;else if(n===")"&&r>0)r--;else if(n===","&&r===0){t.push(o),o="";continue}o+=n}return t.push(o),t}var FI=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>wu(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}];function Xa(e,t){if(!e||!t)return t;let o=Xl(e),r=Xl(t),n=[];return o.forEach(i=>{r.forEach(s=>{n.push(`${i.trim()} ${s.trim()}`)})}),n.join(", ")}function Rae(e,t){if(!e||!t)return;let o={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(o[r]=Xa(e,n)),typeof n=="object"&&(o[r]={},Object.entries(n).forEach(([i,s])=>{o[r][i]=Xa(e,s)}))}),o}function zI(e,t){return e.includes(",")?Xl(e).map(n=>n+t).join(","):e+t}function bj(e,t){let o=`.is-style-${e}`;if(!t)return o;let r=/((?::\([^)]+\))?\s*)([^\s:]+)/,n=(s,a,l)=>a+l+o;return Xl(t).map(s=>s.replace(r,n)).join(",")}function Pae(e,t){let o=`.is-style-${e}`,r=Xl(t).map(n=>{let i=n.trim(),s=`${o} `;return i.startsWith(s)?i.slice(s.length):i});return bj(e,r.join(","))}function a5e(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let o=(0,Bae.getCSSValueFromRawStyle)(cr(t,e.ref));return typeof o=="object"&&o!==null&&"ref"in o&&o?.ref?void 0:o===void 0?e:o}return e}function l5e(e,t){if(!e||!t||!Array.isArray(t))return e;let o=t.find(r=>r?.name===e);return o?.href?o?.href:e}function iv(e,t){if(!e||!t)return e;let o=a5e(e,t);return typeof o=="object"&&o!==null&&"url"in o&&o?.url&&(o.url=l5e(o.url,t?._links?.["wp:theme-file"])),o}function Iae(e,t,o=[],r="slug",n){let i=[t?cr(e,["blocks",t,...o]):void 0,cr(e,o)].filter(Boolean);for(let s of i)if(s){let a=["custom","theme","default"];for(let l of a){let u=s[l];if(u){let d=u.find(f=>f[r]===n);if(d)return r==="slug"||Iae(e,t,o,"slug",d.slug)[r]===d[r]?d:void 0}}}}function c5e(e,t,o,[r,n]=[]){let i=FI.find(a=>a.cssVarInfix===r);if(!i||!e.settings)return o;let s=Iae(e.settings,t,i.path,"slug",n);if(s){let{valueKey:a}=i,l=s[a];return pn(e,t,l)}return o}function u5e(e,t,o,r=[]){let n=(t?cr(e?.settings??{},["blocks",t,"custom",...r]):void 0)??cr(e?.settings??{},["custom",...r]);return n?pn(e,t,n):o}function pn(e,t,o){if(!o||typeof o!="string")if(typeof o=="object"&&o!==null&&"ref"in o&&typeof o.ref=="string"){let u=cr(e,o.ref);if(!u||typeof u=="object"&&"ref"in u)return u;o=u}else return o;let r="var:",n="var(--wp--",i=")",s;if(o.startsWith(r))s=o.slice(r.length).split("|");else if(o.startsWith(n)&&o.endsWith(i))s=o.slice(n.length,-i.length).split("--");else return o;let[a,...l]=s;return a==="preset"?c5e(e,t,o,l):a==="custom"?u5e(e,t,o,l):o}var Dae=c(jI(),1);function Mae(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nae(e){var t,o;return Mae(e)===!1?!1:(t=e.constructor,t===void 0?!0:(o=t.prototype,!(Mae(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}function HI(e,t){return(0,Dae.default)(e,t,{isMergeableObject:Nae,customMerge:o=>{if(o==="backgroundImage")return(r,n)=>n??r}})}var zn=c(Q(),1),r0=c(JS(),1),Hae=c(G(),1);function Xi(e,t="root",o={}){if(!t)return null;let{fallback:r=!1}=o,{name:n,selectors:i,supports:s}=e,a=i&&Object.keys(i).length>0,l=Array.isArray(t)?t.join("."):t,u=null;if(a&&i.root?u=i?.root:s?.__experimentalSelector?u=s.__experimentalSelector:u=".wp-block-"+n.replace("core/","").replace("/","-"),l==="root")return u;let d=Array.isArray(t)?t:t.split(".");if(d.length===1){let m=r?u:null;if(a)return cr(i,`${l}.root`,null)||cr(i,l,null)||m;let h=s?cr(s,`${l}.__experimentalSelector`,null):void 0;return h?Xa(u,h):m}let f;return a&&(f=cr(i,l,null)),f||(r?Xi(e,d[0],o):null)}function av(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([a-zA-Z])/g,"$1-$2").replace(/([a-zA-Z])([0-9])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function yj(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function w5e(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function vj(e,t="0"){let o=w5e(e);if(!o)return null;let r=yj(o?.top)||t,n=yj(o?.left)||t;return r===n?r:`${r} ${n}`}var Vae={backgroundSize:"cover",backgroundPosition:"50% 50%"};function Fae(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Vae.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:Vae.backgroundPosition}),t}var zae={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};var C5e={button:"wp-element-button",caption:"wp-element-caption"},E5e={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},Uae={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},T5e={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]},Gae={mobile:"@media (width <= 480px)",tablet:"@media (480px < width <= 782px)"};function B5e(e="*",t={}){return FI.reduce((o,{path:r,cssVarInfix:n,classes:i})=>{if(!i)return o;let s=cr(t,r,[]);return["default","theme","custom"].forEach(a=>{s[a]&&s[a].forEach(({slug:l})=>{i.forEach(({classSuffix:u,propertyName:d})=>{let f=`.has-${av(l)}-${u}`,m=e.split(",").map(p=>`${p}${f}`).join(","),h=`var(--wp--preset--${n}--${av(l)})`;o+=`${m}{${d}: ${h} !important;}`})})}),o},"")}var R5e=(e,t,o)=>{if(o!=="core/paragraph"||(t?.blocks?.["core/paragraph"]?.typography?.textIndent??t?.typography?.textIndent??"subsequent")!=="all")return e;let i=".wp-block-paragraph + .wp-block-paragraph",s=".wp-block-paragraph";if(i in e){let a=e[i],l={...e};return delete l[i],l[s]=a,l}return e},P5e=(e,t)=>{let o=".wp-block-button";if(!(o in e))return e;let r={...e};return r[o]=r[o].map(n=>{let i=n.match(/^width:\s*(.+)$/);if(!i)return n;let s=i[1],a=null;s.endsWith("%")&&(a=parseFloat(s));let l="var(--wp--preset--dimension--";if(a===null&&s.startsWith(l)&&s.endsWith(")")){let u=s.slice(l.length,-1),d={...t?.dimensions?.dimensionSizes??{},...t?.blocks?.["core/button"]?.dimensions?.dimensionSizes??{}};for(let f of Object.values(d))if(Array.isArray(f)){for(let m of f)if(m.slug===u&&typeof m.size=="string"&&m.size.endsWith("%")){a=parseFloat(m.size);break}if(a!==null)break}}return a===null||isNaN(a)?n:`width: calc(${a} * 1% - (var(--wp--style--block-gap, 0.5em) * (1 - ${a} / 100)))`}),r},I5e=(e,t)=>{let o={};return Object.entries(e).forEach(([r,n])=>{if(r==="root"||!t?.[r])return;let i=typeof n=="string";if(!i&&typeof n=="object"&&n!==null&&Object.entries(n).forEach(([s,a])=>{if(s==="root"||!t?.[r][s])return;let l={[r]:{[s]:t[r][s]}},u=GI(l);o[a]=[...o[a]||[],...u],delete t[r][s]}),i||typeof n=="object"&&n!==null&&"root"in n){let s=i?n:n.root,a={[r]:t[r]},l=GI(a);o[s]=[...o[s]||[],...l],delete t[r]}}),o};function GI(e={},t="",o,r={},n=!1){let i=Ql===t,s=Object.entries(zn.__EXPERIMENTAL_STYLE_PROPERTY).reduce((l,[u,{value:d,properties:f,useEngine:m,rootOnly:h}])=>{if(h&&!i)return l;let p=d;if(p[0]==="elements"||m)return l;let g=cr(e,p);if(u==="--wp--style--root--padding"&&(typeof g=="string"||!o))return l;if(f&&typeof g!="string")Object.entries(f).forEach(b=>{let[v,y]=b;if(!cr(g,[y],!1))return;let k=v.startsWith("--")?v:av(v);l.push(`${k}: ${(0,r0.getCSSValueFromRawStyle)(cr(g,[y]))}`)});else if(cr(e,p,!1)){let b=u.startsWith("--")?u:av(u);l.push(`${b}: ${(0,r0.getCSSValueFromRawStyle)(cr(e,p))}`)}return l},[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=iv(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Fae(e.background)}})),(0,r0.getCSSRules)(e).forEach(l=>{if(i&&(o||n)&&l.key.startsWith("padding"))return;let u=l.key.startsWith("--")?l.key:av(l.key),d=iv(l.value,r);u==="font-size"&&(d=wu({name:"",slug:"",size:d},r?.settings)),u==="aspect-ratio"&&s.push("min-height: unset"),s.push(`${u}: ${d}`)}),s}function Wae({layoutDefinitions:e=zae,style:t,selector:o,hasBlockGapSupport:r,hasFallbackGapSupport:n,fallbackGapValue:i}){let s="",a=r?vj(t?.spacing?.blockGap):"";if(n&&(o===Ql?a=a||"0.5em":!r&&i&&(a=i)),a&&e&&(Object.values(e).forEach(({className:l,name:u,spacingStyles:d})=>{!r&&u!=="flex"&&u!=="grid"||d?.length&&d.forEach(f=>{let m=[];if(f.rules&&Object.entries(f.rules).forEach(([h,p])=>{m.push(`${h}: ${p||a}`)}),m.length){let h="";r?h=o===Ql?`:root :where(.${l})${f?.selector||""}`:`:root :where(${o}-${l})${f?.selector||""}`:h=o===Ql?`:where(.${l}${f?.selector||""})`:`:where(${o}.${l}${f?.selector||""})`,s+=`${h} { ${m.join("; ")}; }`}})}),o===Ql&&r&&(s+=`${t0} { --wp--style--block-gap: ${a}; }`)),o===Ql&&e){let l=["block","flex","grid"];Object.values(e).forEach(({className:u,displayMode:d,baseStyles:f})=>{d&&l.includes(d)&&(s+=`${o} .${u} { display:${d}; }`),f?.length&&f.forEach(m=>{let h=[];if(m.rules&&Object.entries(m.rules).forEach(([p,g])=>{h.push(`${p}: ${g}`)}),h.length){let p=`.${u}${m?.selector||""}`;s+=`${p} { ${h.join("; ")}; }`}})})}return s}var O5e=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function A5e(e){return UI(e)}function UI(e,t){if(!e)return{};let o=Object.entries(e),r=t?Uae[t]??[]:[],i=o.filter(([s])=>O5e.includes(s)||r.includes(s)||Gae[s]).map(([s,a])=>[s,JSON.parse(JSON.stringify(a))]);return Object.fromEntries(i)}function jae(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,mediaQuery:s,variationName:a}=e,l=n?Uae[n]??[]:T5e[i??""]??[];return l.length?l.flatMap(u=>{let d=t?.[u];return!d||typeof d!="object"?[]:[{styles:JSON.parse(JSON.stringify(d)),selector:o,selectorSuffix:u,mediaQuery:s,featureSelectors:r&&typeof r!="string"?r:void 0,name:n,elementName:i,variationName:a}]}):[]}function L5e(e){let{styles:t,selector:o,featureSelectors:r,name:n,elementName:i,isStyleVariation:s,variationName:a}=e;return!n&&!i?[]:Object.entries(Gae).flatMap(([l,u])=>{let d=t?.[l];return!d||typeof d!="object"?[]:[{styles:JSON.parse(JSON.stringify(d)),selector:o,mediaQuery:u,featureSelectors:r&&typeof r!="string"?r:void 0,name:n,elementName:i,isStyleVariation:s,variationName:a}]})}var M5e=(e,t)=>{let o=[];if(!e?.styles)return o;let r=A5e(e.styles);return r&&o.push({styles:r,selector:Ql,skipSelectorWrapper:!0}),Object.entries(zn.__EXPERIMENTAL_ELEMENTS).forEach(([n,i])=>{e.styles?.elements?.[n]&&o.push({styles:e.styles?.elements?.[n]??{},selector:i,elementName:n,skipSelectorWrapper:!C5e[n]})}),Object.entries(e.styles?.blocks??{}).forEach(([n,i])=>{let s=UI(i,n),a=i,l=[],u=[];a?.variations&&Object.entries(a.variations).forEach(([d,f])=>{let m=f,h=UI(m,n);m?.css&&(h.css=m.css);let p=typeof t!="string"?t[n]?.styleVariationSelectors?.[d]:void 0;if(p&&typeof t!="string"){let g=t[n];u.push({styles:h,selector:p,featureSelectors:g?.featureSelectors,fallbackGapValue:g?.fallbackGapValue,hasLayoutSupport:g?.hasLayoutSupport,isStyleVariation:!0,variationName:d,layoutSelector:p+g.selector,layoutHasBlockGapSupport:!0,name:n})}Object.entries(m?.elements??{}).forEach(([g,b])=>{b&&zn.__EXPERIMENTAL_ELEMENTS[g]&&l.push({styles:b,selector:Xa(p,zn.__EXPERIMENTAL_ELEMENTS[g]),elementName:g,isStyleVariation:!0})}),Object.entries(m?.blocks??{}).forEach(([g,b])=>{let v=typeof t!="string"?Xa(p,t[g]?.selector):void 0,y=typeof t!="string"?Xa(p,t[g]?.duotoneSelector):void 0,k=typeof t!="string"?Rae(p,t[g]?.featureSelectors??{}):void 0,S=UI(b,g);b?.css&&(S.css=b.css),!(!v||typeof t=="string")&&(l.push({selector:v,name:g,isStyleVariation:!0,duotoneSelector:y,featureSelectors:k,fallbackGapValue:t[g]?.fallbackGapValue,hasLayoutSupport:t[g]?.hasLayoutSupport,styles:S}),Object.entries(b.elements??{}).forEach(([_,x])=>{x&&zn.__EXPERIMENTAL_ELEMENTS[_]&&l.push({styles:x,selector:Xa(v,zn.__EXPERIMENTAL_ELEMENTS[_]),elementName:_,isStyleVariation:!0})}))})}),typeof t!="string"&&t?.[n]?.selector&&o.push({duotoneSelector:t[n].duotoneSelector,fallbackGapValue:t[n].fallbackGapValue,hasLayoutSupport:t[n].hasLayoutSupport,selector:t[n].selector,styles:s,featureSelectors:t[n].featureSelectors,name:n}),o.push(...u),Object.entries(a?.elements??{}).forEach(([d,f])=>{typeof t!="string"&&f&&t?.[n]&&zn.__EXPERIMENTAL_ELEMENTS[d]&&o.push({styles:f,selector:t[n]?.selector.split(",").map(m=>zn.__EXPERIMENTAL_ELEMENTS[d].split(",").map(p=>m+" "+p)).join(","),elementName:d})}),o.push(...l)}),o},N5e=(e,t)=>{let o=[];if(!e?.settings)return o;let r=s=>{let a={};return FI.forEach(({path:l})=>{let u=cr(s,l,!1);u!==!1&&(a=Eae(a,l,u))}),a},n=r(e.settings),i=e.settings?.custom;return(Object.keys(n).length>0||i)&&o.push({presets:n,custom:i,selector:t0}),Object.entries(e.settings?.blocks??{}).forEach(([s,a])=>{let l=a.custom;if(typeof t=="string"||!t[s])return;let u=r(a);(Object.keys(u).length>0||l)&&o.push({presets:u,custom:l,selector:t[s]?.selector,featureSelectors:t[s]?.featureSelectors})}),o};function D5e(e,{tree:t,useRootPaddingAlign:o,disableLayoutStyles:r,hasBlockGapSupport:n,hasFallbackGapSupport:i,disableRootPadding:s}){let{selector:a,selectorSuffix:l,mediaQuery:u,duotoneSelector:d,styles:f,fallbackGapValue:m,hasLayoutSupport:h,featureSelectors:p,layoutSelector:g,layoutHasBlockGapSupport:b,skipSelectorWrapper:v,name:y,variationName:k}=e,S="",_=l?zI(a,l):a;if(p&&typeof p!="string"){let R=I5e(p,f);R=R5e(R,t.settings,y),R=P5e(R,t.settings),Object.entries(R).forEach(([B,O])=>{if(O.length){let I=k?Pae(k,B):B;I=l?zI(I,l):I;let P=O.join(";");S+=`:root :where(${I}){${P};}`}})}if(d){let R={};f?.filter&&(R.filter=f.filter,delete f.filter);let B=GI(R);B.length&&(S+=`${d}{${B.join(";")};}`)}let x=g??_;!r&&(Ql===x||h)&&(S+=Wae({style:f,selector:x,hasBlockGapSupport:b??n,hasFallbackGapSupport:i,fallbackGapValue:m}));let T=GI(f,_,o,t,s);if(T?.length){let R=v?_:`:root :where(${_})`;S+=`${R}{${T.join(";")};}`}return f?.css&&(S+=KI(f.css,`:root :where(${_})`)),u&&S?`${u}{${S}}`:S}var WI=(e,t,o,r,n=!1,i=!1,s={})=>{let a={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},l=M5e(e,t),u=N5e(e,t),d=e?.settings?.useRootPaddingAwareAlignments,{contentSize:f,wideSize:m}=e?.settings?.layout||{},h=a.marginReset||a.rootPadding||a.layoutStyles,p="";if(a.presets&&(f||m)&&(p+=`${t0} {`,p=f?p+` --wp--style--global--content-size: ${f};`:p,p=m?p+` --wp--style--global--wide-size: ${m};`:p,p+="}"),h&&(p+=":where(body) {margin: 0;",a.rootPadding&&d&&(p+=`padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }
				.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
				.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
				.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }
				.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;
				`),p+="}"),a.blockStyles&&l.forEach(g=>{if(g.isStyleVariation&&!a.variationStyles)return;let b=L5e(g);[g,...b,...jae(g),...b.flatMap(jae)].forEach(v=>{p+=D5e(v,{tree:e,useRootPaddingAlign:d,disableLayoutStyles:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,disableRootPadding:i})})}),a.layoutStyles&&(p=p+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",p=p+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",p=p+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&o){let g=vj(e?.styles?.spacing?.blockGap)||"0.5em";p=p+`:root :where(.wp-site-blocks) > * { margin-block-start: ${g}; margin-block-end: 0; }`,p=p+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",p=p+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&u.forEach(({selector:g,presets:b})=>{(Ql===g||t0===g)&&(g="");let v=B5e(g,b);v.length>0&&(p+=v)}),p};var V5e=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(E5e).forEach(([r,n])=>{let i=Xi(e,r);i&&(o[n]=i)}),o},$I=(e,t)=>{let{getBlockStyles:o}=(0,Hae.select)(zn.store),r={};return e.forEach(n=>{let i=n.name,s=Xi(n);if(!s)return;let a=Xi(n,"filter.duotone");if(!a){let h=Xi(n),p=(0,zn.getBlockSupport)(n,"color.__experimentalDuotone",!1);typeof p=="string"&&h&&(a=Xa(h,p))}let l=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,u=n?.supports?.spacing?.blockGap?.__experimentalDefault,d=o(i),f={};d?.forEach(h=>{let p=t?`-${t}`:"",g=`${h.name}${p}`,b=bj(g,s);f[g]=b});let m=V5e(n,s);r[i]={duotoneSelector:a??void 0,fallbackGapValue:u,featureSelectors:Object.keys(m).length?m:void 0,hasLayoutSupport:l,name:i,selector:s,styleVariationSelectors:d?.length?f:void 0}}),r};function KI(e,t){let o="";return!e||e.trim()===""||e.split("&").forEach(n=>{if(!n||n.trim()==="")return;if(!n.includes("{"))o+=`:root :where(${t}){${n.trim()}}`;else{let s=n.replace("}","").split("{");if(s.length!==2)return;let[a,l]=s,u=a.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",f=u?a.replace(d,"").trim():a.trim(),m;f===""?m=t:m=a.startsWith(" ")?Xa(t,f):zI(t,f),o+=`:root :where(${m})${d}{${l.trim()}}`}}),o}var i0=c(C(),1),kj="is-style-";function $ae(e){return e?e.split(/\s+/).reduce((t,o)=>{if(o.startsWith(kj)){let r=o.slice(kj.length);r!=="default"&&t.push(r)}return t},[]):[]}function Sj(e,t=[]){let o=$ae(e);if(!o)return null;for(let r of o)if(t.some(n=>n.name===r))return r;return null}function F5e({override:e}){Cu(e)}function _j({config:e}){let{overrides:t}=(0,n0.useSelect)(n=>({overrides:H(n(w)).getStyleOverrides()}),[]),{getBlockName:o}=(0,n0.useSelect)(w),r=(0,YI.useMemo)(()=>{if(!t?.length)return;let n=[],i=[];for(let[,s]of t)if(s?.variation&&s?.clientId&&!i.includes(s.clientId)){let a=o(s.clientId),l=e?.styles?.blocks?.[a]?.variations?.[s.variation];if(l){let u={settings:e?.settings,styles:{blocks:{[a]:{variations:{[`${s.variation}-${s.clientId}`]:l}}}}},d=$I((0,s0.getBlockTypes)(),s.clientId),g=WI(u,d,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});n.push({id:`${s.variation}-${s.clientId}`,css:g,__unstableType:"variation",variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return n},[e,t,o]);return!r||!r.length?null:(0,i0.jsx)(i0.Fragment,{children:r.map(n=>(0,i0.jsx)(F5e,{override:n},n.id))})}function xj(e,t,o){if(!e?.styles?.blocks?.[t]?.variations?.[o])return;let r=i=>{Object.keys(i).forEach(s=>{let a=i[s];if(typeof a=="object"&&a!==null)if(a.ref!==void 0)if(typeof a.ref!="string"||a.ref.trim()==="")delete i[s];else{let l=ya(e,a.ref);l?i[s]=l:delete i[s]}else r(a),Object.keys(a).length===0&&delete i[s]})},n=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[o]));return r(n),n}function z5e(e,t,o){let{globalSettings:r,globalStyles:n}=(0,n0.useSelect)(i=>{let s=i(w).getSettings();return{globalSettings:s.__experimentalFeatures,globalStyles:s[ei]}},[]);return(0,YI.useMemo)(()=>{let i=xj({settings:r,styles:n},e,t);return{settings:r,styles:{blocks:{[e]:{variations:{[`${t}-${o}`]:i}}}}}},[r,n,t,o,e])}function j5e({name:e,className:t,clientId:o}){let{getBlockStyles:r}=(0,n0.useSelect)(s0.store),n=r(e),i=Sj(t,n),s=`${kj}${i}-${o}`,{settings:a,styles:l}=z5e(e,i,o),u=(0,YI.useMemo)(()=>{if(!i)return;let d={settings:a,styles:l},f=$I((0,s0.getBlockTypes)(),o);return WI(d,f,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[i,a,l,o]);return Cu({id:`variation-${o}`,css:u,__unstableType:"variation",variation:i,clientId:o}),i?{className:s}:{}}var Kae={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>$ae(e).length>0,useBlockProps:j5e};var Qf=c(C(),1),H5e=(0,Qf.jsxs)(Qa.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Qf.jsx)(Qa.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"}),(0,Qf.jsx)(Qa.Path,{stroke:"currentColor",strokeWidth:"1.5",d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"})]});function U5e({clientId:e}){let{stylesToRender:t,activeStyle:o,className:r}=nv({clientId:e}),{updateBlockAttributes:n}=(0,qI.useDispatch)(w),{globalSettings:i,globalStyles:s,blockName:a}=(0,qI.useSelect)(d=>{let f=d(w).getSettings();return{globalSettings:f.__experimentalFeatures,globalStyles:f[ei],blockName:d(w).getBlockName(e)}},[e]),l=o?.name?xj({settings:i,styles:s},a,o.name)?.color?.background:void 0;return!t||t.length===0?null:(0,Qf.jsx)(Qa.ToolbarGroup,{children:(0,Qf.jsx)(Qa.ToolbarButton,{onClick:()=>{let f=(t.findIndex(p=>p.name===o.name)+1)%t.length,m=t[f],h=Zf(r,o,m);n(e,{className:h})},label:(0,Yae.__)("Shuffle styles"),children:(0,Qf.jsx)(Qa.Icon,{icon:H5e,style:{fill:l||"transparent"}})})})}var qae=U5e;var QI=c(N(),1),wj=c(F(),1),Zae=c(G(),1),JI=c(Q(),1);var ZI=c(G(),1);function XI(e){let{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i}=(0,ZI.useSelect)(u=>{let{isSectionBlock:d,getParentSectionBlock:f,getEditedContentOnlySection:m,isWithinEditedContentOnlySection:h}=H(u(w)),p=m();return{isSectionBlock:d(e),isWithinSection:d(e)||!!f(e),isWithinEditedSection:h(e),isEditingContentOnlySection:p===e,editedContentOnlySection:p}},[e]),s=(0,ZI.useDispatch)(w),{editContentOnlySection:a,stopEditingContentOnlySection:l}=H(s);return{isSectionBlock:t,isWithinSection:o,isWithinEditedSection:r,isEditingContentOnlySection:n,editedContentOnlySection:i,editContentOnlySection:a,stopEditingContentOnlySection:l}}var Cj=c(C(),1);function Xae({clientId:e}){let{isSectionBlock:t,isEditingContentOnlySection:o,editContentOnlySection:r,stopEditingContentOnlySection:n}=XI(e),i=(0,Zae.useSelect)(l=>{if(!e)return null;let{getBlockName:u}=l(w),d=u(e);return d?{name:d}:null},[e]);if(!e||!t&&!o||(0,JI.isReusableBlock)(i)||(0,JI.isTemplatePart)(i))return null;let s=o;return(0,Cj.jsx)(QI.ToolbarGroup,{children:(0,Cj.jsx)(QI.ToolbarButton,{onClick:()=>{s?n():r(e)},children:s?(0,wj.__)("Exit pattern"):(0,wj.__)("Edit pattern")})})}var wle=c(N(),1),Cle=c(F(),1),Ele=c(G(),1);var d0=c(Q(),1),Tle=c(nb(),1);var Jl=c(F(),1),ec=c(N(),1),em=c(Q(),1),aO=c(G(),1);var nle=c(F(),1),l0=c(N(),1),tO=c(Q(),1),oO=c(A(),1);var Qae=c(N(),1),Jae=c(oe(),1);var a0=c(C(),1);function Jf({blocks:e,placement:t="right-start",offset:o=16,anchor:r}){return(0,Jae.useViewportMatch)("medium","<")?null:(0,a0.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,a0.jsx)(Qae.Popover,{className:"block-editor-block-switcher__popover-preview",placement:t,focusOnMount:!1,offset:o,anchor:r,children:(0,a0.jsx)("div",{className:"block-editor-block-switcher__preview",children:(0,a0.jsx)(ui,{viewportWidth:601,blocks:e})})})})}var ele=c(N(),1),lv=c(Q(),1),tle=c(G(),1),eO=c(A(),1);var Eu=c(C(),1),G5e={};function ole({clientIds:e,blocks:t}){let{activeBlockVariation:o,blockVariationTransformations:r}=(0,tle.useSelect)(i=>{let{getBlockAttributes:s,canRemoveBlocks:a}=i(w),{getActiveBlockVariation:l,getBlockVariations:u}=i(lv.store),d=a(e);if(t.length!==1||!d)return G5e;let[f]=t;return{blockVariationTransformations:u(f.name,"transform"),activeBlockVariation:l(f.name,s(f.clientId))}},[e,t]);return(0,eO.useMemo)(()=>r?.filter(({name:i})=>i!==o?.name),[r,o])}var W5e=({transformations:e,onSelect:t,blocks:o})=>{let[r,n]=(0,eO.useState)();return(0,Eu.jsxs)(Eu.Fragment,{children:[r&&(0,Eu.jsx)(Jf,{blocks:(0,lv.cloneBlock)(o[0],e.find(({name:i})=>i===r).attributes)}),e?.map(i=>(0,Eu.jsx)($5e,{item:i,onSelect:t,setHoveredTransformItemName:n},i.name))]})};function $5e({item:e,onSelect:t,setHoveredTransformItemName:o}){let{name:r,icon:n,title:i}=e;return(0,Eu.jsxs)(ele.MenuItem,{className:(0,lv.getBlockMenuDefaultClassName)(r),onClick:s=>{s.preventDefault(),t(r)},onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,Eu.jsx)(rt,{icon:n,showColors:!0}),i]})}var rle=W5e;var bi=c(C(),1);function K5e(e){let t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},o=(0,oO.useMemo)(()=>{let r=Object.keys(t),n=e.reduce((i,s)=>{let{name:a}=s;return r.includes(a)?i.priorityTextTransformations.push(s):i.restTransformations.push(s),i},{priorityTextTransformations:[],restTransformations:[]});if(n.priorityTextTransformations.length===1&&n.priorityTextTransformations[0].name==="core/quote"){let i=n.priorityTextTransformations.pop();n.restTransformations.push(i)}return n},[e]);return o.priorityTextTransformations.sort(({name:r},{name:n})=>t[r]<t[n]?-1:1),o}var Y5e=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:o,onSelect:r,onSelectVariation:n,blocks:i})=>{let[s,a]=(0,oO.useState)(),{priorityTextTransformations:l,restTransformations:u}=K5e(t),d=l.length&&u.length,f=!!u.length&&(0,bi.jsx)(q5e,{restTransformations:u,onSelect:r,setHoveredTransformItemName:a});return(0,bi.jsxs)(bi.Fragment,{children:[(0,bi.jsxs)(l0.MenuGroup,{label:(0,nle.__)("Transform to"),className:e,children:[s&&(0,bi.jsx)(Jf,{blocks:(0,tO.switchToBlockType)(i,s)}),!!o?.length&&(0,bi.jsx)(rle,{transformations:o,blocks:i,onSelect:n}),l.map(m=>(0,bi.jsx)(ile,{item:m,onSelect:r,setHoveredTransformItemName:a},m.name)),!d&&f]}),!!d&&(0,bi.jsx)(l0.MenuGroup,{className:e,children:f})]})};function q5e({restTransformations:e,onSelect:t,setHoveredTransformItemName:o}){return e.map(r=>(0,bi.jsx)(ile,{item:r,onSelect:t,setHoveredTransformItemName:o},r.name))}function ile({item:e,onSelect:t,setHoveredTransformItemName:o}){let{name:r,icon:n,title:i,isDisabled:s}=e;return(0,bi.jsxs)(l0.MenuItem,{className:(0,tO.getBlockMenuDefaultClassName)(r),onClick:a=>{a.preventDefault(),t(r)},disabled:s,onMouseLeave:()=>o(null),onMouseEnter:()=>o(r),onFocus:()=>o(r),onBlur:()=>o(null),children:[(0,bi.jsx)(rt,{icon:n,showColors:!0}),i]})}var sle=Y5e;var cle=c(F(),1),ule=c(N(),1),nO=c(A(),1);var rO=c(N(),1);var cv=c(C(),1),ale=()=>{};function lle({stylesToRender:e,activeStyle:t,onSelect:o=ale,onHoverStyle:r=ale}){return!e||e.length===0?null:(0,cv.jsx)(cv.Fragment,{children:e.map(n=>{let i=n.label||n.name;return(0,cv.jsx)(rO.MenuItem,{icon:t.name===n.name?ys:null,onClick:()=>o(n),onFocus:()=>r(n),onBlur:()=>r(null),onMouseEnter:()=>r(n),onMouseLeave:()=>r(null),children:(0,cv.jsx)(rO.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},n.name)})})}var c0=c(C(),1);function iO({hoveredBlock:e,onSwitch:t}){let{clientId:o}=e,[r,n]=(0,nO.useState)(null),{onSelect:i,stylesToRender:s,activeStyle:a,genericPreviewBlock:l,className:u}=nv({clientId:o,onSwitch:t}),d=(0,nO.useMemo)(()=>{if(!r||!l)return null;let f=Zf(u,a,r);return[{...l,attributes:{...l.attributes||{},className:f}}]},[r,l,u,a]);return!s||s.length===0?null:(0,c0.jsxs)(ule.MenuGroup,{label:(0,cle.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:[d&&(0,c0.jsx)(Jf,{blocks:d}),(0,c0.jsx)(lle,{stylesToRender:s,activeStyle:a,onSelect:i,onHoverStyle:n})]})}var Tj=c(F(),1),gle=c(A(),1),sO=c(oe(),1);var Tu=c(N(),1);var mle=c(A(),1),ple=c(Q(),1);var dle=c(Q(),1),Ej=(e,t,o=new Set)=>{let{clientId:r,name:n,innerBlocks:i=[]}=e;if(!o.has(r)){if(n===t)return e;for(let s of i){let a=Ej(s,t,o);if(a)return a}}},fle=(e,t)=>{let o=(0,dle.getBlockAttributesNamesByRole)(e,"content");return o?.length?o.reduce((r,n)=>(t[n]&&(r[n]=t[n]),r),{}):t};var Z5e=(e,t)=>{let o=fle(t.name,t.attributes);e.attributes={...e.attributes,...o}},X5e=(e,t)=>{let o=t.map(n=>(0,ple.cloneBlock)(n)),r=new Set;for(let n of e){let i=!1;for(let s of o){let a=Ej(s,n.name,r);if(a){i=!0,r.add(a.clientId),Z5e(a,n);break}}if(!i)return}return o},Q5e=(e,t)=>(0,mle.useMemo)(()=>e.reduce((o,r)=>{let n=X5e(t,r.blocks);return n&&o.push({...r,transformedBlocks:n}),o},[]),[e,t]),hle=Q5e;var en=c(C(),1);function J5e({blocks:e,patterns:t,onSelect:o}){let[r,n]=(0,gle.useState)(!1),i=hle(t,e);return i.length?(0,en.jsxs)(Tu.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[r&&(0,en.jsx)(eVe,{patterns:i,onSelect:o}),(0,en.jsx)(Tu.MenuItem,{onClick:s=>{s.preventDefault(),n(!r)},icon:pr,children:(0,Tj.__)("Patterns")})]}):null}function eVe({patterns:e,onSelect:t}){let o=(0,sO.useViewportMatch)("medium","<");return(0,en.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,en.jsx)(Tu.Popover,{className:"block-editor-block-switcher__popover-preview",placement:o?"bottom":"right-start",offset:16,children:(0,en.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,en.jsx)(tVe,{patterns:e,onSelect:t})})})})}function tVe({patterns:e,onSelect:t}){return(0,en.jsx)(Tu.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,Tj.__)("Patterns list"),children:e.map(o=>(0,en.jsx)(ble,{pattern:o,onSelect:t},o.name))})}function ble({pattern:e,onSelect:t}){let o="block-editor-block-switcher__preview-patterns-container",r=(0,sO.useInstanceId)(ble,`${o}-list__item-description`);return(0,en.jsxs)("div",{className:`${o}-list__list-item`,children:[(0,en.jsxs)(Tu.Composite.Item,{render:(0,en.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?r:void 0,className:`${o}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,en.jsx)(ui,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,en.jsx)("div",{className:`${o}-list__item-title`,children:e.title})]}),!!e.description&&(0,en.jsx)(ct,{id:r,children:e.description})]})}var yle=J5e;var Qi=c(C(),1);function oVe({onClose:e,clientIds:t}){let{replaceBlocks:o,multiSelect:r,updateBlockAttributes:n}=(0,aO.useDispatch)(w),{possibleBlockTransformations:i,patterns:s,blocks:a,isUsingBindings:l,canRemove:u,hasBlockStyles:d}=(0,aO.useSelect)(T=>{let{getBlockAttributes:R,getBlocksByClientId:B,getBlockRootClientId:O,getBlockTransformItems:I,__experimentalGetPatternTransformItems:P,canRemoveBlocks:M,getBlockName:L}=T(w),{getBlockStyles:j}=T(em.store),V=O(t[0]),D=B(t),z=t.length===1,W=z&&L(t[0]),K=z&&!!j(W)?.length;return{blocks:D,possibleBlockTransformations:I(D,V),patterns:P(D,V),isUsingBindings:t.every(ne=>!!R(ne)?.metadata?.bindings),canRemove:M(t),hasBlockStyles:K}},[t]),f=ole({clientIds:t,blocks:a});function m(T){T.length>1&&r(T[0].clientId,T[T.length-1].clientId)}function h(T){let R=(0,em.switchToBlockType)(a,T);o(t,R),m(R)}function p(T){n(a[0].clientId,{...f.find(({name:R})=>R===T).attributes})}function g(T){o(t,T),m(T)}let b=a.length===1,v=b&&((0,em.isTemplatePart)(a[0])||(0,em.isReusableBlock)(a[0])),y=!!i?.length&&u&&!v,k=!!f?.length,S=!!s?.length&&u,_=y||k;if(!(d||_||S))return(0,Qi.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,Jl.__)("No transforms.")});let E=b?(0,Jl._x)("This block is connected.","block toolbar button label and description"):(0,Jl._x)("These blocks are connected.","block toolbar button label and description");return(0,Qi.jsxs)("div",{className:"block-editor-block-switcher__container",children:[S&&(0,Qi.jsx)(yle,{blocks:a,patterns:s,onSelect:T=>{g(T),e()}}),_&&(0,Qi.jsx)(sle,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:f,blocks:a,onSelect:T=>{h(T),e()},onSelectVariation:T=>{p(T),e()}}),d&&(0,Qi.jsx)(iO,{hoveredBlock:a[0],onSwitch:e}),l&&(0,Qi.jsx)(ec.MenuGroup,{children:(0,Qi.jsx)(ec.__experimentalText,{className:"block-editor-block-switcher__binding-indicator",children:E})})]})}var rVe=({children:e,clientIds:t,label:o,text:r})=>{let i=t.length===1?(0,Jl.__)("Change block type or style"):(0,Jl.sprintf)((0,Jl._n)("Change type of %d block","Change type of %d blocks",t.length),t.length);return(0,Qi.jsx)(ec.ToolbarGroup,{children:(0,Qi.jsx)(ec.ToolbarItem,{children:s=>(0,Qi.jsx)(ec.DropdownMenu,{className:"block-editor-block-switcher",label:o,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:e,text:r,toggleProps:{description:i,...s},menuProps:{orientation:"both"},children:({onClose:a})=>(0,Qi.jsx)(oVe,{onClose:a,clientIds:t})})})})},vle=rVe;var kle=c(F(),1),dv=c(N(),1);var uv=c(C(),1);function Sle({clientIds:e,children:t,label:o,text:r}){return(0,uv.jsx)(dv.ToolbarGroup,{children:(0,uv.jsx)(dv.ToolbarItem,{children:n=>(0,uv.jsx)(dv.DropdownMenu,{className:"block-editor-block-switcher",label:o,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:t,text:r,toggleProps:{description:(0,kle.__)("Change block style"),...n},menuProps:{orientation:"both"},children:({onClose:i})=>(0,uv.jsx)("div",{className:"block-editor-block-switcher__container",children:(0,uv.jsx)(iO,{hoveredBlock:{clientId:e[0]},onSwitch:i})})})})})}var fv=c(N(),1),u0=c(F(),1),lO=c(A(),1),_le=c(G(),1);var Bu=c(C(),1);function nVe({clientIds:e,blockTitle:t}){let o=(0,_le.useSelect)(i=>{let{getBlockAttributes:s}=i(w);return s(e?.[0])?.metadata?.name},[e]),r=e.length===1,n;return r&&o?n=(0,u0.sprintf)((0,u0.__)('This %1$s is editable using the "%2$s" override.'),t.toLowerCase(),o):n=(0,u0.__)("These blocks are editable using overrides."),(0,Bu.jsx)(fv.__experimentalText,{children:n})}function xle({icon:e,clientIds:t,blockTitle:o,label:r}){let[n,i]=(0,lO.useState)(!1),s=(0,lO.useRef)();return(0,Bu.jsxs)(Bu.Fragment,{children:[(0,Bu.jsx)(fv.ToolbarButton,{ref:s,className:"block-editor-block-toolbar__pattern-overrides-indicator",icon:e,label:r,onClick:()=>i(!n),"aria-expanded":n}),n&&(0,Bu.jsx)(fv.Popover,{anchor:s.current,onClose:()=>i(!1),placement:"bottom-start",offset:16,className:"block-editor-block-toolbar__pattern-overrides-popover",children:(0,Bu.jsx)(nVe,{clientIds:t,blockTitle:o})})]})}var mv=c(C(),1);function iVe({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r,getBlockParentsByBlockName:n,canRemoveBlocks:i,getTemplateLock:s,getBlockEditingMode:a,canEditBlock:l}=H(e(w)),{getBlockStyles:u}=e(d0.store),d=t.some(R=>s(R)==="contentOnly"),f=t.length===1,m=f&&o(t[0]),h=f&&!!u(m)?.length,p=t.some(R=>!!r(R)?.metadata?.patternName),g=t.every(R=>tS(r(R)?.metadata?.bindings)),b=t.every(R=>n(R,"core/block",!0).length>0),v=i(t),y=t.every(R=>l(R)),k=a(t[0]),S=k==="default",_=k==="contentOnly",E=!p&&S&&(h||v)&&!d&&y,T=g&&b;return E?"switcher":_&&h&&!g&&y?"styles-only":T?"pattern-overrides":"default"}function sVe({select:e,clientIds:t}){let{getBlockName:o,getBlockAttributes:r}=H(e(w)),n=t.length===1,i=t[0],s=r(i);if(n&&s?.metadata?.patternName)return Ss;let a=o(i),l=(0,d0.getBlockType)(a);if(n){let{getActiveBlockVariation:f}=e(d0.store);return f(a,s)?.icon||l?.icon}let u=t.map(f=>o(f));return new Set(u).size===1?l?.icon:bp}function Ble({clientIds:e,isSynced:t}){let{icon:o,showIconLabels:r,variant:n}=(0,Ele.useSelect)(f=>({icon:sVe({select:f,clientIds:e}),showIconLabels:f(Tle.store).get("core","showIconLabels"),variant:iVe({select:f,clientIds:e})}),[e]),i=Kr({clientId:e?.[0],maximumLength:35}),s=e.length===1,a=s&&t&&!r,l=s?i:(0,Cle.__)("Multiple blocks selected"),u=a&&i?i:void 0,d=(0,mv.jsx)(rt,{className:"block-editor-block-toolbar__block-icon",icon:o});return n==="switcher"?(0,mv.jsx)(vle,{clientIds:e,label:l,text:u,children:d}):n==="styles-only"?(0,mv.jsx)(Sle,{clientIds:e,label:l,text:u,children:d}):n==="pattern-overrides"?(0,mv.jsx)(xle,{icon:d,clientIds:e,blockTitle:i,label:l}):(0,mv.jsx)(wle.ToolbarButton,{disabled:!0,className:"block-editor-block-toolbar__block-icon-button",title:l,icon:d,text:u})}var Pt=c(C(),1);function Rj({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,variant:n="unstyled"}){let{blockClientId:i,blockClientIds:s,isDefaultEditingMode:a,blockType:l,toolbarKey:u,shouldShowVisualToolbar:d,showParentSelector:f,isUsingBindings:m,isSectionContainer:h,hasContentOnlyLocking:p,showShuffleButton:g,showSlots:b,showGroupButtons:v,showLockButtons:y,showBlockVisibilityButton:k,showSwitchSectionStyleButton:S,areSelectedBlocksHiddenOnViewport:_,canEdit:x}=(0,Ple.useSelect)(j=>{let{canEditBlock:V}=j(w),{getBlockName:D,getBlockMode:z,getBlockParents:W,getSelectedBlockClientIds:K,isBlockValid:ne,getBlockEditingMode:X,getBlockAttributes:ee,getSettings:Y,getTemplateLock:$,getParentSectionBlock:Z,isZoomOut:q,isSectionBlock:J,isBlockHiddenAtViewport:re}=H(j(w)),ie=K(),ce=ie[0],_e=W(ce),we=Z(ce)??_e[_e.length-1],Te=D(we),Fe=(0,Ru.getBlockType)(Te),Qe=X(ce),Ae=Qe==="default",nt=D(ce),ke=ie.every(Le=>ne(Le)),Lt=ie.every(Le=>z(Le)==="visual"),le=ie.every(Le=>!!ee(Le)?.metadata?.bindings),fe=ie.some(Le=>$(Le)==="contentOnly"),Re=q(),Ze=J(ce),gt=V(ce),tt=gt&&(Re||Ze),ut=Y()?.[bs]?.toLowerCase()||"desktop",Mt=ie.length>0&&ie.every(Le=>re(Le,ut));return{blockClientId:ce,blockClientIds:ie,isDefaultEditingMode:Ae,blockType:ce&&(0,Ru.getBlockType)(nt),shouldShowVisualToolbar:ke&&Lt,toolbarKey:`${ce}${we}`,showParentSelector:!Re&&Fe&&Qe!=="contentOnly"&&X(we)!=="disabled"&&(0,Ru.hasBlockSupport)(Fe,"__experimentalParentSelector",!0)&&ie.length===1,isUsingBindings:le,isSectionContainer:Ze,hasContentOnlyLocking:fe,showShuffleButton:Re,showSlots:!Re,showGroupButtons:!Re,showLockButtons:!Re,showBlockVisibilityButton:!Re,showSwitchSectionStyleButton:tt,areSelectedBlocksHiddenOnViewport:Mt,canEdit:gt}},[]),E=(0,Bj.useRef)(null),T=(0,Bj.useRef)(),R=Yy({ref:T}),B=!(0,Ile.useViewportMatch)("medium","<");if(!LI())return null;let I=s.length>1,P=(0,Ru.isReusableBlock)(l)||(0,Ru.isTemplatePart)(l),M=U("block-editor-block-contextual-toolbar",{"has-parent":f}),L=U("block-editor-block-toolbar",{"is-synced":P,"is-connected":m});return(0,Pt.jsx)(ov,{focusEditorOnEscape:!0,className:M,"aria-label":(0,Rle.__)("Block tools"),variant:n==="toolbar"?void 0:n,focusOnMount:t,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,children:(0,Pt.jsxs)("div",{ref:E,className:L,children:[f&&!I&&B&&(0,Pt.jsx)(Xie,{}),(d||I)&&(0,Pt.jsx)("div",{ref:T,...R,children:(0,Pt.jsxs)(Ole.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,Pt.jsx)(Ble,{clientIds:s,isSynced:P}),a&&k&&(0,Pt.jsx)(S4,{clientIds:s}),!I&&a&&y&&(0,Pt.jsx)(ij,{clientId:i}),(0,Pt.jsx)(rI,{clientIds:s,hideDragHandle:e})]})}),!_&&!p&&d&&I&&v&&(0,Pt.jsx)(ej,{}),!I&&x&&(0,Pt.jsx)(Xae,{clientId:s[0]}),!_&&g&&(0,Pt.jsx)(kae,{clientId:s[0]}),!_&&S&&(0,Pt.jsx)(qae,{clientId:s[0]}),!_&&d&&b&&(0,Pt.jsxs)(Pt.Fragment,{children:[!h&&(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(mo.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,Pt.jsx)(mo.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,Pt.jsx)(mo.Slot,{className:"block-editor-block-toolbar__slot"}),(0,Pt.jsx)(mo.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"})]}),(0,Pt.jsx)(mo.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,Pt.jsx)(lI.Slot,{})]}),(0,Pt.jsx)(cae,{clientIds:s}),(0,Pt.jsx)(RI,{clientIds:s})]})},u)}function Ale({hideDragHandle:e,variant:t}){return(0,Pt.jsx)(Rj,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}var Pj=c(C(),1);function Nle({clientId:e,isTyping:t,__unstableContentRef:o}){let{capturingClientId:r,isInsertionPointVisible:n,lastClientId:i}=qP(e),s=(0,pv.useRef)();(0,pv.useEffect)(()=>{s.current=void 0},[e]);let{stopTyping:a}=(0,Lle.useDispatch)(w),l=(0,pv.useRef)(!1);(0,Mle.useShortcut)("core/block-editor/focus-toolbar",()=>{l.current=!0,a(!0)}),(0,pv.useEffect)(()=>{l.current=!1});let u=r||e,d=YP({contentElement:o?.current,clientId:u});return!t&&(0,Pj.jsx)(Sh,{clientId:u,bottomClientId:i,className:U("block-editor-block-list__block-popover",{"is-insertion-point-visible":n}),resize:!1,...d,__unstableContentRef:o,children:(0,Pj.jsx)(Rj,{focusOnMount:l.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:f=>{s.current=f},variant:"toolbar"})})}var cO=c(G(),1),uO=c(A(),1);var Dle=c(N(),1);var Vle=c(F(),1),Fle=c(C(),1);function aVe({onClick:e}){return(0,Fle.jsx)(Dle.Button,{variant:"primary",icon:ks,size:"compact",className:U("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,Vle._x)("Add pattern","Generic label for pattern inserter button")})}var zle=aVe;var Ij=c(C(),1);function lVe(){let[e,t]=(0,uO.useState)(!1),{hasSelection:o,blockOrder:r,setInserterIsOpened:n,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:a,insertionPointVisible:l}=(0,cO.useSelect)(p=>{let{getSettings:g,getBlockOrder:b,getSelectionStart:v,getSelectedBlockClientId:y,getSectionRootClientId:k,getBlockInsertionPoint:S,isBlockInsertionPointVisible:_}=H(p(w)),x=k();return{hasSelection:!!v().clientId,blockOrder:b(x),sectionRootClientId:x,setInserterIsOpened:g().__experimentalSetIsInserterOpened,selectedBlockClientId:y(),blockInsertionPoint:S(),insertionPointVisible:_()}},[]),{showInsertionPoint:u}=H((0,cO.useDispatch)(w));if((0,uO.useEffect)(()=>{let p=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(p)}},[]),!e||!o)return null;let d=s,m=r.findIndex(p=>s===p)+1,h=r[m];return l&&a?.index===m?null:(0,Ij.jsx)(_P,{previousClientId:d,nextClientId:h,children:(0,Ij.jsx)(zle,{onClick:()=>{n({rootClientId:i,insertionIndex:m,tab:"patterns",category:"all"}),u(i,m,{operation:"insert"})}})})}var jle=lVe;var Hle=c(G(),1),Ule=c(Q(),1);function Gle(){return(0,Hle.useSelect)(e=>{let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getBlock:r,getBlockMode:n,getSettings:i,isTyping:s,isBlockInterfaceHidden:a}=H(e(w)),l=t()||o(),u=r(l),d=!!l&&!!u,f=d&&(0,Ule.isUnmodifiedDefaultBlock)(u,"content")&&n(l)!=="html",m=l&&!s()&&f,h=!a()&&!i().hasFixedToolbar&&!m&&d&&!f;return{showEmptyBlockSideInserter:m,showBlockToolbarPopover:h}},[])}var $s=c(C(),1);function cVe(e){let{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:o,getSettings:r,isTyping:n,isDragging:i,isZoomOut:s,getViewportModalClientIds:a}=H(e(w));return{clientId:t()||o(),hasFixedToolbar:r().hasFixedToolbar,isTyping:n(),isZoomOutMode:s(),isDragging:i(),viewportModalClientIds:a()}}function f0({children:e,__unstableContentRef:t,...o}){let{clientId:r,hasFixedToolbar:n,isTyping:i,isZoomOutMode:s,isDragging:a,viewportModalClientIds:l}=(0,hv.useSelect)(cVe,[]),u=(0,Wle.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:d,getSelectedBlockClientIds:f,getBlockRootClientId:m,getBlockEditingMode:h,getBlockName:p,isGroupable:g,getEditedContentOnlySection:b,canEditBlock:v}=H((0,hv.useSelect)(w)),{getGroupingBlockName:y}=(0,hv.useSelect)(gv.store),{showEmptyBlockSideInserter:k,showBlockToolbarPopover:S}=Gle(),_=Zy(),[x,E]=(0,dO.useState)(null),{canRename:T}=Dh(p(f()[0])),{duplicateBlocks:R,removeBlocks:B,replaceBlocks:O,insertAfterBlock:I,insertBeforeBlock:P,selectBlock:M,moveBlocksUp:L,moveBlocksDown:j,expandBlock:V,stopEditingContentOnlySection:D,showViewportModal:z,hideViewportModal:W}=H((0,hv.useDispatch)(w));function K(ee){if(!ee.defaultPrevented){if(u("core/block-editor/move-up",ee)||u("core/block-editor/move-down",ee)){let Y=f();if(Y.length){ee.preventDefault();let $=m(Y[0]);(u("core/block-editor/move-up",ee)?"up":"down")==="up"?L(Y,$):j(Y,$);let q=Array.isArray(Y)?Y.length:1,J=(0,bv.sprintf)((0,bv._n)("%d block moved.","%d blocks moved.",Y.length),q);(0,Lj.speak)(J)}}else if(u("core/block-editor/duplicate",ee)){let Y=f();Y.length&&(ee.preventDefault(),R(Y))}else if(u("core/block-editor/remove",ee)){let Y=f();Y.length&&(ee.preventDefault(),B(Y))}else if(u("core/block-editor/paste-styles",ee)){let Y=f();if(Y.length){ee.preventDefault();let $=d(Y);_($)}}else if(u("core/block-editor/insert-after",ee)){let Y=f();Y.length&&(ee.preventDefault(),I(Y[Y.length-1]))}else if(u("core/block-editor/insert-before",ee)){let Y=f();Y.length&&(ee.preventDefault(),P(Y[0]))}else if(u("core/block-editor/unselect",ee)){if(ee.target.closest("[role=toolbar]"))return;let Y=f();Y.length>1&&(ee.preventDefault(),M(Y[0]))}else if(u("core/block-editor/collapse-list-view",ee)){if((0,Oj.isTextField)(ee.target)||(0,Oj.isTextField)(ee.target?.contentWindow?.document?.activeElement))return;ee.preventDefault(),V(r)}else if(u("core/block-editor/group",ee)){let Y=f();if(Y.length>1&&g(Y)){ee.preventDefault();let $=d(Y),Z=y(),q=(0,gv.switchToBlockType)($,Z);O(Y,q),(0,Lj.speak)((0,bv.__)("Selected blocks are grouped."))}}else if(u("core/block-editor/rename",ee)){let Y=f();if(Y.length===1){let $=h(Y[0])==="contentOnly";T&&!$&&v(Y[0])&&(ee.preventDefault(),E(Y[0]))}}else if(u("core/block-editor/toggle-block-visibility",ee)){let Y=f();if(Y.length){if(ee.preventDefault(),!d(Y).every(q=>(0,gv.hasBlockSupport)(q.name,"visibility",!0))||Y.some(q=>h(q)!=="default"||!v(q)))return;z(Y)}}u("core/block-editor/stop-editing-as-blocks",ee)&&b()&&D()}}let ne=kh(t),X=kh(t);return(0,$s.jsxs)("div",{...o,onKeyDown:K,className:U(o.className,{"block-editor-block-tools--is-dragging":a}),children:[(0,$s.jsxs)(zy.Provider,{value:(0,dO.useRef)(!1),children:[!i&&!s&&(0,$s.jsx)(pne,{__unstableContentRef:t}),k&&(0,$s.jsx)(Lie,{__unstableContentRef:t,clientId:r}),S&&(0,$s.jsx)(Nle,{__unstableContentRef:t,clientId:r,isTyping:i}),!s&&!n&&(0,$s.jsx)(Aj.Popover.Slot,{name:"block-toolbar",ref:ne}),e,(0,$s.jsx)(Aj.Popover.Slot,{name:"__unstable-block-tools-after",ref:X}),s&&!a&&(0,$s.jsx)(jle,{__unstableContentRef:t})]}),x&&(0,$s.jsx)(Mh,{clientId:x,onClose:()=>E(null)}),l&&(0,$s.jsx)(b4,{clientIds:l,onClose:W})]})}var Ks=c(F(),1),tc=c(Q(),1),Pu=c(G(),1),Mj=c(Kle(),1);var uVe=()=>function(){let{replaceBlocks:t,multiSelect:o}=(0,Pu.useDispatch)(w),{blocks:r,clientIds:n,canRemove:i,possibleBlockTransformations:s,invalidSelection:a}=(0,Pu.useSelect)(h=>{let{getBlockRootClientId:p,getBlockTransformItems:g,getSelectedBlockClientIds:b,getBlocksByClientId:v,canRemoveBlocks:y}=h(w),k=b(),S=v(k);if(S.filter(x=>!x).length>0)return{invalidSelection:!0};let _=p(k[0]);return{blocks:S,clientIds:k,possibleBlockTransformations:g(S,_),canRemove:y(k),invalidSelection:!1}},[]);if(a)return{isLoading:!1,commands:[]};let l=r.length===1&&(0,tc.isTemplatePart)(r[0]);function u(h){h.length>1&&o(h[0].clientId,h[h.length-1].clientId)}function d(h){let p=(0,tc.switchToBlockType)(r,h);t(n,p),u(p)}let f=!!s.length&&i&&!l;return!n||n.length<1||!f?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(h=>{let{name:p,title:g,icon:b}=h,v=!b?.src||b?.src==="block-default"?{src:uS}:b;return{name:"core/block-editor/transform-to-"+p.replace("/","-"),label:(0,Ks.sprintf)((0,Ks.__)("Transform to %s"),g),icon:v?.src,category:"command",callback:({close:y})=>{d(p),y()}}})}},dVe=()=>function(){let{clientIds:t,isUngroupable:o,isGroupable:r}=(0,Pu.useSelect)(P=>{let{getSelectedBlockClientIds:M,isUngroupable:L,isGroupable:j}=P(w);return{clientIds:M(),isUngroupable:L(),isGroupable:j()}},[]),{canInsertBlockType:n,getBlockRootClientId:i,getBlocksByClientId:s,canRemoveBlocks:a,isBlockHiddenAnywhere:l}=H((0,Pu.useSelect)(w)),{getBlockEditingMode:u}=(0,Pu.useSelect)(w),{getDefaultBlockName:d,getGroupingBlockName:f}=(0,Pu.useSelect)(tc.store),m=s(t),h=(0,Pu.useDispatch)(w),{removeBlocks:p,replaceBlocks:g,duplicateBlocks:b,insertAfterBlock:v,insertBeforeBlock:y}=h,k=()=>{if(!m.length)return;let P=f(),M=(0,tc.switchToBlockType)(m,P);M&&g(t,M)},S=()=>{if(!m.length)return;let P=m[0].innerBlocks;P.length&&g(t,P)};if(!t||t.length<1)return{isLoading:!1,commands:[]};let{showViewportModal:_}=H(h),x=i(t[0]),E=n(d(),x),T=m.every(P=>!!P&&(0,tc.hasBlockSupport)(P.name,"multiple",!0)&&n(P.name,x)),R=a(t),B=[];T&&B.push({name:"duplicate",label:(0,Ks.__)("Duplicate"),callback:()=>b(t,!0),icon:bp}),E&&B.push({name:"add-before",label:(0,Ks.__)("Add before"),callback:()=>{let P=Array.isArray(t)?t[0]:P;y(P)},icon:ks},{name:"add-after",label:(0,Ks.__)("Add after"),callback:()=>{let P=Array.isArray(t)?t[t.length-1]:P;v(P)},icon:ks}),r&&B.push({name:"Group",label:(0,Ks.__)("Group"),callback:k,icon:hS}),o&&B.push({name:"ungroup",label:(0,Ks.__)("Ungroup"),callback:S,icon:EV}),R&&B.push({name:"remove",label:(0,Ks.__)("Delete"),callback:()=>p(t,!0),icon:wV});let O=m.every(P=>!!P&&(0,tc.hasBlockSupport)(P.name,"visibility",!0)),I=t.every(P=>u(P)==="default");if(O&&I){let P=t.some(M=>l(M));B.push({name:"toggle-visibility",label:P?(0,Ks.__)("Show"):(0,Ks.__)("Hide"),callback:()=>_(t),icon:P?Ep:ba})}return{isLoading:!1,commands:B.map(P=>({...P,name:"core/block-editor/action-"+P.name,category:"command",callback:({close:M})=>{P.callback(),M()}}))}},fO=()=>{(0,Mj.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:uVe()}),(0,Mj.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:dVe(),context:"block-selection-edit"})};var jn=c(C(),1),mO=(0,Xle.createSlotFill)(Symbol("BlockCanvasCover"));function Yle({children:e}){return(0,jn.jsx)("div",{className:"block-canvas-cover",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},children:e})}var fVe={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function Nj({shouldIframe:e=!0,height:t="300px",children:o=(0,jn.jsx)(vy,{}),styles:r,contentRef:n,iframeProps:i}){fO();let s=(0,pO.useViewportMatch)("medium","<"),a=Mx(),l=_h(),u=(0,qle.useRef)(),d=(0,pO.useMergeRefs)([n,l,u]),f=(0,Zle.useSelect)(h=>H(h(w)).getZoomLevel(),[]),m=f!==100&&!s?{scale:f,frameSize:"40px"}:{};return e?(0,jn.jsx)(f0,{__unstableContentRef:u,style:{height:t,display:"flex"},children:(0,jn.jsxs)(dy,{...i,...m,ref:a,contentRef:d,style:{...i?.style},name:"editor-canvas",children:[(0,jn.jsx)(mO.Slot,{fillProps:{containerRef:u},children:h=>h.map((p,g)=>(0,jn.jsx)(Yle,{children:p},g))}),(0,jn.jsx)(ru,{styles:r}),o]})}):(0,jn.jsxs)(f0,{__unstableContentRef:u,style:{height:t,display:"flex"},children:[(0,jn.jsx)(mO.Slot,{fillProps:{containerRef:u},children:h=>h.map((p,g)=>(0,jn.jsx)(Yle,{children:p},g))}),(0,jn.jsx)(ru,{styles:r,scope:":where(.editor-styles-wrapper)",transformOptions:fVe}),(0,jn.jsx)(fR,{ref:d,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%",overflow:"auto"},children:o})]})}function mVe({children:e,height:t,styles:o}){return(0,jn.jsx)(Nj,{height:t,styles:o,children:e})}var Qle=mVe;var oc=c(N(),1),Jle=c(F(),1),ece=c(Bt(),1),tce=c(Je(),1),Ys=c(C(),1),pVe=()=>(0,Ys.jsx)(oc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,Ys.jsx)(oc.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})}),hVe=({style:e,className:t})=>(0,Ys.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,Ys.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,Ys.jsx)(pVe,{})})}),gVe=({TextColor:e,BackgroundColor:t})=>function({onToggle:r,isOpen:n}){let i=s=>{!n&&s.keyCode===ece.DOWN&&(s.preventDefault(),r())};return(0,Ys.jsx)(oc.ToolbarGroup,{children:(0,Ys.jsx)(oc.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,Jle.__)("Open Colors Selector"),onClick:r,onKeyDown:i,icon:(0,Ys.jsx)(t,{children:(0,Ys.jsx)(e,{children:(0,Ys.jsx)(hVe,{})})})})})},bVe=({children:e,...t})=>((0,tce.default)("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,Ys.jsx)(oc.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:gVe(t),renderContent:()=>e})),oce=bVe;var cue=c(Je(),1),PO=c(N(),1),Hj=c(F(),1),uue=c(G(),1),due=c(A(),1);var Cv=c(oe(),1),sue=c(N(),1);var h0=c(G(),1),aue=c(Je(),1),Xo=c(A(),1),jj=c(F(),1);var wO=c(N(),1),CO=c(A(),1),EO=c(G(),1);var nce=c(oe(),1),ice=c(Cr(),1),sce=c(G(),1),vO=c(A(),1),yv=c(F(),1);var hO=c(A(),1),gO=(0,hO.createContext)({});gO.displayName="ListViewContext";var tm=()=>(0,hO.useContext)(gO);var bO=c(A(),1),rce=c(C(),1);function yO({children:e,...t}){let o=(0,bO.useRef)();return(0,bO.useEffect)(()=>{o.current&&(o.current.textContent=o.current.textContent)},[e]),(0,rce.jsx)("div",{hidden:!0,...t,ref:o,children:e})}var m0=c(C(),1),Dj=(0,vO.forwardRef)(({nestingLevel:e,blockCount:t,clientId:o,...r},n)=>{let{insertedBlock:i,setInsertedBlock:s}=tm(),a=(0,nce.useInstanceId)(Dj),{directInsert:l,hideInserter:u}=(0,sce.useSelect)(p=>{let{getBlockListSettings:g,getTemplateLock:b,isZoomOut:v}=H(p(w)),k=g(o)?.directInsert||!1,S=!!b(o)||v();return{directInsert:k,hideInserter:S}},[o]),d=Kr({clientId:o,context:"list-view"}),f=Kr({clientId:i?.clientId,context:"list-view"});if((0,vO.useEffect)(()=>{f?.length&&(0,ice.speak)((0,yv.sprintf)((0,yv.__)("%s block inserted"),f),"assertive")},[f]),u)return null;let m=`list-view-appender__${a}`,h=(0,yv.sprintf)((0,yv.__)("Append to %1$s block at position %2$d, Level %3$d"),d,t+1,e);return(0,m0.jsxs)("div",{className:"list-view-appender",children:[(0,m0.jsx)(Fs,{ref:n,rootClientId:o,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:l,__experimentalIsQuick:!0,...r,toggleProps:{"aria-describedby":m},onSelectOrClose:p=>{p?.clientId&&s(p)}}),(0,m0.jsx)(yO,{id:m,children:h})]})});var rm=c(Q(),1),Fh=c(N(),1),_O=c(oe(),1);var Zo=c(A(),1),Sv=c(G(),1),Fj=c(F(),1),xO=c(Bt(),1),Ice=c(Ix(),1),Oce=c(Ba(),1),Ace=c(Cr(),1);var ace=c(N(),1),lce=c(oe(),1),cce=c(A(),1);var uce=c(C(),1),yVe=JK(ace.__experimentalTreeGridRow),vVe=(0,cce.forwardRef)(({isDragged:e,isSelected:t,position:o,level:r,rowCount:n,children:i,className:s,path:a,...l},u)=>{let d=PT({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:a}),f=(0,lce.useMergeRefs)([u,d]);return(0,uce.jsx)(yVe,{ref:f,className:U("block-editor-list-view-leaf",s),level:r,positionInSet:o,setSize:n,isExpanded:void 0,...l,children:i})}),dce=vVe;var fce=c(at(),1),mce=c(A(),1);function pce({isSelected:e,selectedClientIds:t,rowItemRef:o}){let r=t.length===1;(0,mce.useLayoutEffect)(()=>{if(!e||!r||!o.current)return;let n=(0,fce.getScrollContainer)(o.current),{ownerDocument:i}=o.current;if(n===i.body||n===i.documentElement||!n)return;let a=o.current.getBoundingClientRect(),l=n.getBoundingClientRect();(a.top<l.top||a.bottom>l.bottom)&&o.current.scrollIntoView()},[e,r,o])}var xce=c(A(),1);var vv=c(N(),1),kce=c(A(),1);var SO=c(Bt(),1),Sce=c(G(),1);var hce=c(F(),1),Vj=c(C(),1);function kO({onClick:e}){return(0,Vj.jsx)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander",children:(0,Vj.jsx)(We,{icon:(0,hce.isRTL)()?dS:Td})})}var gce=c(A(),1),bce=c(G(),1);var kVe=3,yce={"core/image":({clientId:e,attributes:t})=>{if(t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/cover":({clientId:e,attributes:t})=>{if(t.backgroundType==="image"&&t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/media-text":({clientId:e,attributes:t})=>{if(t.mediaType==="image"&&t.mediaUrl)return{url:t.mediaUrl,alt:t.mediaAlt||"",clientId:e}},"core/gallery":({innerBlocks:e})=>{let t=[],o=e?.length?yce[e[0].name]:void 0;if(!o)return t;for(let r of e){let n=o(r);if(n&&t.push(n),t.length>=kVe)return t}return t}};function SVe(e,t){let o=yce[e.name],r=o?o(e):void 0;return r?Array.isArray(r)?t?[]:r:[r]:[]}function vce({clientId:e,isExpanded:t}){let{block:o}=(0,bce.useSelect)(n=>({block:n(w).getBlock(e)}),[e]);return(0,gce.useMemo)(()=>SVe(o,t),[o,t])}var qo=c(C(),1),{Badge:_Ve}=H(vv.privateApis);function xVe({className:e,block:{clientId:t},onClick:o,onContextMenu:r,onMouseDown:n,onToggleExpanded:i,tabIndex:s,onFocus:a,onDragStart:l,onDragEnd:u,draggable:d,isExpanded:f,ariaDescribedBy:m},h){let p=ro(t),g=Kr({clientId:t,context:"list-view"}),{isLocked:b}=Zi(t),{hasPatternName:v,blockVisibility:y}=(0,Sce.useSelect)(R=>{let{getBlockAttributes:B}=H(R(w)),O=B(t);return{hasPatternName:!!O?.metadata?.patternName,blockVisibility:O?.metadata?.blockVisibility}},[t]),k=b,S=p?.positionType==="sticky",_=vce({clientId:t,isExpanded:f}),x=B_(y),E=R=>{R.dataTransfer.clearData(),l?.(R)};function T(R){(R.keyCode===SO.ENTER||R.keyCode===SO.SPACE)&&o(R)}return(0,qo.jsxs)("a",{className:U("block-editor-list-view-block-select-button",e),onClick:o,onContextMenu:r,onKeyDown:T,onMouseDown:n,ref:h,tabIndex:s,onFocus:a,onDragStart:E,onDragEnd:u,draggable:d,href:`#block-${t}`,"aria-describedby":m,"aria-expanded":f,children:[(0,qo.jsx)(kO,{onClick:i}),(0,qo.jsx)(rt,{icon:v?Ss:p?.icon,showColors:!0,context:"list-view"}),(0,qo.jsxs)(vv.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,qo.jsx)(vv.__experimentalTruncate,{ellipsizeMode:"auto",children:g})}),p?.anchor&&(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,qo.jsx)(_Ve,{className:"block-editor-list-view-block-select-button__anchor",children:p.anchor})}),S&&(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,qo.jsx)(We,{icon:O5})}),_.length?(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:_.map((R,B)=>(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${R.url})`,zIndex:_.length-B}},R.clientId))}):null,!!x&&(0,qo.jsxs)(lt.Root,{children:[(0,qo.jsx)(lt.Trigger,{render:(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility","aria-hidden":"true",children:(0,qo.jsx)(We,{icon:ba})})}),(0,qo.jsx)(lt.Popup,{children:x})]}),k&&(0,qo.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,qo.jsx)(We,{icon:w5})})]})]})}var _ce=(0,kce.forwardRef)(xVe);var om=c(C(),1),wVe=(0,xce.forwardRef)(({onClick:e,onToggleExpanded:t,block:o,isSelected:r,position:n,siblingBlockCount:i,level:s,isExpanded:a,selectedClientIds:l,...u},d)=>{let{clientId:f}=o,{AdditionalBlockContent:m,insertedBlock:h,setInsertedBlock:p}=tm(),g=l.includes(f)?l:[f];return(0,om.jsxs)(om.Fragment,{children:[m&&(0,om.jsx)(m,{block:o,insertedBlock:h,setInsertedBlock:p}),(0,om.jsx)(QP,{appendToOwnerDocument:!0,clientIds:g,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:b,onDragStart:v,onDragEnd:y})=>(0,om.jsx)(_ce,{ref:d,className:"block-editor-list-view-block-contents",block:o,onClick:e,onToggleExpanded:t,isSelected:r,position:n,siblingBlockCount:i,level:s,draggable:b,onDragStart:v,onDragEnd:y,isExpanded:a,...u})})]})}),wce=wVe;var Vh=c(F(),1),Cce=c(at(),1),Ece=(e,t,o)=>(0,Vh.sprintf)((0,Vh.__)("Block %1$d of %2$d, Level %3$d."),e,t,o),Tce=(e,t)=>[e?.positionLabel?`${(0,Vh.sprintf)((0,Vh.__)("Position: %s"),e.positionLabel)}.`:void 0,t?(0,Vh.__)("This block is locked."):void 0].filter(Boolean).join(" "),Bce=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function Rce(e,t,o,r){let n=[...o,e],i=[...r,t],s=Math.min(n.length,i.length)-1,a=n[s],l=i[s];return{start:a,end:l}}function kv(e,t){if(!t)return;let o=`[role=row][data-block="${e}"]`;return new Promise(r=>{if(t.querySelector(o))return r(t.querySelector(o));let n=null,i=new window.MutationObserver(()=>{t.querySelector(o)&&(clearTimeout(n),i.disconnect(),r(t.querySelector(o)))});i.observe(t,{childList:!0,subtree:!0}),n=setTimeout(()=>{i.disconnect(),r(null)},3e3)}).then(r=>{r&&r.isConnected&&Cce.focus.focusable.find(r)?.[0]?.focus()})}function Pce({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:o,clientId:r,firstDraggedBlockIndex:n,isDragged:i}){let s,a,l;if(!i){a=!1;let u=e[r];l=u>n,t!=null&&n!==void 0?u!==void 0&&(u>=n&&u<t?s="up":u<n&&u>=t?s="down":s="normal",a=typeof t=="number"&&t-1===u&&o==="inside"):t===null&&n!==void 0?u!==void 0&&u>=n?s="up":s="normal":t!=null&&n===void 0?u!==void 0&&(u<t?s="normal":s="down"):t===null&&(s="normal")}return{displacement:s,isNesting:a,isAfterDraggedBlocks:l}}var Or=c(C(),1);function Lce({block:{clientId:e},displacement:t,isAfterDraggedBlocks:o,isDragged:r,isNesting:n,isSelected:i,isBranchSelected:s,selectBlock:a,position:l,level:u,rowCount:d,siblingBlockCount:f,showBlockMovers:m,path:h,isExpanded:p,selectedClientIds:g,isSyncedBranch:b}){let v=(0,Zo.useRef)(null),y=(0,Zo.useRef)(null),k=(0,Zo.useRef)(null),[S,_]=(0,Zo.useState)(!1),[x,E]=(0,Zo.useState)(),[T,R]=(0,Zo.useState)(!1),{isLocked:B}=Zi(e),O=i&&g[0]===e,I=i&&g[g.length-1]===e,{toggleBlockHighlight:P,duplicateBlocks:M,multiSelect:L,replaceBlocks:j,removeBlocks:V,insertAfterBlock:D,insertBeforeBlock:z,showViewportModal:W}=H((0,Sv.useDispatch)(w)),K=(0,_O.useDebounce)(P,50),{canInsertBlockType:ne,getSelectedBlockClientIds:X,getPreviousBlockClientId:ee,getBlockRootClientId:Y,getBlockOrder:$,getBlockParents:Z,getBlockEditingMode:q,getBlocksByClientId:J,canEditBlock:re,canMoveBlock:ie,canRemoveBlocks:ce,isGroupable:_e}=(0,Sv.useSelect)(w),{getGroupingBlockName:ae}=(0,Sv.useSelect)(rm.store),we=ro(e),Te=Zy(),{block:Fe,blockName:Qe,allowRightClickOverrides:Ae}=(0,Sv.useSelect)(me=>{let{getBlock:$t,getBlockName:Oe,getSettings:uo}=H(me(w));return{block:$t(e),blockName:Oe(e),allowRightClickOverrides:uo().allowRightClickOverrides}},[e]),{canRename:nt}=Dh(Qe),ke=(0,rm.hasBlockSupport)(Qe,"__experimentalToolbar",!0),le=`list-view-block-select-button__description-${(0,_O.useInstanceId)(Lce)}`,{expand:fe,collapse:Re,collapseAll:Ze,BlockSettingsMenu:gt,listViewInstanceId:tt,expandedState:ut,setInsertedBlock:Mt,treeGridElementRef:Le,rootClientId:De}=tm(),Ke=(0,Oce.__unstableUseShortcutEventMatch)();function Ye(){let me=X(),$t=me.includes(e),Oe=$t?me[0]:e,uo=Y(Oe);return{blocksToUpdate:$t?me:[e],firstBlockClientId:Oe,firstBlockRootClientId:uo,selectedBlockClientIds:me}}async function bt(me){if(me.defaultPrevented||me.target.closest("[role=dialog]"))return;let $t=[xO.BACKSPACE,xO.DELETE].includes(me.keyCode);if(Ke("core/block-editor/unselect",me)&&g.length>0)me.stopPropagation(),me.preventDefault(),a(me,void 0);else if($t||Ke("core/block-editor/remove",me)){let{blocksToUpdate:Oe,firstBlockClientId:uo,firstBlockRootClientId:Jn,selectedBlockClientIds:nn}=Ye();if(!ce(Oe))return;let gd=ee(uo)??Jn;V(Oe,!1);let uN=nn.length>0&&X().length===0;gd||(gd=$()[0]),He(gd,uN)}else if(Ke("core/block-editor/paste-styles",me)){me.preventDefault();let{blocksToUpdate:Oe}=Ye(),uo=J(Oe);Te(uo)}else if(Ke("core/block-editor/duplicate",me)){me.preventDefault();let{blocksToUpdate:Oe,firstBlockRootClientId:uo}=Ye();if(J(Oe).every(nn=>!!nn&&(0,rm.hasBlockSupport)(nn.name,"multiple",!0)&&ne(nn.name,uo))){let nn=await M(Oe,!1);nn?.length&&He(nn[0],!1)}}else if(Ke("core/block-editor/insert-before",me)){me.preventDefault();let{blocksToUpdate:Oe}=Ye();await z(Oe[0]);let uo=X();He(uo[0],!1)}else if(Ke("core/block-editor/insert-after",me)){me.preventDefault();let{blocksToUpdate:Oe}=Ye();await D(Oe.at(-1));let uo=X();He(uo[0],!1)}else if(Ke("core/block-editor/select-all",me)){me.preventDefault();let{firstBlockRootClientId:Oe,selectedBlockClientIds:uo}=Ye(),Jn=$(Oe);if(!Jn.length)return;if((0,Ice.isShallowEqual)(uo,Jn)&&Oe&&Oe!==De){He(Oe,!0);return}L(Jn[0],Jn[Jn.length-1],null)}else if(Ke("core/block-editor/collapse-list-view",me)){me.preventDefault();let{firstBlockClientId:Oe}=Ye(),uo=Z(Oe,!1);Ze(),fe(uo)}else if(Ke("core/block-editor/group",me)){let{blocksToUpdate:Oe}=Ye();if(Oe.length>1&&_e(Oe)){me.preventDefault();let uo=J(Oe),Jn=ae(),nn=(0,rm.switchToBlockType)(uo,Jn);j(Oe,nn),(0,Ace.speak)((0,Fj.__)("Selected blocks are grouped."));let gd=X();He(gd[0],!1)}}else if(Ke("core/block-editor/toggle-block-visibility",me)){me.preventDefault();let{blocksToUpdate:Oe}=Ye();if(!J(Oe).every(nn=>(0,rm.hasBlockSupport)(nn.name,"visibility",!0))||Oe.some(nn=>q(nn)!=="default"))return;W(Oe)}else if(Ke("core/block-editor/rename",me)){let{blocksToUpdate:Oe}=Ye(),uo=q(Oe[0])==="contentOnly";Oe.length===1&&nt&&!uo&&(me.preventDefault(),R(!0))}}let eo=(0,Zo.useCallback)(()=>{_(!0),K(e,!0)},[e,_,K]),vo=(0,Zo.useCallback)(()=>{_(!1),K(e,!1)},[e,_,K]),de=(0,Zo.useCallback)(me=>{let $t=me?.detail===0;a(me,e,$t?-1:null),me.preventDefault()},[e,a]),He=(0,Zo.useCallback)((me,$t)=>{$t&&a(void 0,me,null,null),kv(me,Le?.current)},[a,Le]),dt=(0,Zo.useCallback)(me=>{me.preventDefault(),me.stopPropagation(),p===!0?Re(e):p===!1&&fe(e)},[e,fe,Re,p]),je=(0,Zo.useCallback)(me=>{let{ownerDocument:$t}=k?.current||{};!$t||!$t.hasFocus()||ke&&Ae&&(k.current?.click(),E(new window.DOMRect(me.clientX,me.clientY,0,0)),me.preventDefault())},[Ae,k,ke]),ve=(0,Zo.useCallback)(me=>{Ae&&me.button===2&&me.preventDefault()},[Ae]),ot=(0,Zo.useMemo)(()=>{let{ownerDocument:me}=y?.current||{};if(!(!x||!me))return{ownerDocument:me,getBoundingClientRect(){return x}}},[x]),st=(0,Zo.useCallback)(()=>{E(void 0)},[E]);if(pce({isSelected:i,rowItemRef:y,selectedClientIds:g}),!Fe)return null;let zr=Ece(l,f,u),jr=Tce(we,B),_n=B_(Fe?.attributes?.metadata?.blockVisibility),Ee=f>0,co=m&&Ee,mr=U("block-editor-list-view-block__mover-cell",{"is-visible":S||i}),wl=U("block-editor-list-view-block__menu-cell",{"is-visible":S||O}),Pc;co?Pc=2:ke||(Pc=3);let Ng=U({"is-selected":i,"is-first-selected":O,"is-last-selected":I,"is-branch-selected":s,"is-synced-branch":b,"is-dragging":r,"has-single-cell":!ke,"is-synced":we?.isSynced,"is-draggable":ie,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":o,"is-nesting":n}),Dg=g.includes(e)?g:[e],ha=i&&g.length===1;return(0,Or.jsxs)(dce,{className:Ng,isDragged:r,onKeyDown:bt,onMouseEnter:eo,onMouseLeave:vo,onFocus:eo,onBlur:vo,level:u,position:l,rowCount:d,path:h,id:`list-view-${tt}-block-${e}`,"data-block":e,"data-expanded":re?p:void 0,ref:y,children:[(0,Or.jsx)(Fh.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:Pc,ref:v,"aria-selected":!!i,children:({ref:me,tabIndex:$t,onFocus:Oe})=>(0,Or.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,Or.jsx)(wce,{block:Fe,onClick:de,onContextMenu:je,onMouseDown:ve,onToggleExpanded:dt,isSelected:i,position:l,siblingBlockCount:f,level:u,ref:me,tabIndex:ha?0:$t,onFocus:Oe,isExpanded:re?p:void 0,selectedClientIds:g,ariaDescribedBy:le}),(0,Or.jsx)(yO,{id:le,children:[zr,jr,_n].filter(Boolean).join(" ")})]})}),co&&(0,Or.jsx)(Or.Fragment,{children:(0,Or.jsxs)(Fh.__experimentalTreeGridCell,{className:mr,withoutGridItem:!0,children:[(0,Or.jsx)(Fh.__experimentalTreeGridItem,{children:({ref:me,tabIndex:$t,onFocus:Oe})=>(0,Or.jsx)(tI,{orientation:"vertical",clientIds:[e],ref:me,tabIndex:$t,onFocus:Oe})}),(0,Or.jsx)(Fh.__experimentalTreeGridItem,{children:({ref:me,tabIndex:$t,onFocus:Oe})=>(0,Or.jsx)(oI,{orientation:"vertical",clientIds:[e],ref:me,tabIndex:$t,onFocus:Oe})})]})}),ke&&gt&&(0,Or.jsx)(Fh.__experimentalTreeGridCell,{className:wl,"aria-selected":!!i,ref:k,children:({ref:me,tabIndex:$t,onFocus:Oe})=>(0,Or.jsx)(gt,{clientIds:Dg,block:Fe,icon:Li,label:(0,Fj.__)("Options"),popoverProps:{anchor:ot},toggleProps:{ref:me,className:"block-editor-list-view-block__menu",tabIndex:$t,onClick:st,onFocus:Oe,size:"small"},disableOpenOnArrowDown:!0,expand:fe,expandedState:ut,setInsertedBlock:Mt,__experimentalSelectBlock:He,isContentOnlyListView:!!De&&q(De)==="contentOnly"})}),T&&(0,Or.jsx)(Mh,{clientId:e,onClose:()=>R(!1)})]})}var Mce=(0,Zo.memo)(Lce);var Ji=c(C(),1);function Nce(e,t,o,r){return o?.includes(e.clientId)?0:t[e.clientId]??r?1+e.innerBlocks.reduce(CVe(t,o,r),0):1}var CVe=(e,t,o)=>(r,n)=>t?.includes(n.clientId)?r:(e[n.clientId]??o)&&n.innerBlocks.length>0?r+Nce(n,e,t,o):r+1,EVe=()=>{};function Dce(e){let{blocks:t,selectBlock:o=EVe,showBlockMovers:r,selectedClientIds:n,level:i=1,path:s="",isBranchSelected:a=!1,listPosition:l=0,fixedListWindow:u,isExpanded:d,parentId:f,shouldShowInnerBlocks:m=!0,isSyncedBranch:h=!1,showAppender:p=!0}=e,g=ro(f),b=h||!!g?.isSynced,v=(0,EO.useSelect)(P=>f?P(w).canEditBlock(f):!0,[f]),{blockDropPosition:y,blockDropTargetIndex:k,firstDraggedBlockIndex:S,blockIndexes:_,expandedState:x,draggedClientIds:E}=tm(),T=(0,CO.useRef)();if(!v)return null;let R=p&&i===1,B=t.filter(Boolean),O=B.length,I=R?O+1:O;return T.current=l,(0,Ji.jsxs)(Ji.Fragment,{children:[B.map((P,M)=>{let{clientId:L,innerBlocks:j}=P;M>0&&(T.current+=Nce(B[M-1],x,E,d));let V=!!E?.includes(L),{displacement:D,isAfterDraggedBlocks:z,isNesting:W}=Pce({blockIndexes:_,blockDropTargetIndex:k,blockDropPosition:y,clientId:L,firstDraggedBlockIndex:S,isDragged:V}),{itemInView:K}=u,ne=K(T.current),X=M+1,ee=s.length>0?`${s}_${X}`:`${X}`,Y=!!j?.length,$=Y&&m?x[L]??d:void 0,Z=Bce(L,n),q=a||Z&&Y,J=V||ne||Z&&L===n[0]||M===0||M===O-1;return(0,Ji.jsxs)(EO.AsyncModeProvider,{value:!Z,children:[J&&(0,Ji.jsx)(Mce,{block:P,selectBlock:o,isSelected:Z,isBranchSelected:q,isDragged:V,level:i,position:X,rowCount:I,siblingBlockCount:O,showBlockMovers:r,path:ee,isExpanded:V?!1:$,listPosition:T.current,selectedClientIds:n,isSyncedBranch:b,displacement:D,isAfterDraggedBlocks:z,isNesting:W}),!J&&(0,Ji.jsx)("tr",{children:(0,Ji.jsx)("td",{className:"block-editor-list-view-placeholder"})}),Y&&$&&!V&&(0,Ji.jsx)(Dce,{parentId:L,blocks:j,selectBlock:o,showBlockMovers:r,level:i+1,path:ee,listPosition:T.current+1,fixedListWindow:u,isBranchSelected:q,selectedClientIds:n,isExpanded:d,isSyncedBranch:b})]},L)}),R&&(0,Ji.jsx)(wO.__experimentalTreeGridRow,{level:i,setSize:I,positionInSet:I,isExpanded:!0,children:(0,Ji.jsx)(wO.__experimentalTreeGridCell,{children:P=>(0,Ji.jsx)(Dj,{clientId:f,nestingLevel:i,blockCount:O,...P})})})]})}var Vce=(0,CO.memo)(Dce);var _v=c(N(),1),TO=c(at(),1),Iu=c(A(),1),zj=c(F(),1);var qs=c(C(),1);function Fce({draggedBlockClientId:e,listViewRef:t,blockDropTarget:o}){let r=ro(e),n=Kr({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:a}=o||{},[l,u]=(0,Iu.useMemo)(()=>{if(!t.current)return[];let y=i?t.current.querySelector(`[data-block="${i}"]`):void 0,k=s?t.current.querySelector(`[data-block="${s}"]`):void 0;return[y,k]},[t,i,s]),d=u||l,f=(0,zj.isRTL)(),m=(0,Iu.useCallback)((y,k)=>{if(!d)return 0;let S=d.offsetWidth,_=(0,TO.getScrollContainer)(d,"horizontal"),x=d.ownerDocument,E=_===x.body||_===x.documentElement;if(_&&!E){let T=_.getBoundingClientRect(),R=(0,zj.isRTL)()?T.right-y.right:y.left-T.left,B=_.clientWidth;if(B<S+R&&(S=B-R),!f&&y.left+k<T.left)return S-=T.left-y.left,S;if(f&&y.right-k>T.right)return S-=y.right-T.right,S}return S-k},[f,d]),h=(0,Iu.useMemo)(()=>{if(!d)return{};let y=d.getBoundingClientRect();return{width:m(y,0)}},[m,d]),p=(0,Iu.useMemo)(()=>{if(!d)return{};let y=(0,TO.getScrollContainer)(d),k=d.ownerDocument,S=y===k.body||y===k.documentElement;if(y&&!S){let _=y.getBoundingClientRect(),x=d.getBoundingClientRect(),E=f?_.right-x.right:x.left-_.left;if(!f&&_.left>x.left)return{transform:`translateX( ${E}px )`};if(f&&_.right<x.right)return{transform:`translateX( ${E*-1}px )`}}return{}},[f,d]),g=(0,Iu.useMemo)(()=>{if(!l)return 1;let y=parseInt(l.getAttribute("aria-level"),10);return y?y+1:1},[l]),b=(0,Iu.useMemo)(()=>d?d.classList.contains("is-branch-selected"):!1,[d]),v=(0,Iu.useMemo)(()=>{if(!(!d||!(a==="top"||a==="bottom"||a==="inside")))return{contextElement:d,getBoundingClientRect(){let k=d.getBoundingClientRect(),S=k.left,_=0,x=(0,TO.getScrollContainer)(d,"horizontal"),E=d.ownerDocument,T=x===E.body||x===E.documentElement;if(x&&!T){let O=x.getBoundingClientRect(),I=f?x.offsetWidth-x.clientWidth:0;S<O.left+I&&(S=O.left+I)}a==="top"?_=k.top-k.height*2:_=k.top;let R=m(k,0),B=k.height;return new window.DOMRect(S,_,R,B)}}},[d,a,m,f]);return d?(0,qs.jsx)(_v.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,qs.jsx)("div",{style:h,className:U("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":b}),children:(0,qs.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":g,children:[(0,qs.jsxs)("div",{className:U("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:p,children:[(0,qs.jsx)(kO,{onClick:()=>{}}),(0,qs.jsx)(rt,{icon:r?.icon,showColors:!0,context:"list-view"}),(0,qs.jsx)(_v.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:(0,qs.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,qs.jsx)(_v.__experimentalTruncate,{ellipsizeMode:"auto",children:n})})})]}),(0,qs.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}var zce=c(Cr(),1),xv=c(F(),1),p0=c(G(),1),jce=c(A(),1),es=c(Bt(),1),Hce=c(Q(),1);function Uce(){let{clearSelectedBlock:e,multiSelect:t,selectBlock:o}=(0,p0.useDispatch)(w),{getBlockName:r,getBlockParents:n,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:a,hasSelectedBlock:l}=(0,p0.useSelect)(w),{getBlockType:u}=(0,p0.useSelect)(Hce.store);return{updateBlockSelection:(0,jce.useCallback)(async(f,m,h,p)=>{if(!f?.shiftKey&&f?.keyCode!==es.ESCAPE){o(m,p);return}f.preventDefault();let g=f.type==="keydown"&&f.keyCode===es.ESCAPE,b=f.type==="keydown"&&(f.keyCode===es.UP||f.keyCode===es.DOWN||f.keyCode===es.HOME||f.keyCode===es.END);if(!b&&!l()&&!a()){o(m,null);return}let v=s(),y=[...n(m),m];if((g||b&&!v.some(x=>y.includes(x)))&&await e(),!g){let x=i(),E=m;b&&(!l()&&!a()&&(x=m),h&&(E=h));let T=n(x),R=n(E),{start:B,end:O}=Rce(x,E,T,R);await t(B,O,null)}let k=s();if((f.keyCode===es.HOME||f.keyCode===es.END)&&k.length>1)return;let S=v.filter(x=>!k.includes(x)),_;if(S.length===1){let x=u(r(S[0]))?.title;x&&(_=(0,xv.sprintf)((0,xv.__)("%s deselected."),x))}else S.length>1&&(_=(0,xv.sprintf)((0,xv.__)("%s blocks deselected."),S.length));_&&(0,zce.speak)(_,"assertive")},[e,r,u,n,i,s,a,l,t,o])}}var Gce=c(A(),1);function Wce(e){return(0,Gce.useMemo)(()=>{let o={},r=0,n=i=>{i.forEach(s=>{o[s.clientId]=r,r++,s.innerBlocks.length>0&&n(s.innerBlocks)})};return n(e),o},[e])}var $ce=c(G(),1);function Kce({blocks:e,rootClientId:t}){return(0,$ce.useSelect)(o=>{let{getDraggedBlockClientIds:r,getSelectedBlockClientIds:n,getEnabledClientIdsTree:i}=H(o(w));return{selectedClientIds:n(),draggedClientIds:r(),clientIdsTree:e??i(t)}},[e,t])}var Yce=c(A(),1),qce=c(G(),1);function Zce({collapseAll:e,expand:t}){let{expandedBlock:o,getBlockParents:r}=(0,qce.useSelect)(n=>{let{getBlockParents:i,getExpandedBlock:s}=H(n(w));return{expandedBlock:s(),getBlockParents:i}},[]);(0,Yce.useEffect)(()=>{if(o){let n=r(o,!1);e(),t(n)}},[e,t,o,r])}var Xce=c(G(),1),zh=c(A(),1),jh=c(oe(),1),Qce=c(F(),1);var Ou=24;function TVe(e,t,o=1,r=!1){let n=r?t.right-o*Ou:t.left+o*Ou;return r?e.x>n:e.x<n}function BVe(e,t,o=1,r=!1){let n=r?t.right-o*Ou:t.left+o*Ou,i=r?n-e.x:e.x-n,s=Math.round(i/Ou);return Math.abs(s)}function RVe(e,t){let o=[],r=e;for(;r;)o.push({...r}),r=t.find(n=>n.clientId===r.rootClientId);return o}function Jce(e,t){let o=e[t+1];return o&&o.isDraggedBlock?Jce(e,t+1):o}function PVe(e,t,o=1,r=!1){let n=r?t.right-o*Ou:t.left+o*Ou;return(r?e.x<n-Ou:e.x>n+Ou)&&e.y<t.bottom}var IVe=["top","bottom"];function OVe(e,t,o=!1){let r,n,i,s,a;for(let f=0;f<e.length;f++){let m=e[f];if(m.isDraggedBlock)continue;let h=m.element.getBoundingClientRect(),[p,g]=wh(t,h,IVe),b=PP(t,h);if(i===void 0||p<i||b){i=p;let v=e.indexOf(m),y=e[v-1];if(g==="top"&&y&&y.rootClientId===m.rootClientId&&!y.isDraggedBlock?(n=y,r="bottom",s=y.element.getBoundingClientRect(),a=v-1):(n=m,r=g,s=h,a=v),b)break}}if(!n)return;let l=RVe(n,e),u=r==="bottom";if(u&&n.canInsertDraggedBlocksAsChild&&(n.innerBlockCount>0&&n.isExpanded||PVe(t,s,l.length,o))){let f=n.isExpanded?0:n.innerBlockCount||0;return{rootClientId:n.clientId,clientId:n.clientId,blockIndex:f,dropPosition:"inside"}}if(u&&n.rootClientId&&TVe(t,s,l.length,o)){let f=Jce(e,a),m=n.nestingLevel,h=f?f.nestingLevel:1;if(m&&h){let p=BVe(t,s,l.length,o),g=Math.max(Math.min(p,m-h),0);if(l[g]){let b=n.blockIndex;if(l[g].nestingLevel===f?.nestingLevel)b=f?.blockIndex;else for(let v=a;v>=0;v--){let y=e[v];if(y.rootClientId===l[g].rootClientId){b=y.blockIndex+1;break}}return{rootClientId:l[g].rootClientId,clientId:n.clientId,blockIndex:b,dropPosition:r}}}}if(!n.canInsertDraggedBlocksAsSibling)return;let d=u?1:0;return{rootClientId:n.rootClientId,clientId:n.clientId,blockIndex:n.blockIndex+d,dropPosition:r}}var AVe={leading:!1,trailing:!0};function eue({dropZoneElement:e,expandedState:t,setExpandedState:o}){let{getBlockRootClientId:r,getBlockIndex:n,getBlockCount:i,getDraggedBlockClientIds:s,canInsertBlocks:a}=(0,Xce.useSelect)(w),[l,u]=(0,zh.useState)(),{rootClientId:d,blockIndex:f}=l||{},m=RP(d,f),h=(0,Qce.isRTL)(),p=(0,jh.usePrevious)(d),g=(0,zh.useCallback)((S,_)=>{let{rootClientId:x}=_||{};x&&_?.dropPosition==="inside"&&!S[x]&&o({type:"expand",clientIds:[x]})},[o]),b=(0,jh.useThrottle)(g,500,AVe);(0,zh.useEffect)(()=>{if(l?.dropPosition!=="inside"||p!==l?.rootClientId){b.cancel();return}b(t,l)},[t,p,l,b]);let v=s(),y=(0,jh.useThrottle)((0,zh.useCallback)((S,_)=>{let x={x:S.clientX,y:S.clientY},E=!!v?.length,R=Array.from(_.querySelectorAll("[data-block]")).map(O=>{let I=O.dataset.block,P=O.dataset.expanded==="true",M=O.classList.contains("is-dragging"),L=parseInt(O.getAttribute("aria-level"),10),j=r(I);return{clientId:I,isExpanded:P,rootClientId:j,blockIndex:n(I),element:O,nestingLevel:L||void 0,isDraggedBlock:E?M:!1,innerBlockCount:i(I),canInsertDraggedBlocksAsSibling:E?a(v,j):!0,canInsertDraggedBlocksAsChild:E?a(v,I):!0}}),B=OVe(R,x,h);B&&u(B)},[a,v,i,n,r,h]),50);return{ref:(0,jh.__experimentalUseDropZone)({dropZoneElement:e,onDrop(S){y.cancel(),l&&m(S),u(void 0)},onDragLeave(){y.cancel(),u(null)},onDragOver(S){y(S,S.currentTarget)},onDragEnd(){y.cancel(),u(void 0)}}),target:l}}var BO=c(A(),1),tue=c(G(),1);function oue({firstSelectedBlockClientId:e,setExpandedState:t}){let[o,r]=(0,BO.useState)(null),{selectedBlockParentClientIds:n}=(0,tue.useSelect)(i=>{let{getBlockParents:s}=i(w);return{selectedBlockParentClientIds:s(e,!1)}},[e]);return(0,BO.useEffect)(()=>{o!==e&&n?.length&&t({type:"expand",clientIds:n})},[e,n,o,t]),{setSelectedTreeId:r}}var wv=c(G(),1),rue=c(oe(),1);function nue({selectBlock:e}){let t=(0,wv.useRegistry)(),{getBlockOrder:o,getBlockRootClientId:r,getBlocksByClientId:n,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:a,canInsertBlockType:l,canRemoveBlocks:u}=(0,wv.useSelect)(w),{flashBlock:d,removeBlocks:f,replaceBlocks:m,insertBlocks:h}=(0,wv.useDispatch)(w),p=ay();return(0,rue.useRefEffect)(g=>{function b(k,S){S&&e(void 0,k,null,null),kv(k,g)}function v(k){let S=s(),_=S.includes(k),x=_?S[0]:k,E=r(x);return{blocksToUpdate:_?S:[k],firstBlockClientId:x,firstBlockRootClientId:E,originallySelectedBlockClientIds:S}}function y(k){if(k.defaultPrevented||!g.contains(k.target.ownerDocument.activeElement))return;let _=k.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!_)return;let{blocksToUpdate:x,firstBlockClientId:E,firstBlockRootClientId:T,originallySelectedBlockClientIds:R}=v(_);if(x.length!==0){if(k.preventDefault(),k.type==="copy"||k.type==="cut"){x.length===1&&d(x[0]),p(k.type,x);let B=n(x);uR(k,B,t)}if(k.type==="cut"){if(!u(x))return;let B=i(E)??T;f(x,!1);let O=R.length>0&&s().length===0;B||(B=o()[0]),b(B,O)}else if(k.type==="paste"){let{__experimentalCanUserUseUnfilteredHTML:B}=a(),O=aee(k,B);if(x.length===1){let[I]=x;if(O.every(P=>l(P.name,I))){h(O,void 0,I),b(O[0]?.clientId,!1);return}}m(x,O,O.length-1,-1),b(O[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener("copy",y),g.ownerDocument.addEventListener("cut",y),g.ownerDocument.addEventListener("paste",y),()=>{g.ownerDocument.removeEventListener("copy",y),g.ownerDocument.removeEventListener("cut",y),g.ownerDocument.removeEventListener("paste",y)}},[])}var Au=c(C(),1),LVe=(e,t)=>t.type==="clear"?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce((o,r)=>({...o,[r]:t.type==="expand"}),{})}:e,iue=32;function lue({id:e,blocks:t,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:n=!1,showAppender:i=!1,blockSettingsMenu:s=uj,rootClientId:a,description:l,onSelect:u,additionalBlockContent:d},f){t&&(0,aue.default)("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});let m=(0,Cv.useInstanceId)(lue),{clientIdsTree:h,draggedClientIds:p,selectedClientIds:g}=Kce({blocks:t,rootClientId:a}),b=Wce(h),{getBlock:v,getSelectedBlockClientIds:y}=(0,h0.useSelect)(w),{visibleBlockCount:k}=(0,h0.useSelect)(re=>{let{getGlobalBlockCount:ie,getClientIdsOfDescendants:ce}=re(w),_e=p?.length>0?ce(p).length+1:0;return{visibleBlockCount:ie()-_e}},[p]),{updateBlockSelection:S}=Uce(),[_,x]=(0,Xo.useReducer)(LVe,{}),[E,T]=(0,Xo.useState)(null),{setSelectedTreeId:R}=oue({firstSelectedBlockClientId:g[0],setExpandedState:x}),B=(0,Xo.useCallback)((re,ie,ce)=>{S(re,ie,null,ce),R(ie),u&&u(v(ie))},[R,S,u,v]),{ref:O,target:I}=eue({dropZoneElement:o,expandedState:_,setExpandedState:x}),P=(0,Xo.useRef)(),M=nue({selectBlock:B}),L=(0,Xo.useCallback)(re=>{let[ie]=y();ie&&re&&kv(ie,re)},[y]),j=(0,Cv.useMergeRefs)([M,L,P,O,f]),V=(0,Xo.useCallback)(re=>{if(!re)return;let ie=Array.isArray(re)?re:[re];x({type:"expand",clientIds:ie})},[x]),D=(0,Xo.useCallback)(re=>{re&&x({type:"collapse",clientIds:[re]})},[x]),z=(0,Xo.useCallback)(()=>{x({type:"clear"})},[x]),W=(0,Xo.useCallback)(re=>{V(re?.dataset?.block)},[V]),K=(0,Xo.useCallback)(re=>{D(re?.dataset?.block)},[D]),ne=(0,Xo.useCallback)((re,ie,ce)=>{re.shiftKey&&S(re,ie?.dataset?.block,ce?.dataset?.block)},[S]);Zce({collapseAll:z,expand:V});let X=p?.[0],{blockDropTargetIndex:ee,blockDropPosition:Y,firstDraggedBlockIndex:$}=(0,Xo.useMemo)(()=>{let re,ie;if(I?.clientId){let ce=b[I.clientId];re=ce===void 0||I?.dropPosition==="top"?ce:ce+1}else I===null&&(re=null);if(X){let ce=b[X];ie=ce===void 0||I?.dropPosition==="top"?ce:ce+1}return{blockDropTargetIndex:re,blockDropPosition:I?.dropPosition,firstDraggedBlockIndex:ie}},[I,b,X]),Z=(0,Xo.useMemo)(()=>({blockDropPosition:Y,blockDropTargetIndex:ee,blockIndexes:b,draggedClientIds:p,expandedState:_,expand:V,firstDraggedBlockIndex:$,collapse:D,collapseAll:z,BlockSettingsMenu:s,listViewInstanceId:m,AdditionalBlockContent:d,insertedBlock:E,setInsertedBlock:T,treeGridElementRef:P,rootClientId:a}),[Y,ee,b,p,_,V,$,D,z,s,m,d,E,T,a]),[q]=(0,Cv.__experimentalUseFixedWindowList)(P,iue,k,{expandedState:_,useWindowing:!0,windowOverscan:40});if(!h.length&&!i)return null;let J=l&&`block-editor-list-view-description-${m}`;return(0,Au.jsxs)(h0.AsyncModeProvider,{value:!0,children:[(0,Au.jsx)(Fce,{draggedBlockClientId:X,listViewRef:P,blockDropTarget:I}),l&&(0,Au.jsx)(ct,{id:J,children:l}),(0,Au.jsx)(sue.__experimentalTreeGrid,{id:e,className:U("block-editor-list-view-tree",{"is-dragging":p?.length>0&&ee!==void 0}),"aria-label":(0,jj.__)("Block navigation structure"),ref:j,onCollapseRow:K,onExpandRow:W,onFocusRow:ne,applicationAriaLabel:(0,jj.__)("Block navigation structure"),"aria-describedby":J,style:{"--wp-admin--list-view-dragged-items-height":p?.length?`${iue*(p.length-1)}px`:null},children:(0,Au.jsx)(gO.Provider,{value:Z,children:(0,Au.jsx)(Vce,{blocks:h,parentId:a,selectBlock:B,showBlockMovers:r,fixedListWindow:q,selectedClientIds:g,isExpanded:n,showAppender:i})})})]})}var g0=(0,Xo.forwardRef)(lue),RO=(0,Xo.forwardRef)((e,t)=>(0,Au.jsx)(g0,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));var nm=c(C(),1);function MVe({isEnabled:e,onToggle:t,isOpen:o,innerRef:r,...n}){return(0,nm.jsx)(PO.Button,{__next40pxDefaultSize:!0,...n,ref:r,icon:bS,"aria-expanded":o,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,Hj.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}function NVe({isDisabled:e,...t},o){(0,cue.default)("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});let n=(0,uue.useSelect)(i=>!!i(w).getBlockCount(),[])&&!e;return(0,nm.jsx)(PO.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:i,onToggle:s})=>(0,nm.jsx)(MVe,{...t,innerRef:o,isOpen:i,onToggle:s,isEnabled:n}),renderContent:()=>(0,nm.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,nm.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,Hj.__)("List view")}),(0,nm.jsx)(RO,{})]})})}var fue=(0,due.forwardRef)(NVe);var b0=c(A(),1),pue=c(G(),1),hue=c(oe(),1),im=c(N(),1),Uj=c(F(),1);var Lu=c(C(),1),mue=()=>{};function DVe({clientId:e,onSwitch:t=mue,onHoverClassName:o=mue}){let r=(0,pue.useSelect)(_=>_(w).canEditBlock(e),[e]),{onSelect:n,stylesToRender:i,activeStyle:s,genericPreviewBlock:a,className:l}=nv({clientId:e,onSwitch:t}),[u,d]=(0,b0.useState)(null),[f,m]=(0,b0.useState)(null),h=Ao(),p=(0,b0.useMemo)(()=>{if(!u||!a)return null;let _=Zf(l,s,u);return[{...a,attributes:{...a.attributes||{},className:_}}]},[u,a,l,s]);if(!r||!i||i.length===0)return null;let g=(0,hue.debounce)(d,250),b=_=>{n(_),o(null),d(null),g.cancel()},v=_=>{if(u===_){g.cancel();return}g(_),o(_?.name??null)},y=DI(i),k=()=>s?.name!==y?.name,S=()=>{b(y)};return(0,Lu.jsx)(im.__experimentalToolsPanel,{label:(0,Uj.__)("Styles"),resetAll:S,panelId:e,hasInnerWrapper:!0,dropdownMenuProps:h,children:(0,Lu.jsx)(im.__experimentalToolsPanelItem,{hasValue:k,label:(0,Uj.__)("Variation"),onDeselect:S,isShownByDefault:!0,panelId:e,children:(0,Lu.jsxs)("div",{ref:m,className:"block-editor-block-styles",children:[(0,Lu.jsx)("div",{className:"block-editor-block-styles__variants",children:i.map(_=>{let x=_.label||_.name;return(0,Lu.jsx)(im.Button,{__next40pxDefaultSize:!0,className:U("block-editor-block-styles__item",{"is-active":s.name===_.name}),variant:"secondary",label:x,onMouseEnter:()=>v(_),onFocus:()=>v(_),onMouseLeave:()=>v(null),onBlur:()=>v(null),onClick:()=>b(_),"aria-current":s.name===_.name,children:(0,Lu.jsx)(im.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:x})},_.name)})}),p&&(0,Lu.jsx)(Jf,{blocks:p,placement:"left-start",offset:34,anchor:f})]})})})}var Ev=DVe;var kue=c(N(),1),Tv=c(F(),1);var bue=c(N(),1),yue=c(C(),1),gue={0:R5,1:VD,2:zD,3:HD,4:GD,5:$D,6:YD};function Gj({level:e}){return gue[e]?(0,yue.jsx)(bue.Icon,{icon:gue[e]}):null}var IO=c(C(),1),vue=[1,2,3,4,5,6],VVe={className:"block-library-heading-level-dropdown"};function Sue({options:e=vue,value:t,onChange:o}){let r=e.filter(n=>n===0||vue.includes(n)).sort((n,i)=>n-i);return(0,IO.jsx)(kue.ToolbarDropdownMenu,{popoverProps:VVe,icon:(0,IO.jsx)(Gj,{level:t}),label:(0,Tv.__)("Change level"),controls:r.map(n=>{let i=n===t;return{icon:(0,IO.jsx)(Gj,{level:n}),title:n===0?(0,Tv.__)("Paragraph"):(0,Tv.sprintf)((0,Tv.__)("Heading %d"),n),isActive:i,onClick(){o(n)},role:"menuitemradio"}})})}var y0=c(F(),1),v0=c(N(),1);var Mu=c(C(),1);function FVe({icon:e=b5,label:t=(0,y0.__)("Choose variation"),instructions:o=(0,y0.__)("Select a variation to start with:"),variations:r,onSelect:n,allowSkip:i}){let s=U("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return(0,Mu.jsxs)(v0.Placeholder,{icon:e,label:t,instructions:o,className:s,children:[(0,Mu.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,y0.__)("Block variations"),children:r.map(a=>(0,Mu.jsxs)("li",{children:[(0,Mu.jsx)(v0.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:a.icon&&a.icon.src?a.icon.src:a.icon,iconSize:48,onClick:()=>n(a),className:"block-editor-block-variation-picker__variation",label:a.description||a.title}),(0,Mu.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:a.title})]},a.name))}),i&&(0,Mu.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,Mu.jsx)(v0.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>n(),children:(0,y0.__)("Skip")})})]})}var _ue=FVe;var Eue=c(G(),1),Tue=c(Q(),1),$j=c(N(),1);var Wj=c(A(),1),Kj=c(oe(),1),Bue=c(F(),1);var Nu=c(F(),1),Bv=c(N(),1);var sm={carousel:"carousel",grid:"grid"};var ts=c(C(),1),zVe=({onBlockPatternSelect:e})=>(0,ts.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,ts.jsx)(Bv.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,Nu.__)("Choose")})}),jVe=({handlePrevious:e,handleNext:t,activeSlide:o,totalSlides:r})=>(0,ts.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,ts.jsx)(Bv.Button,{size:"compact",icon:(0,Nu.isRTL)()?pr:xn,label:(0,Nu.__)("Previous pattern"),onClick:e,disabled:o===0,accessibleWhenDisabled:!0}),(0,ts.jsx)(Bv.Button,{size:"compact",icon:(0,Nu.isRTL)()?xn:pr,label:(0,Nu.__)("Next pattern"),onClick:t,disabled:o===r-1,accessibleWhenDisabled:!0})]}),HVe=({viewMode:e,setViewMode:t,handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i,onBlockPatternSelect:s})=>{let a=e===sm.carousel,l=(0,ts.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,ts.jsx)(Bv.Button,{size:"compact",icon:AS,label:(0,Nu.__)("Carousel view"),onClick:()=>t(sm.carousel),isPressed:a}),(0,ts.jsx)(Bv.Button,{size:"compact",icon:pS,label:(0,Nu.__)("Grid view"),onClick:()=>t(sm.grid),isPressed:e===sm.grid})]});return(0,ts.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[a&&(0,ts.jsx)(jVe,{handlePrevious:o,handleNext:r,activeSlide:n,totalSlides:i}),l,a&&(0,ts.jsx)(zVe,{onBlockPatternSelect:s})]})},xue=HVe;var wue=c(G(),1);function UVe(e,t,o){return(0,wue.useSelect)(r=>{let{getBlockRootClientId:n,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=r(w),a=n(e);return o?s(a).filter(o):i(t,a)},[e,t,o])}var Cue=UVe;var ho=c(C(),1),GVe=({viewMode:e,activeSlide:t,patterns:o,onBlockPatternSelect:r,showTitles:n})=>{let i="block-editor-block-pattern-setup__container";if(e===sm.carousel){let s=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,ho.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,ho.jsx)("div",{className:i,children:(0,ho.jsx)("div",{className:"carousel-container",children:o.map((a,l)=>(0,ho.jsx)(Pue,{active:l===t,className:s.get(l)||"",pattern:a},a.name))})})})}return(0,ho.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,ho.jsx)($j.Composite,{role:"listbox",className:i,"aria-label":(0,Bue.__)("Patterns list"),children:o.map(s=>(0,ho.jsx)(Rue,{pattern:s,onSelect:r,showTitles:n},s.name))})})};function Rue({pattern:e,onSelect:t,showTitles:o}){let r="block-editor-block-pattern-setup-list",{blocks:n,description:i,viewportWidth:s=700}=e,a=(0,Kj.useInstanceId)(Rue,`${r}__item-description`);return(0,ho.jsx)("div",{className:`${r}__list-item`,children:(0,ho.jsxs)($j.Composite.Item,{render:(0,ho.jsx)("div",{"aria-describedby":i?a:void 0,"aria-label":e.title,className:`${r}__item`}),id:`${r}__pattern__${e.name}`,role:"option",onClick:()=>t(n),children:[(0,ho.jsx)(ui,{blocks:n,viewportWidth:s}),o&&(0,ho.jsx)("div",{className:`${r}__item-title`,children:e.title}),!!i&&(0,ho.jsx)(ct,{id:a,children:i})]})})}function Pue({active:e,className:t,pattern:o,minHeight:r}){let{blocks:n,title:i,description:s}=o,a=(0,Kj.useInstanceId)(Pue,"block-editor-block-pattern-setup-list__item-description");return(0,ho.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?a:void 0,children:[(0,ho.jsx)(ui,{blocks:n,minHeight:r}),!!s&&(0,ho.jsx)(ct,{id:a,children:s})]})}var WVe=({clientId:e,blockName:t,filterPatternsFn:o,onBlockPatternSelect:r,initialViewMode:n=sm.carousel,showTitles:i=!1})=>{let[s,a]=(0,Wj.useState)(n),[l,u]=(0,Wj.useState)(0),{replaceBlock:d}=(0,Eue.useDispatch)(w),f=Cue(e,t,o);if(!f?.length)return null;let h=r||(p=>{let g=p.map(b=>(0,Tue.cloneBlock)(b));d(e,g)});return(0,ho.jsx)(ho.Fragment,{children:(0,ho.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,ho.jsx)(GVe,{viewMode:s,activeSlide:l,patterns:f,onBlockPatternSelect:h,showTitles:i}),(0,ho.jsx)(xue,{viewMode:s,setViewMode:a,activeSlide:l,totalSlides:f.length,handleNext:()=>{u(p=>Math.min(p+1,f.length-1))},handlePrevious:()=>{u(p=>Math.max(p-1,0))},onBlockPatternSelect:()=>{h(f[l].blocks)}})]})})},Iue=WVe;var Yj=c(Q(),1),Du=c(F(),1),Vu=c(N(),1);var OO=c(G(),1),Oue=c(A(),1);var Qo=c(C(),1),{Menu:Hh}=H(Vu.privateApis);function $Ve({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,Qo.jsxs)("fieldset",{className:e,children:[(0,Qo.jsx)(ct,{render:(0,Qo.jsx)("legend",{}),children:(0,Du.__)("Transform to variation")}),r.map(n=>(0,Qo.jsx)(Vu.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,Qo.jsx)(rt,{icon:n.icon,showColors:!0}),isPressed:o===n.name,label:o===n.name?n.title:(0,Du.sprintf)((0,Du.__)("Transform to %s"),n.title),onClick:()=>t(n.name),"aria-label":n.title,showTooltip:!0},n.name))]})}function KVe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,Qo.jsx)("div",{className:e,children:(0,Qo.jsxs)(Hh,{children:[(0,Qo.jsx)(Hh.TriggerButton,{render:(0,Qo.jsx)(Vu.Button,{className:"block-editor-block-variation-transforms__button",__next40pxDefaultSize:!0,variant:"secondary",children:(0,Du.__)("Transform to variation")})}),(0,Qo.jsx)(Hh.Popover,{position:"bottom",children:(0,Qo.jsx)(Hh.Group,{children:r.map(n=>(0,Qo.jsxs)(Hh.RadioItem,{value:n.name,checked:o===n.name,onChange:()=>t(n.name),children:[(0,Qo.jsx)(Hh.ItemLabel,{children:n.title}),n.description&&(0,Qo.jsx)(Hh.ItemHelpText,{children:n.description})]},n.name))})})]})})}function YVe({className:e,onSelectVariation:t,selectedValue:o,variations:r}){return(0,Qo.jsx)("div",{className:e,children:(0,Qo.jsx)(Vu.__experimentalToggleGroupControl,{label:(0,Du.__)("Transform to variation"),value:o,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,children:r.map(n=>(0,Qo.jsx)(Vu.__experimentalToggleGroupControlOptionIcon,{icon:(0,Qo.jsx)(rt,{icon:n.icon,showColors:!0}),value:n.name,label:o===n.name?n.title:(0,Du.sprintf)((0,Du.__)("Transform to %s"),n.title)},n.name))})})}function qVe({blockClientId:e}){let{updateBlockAttributes:t}=(0,OO.useDispatch)(w),{activeBlockVariation:o,variations:r,canEdit:n,isContentOnly:i,isSection:s}=(0,OO.useSelect)(p=>{let{getActiveBlockVariation:g,getBlockVariations:b}=p(Yj.store),{getBlockName:v,getBlockAttributes:y,getBlockEditingMode:k,isSectionBlock:S}=H(p(w)),{canEditBlock:_}=p(w),x=e&&v(e),{hasContentRoleAttribute:E}=H(p(Yj.store)),T=E(x);return{activeBlockVariation:g(x,y(e),"transform"),variations:x&&b(x,"transform"),canEdit:_(e),isContentOnly:k(e)==="contentOnly"&&!T,isSection:S(e)}},[e]),a=o?.name,l=(0,Oue.useMemo)(()=>{let p=new Set;return r?(r.forEach(g=>{g.icon&&p.add(g.icon?.src||g.icon)}),p.size===r.length):!1},[r]),u=p=>{t(e,{...r.find(({name:g})=>g===p).attributes})};if(!r?.length||!n||i||s)return null;let d="block-editor-block-variation-transforms",m=r.length>6?$Ve:YVe;return(0,Qo.jsx)(l?m:KVe,{className:d,onSelectVariation:u,selectedValue:a,variations:r})}var AO=qVe;var Uh=c(F(),1),LO=c(N(),1);var Aue=c(C(),1),qj={top:{icon:p5,title:(0,Uh._x)("Align top","Block vertical alignment setting")},center:{icon:r5,title:(0,Uh._x)("Align middle","Block vertical alignment setting")},bottom:{icon:t5,title:(0,Uh._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:d5,title:(0,Uh._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:l5,title:(0,Uh._x)("Space between","Block vertical alignment setting")}},ZVe=["top","center","bottom"],XVe="top";function QVe({value:e,onChange:t,controls:o=ZVe,isCollapsed:r=!0,isToolbar:n}){function i(d){return()=>t(e===d?void 0:d)}let s=qj[e],a=qj[XVe],l=n?LO.ToolbarGroup:LO.ToolbarDropdownMenu,u=n?{isCollapsed:r}:{};return(0,Aue.jsx)(l,{icon:s?s.icon:a.icon,label:(0,Uh._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map(d=>({...qj[d],isActive:e===d,role:r?"menuitemradio":void 0,onClick:i(d)})),...u})}var Zj=QVe;var Xj=c(C(),1),jE=e=>(0,Xj.jsx)(Zj,{...e,isToolbar:!1}),Lue=e=>(0,Xj.jsx)(Zj,{...e,isToolbar:!0});var yi=c(N(),1),k0=c(A(),1),VO=c(F(),1);var Mue=c(N(),1);var Qj=c(F(),1),Nue=c(C(),1);function Due({isLinked:e,...t}){let o=e?(0,Qj.__)("Unlink radii"):(0,Qj.__)("Link radii");return(0,Nue.jsx)(Mue.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?ti:vs,iconSize:24,label:o})}var Vue=c(N(),1);function JVe(e){return[...e].sort((o,r)=>e.filter(n=>n===r).length-e.filter(n=>n===o).length).shift()}function Fue(e={}){if(typeof e=="string")return e;let t=Object.values(e).map(a=>{let l=(0,Vue.__experimentalParseQuantityAndUnitFromRawValue)(a);return typeof a=="string"&&l[0]===void 0?[a,""]:l}),o=t.map(a=>a[0]??""),r=t.map(a=>a[1]),n=o.every(a=>a===o[0])?o[0]:"",i=JVe(r);return n===0||n?`${n}${i||""}`:void 0}function zue(e={}){if(typeof e=="string"||!e||typeof e!="object")return!1;let t=Object.values(e);if(t.length===0)return!1;let o=t[0];return!t.every(n=>n===o)}function jue(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(o=>!!o||o===0).length:!1}var Zs=c(N(),1),Kue=c(oe(),1),lm=c(F(),1);var Gh=c(A(),1);var Jj=24,Hue=8,MO={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rem:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};var am=(e,t)=>e?.includes?e==="0"||e.includes(`var:preset|${t}|`):!1;function Uue(e,t){if(!e)return;if(e==="0"||e==="default")return e;let o=e.match(new RegExp(`var:preset\\|${t}\\|(.+)`));return o?o[1]:void 0}function Gue(e,t,o){if(e===void 0)return 0;let r=parseFloat(e,10)===0?"0":Uue(e,o),n=t.findIndex(i=>String(i.slug)===r);return n!==-1?n:NaN}function e8(e,t,o){if(!am(e,o))return e;let r=parseFloat(e,10)===0?"0":Uue(e,o);return t.find(i=>String(i.slug)===r)?.size}function Wue(e,t,o){if(!e||am(e,o)||e==="0")return e;let r=t.find(n=>String(n.size)===String(e));return r?.slug?`var:preset|${o}|${r.slug}`:e}var NO=c(N(),1);var Ja=c(C(),1);function $ue({allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:o,minValue:r,parsedQuantity:n,computedUnit:i,units:s,isMixed:a,step:l,max:u,showTooltip:d,value:f,minimumCustomValue:m,onCustomValueChange:h,onCustomValueSliderChange:p,onUnitChange:g,onMouseOut:b,onMouseOver:v,setMinValue:y}){let k=(0,Ja.jsx)(NO.__experimentalUnitControl,{className:"preset-input-control__unit-control",disableUnits:a,hideLabelFromVision:!0,label:t,min:r,onChange:h,onUnitChange:g,onBlur:b,onFocus:v,onMouseOut:b,onMouseOver:v,size:"__unstable-large",units:s,value:[n,i].join(""),placeholder:o,onDragStart:()=>{e&&f?.charAt(0)==="-"&&y(0)},onDrag:()=>{e&&f?.charAt(0)==="-"&&y(0)},onDragEnd:()=>{e&&y(m)}}),S=d?(0,Ja.jsxs)(lt.Root,{children:[(0,Ja.jsx)(lt.Trigger,{render:(0,Ja.jsx)("div",{className:"preset-input-control__tooltip-wrapper",children:k})}),(0,Ja.jsx)(lt.Popup,{children:t})]}):k;return(0,Ja.jsxs)(Ja.Fragment,{children:[S,(0,Ja.jsx)(NO.RangeControl,{className:"preset-input-control__custom-value-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:u,min:0,onBlur:b,onChange:p,onFocus:v,onMouseOut:b,onMouseOver:v,step:l,value:n,withInputField:!1,__next40pxDefaultSize:!0})]})}var cm=c(C(),1);function Wh({allowNegativeOnDrag:e=!1,ariaLabel:t,className:o,customValueSettings:r=MO,disableCustomValues:n,icon:i,isMixed:s,value:a,minimumCustomValue:l,onChange:u,onMouseOut:d,onMouseOver:f,onUnitChange:m,presets:h=[],presetType:p,selectedUnit:g,showTooltip:b,units:v}){let y=(0,Gh.useMemo)(()=>Wue(a,h,p),[a,h,p]),k=o??"preset-input-control",S=h.slice(1,h.length-1).map((q,J)=>({value:J+1,label:void 0})),_=S.length>0,x=h.length<=Hue,E=s?(0,lm.__)("Mixed"):null,[T,R]=(0,Gh.useState)(l),[B,O]=(0,Gh.useState)(!n&&y!==void 0&&!am(y,p)),I=null,P=(0,Kue.usePrevious)(y);(0,Gh.useEffect)(()=>{y&&P!==y&&!am(y,p)&&B!==!0&&O(!0)},[y,P,p,B]);let M=!x&&!B&&y!==void 0&&(!am(y,p)||am(y,p)&&s),L=h;M?(L=[...h,{name:s?(0,lm.__)("Mixed"):(0,lm.sprintf)((0,lm.__)("Custom (%s)"),y),slug:"custom",size:y}],I=L.length-1):s||(I=B?e8(y,h,p):Gue(y,h,p));let j=L.map((q,J)=>({key:J,name:q.name})),V=am(y,p)?e8(y,h,p):y,[D,z]=(0,Zs.__experimentalParseQuantityAndUnitFromRawValue)(V),W=z||g||"px",K=v?.find(q=>q.value===W),ne=K?.step??r[W]?.steps??.1,X=K?.max??r[W]?.max??10,ee=q=>{if(q===void 0||q===""){u(void 0);return}isNaN(parseFloat(q))||u(q)},Y=q=>{u([q,W].join(""))},$=q=>y===void 0?void 0:h[q]?.name,Z=(q,J)=>{let re=parseInt(q,10);if(J==="selectList"){if(re===0&&h[0]?.slug==="0")return"0";if(re===0)return}else if(re===0)return"0";return`var:preset|${p}|${h[q]?.slug}`};return(0,cm.jsxs)(Zs.__experimentalHStack,{className:`preset-input-control__wrapper ${k}__wrapper`,children:[i&&(0,cm.jsx)(Zs.Icon,{className:"preset-input-control__icon",icon:i,size:Jj}),(!_||B)&&(0,cm.jsx)($ue,{allowNegativeOnDrag:e,ariaLabel:t,allPlaceholder:E,minValue:T,parsedQuantity:D,computedUnit:W,units:v,isMixed:s,step:ne,max:X,showTooltip:b,value:y,minimumCustomValue:l,onCustomValueChange:ee,onCustomValueSliderChange:Y,onUnitChange:m,onMouseOut:d,onMouseOver:f,setMinValue:R}),_&&x&&!B&&(0,cm.jsx)(Zs.RangeControl,{"aria-valuenow":I,"aria-valuetext":h[I]?.name,className:"preset-input-control__preset-range",hideLabelFromVision:!0,initialPosition:0,label:t,max:h.length-1,marks:S,min:0,onBlur:d,onChange:q=>u(Z(q)),onFocus:f,onMouseDown:q=>{q?.nativeEvent?.offsetX<35&&y===void 0&&u("0")},onMouseOut:d,onMouseOver:f,renderTooltipContent:$,step:1,value:I,withInputField:!1,__next40pxDefaultSize:!0}),_&&!x&&!B&&(0,cm.jsx)(Zs.CustomSelectControl,{className:"preset-input-control__custom-select-control",hideLabelFromVision:!0,label:t,onBlur:d,onChange:q=>{M&&q.selectedItem.key===j.length-1?O(!0):u(Z(q.selectedItem.key,"selectList"))},onFocus:f,onMouseOut:d,onMouseOver:f,options:j,size:"__unstable-large",value:j.find(q=>q.key===I)||""}),_&&!n&&(0,cm.jsx)(Zs.Button,{className:"preset-input-control__custom-toggle",icon:Q5,iconSize:Jj,isPressed:B,label:B?(0,lm.__)("Use preset"):(0,lm.__)("Set custom value"),onClick:()=>{O(!B)},size:"small"})]})}var Rv=c(F(),1);var Yue=8,DO=[],t8={all:(0,Rv.__)("Border radius"),topLeft:(0,Rv.__)("Top left"),topRight:(0,Rv.__)("Top right"),bottomLeft:(0,Rv.__)("Bottom left"),bottomRight:(0,Rv.__)("Bottom right")},o8={all:nD,topLeft:aD,topRight:lD,bottomLeft:iD,bottomRight:sD},r8=0;var Fu=c(C(),1);function eFe(e){let t=e?.default??DO,o=e?.custom??DO,r=e?.theme??DO;return(0,k0.useMemo)(()=>{let n=[{name:(0,VO.__)("None"),slug:"0",size:0},...o,...r,...t];return n.length>Yue?[{name:(0,VO.__)("Default"),slug:"default",size:void 0},...n]:n},[o,r,t])}function que(e,t){return t==="all"?Fue(e):typeof e=="string"?e:e?.[t]}function Zue(e,t){return t==="all"?e.flat:e[t]}function Xue(e,t,o){return r=>{o(e==="all"?{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r}:{...typeof t!="string"?t||{}:{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t},[e]:r})}}function Que(e,t,o){return r=>{let n={...t};e==="all"?(n.flat=r,n.topLeft=r,n.topRight=r,n.bottomLeft=r,n.bottomRight=r):n[e]=r,o(n)}}function FO({onChange:e,values:t,presets:o}){let[r,n]=(0,k0.useState)(!jue(t)||!zue(t)),i=eFe(o),[s,a]=(0,k0.useState)({flat:typeof t=="string"?(0,yi.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,yi.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,yi.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,yi.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,yi.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[l]=xe("spacing.units"),u=(0,yi.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem"]}),d=()=>n(!r);return(0,Fu.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,Fu.jsxs)(yi.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,Fu.jsx)(yi.BaseControl.VisualLabel,{as:"legend",children:(0,VO.__)("Radius")}),(0,Fu.jsx)(Due,{onClick:d,isLinked:r})]}),r?(0,Fu.jsx)(Wh,{ariaLabel:t8.all,className:"components-border-radius-control",icon:o8.all,minimumCustomValue:r8,onChange:Xue("all",t,e),onUnitChange:Que("all",s,a),presets:i,presetType:"border-radius",selectedUnit:Zue(s,"all"),showTooltip:!0,units:u,value:que(t,"all")}):(0,Fu.jsx)(yi.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map(f=>(0,Fu.jsx)(Wh,{ariaLabel:t8[f],className:"components-border-radius-control",icon:o8[f],minimumCustomValue:r8,onChange:Xue(f,t,e),onUnitChange:Que(f,s,a),presets:i,presetType:"border-radius",selectedUnit:Zue(s,f),showTooltip:!0,units:u,value:que(t,f)},f))})]})}var tde=c(N(),1);var Jue=c(oe(),1);var ede=c(C(),1),zO=(0,Jue.createHigherOrderComponent)(e=>function(o){let[r,n,i,s,a]=xe("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),l=a?[...n||[],...r||[],...i||[]]:[...n||[],...i||[]],{colors:u=l,disableCustomColors:d=!s}=o,f=u&&u.length>0||!d;return(0,ede.jsx)(e,{...o,colors:u,disableCustomColors:d,hasColorsToChoose:f})},"withColorContext");var ode=zO(tde.ColorPalette);var n8=c(F(),1),el=c(N(),1);var Jo=c(C(),1),{Tabs:Pv}=H(el.privateApis),tFe=["colors","disableCustomColors","gradients","disableCustomGradients"],rc={color:"color",gradient:"gradient"};function rde({colors:e,gradients:t,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,className:i,label:s,onColorChange:a,onGradientChange:l,colorValue:u,colorSlug:d,gradientValue:f,clearable:m,showTitle:h=!0,enableAlpha:p,headingLevel:g}){let b=a&&(e&&e.length>0||!o),v=l&&(t&&t.length>0||!r);if(!b&&!v)return null;let y=v?(_,x,E)=>{a(_,E),l()}:(_,x,E)=>a(_,E),k={[rc.color]:(0,Jo.jsx)(el.ColorPalette,{value:u,selectedSlug:d,onChange:y,colors:e,disableCustomColors:o,__experimentalIsRenderedInSidebar:n,clearable:m,enableAlpha:p,headingLevel:g}),[rc.gradient]:(0,Jo.jsx)(el.GradientPicker,{value:f,onChange:b?_=>{l(_),a()}:l,gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:n,clearable:m,headingLevel:g})},S=_=>(0,Jo.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:k[_]});return(0,Jo.jsx)(el.BaseControl,{className:U("block-editor-color-gradient-control",i),children:(0,Jo.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,Jo.jsxs)(el.__experimentalVStack,{spacing:1,children:[h&&(0,Jo.jsx)("legend",{children:(0,Jo.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,Jo.jsx)(el.BaseControl.VisualLabel,{children:s})})}),b&&v&&(0,Jo.jsx)("div",{children:(0,Jo.jsxs)(Pv,{defaultTabId:f?rc.gradient:!!b&&rc.color,children:[(0,Jo.jsxs)(Pv.TabList,{children:[(0,Jo.jsx)(Pv.Tab,{tabId:rc.color,children:(0,n8.__)("Color")}),(0,Jo.jsx)(Pv.Tab,{tabId:rc.gradient,children:(0,n8.__)("Gradient")})]}),(0,Jo.jsx)(Pv.TabPanel,{tabId:rc.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.color}),(0,Jo.jsx)(Pv.TabPanel,{tabId:rc.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.gradient})]})}),!v&&S(rc.color),!b&&S(rc.gradient)]})})})}function oFe(e){let[t,o,r,n]=xe("color.palette","color.gradients","color.custom","color.customGradient");return(0,Jo.jsx)(rde,{colors:t,gradients:o,disableCustomColors:!r,disableCustomGradients:!n,...e})}function rFe(e){return tFe.every(t=>e.hasOwnProperty(t))?(0,Jo.jsx)(rde,{...e}):(0,Jo.jsx)(oFe,{...e})}var um=rFe;var nde=c(C(),1);function ide({onChange:e,value:t,...o}){return(0,nde.jsx)(um,{...o,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var tl=c(F(),1),sde=c(N(),1),ade=c(Cr(),1),i8=c(C(),1);yd([vd,zg]);function nFe({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:o,fallbackLinkColor:r,fontSize:n,isLargeText:i,textColor:s,linkColor:a,enableAlphaChecker:l=!1}){let u=e||t;if(!u)return null;let d=s||o,f=a||r;if(!d&&!f)return null;let m=[{color:d,description:(0,tl.__)("text color")},{color:f,description:(0,tl.__)("link color")}],h=to(u),p=h.alpha()<1,g=h.brightness(),b={level:"AA",size:i||i!==!1&&n>=24?"large":"small"},v="",y="";for(let k of m){if(!k.color)continue;let S=to(k.color),_=S.isReadable(h,b),x=S.alpha()<1;if(!_){if(p||x)continue;v=g<S.brightness()?(0,tl.sprintf)((0,tl.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),k.description):(0,tl.sprintf)((0,tl.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),k.description),y=(0,tl.__)("This color combination may be hard for people to read.");break}x&&l&&(v=(0,tl.__)("Transparent text may be hard for people to read."),y=(0,tl.__)("Transparent text may be hard for people to read."))}return v?((0,ade.speak)(y),(0,i8.jsx)("div",{className:"block-editor-contrast-checker",children:(0,i8.jsx)(sde.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:v})})):null}var jO=nFe;var tn=c(F(),1),S0=c(nc(),1),HO=c(A(),1),rl=c(N(),1);var ol=c(C(),1),dm=new Date;dm.setDate(20);dm.setMonth(dm.getMonth()-3);dm.getMonth()===4&&dm.setMonth(3);function cde({format:e,defaultFormat:t,onChange:o}){return(0,ol.jsxs)(rl.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,ol.jsx)(ct,{render:(0,ol.jsx)("legend",{}),children:(0,tn.__)("Date format")}),(0,ol.jsx)(rl.ToggleControl,{label:(0,tn.__)("Default format"),help:`${(0,tn.__)("Example:")}  ${(0,S0.dateI18n)(t,dm)}`,checked:!e,onChange:r=>o(r?null:t)}),e&&(0,ol.jsx)(iFe,{format:e,onChange:o})]})}function iFe({format:e,onChange:t}){let r=[...[...new Set(["Y-m-d",(0,tn._x)("n/j/Y","short date format"),(0,tn._x)("n/j/Y g:i A","short date format with time"),(0,tn._x)("M j, Y","medium date format"),(0,tn._x)("M j, Y g:i A","medium date format with time"),(0,tn._x)("F j, Y","long date format"),(0,tn._x)("M j","short date format without the year")])].map((a,l)=>({key:`suggested-${l}`,name:(0,S0.dateI18n)(a,dm),format:a})),{key:"human-diff",name:(0,S0.humanTimeDiff)(dm),format:"human-diff"}],n={key:"custom",name:(0,tn.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,tn.__)("Enter your own date format")},[i,s]=(0,HO.useState)(()=>!!e&&!r.some(a=>a.format===e));return(0,ol.jsxs)(rl.__experimentalVStack,{children:[(0,ol.jsx)(rl.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,tn.__)("Choose a format"),options:[...r,n],value:i?n:r.find(a=>a.format===e)??n,onChange:({selectedItem:a})=>{a===n?s(!0):(s(!1),t(a.format))}}),i&&(0,ol.jsx)(rl.TextControl,{__next40pxDefaultSize:!0,label:(0,tn.__)("Custom format"),hideLabelFromVision:!0,help:(0,HO.createInterpolateElement)((0,tn.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,ol.jsx)(rl.ExternalLink,{href:(0,tn.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:a=>t(a)})]})}var Xs=c(N(),1),_0=c(F(),1),ude=c(Bt(),1);var dde=c(oe(),1),ic=c(C(),1);function fde({id:e,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,onChange:s}){let a;i==="unset"?a=(0,ic.jsx)(Xs.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):i?a=(0,ic.jsx)(Xs.DuotoneSwatch,{values:i}):a=(0,ic.jsx)(We,{icon:kD});let l=(0,_0.__)("Apply duotone filter"),d=`${(0,dde.useInstanceId)(fde,"duotone-control",e)}__description`;return(0,ic.jsx)(Xs.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,_0.__)("Duotone")},renderToggle:({isOpen:f,onToggle:m})=>(0,ic.jsx)(Xs.ToolbarButton,{showTooltip:!0,onClick:m,"aria-haspopup":"true","aria-expanded":f,onKeyDown:p=>{!f&&p.keyCode===ude.DOWN&&(p.preventDefault(),m())},label:l,icon:a}),renderContent:()=>(0,ic.jsxs)(Xs.MenuGroup,{label:(0,_0.__)("Duotone"),children:[(0,ic.jsx)("p",{children:(0,_0.__)("Create a two-tone color effect without losing your original image.")}),(0,ic.jsx)(Xs.DuotonePicker,{"aria-label":l,"aria-describedby":d,colorPalette:t,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:n,value:i,onChange:s})]})})}var UO=fde;var gde=c(N(),1),bde=c(Je(),1),yde=c(A(),1),os=c(F(),1);var Ar=c(F(),1);var GO=c(F(),1);function mde(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=(0,GO._x)("Regular","font style");break;case"italic":t=(0,GO._x)("Italic","font style");break;case"oblique":t=(0,GO._x)("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}var nl=c(F(),1);function s8(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=(0,nl._x)("Regular","font weight");break;case"bold":case"700":t=(0,nl._x)("Bold","font weight");break;case"100":t=(0,nl._x)("Thin","font weight");break;case"200":t=(0,nl._x)("Extra Light","font weight");break;case"300":t=(0,nl._x)("Light","font weight");break;case"500":t=(0,nl._x)("Medium","font weight");break;case"600":t=(0,nl._x)("Semi Bold","font weight");break;case"800":t=(0,nl._x)("Extra Bold","font weight");break;case"900":t=(0,nl._x)("Black","font weight");break;case"1000":t=(0,nl._x)("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}var pde=[{name:(0,Ar._x)("Regular","font style"),value:"normal"},{name:(0,Ar._x)("Italic","font style"),value:"italic"}],hde=[{name:(0,Ar._x)("Thin","font weight"),value:"100"},{name:(0,Ar._x)("Extra Light","font weight"),value:"200"},{name:(0,Ar._x)("Light","font weight"),value:"300"},{name:(0,Ar._x)("Regular","font weight"),value:"400"},{name:(0,Ar._x)("Medium","font weight"),value:"500"},{name:(0,Ar._x)("Semi Bold","font weight"),value:"600"},{name:(0,Ar._x)("Bold","font weight"),value:"700"},{name:(0,Ar._x)("Extra Bold","font weight"),value:"800"},{name:(0,Ar._x)("Black","font weight"),value:"900"},{name:(0,Ar._x)("Extra Black","font weight"),value:"1000"}];function Iv(e){let t=[],o=[],r=[],n=!e||e?.length===0,i=!1;return e?.forEach(s=>{if(typeof s.fontWeight=="string"&&/\s/.test(s.fontWeight.trim())){i=!0;let[u,d]=s.fontWeight.split(" ");u=parseInt(u.slice(0,1)),d==="1000"?d=10:d=parseInt(d.slice(0,1));for(let f=u;f<=d;f++){let m=`${f.toString()}00`;o.some(h=>h.value===m)||o.push(s8(m))}}let a=s8(typeof s.fontWeight=="number"?s.fontWeight.toString():s.fontWeight),l=mde(s.fontStyle);l&&Object.keys(l).length&&(t.some(u=>u.value===l.value)||t.push(l)),a&&Object.keys(a).length&&(o.some(u=>u.value===a.value)||i||o.push(a))}),o.some(s=>s.value>="600")||o.push({name:(0,Ar._x)("Bold","font weight"),value:"700"}),t.some(s=>s.value==="italic")||t.push({name:(0,Ar._x)("Italic","font style"),value:"italic"}),n&&(t=pde,o=hde),t=t.length===0?pde:t,o=o.length===0?hde:o,t.forEach(({name:s,value:a})=>{o.forEach(({name:l,value:u})=>{let d=a==="normal"?l:(0,Ar.sprintf)((0,Ar._x)("%1$s %2$s","font"),l,s);r.push({key:`${a}-${u}`,name:d,style:{fontStyle:a,fontWeight:u}})})}),{fontStyles:t,fontWeights:o,combinedStyleAndWeightOptions:r,isSystemFont:n,isVariableFont:i}}var vde=c(C(),1),sFe=(e,t)=>e?t?(0,os.__)("Appearance"):(0,os.__)("Font style"):(0,os.__)("Font weight");function WO(e){let{__next40pxDefaultSize:t=!1,onChange:o,hasFontStyles:r=!0,hasFontWeights:n=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:a},...l}=e,u=r||n,d=sFe(r,n),f={key:"default",name:(0,os.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:m,fontWeights:h,combinedStyleAndWeightOptions:p}=Iv(i),g=()=>{let _=[f];return p&&_.push(...p),_},b=()=>{let _=[f];return m.forEach(({name:x,value:E})=>{_.push({key:E,name:x,style:{fontStyle:E,fontWeight:void 0}})}),_},v=()=>{let _=[f];return h.forEach(({name:x,value:E})=>{_.push({key:E,name:x,style:{fontStyle:void 0,fontWeight:E}})}),_},y=(0,yde.useMemo)(()=>r&&n?g():r?b():v(),[e.options,m,h,p]),k=y.find(_=>_.style.fontStyle===s&&_.style.fontWeight===a)||y[0],S=()=>k?r?n?(0,os.sprintf)((0,os.__)("Currently selected font appearance: %s"),k.name):(0,os.sprintf)((0,os.__)("Currently selected font style: %s"),k.name):(0,os.sprintf)((0,os.__)("Currently selected font weight: %s"),k.name):(0,os.__)("No selected font appearance");return!t&&(l.size===void 0||l.size==="default")&&(0,bde.default)("36px default size for wp.blockEditor.__experimentalFontAppearanceControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),u&&(0,vde.jsx)(gde.CustomSelectControl,{...l,className:"components-font-appearance-control",__next40pxDefaultSize:t,__shouldNotWarnDeprecated36pxSize:!0,label:d,describedBy:S(),options:y,value:k,onChange:({selectedItem:_})=>o(_.style)})}var kde=c(N(),1),Sde=c(Je(),1),a8=c(F(),1);var _de=c(C(),1);function $O({__next40pxDefaultSize:e=!1,value:t="",onChange:o,fontFamilies:r,className:n,...i}){let[s]=xe("typography.fontFamilies");if(r||(r=s),!r||r.length===0)return null;let a=[{key:"",name:(0,a8.__)("Default")},...r.map(({fontFamily:u,name:d})=>({key:u,name:d||u,style:{fontFamily:u}}))];!e&&(i.size===void 0||i.size==="default")&&(0,Sde.default)("36px default size for wp.blockEditor.__experimentalFontFamilyControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."});let l=a.find(u=>u.key===t)??"";return(0,_de.jsx)(kde.CustomSelectControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,label:(0,a8.__)("Font"),value:l,onChange:({selectedItem:u})=>o(u.key),options:a,className:U("block-editor-font-family-control",n),...i})}var KO=c(N(),1),xde=c(Je(),1),wde=c(F(),1);var Cde=c(C(),1);function YO({__next40pxDefaultSize:e=!1,value:t,onChange:o,__unstableInputWidth:r="60px",...n}){let[i]=xe("spacing.units"),s=(0,KO.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return!e&&(n.size===void 0||n.size==="default")&&(0,xde.default)("36px default size for wp.blockEditor.__experimentalLetterSpacingControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),(0,Cde.jsx)(KO.__experimentalUnitControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,...n,label:(0,wde.__)("Letter spacing"),value:t,__unstableInputWidth:r,units:s,onChange:o})}var x0=c(F(),1),qO=c(N(),1),l8=c(C(),1),aFe=[{label:(0,x0.__)("None"),value:"none",icon:Gr},{label:(0,x0.__)("Underline"),value:"underline",icon:BD},{label:(0,x0.__)("Strikethrough"),value:"line-through",icon:ED}];function ZO({value:e,onChange:t,className:o}){return(0,l8.jsx)(qO.__experimentalToggleGroupControl,{isDeselectable:!0,__next40pxDefaultSize:!0,label:(0,x0.__)("Decoration"),className:U("block-editor-text-decoration-control",o),value:e,onChange:r=>{t(r===e?void 0:r)},children:aFe.map(r=>(0,l8.jsx)(qO.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Ov=c(F(),1);var XO=c(N(),1),c8=c(C(),1),lFe=[{label:(0,Ov.__)("None"),value:"none",icon:Gr},{label:(0,Ov.__)("Uppercase"),value:"uppercase",icon:PD},{label:(0,Ov.__)("Lowercase"),value:"lowercase",icon:wD},{label:(0,Ov.__)("Capitalize"),value:"capitalize",icon:_D}];function QO({className:e,value:t,onChange:o}){return(0,c8.jsx)(XO.__experimentalToggleGroupControl,{isDeselectable:!0,__next40pxDefaultSize:!0,label:(0,Ov.__)("Letter case"),className:U("block-editor-text-transform-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:lFe.map(r=>(0,c8.jsx)(XO.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Av=c(F(),1);var JO=c(N(),1),u8=c(C(),1),cFe=[{label:(0,Av.__)("Horizontal"),value:"horizontal-tb",icon:kV},{label:(0,Av.__)("Vertical"),value:(0,Av.isRTL)()?"vertical-lr":"vertical-rl",icon:_V}];function e2({className:e,value:t,onChange:o}){return(0,u8.jsx)(JO.__experimentalToggleGroupControl,{isDeselectable:!0,__next40pxDefaultSize:!0,label:(0,Av.__)("Orientation"),className:U("block-editor-writing-mode-control",e),value:t,onChange:r=>{o(r===t?void 0:r)},children:cFe.map(r=>(0,u8.jsx)(JO.__experimentalToggleGroupControlOptionIcon,{value:r.value,icon:r.icon,label:r.label},r.value))})}var Hn=c(N(),1),Ede=c(A(),1),Tde=c(F(),1);var br=c(C(),1),uFe=({setting:e,children:t,panelId:o,...r})=>{let n=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return(0,br.jsx)(Hn.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:n,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...r,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:o,resetAllFilter:e.resetAllFilter,children:t})},dFe=({colorValue:e,label:t})=>(0,br.jsxs)(Hn.__experimentalHStack,{justify:"flex-start",children:[(0,br.jsx)(Hn.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,br.jsx)(Hn.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),fFe=e=>function({onToggle:o,isOpen:r}){let{clearable:n,colorValue:i,gradientValue:s,onColorChange:a,onGradientChange:l,label:u}=e,d=(0,Ede.useRef)(void 0),f={onClick:o,className:U("block-editor-panel-color-gradient-settings__dropdown",{"is-open":r}),"aria-expanded":r,ref:d},m=()=>{i?a():s&&l()},h=i??s;return(0,br.jsxs)(br.Fragment,{children:[(0,br.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...f,children:(0,br.jsx)(dFe,{colorValue:h,label:u})}),n&&h&&(0,br.jsx)(Hn.Button,{__next40pxDefaultSize:!0,label:(0,Tde.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Gr,onClick:()=>{m(),r&&o(),d.current?.focus()}})]})};function t2({colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradients:n,settings:i,__experimentalIsRenderedInSidebar:s,...a}){let l;return s&&(l={placement:"left-start",offset:36,shift:!0}),(0,br.jsx)(br.Fragment,{children:i.map((u,d)=>{let f={clearable:!1,colorValue:u.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:o,enableAlpha:r,gradientValue:u.gradientValue,gradients:n,label:u.label,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...u},m={clearable:u.clearable,label:u.label,colorValue:u.colorValue,gradientValue:u.gradientValue,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange};return u&&(0,br.jsx)(uFe,{setting:u,...a,children:(0,br.jsx)(Hn.Dropdown,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:fFe(m),renderContent:()=>(0,br.jsx)(Hn.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,br.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,br.jsx)(um,{...f})})})})},d)})})}var o2=c(N(),1),Bde=c(G(),1),Rde=c(oe(),1);var d8=c(A(),1),$h=c(F(),1);function fm(){let[e,t,o,r,n,i,s,a,l,u]=xe("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!i};return d.colors=(0,d8.useMemo)(()=>{let f=[];return o&&o.length&&f.push({name:(0,$h._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:o}),n&&r&&r.length&&f.push({name:(0,$h._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:r}),t&&t.length&&f.push({name:(0,$h._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),f},[t,o,r,n]),d.gradients=(0,d8.useMemo)(()=>{let f=[];return a&&a.length&&f.push({name:(0,$h._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:a}),u&&l&&l.length&&f.push({name:(0,$h._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:l}),s&&s.length&&f.push({name:(0,$h._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),f},[s,a,l,u]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}var il=c(C(),1),mFe=["colors","disableCustomColors","gradients","disableCustomGradients"],f8=({className:e,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,children:i,settings:s,title:a,showTitle:l=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:d})=>{let f=(0,Rde.useInstanceId)(f8),{batch:m}=(0,Bde.useRegistry)();return(!t||t.length===0)&&(!o||o.length===0)&&r&&n&&s?.every(h=>(!h.colors||h.colors.length===0)&&(!h.gradients||h.gradients.length===0)&&(h.disableCustomColors===void 0||h.disableCustomColors)&&(h.disableCustomGradients===void 0||h.disableCustomGradients))?null:(0,il.jsxs)(o2.__experimentalToolsPanel,{className:U("block-editor-panel-color-gradient-settings",e),label:l?a:void 0,resetAll:()=>{m(()=>{s.forEach(({colorValue:h,gradientValue:p,onColorChange:g,onGradientChange:b})=>{h?g():p&&b()})})},panelId:f,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,il.jsx)(t2,{settings:s,panelId:f,colors:t,gradients:o,disableCustomColors:r,disableCustomGradients:n,__experimentalIsRenderedInSidebar:u,enableAlpha:d}),!!i&&(0,il.jsxs)(il.Fragment,{children:[(0,il.jsx)(o2.__experimentalSpacer,{marginY:4})," ",i]})]})},pFe=e=>{let t=fm();return(0,il.jsx)(f8,{...t,...e})},hFe=e=>mFe.every(t=>e.hasOwnProperty(t))?(0,il.jsx)(f8,{...e}):(0,il.jsx)(pFe,{...e}),r2=hFe;var n2=c(A(),1),Kh=c(N(),1),p8=c(F(),1);var w0=c(C(),1),m8=[],gFe={...MO,px:{max:1e3,steps:1},em:{max:50,steps:.1},rem:{max:50,steps:.1}};function bFe(e){let t=e?.default??m8,o=e?.custom??m8,r=e?.theme??m8;return(0,n2.useMemo)(()=>[{name:(0,p8.__)("None"),slug:"0",size:0},...o,...r,...t],[o,r,t])}function Yh({label:e=(0,p8.__)("Dimension"),onChange:t,value:o,dimensionSizes:r}){let[n,i]=xe("dimensions.dimensionSizes","spacing.units"),s=r??n,a=(0,Kh.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem","vh","vw"]}),l=bFe(s),[u,d]=(0,n2.useState)(()=>{let[,m]=(0,Kh.__experimentalParseQuantityAndUnitFromRawValue)(o);return m||a[0]?.value||"px"}),f=m=>{let[h,p]=(0,Kh.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(m)&&p==="px"?t((h/16).toFixed(2)+m):["em","rem"].includes(p)&&m==="px"?t(Math.round(h*16)+m):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(m)&&h>100&&t(100+m),d(m)};return(0,w0.jsxs)("fieldset",{className:"block-editor-dimension-control",children:[(0,w0.jsx)(Kh.BaseControl.VisualLabel,{as:"legend",children:e}),(0,w0.jsx)(Wh,{ariaLabel:e,className:"block-editor-dimension-control",customValueSettings:gFe,minimumCustomValue:0,onChange:t,onUnitChange:f,presets:l,presetType:"dimension",selectedUnit:u,showTooltip:!0,units:a,value:o})]})}var Ide=c(A(),1),Lr=c(N(),1),Ode=c(F(),1),Ade=c(Je(),1);var sc=c(C(),1),Pde={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function Lde({label:e=(0,Ode.__)("Height"),onChange:t,value:o}){(0,Ade.default)("wp.blockEditor.HeightControl",{since:"7.0",version:"7.2",alternative:"wp.blockEditor.DimensionControl"});let r=parseFloat(o),[n]=xe("spacing.units"),i=(0,Lr.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vh","vw"]}),s=(0,Ide.useMemo)(()=>(0,Lr.__experimentalParseQuantityAndUnitFromRawValue)(o),[o])[1]||i[0]?.value||"px",a=u=>{t([u,s].join(""))},l=u=>{let[d,f]=(0,Lr.__experimentalParseQuantityAndUnitFromRawValue)(o);["em","rem"].includes(u)&&f==="px"?t((d/16).toFixed(2)+u):["em","rem"].includes(f)&&u==="px"?t(Math.round(d*16)+u):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(u)&&d>100&&t(100+u)};return(0,sc.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,sc.jsx)(Lr.BaseControl.VisualLabel,{as:"legend",children:e}),(0,sc.jsxs)(Lr.Flex,{children:[(0,sc.jsx)(Lr.FlexItem,{isBlock:!0,children:(0,sc.jsx)(Lr.__experimentalUnitControl,{value:o,units:i,onChange:t,onUnitChange:l,min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),(0,sc.jsx)(Lr.FlexItem,{isBlock:!0,children:(0,sc.jsx)(Lr.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,sc.jsx)(Lr.RangeControl,{__next40pxDefaultSize:!0,value:r,min:0,max:Pde[s]?.max??100,step:Pde[s]?.step??.1,withInputField:!1,onChange:a,label:e,hideLabelFromVision:!0})})})]})]})}var B0=c(N(),1);var Qs=c(pe()),sfe=c(tfe());function _Fe(e,t,o,r,n,i){i===void 0&&(i=0);var s=Lv(e,t,i),a=s.width,l=s.height,u=Math.min(a,o),d=Math.min(l,r);return u>d*n?{width:d*n,height:d}:{width:u,height:u/n}}function xFe(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function C0(e,t,o,r,n){n===void 0&&(n=0);var i=Lv(t.width,t.height,n),s=i.width,a=i.height;return{x:ofe(e.x,s,o.width,r),y:ofe(e.y,a,o.height,r)}}function ofe(e,t,o,r){var n=t*r/2-o/2;return u2(e,-n,n)}function rfe(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function nfe(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function wFe(e,t,o,r,n,i,s){i===void 0&&(i=0),s===void 0&&(s=!0);var a=s?CFe:EFe,l=Lv(t.width,t.height,i),u=Lv(t.naturalWidth,t.naturalHeight,i),d={x:a(100,((l.width-o.width/n)/2-e.x/n)/l.width*100),y:a(100,((l.height-o.height/n)/2-e.y/n)/l.height*100),width:a(100,o.width/l.width*100/n),height:a(100,o.height/l.height*100/n)},f=Math.round(a(u.width,d.width*u.width/100)),m=Math.round(a(u.height,d.height*u.height/100)),h=u.width>=u.height*r,p=h?{width:Math.round(m*r),height:m}:{width:f,height:Math.round(f/r)},g=hr(hr({},p),{x:Math.round(a(u.width-p.width,d.x*u.width/100)),y:Math.round(a(u.height-p.height,d.y*u.height/100))});return{croppedAreaPercentages:d,croppedAreaPixels:g}}function CFe(e,t){return Math.min(e,Math.max(0,t))}function EFe(e,t){return t}function TFe(e,t,o,r,n,i){var s=Lv(t.width,t.height,o),a=u2(r.width/s.width*(100/e.width),n,i),l={x:a*s.width/2-r.width/2-s.width*a*(e.x/100),y:a*s.height/2-r.height/2-s.height*a*(e.y/100)};return{crop:l,zoom:a}}function BFe(e,t,o){var r=xFe(t);return o.height>o.width?o.height/(e.height*r):o.width/(e.width*r)}function RFe(e,t,o,r,n,i){o===void 0&&(o=0);var s=Lv(t.naturalWidth,t.naturalHeight,o),a=u2(BFe(e,t,r),n,i),l=r.height>r.width?r.height/e.height:r.width/e.width,u={x:((s.width-e.width)/2-e.x)*l,y:((s.height-e.height)/2-e.y)*l};return{crop:u,zoom:a}}function ife(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function PFe(e){return e*Math.PI/180}function Lv(e,t,o){var r=PFe(o);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function u2(e,t,o){return Math.min(Math.max(e,t),o)}function c2(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(o){return typeof o=="string"&&o.length>0}).join(" ").trim()}var IFe=`.reactEasyCrop_Container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: move;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reactEasyCrop_Image,
.reactEasyCrop_Video {
  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}

.reactEasyCrop_Contain {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.reactEasyCrop_Cover_Horizontal {
  width: 100%;
  height: auto;
}
.reactEasyCrop_Cover_Vertical {
  width: auto;
  height: 100%;
}

.reactEasyCrop_CropArea {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  box-shadow: 0 0 0 9999em;
  color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.reactEasyCrop_CropAreaRound {
  border-radius: 50%;
}

.reactEasyCrop_CropAreaGrid::before {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 0;
  bottom: 0;
  left: 33.33%;
  right: 33.33%;
  border-top: 0;
  border-bottom: 0;
}

.reactEasyCrop_CropAreaGrid::after {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-left: 0;
  border-right: 0;
}
`,OFe=1,AFe=3,LFe=1,afe=(function(e){sW(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.cropperRef=Qs.createRef(),o.imageRef=Qs.createRef(),o.videoRef=Qs.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc=typeof document<"u"?document:null,o.currentWindow=typeof window<"u"?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!o.containerRef)){var r=!0;o.resizeObserver=new window.ResizeObserver(function(n){if(r){r=!1;return}o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(r){return r.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var r=o.computeSizes();r&&(o.previousCropSize=r,o.emitCropData(),o.setInitialCrop(r),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(r){if(o.props.initialCroppedAreaPercentages){var n=TFe(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=n.crop,s=n.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}else if(o.props.initialCroppedAreaPixels){var a=RFe(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=a.crop,s=a.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}},o.computeSizes=function(){var r,n,i,s,a,l,u=o.imageRef.current||o.videoRef.current;if(u&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var d=o.containerRect.width/o.containerRect.height,f=((r=o.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=o.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,m=((i=o.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((s=o.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,h=u.offsetWidth<f||u.offsetHeight<m,p=f/m,g=void 0;if(h)switch(o.state.mediaObjectFit){default:case"contain":g=d>p?{width:o.containerRect.height*p,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/p};break;case"horizontal-cover":g={width:o.containerRect.width,height:o.containerRect.width/p};break;case"vertical-cover":g={width:o.containerRect.height*p,height:o.containerRect.height};break}else g={width:u.offsetWidth,height:u.offsetHeight};o.mediaSize=hr(hr({},g),{naturalWidth:f,naturalHeight:m}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var b=o.props.cropSize?o.props.cropSize:_Fe(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(((a=o.state.cropSize)===null||a===void 0?void 0:a.height)!==b.height||((l=o.state.cropSize)===null||l===void 0?void 0:l.width)!==b.width)&&o.props.onCropSizeChange&&o.props.onCropSizeChange(b),o.setState({cropSize:b},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(b),b}},o.saveContainerPosition=function(){if(o.containerRef){var r=o.containerRef.getBoundingClientRect();o.containerPosition={x:r.left,y:r.top}}},o.onMouseDown=function(r){o.currentDoc&&(r.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(r)))},o.onMouseMove=function(r){return o.onDrag(t.getMousePoint(r))},o.onScroll=function(r){o.currentDoc&&(r.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(r){o.currentDoc&&(o.isTouching=!0,!(o.props.onTouchRequest&&!o.props.onTouchRequest(r))&&(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),r.touches.length===2?o.onPinchStart(r):r.touches.length===1&&o.onDragStart(t.getTouchPoint(r.touches[0]))))},o.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?o.onPinchMove(r):r.touches.length===1&&o.onDrag(t.getTouchPoint(r.touches[0]))},o.onGestureStart=function(r){o.currentDoc&&(r.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(r){if(r.preventDefault(),!o.isTouching){var n=t.getMousePoint(r),i=o.gestureZoomStart-1+r.scale;if(o.setNewZoom(i,n,{shouldUpdatePosition:!0}),o.props.onRotationChange){var s=o.gestureRotationStart+r.rotation;o.props.onRotationChange(s)}}},o.onGestureEnd=function(r){o.cleanEvents()},o.onDragStart=function(r){var n,i,s=r.x,a=r.y;o.dragStartPosition={x:s,y:a},o.dragStartCrop=hr({},o.props.crop),(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n)},o.onDrag=function(r){var n=r.x,i=r.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&!(n===void 0||i===void 0)){var s=n-o.dragStartPosition.x,a=i-o.dragStartPosition.y,l={x:o.dragStartCrop.x+s,y:o.dragStartCrop.y+a},u=o.props.restrictPosition?C0(l,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):l;o.props.onCropChange(u)}}))},o.onDragStopped=function(){var r,n;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),(n=(r=o.props).onInteractionEnd)===null||n===void 0||n.call(r)},o.onWheel=function(r){if(o.currentWindow&&!(o.props.onWheelRequest&&!o.props.onWheelRequest(r))){r.preventDefault();var n=t.getMousePoint(r),i=(0,sfe.default)(r).pixelY,s=o.props.zoom-i*o.props.zoomSpeed/200;o.setNewZoom(s,n,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var a,l;return(l=(a=o.props).onInteractionStart)===null||l===void 0?void 0:l.call(a)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var a,l;return(l=(a=o.props).onInteractionEnd)===null||l===void 0?void 0:l.call(a)})},250)}},o.getPointOnContainer=function(r,n){var i=r.x,s=r.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(i-n.x),y:o.containerRect.height/2-(s-n.y)}},o.getPointOnMedia=function(r){var n=r.x,i=r.y,s=o.props,a=s.crop,l=s.zoom;return{x:(n+a.x)/l,y:(i+a.y)/l}},o.setNewZoom=function(r,n,i){var s=i===void 0?{}:i,a=s.shouldUpdatePosition,l=a===void 0?!0:a;if(!(!o.state.cropSize||!o.props.onZoomChange)){var u=u2(r,o.props.minZoom,o.props.maxZoom);if(l){var d=o.getPointOnContainer(n,o.containerPosition),f=o.getPointOnMedia(d),m={x:f.x*u-d.x,y:f.y*u-d.y},h=o.props.restrictPosition?C0(m,o.mediaSize,o.state.cropSize,u,o.props.rotation):m;o.props.onCropChange(h)}o.props.onZoomChange(u)}},o.getCropData=function(){if(!o.state.cropSize)return null;var r=o.props.restrictPosition?C0(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;return wFe(r,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition)},o.emitCropData=function(){var r=o.getCropData();if(r){var n=r.croppedAreaPercentages,i=r.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(n,i),o.props.onCropAreaChange&&o.props.onCropAreaChange(n,i)}},o.emitCropAreaChange=function(){var r=o.getCropData();if(r){var n=r.croppedAreaPercentages,i=r.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(n,i)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var r=o.props.crop;if(o.isInitialized&&o.previousCropSize){var n=Math.abs(o.previousCropSize.width-o.state.cropSize.width)>1e-6||Math.abs(o.previousCropSize.height-o.state.cropSize.height)>1e-6;if(n){var i=o.state.cropSize.width/o.previousCropSize.width,s=o.state.cropSize.height/o.previousCropSize.height;r={x:o.props.crop.x*i,y:o.props.crop.y*s}}}var a=o.props.restrictPosition?C0(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.previousCropSize=o.state.cropSize,o.props.onCropChange(a),o.emitCropData()}},o.onKeyDown=function(r){var n,i,s=o.props,a=s.crop,l=s.onCropChange,u=s.keyboardStep,d=s.zoom,f=s.rotation,m=u;if(o.state.cropSize){r.shiftKey&&(m*=.2);var h=hr({},a);switch(r.key){case"ArrowUp":h.y-=m,r.preventDefault();break;case"ArrowDown":h.y+=m,r.preventDefault();break;case"ArrowLeft":h.x-=m,r.preventDefault();break;case"ArrowRight":h.x+=m,r.preventDefault();break;default:return}o.props.restrictPosition&&(h=C0(h,o.mediaSize,o.state.cropSize,d,f)),r.repeat||(i=(n=o.props).onInteractionStart)===null||i===void 0||i.call(n),l(h)}},o.onKeyUp=function(r){var n,i;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}o.emitCropData(),(i=(n=o.props).onInteractionEnd)===null||i===void 0||i.call(n)},o}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=IFe,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var o,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(o=this.resizeObserver)===null||o===void 0||o.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(o){var r,n,i,s,a,l,u,d,f;o.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):o.aspect!==this.props.aspect?this.computeSizes():o.objectFit!==this.props.objectFit?this.computeSizes():o.zoom!==this.props.zoom?this.recomputeCropPosition():((r=o.cropSize)===null||r===void 0?void 0:r.height)!==((n=this.props.cropSize)===null||n===void 0?void 0:n.height)||((i=o.cropSize)===null||i===void 0?void 0:i.width)!==((s=this.props.cropSize)===null||s===void 0?void 0:s.width)?this.computeSizes():(((a=o.crop)===null||a===void 0?void 0:a.x)!==((l=this.props.crop)===null||l===void 0?void 0:l.x)||((u=o.crop)===null||u===void 0?void 0:u.y)!==((d=this.props.crop)===null||d===void 0?void 0:d.y))&&this.emitCropAreaChange(),o.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),o.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load());var m=this.getObjectFit();m!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:m},this.computeSizes)},t.prototype.getAspect=function(){var o=this.props,r=o.cropSize,n=o.aspect;return r?r.width/r.height:n},t.prototype.getObjectFit=function(){var o,r,n,i;if(this.props.objectFit==="cover"){var s=this.imageRef.current||this.videoRef.current;if(s&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var a=this.containerRect.width/this.containerRect.height,l=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,u=((n=this.imageRef.current)===null||n===void 0?void 0:n.naturalHeight)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,d=l/u;return d<a?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(o){var r=t.getTouchPoint(o.touches[0]),n=t.getTouchPoint(o.touches[1]);this.lastPinchDistance=rfe(r,n),this.lastPinchRotation=nfe(r,n),this.onDragStart(ife(r,n))},t.prototype.onPinchMove=function(o){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var n=t.getTouchPoint(o.touches[0]),i=t.getTouchPoint(o.touches[1]),s=ife(n,i);this.onDrag(s),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var a=rfe(n,i),l=r.props.zoom*(a/r.lastPinchDistance);r.setNewZoom(l,s,{shouldUpdatePosition:!1}),r.lastPinchDistance=a;var u=nfe(n,i),d=r.props.rotation+(u-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(d),r.lastPinchRotation=u})}},t.prototype.render=function(){var o=this,r,n=this.props,i=n.image,s=n.video,a=n.mediaProps,l=n.cropperProps,u=n.transform,d=n.crop,f=d.x,m=d.y,h=n.rotation,p=n.zoom,g=n.cropShape,b=n.showGrid,v=n.roundCropAreaPixels,y=n.style,k=y.containerStyle,S=y.cropAreaStyle,_=y.mediaStyle,x=n.classes,E=x.containerClassName,T=x.cropAreaClassName,R=x.mediaClassName,B=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return Qs.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(I){return o.containerRef=I},"data-testid":"container",style:k,className:c2("reactEasyCrop_Container",E)},i?Qs.createElement("img",hr({alt:"",className:c2("reactEasyCrop_Image",B==="contain"&&"reactEasyCrop_Contain",B==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",B==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{src:i,ref:this.imageRef,style:hr(hr({},_),{transform:u||"translate(".concat(f,"px, ").concat(m,"px) rotate(").concat(h,"deg) scale(").concat(p,")")}),onLoad:this.onMediaLoad})):s&&Qs.createElement("video",hr({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:c2("reactEasyCrop_Video",B==="contain"&&"reactEasyCrop_Contain",B==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",B==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",R)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:hr(hr({},_),{transform:u||"translate(".concat(f,"px, ").concat(m,"px) rotate(").concat(h,"deg) scale(").concat(p,")")}),controls:!1}),(Array.isArray(s)?s:[{src:s}]).map(function(O){return Qs.createElement("source",hr({key:O.src},O))})),this.state.cropSize&&Qs.createElement("div",hr({ref:this.cropperRef,style:hr(hr({},S),{width:v?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:v?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:c2("reactEasyCrop_CropArea",g==="round"&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",T)},l)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:AFe,minZoom:OFe,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:LFe},t.getMousePoint=function(o){return{x:Number(o.clientX),y:Number(o.clientY)}},t.getTouchPoint=function(o){return{x:Number(o.clientX),y:Number(o.clientY)}},t})(Qs.Component);var gfe=c(A(),1);var Nv=c(A(),1);var lfe=Object.prototype.hasOwnProperty;function cfe(e,t,o){for(o of e.keys())if(Zh(o,t))return o}function Zh(e,t){var o,r,n;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&Zh(e[r],t[r]););return r===-1}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if(n=r,n&&typeof n=="object"&&(n=cfe(t,n),!n)||!t.has(n))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if(n=r[0],n&&typeof n=="object"&&(n=cfe(t,n),!n)||!Zh(r[1],t.get(n)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!o||typeof e=="object"){r=0;for(o in e)if(lfe.call(e,o)&&++r&&!lfe.call(t,o)||!(o in t)||!Zh(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var sl=c(A(),1);var Mv=1,ufe=5;var d2=e=>e>=0?e%360:(360+e%360)%360,MFe=e=>new Promise((t,o)=>{let r=new Image;r.addEventListener("load",()=>t(r)),r.addEventListener("error",n=>o(n)),r.setAttribute("crossOrigin","anonymous"),r.src=e});function dfe(e){return e*Math.PI/180}function NFe(e,t,o){let r=dfe(o);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}async function ffe(e,t,o=0,r={horizontal:!1,vertical:!1}){try{let n=await MFe(e),i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return null;let a=dfe(o),{width:l,height:u}=NFe(n.width,n.height,o);i.width=l,i.height=u,s.translate(l/2,u/2),s.rotate(a),s.scale(r.horizontal?-1:1,r.vertical?-1:1),s.translate(-n.width/2,-n.height/2),s.drawImage(n,0,0);let d=document.createElement("canvas"),f=d.getContext("2d");return f?(d.width=t.width,d.height=t.height,f.drawImage(i,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise(m=>{d.toBlob(h=>{h&&m(URL.createObjectURL(h))},"image/jpeg")})):null}catch{return null}}var Xh={crop:{x:0,y:0,width:100,height:100},zoom:Mv,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1}},DFe={x:0,y:0},x8={crop:DFe,croppedArea:Xh.crop,croppedAreaPixels:null,zoom:Xh.zoom,rotation:Xh.rotation,flip:Xh.flip,aspectRatio:Xh.aspectRatio,mediaSize:null};function mfe(){let[e,t]=(0,sl.useState)(x8),[o,r]=(0,sl.useState)(null),n=(0,sl.useCallback)(u=>{t(d=>{let m={...typeof u=="function"?u(d):u};return"rotation"in m&&m.rotation!==void 0&&(m.rotation=d2(m.rotation)),{...d,...m}})},[]),i=(0,sl.useCallback)((u=null)=>{if(!u){r(null),n(x8);return}if(typeof u=="object"){let d={...Xh,...u};r(d),n(d)}},[n,r]),s=(0,sl.useCallback)(()=>{if(o){let u={crop:{x:0,y:0},croppedAreaPixels:null};o.crop&&(u.croppedArea=o.crop),o.zoom!==void 0&&(u.zoom=o.zoom),o.rotation!==void 0&&(u.rotation=o.rotation),o.aspectRatio!==void 0&&(u.aspectRatio=o.aspectRatio),o.flip!==void 0&&(u.flip=o.flip),n(u)}else n({...x8})},[o,n]),a=(0,sl.useMemo)(()=>{if(o){let d={crop:e.croppedAreaPixels||e.croppedArea,zoom:e.zoom,rotation:d2(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return Zh(d,o)===!1}let u={crop:e.croppedArea,zoom:e.zoom,rotation:d2(e.rotation),aspectRatio:e.aspectRatio,flip:e.flip};return Zh(u,Xh)===!1},[e,o]),l=(0,sl.useCallback)(async u=>e.croppedAreaPixels?ffe(u,e.croppedAreaPixels,e.rotation,e.flip):null,[e.croppedAreaPixels,e.rotation,e.flip]);return(0,sl.useMemo)(()=>({cropperState:e,setCropperState:n,resetState:o,setResetState:i,isDirty:a,reset:s,getCroppedImage:l}),[e,n,o,i,a,s,l])}var pfe=c(C(),1),hfe=(0,Nv.createContext)({cropperState:{crop:{x:0,y:0},croppedArea:{x:0,y:0,width:100,height:100},croppedAreaPixels:null,zoom:Mv,rotation:0,aspectRatio:1,flip:{horizontal:!1,vertical:!1},mediaSize:null},setCropperState:()=>{},resetState:null,setResetState:()=>{},isDirty:!1,reset:()=>{},getCroppedImage:()=>Promise.resolve(null)});function w8({children:e}){let t=mfe(),o=(0,Nv.useMemo)(()=>({...t}),[t]);return(0,pfe.jsx)(hfe.Provider,{value:o,children:e})}var E0=()=>{let e=(0,Nv.useContext)(hfe);if(!e)throw new Error("Missing ImageCropperContext");return e};var bfe=c(C(),1);function C8({src:e,onLoad:t,minZoom:o=Mv,maxZoom:r=ufe,...n}){let{cropperState:i,setCropperState:s}=E0(),{crop:a,zoom:l,rotation:u,aspectRatio:d,flip:f}=i,m=v=>s({crop:v}),h=v=>s({zoom:v}),p=v=>s({rotation:v}),g=v=>s({mediaSize:v}),b=(0,gfe.useCallback)((v,y)=>{s({croppedArea:v,croppedAreaPixels:y})},[s]);return(0,bfe.jsx)(afe,{classes:{containerClassName:"image-cropper__container",cropAreaClassName:"image-cropper__crop-area",mediaClassName:"image-cropper__image"},minZoom:o,maxZoom:r,rotation:u,image:e,setMediaSize:g,crop:a,zoom:l,aspect:d,onCropChange:m,onZoomChange:h,onCropComplete:b,onMediaLoaded:v=>{t?.(v)},onRotationChange:p,transform:[`translate(${a.x}px, ${a.y}px)`,`rotateZ(${u}deg)`,`rotateY(${f.horizontal?180:0}deg)`,`rotateX(${f.vertical?180:0}deg)`,`scale(${l})`].join(" "),...n})}var Fv=c(N(),1),Vv=c(F(),1);var yfe=100,vfe=300,f2={placement:"bottom-start"};var Dv=c(A(),1);var m2=c(G(),1),Qh=c(A(),1),zu=c(F(),1),kfe=c(Ni(),1),Sfe=c(at(),1);var VFe={crop:(0,zu.__)("Image cropped."),rotate:(0,zu.__)("Image rotated."),cropAndRotate:(0,zu.__)("Image cropped and rotated.")};function _fe({crop:e,rotation:t,url:o,id:r,onSaveImage:n,onFinishEditing:i}){let{createErrorNotice:s,createSuccessNotice:a}=(0,m2.useDispatch)(kfe.store),[l,u]=(0,Qh.useState)(!1),{editMediaEntity:d}=(0,m2.useSelect)(h=>({editMediaEntity:h(w).getSettings()?.[rC]}),[]),f=(0,Qh.useCallback)(()=>{u(!1),i()},[i]),m=(0,Qh.useCallback)(async()=>{if(!d){i(),s((0,zu.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});return}u(!0);let h=[];if(t>0&&h.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&h.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),h.length===0){u(!1),i();return}let p=h.length===1?h[0].type:"cropAndRotate";try{let g=await d(r,{src:o,modifiers:h},{throwOnError:!0});g&&(n({id:g.id,url:g.source_url}),a(VFe[p],{type:"snackbar",actions:[{label:(0,zu.__)("Undo"),onClick:()=>{n({id:r,url:o})}}]}))}catch(g){s((0,zu.sprintf)((0,zu.__)("Could not edit image. %s"),(0,Sfe.__unstableStripHTML)(g.message)),{id:"image-editing-error",type:"snackbar"})}finally{u(!1),i()}},[e,t,r,o,n,s,a,i,d]);return(0,Qh.useMemo)(()=>({isInProgress:l,apply:m,cancel:f}),[l,m,f])}var al=c(A(),1),xfe=c(Ft(),1);function wfe({url:e,naturalWidth:t,naturalHeight:o}){let[r,n]=(0,al.useState)(),{cropperState:i,setCropperState:s}=E0(),{zoom:a,aspectRatio:l,crop:u,croppedArea:d}=i,f=(0,al.useCallback)(y=>{s({zoom:y})},[s]),m=(0,al.useCallback)(y=>{s({aspectRatio:y})},[s]),h=t/o,p=o/t;(0,al.useEffect)(()=>{m(h)},[]);let[g,b]=(0,al.useState)(0),v=(0,al.useCallback)(()=>{let y=(g+90)%360,k=h,_=a!==1||!(h===l||p===l);if(g%180===90&&(k=1/h),y===0){n(),b(y),s({aspectRatio:_?l:h,crop:{x:-(u.y*k),y:u.x*k}});return}function x(R){let B=document.createElement("canvas"),O=0,I=0;y%180?(B.width=R.target.height,B.height=R.target.width):(B.width=R.target.width,B.height=R.target.height),(y===90||y===180)&&(O=B.width),(y===270||y===180)&&(I=B.height);let P=B.getContext("2d");P.translate(O,I),P.rotate(y*Math.PI/180),P.drawImage(R.target,0,0),B.toBlob(M=>{n(URL.createObjectURL(M)),b(y);let L=_?l:B.width/B.height;s({aspectRatio:L,crop:{x:-(u.y*k),y:u.x*k}})})}let E=new window.Image;E.src=e,E.onload=x;let T=(0,xfe.applyFilters)("media.crossOrigin",void 0,e);typeof T=="string"&&(E.crossOrigin=T)},[g,h,e,s,u,a,l,p,b]);return(0,al.useMemo)(()=>({editedUrl:r,setEditedUrl:n,crop:d,zoom:a,setZoom:f,rotation:g,rotateClockwise:v,aspect:l,setAspect:m,defaultAspect:h}),[r,d,a,f,g,v,l,m,h])}var Cfe=c(C(),1),E8=(0,Dv.createContext)({});E8.displayName="ImageEditingContext";var ac=()=>(0,Dv.useContext)(E8);function Efe({id:e,url:t,naturalWidth:o,naturalHeight:r,onFinishEditing:n,onSaveImage:i,children:s}){let a=wfe({url:t,naturalWidth:o,naturalHeight:r}),l=_fe({id:e,url:t,onSaveImage:i,onFinishEditing:n,...a}),u=(0,Dv.useMemo)(()=>({...a,...l}),[a,l]);return(0,Cfe.jsx)(E8.Provider,{value:u,children:s})}var Js=c(C(),1);function p2({aspectRatios:e,isDisabled:t,label:o,onClick:r,value:n}){return(0,Js.jsx)(Fv.MenuGroup,{label:o,children:e.map(({name:i,slug:s,ratio:a})=>(0,Js.jsx)(Fv.MenuItem,{disabled:t,onClick:()=>{r(a)},role:"menuitemradio",isSelected:a===n,icon:a===n?ys:void 0,children:i},s))})}function FFe(e){let[t,o,...r]=e.split("/").map(Number);return t<=0||o<=0||Number.isNaN(t)||Number.isNaN(o)||r.length?NaN:o?t/o:t}function T8({ratio:e,...t}){return{ratio:FFe(e),...t}}function Tfe({toggleProps:e}){let{isInProgress:t,aspect:o,setAspect:r,defaultAspect:n}=ac(),[i,s,a]=xe("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,Js.jsx)(Fv.DropdownMenu,{icon:VN,label:(0,Vv.__)("Aspect Ratio"),popoverProps:f2,toggleProps:e,children:({onClose:l})=>(0,Js.jsxs)(Js.Fragment,{children:[(0,Js.jsx)(p2,{isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:[{slug:"original",name:(0,Vv.__)("Original"),ratio:n},...a?i.map(T8).filter(({ratio:u})=>u===1):[]]}),s?.length>0&&(0,Js.jsx)(p2,{label:(0,Vv.__)("Theme"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:s}),a&&(0,Js.jsx)(p2,{label:(0,Vv.__)("Landscape"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(T8).filter(({ratio:u})=>u>1)}),a&&(0,Js.jsx)(p2,{label:(0,Vv.__)("Portrait"),isDisabled:t,onClick:u=>{r(u),l()},value:o,aspectRatios:i.map(T8).filter(({ratio:u})=>u<1)})]})})}var Bfe=c(N(),1),Rfe=c(oe(),1);var mm=c(C(),1);function Pfe({url:e,width:t,height:o,naturalHeight:r,naturalWidth:n,borderProps:i}){let{isInProgress:s,editedUrl:a,rotation:l}=ac(),[u,{width:d}]=(0,Rfe.useResizeObserver)(),f=o||d*r/n;l%180===90&&(f=d*n/r);let m=(0,mm.jsxs)("div",{className:U("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||d,height:f},children:[(0,mm.jsx)(C8,{src:a||e}),s&&(0,mm.jsx)(Bfe.Spinner,{})]});return(0,mm.jsxs)(mm.Fragment,{children:[u,m]})}var pm=c(N(),1),B8=c(F(),1);var T0=c(C(),1);function Ife(){let{isInProgress:e,zoom:t,setZoom:o}=ac();return(0,T0.jsx)(pm.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:f2,renderToggle:({isOpen:r,onToggle:n})=>(0,T0.jsx)(pm.ToolbarButton,{icon:Z5,label:(0,B8.__)("Zoom"),onClick:n,"aria-expanded":r,disabled:e}),renderContent:()=>(0,T0.jsx)(pm.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,T0.jsx)(pm.RangeControl,{__next40pxDefaultSize:!0,label:(0,B8.__)("Zoom"),min:yfe,max:vfe,value:Math.round(t*100),onChange:r=>o(r/100)})})})}var Ofe=c(N(),1),Afe=c(F(),1);var Lfe=c(C(),1);function Mfe(){let{isInProgress:e,rotateClockwise:t}=ac();return(0,Lfe.jsx)(Ofe.ToolbarButton,{icon:$5,label:(0,Afe.__)("Rotate"),onClick:t,disabled:e})}var R8=c(N(),1),P8=c(F(),1);var Jh=c(C(),1);function Nfe(){let{isInProgress:e,apply:t,cancel:o}=ac();return(0,Jh.jsxs)(Jh.Fragment,{children:[(0,Jh.jsx)(R8.ToolbarButton,{onClick:t,disabled:e,children:(0,P8.__)("Apply")}),(0,Jh.jsx)(R8.ToolbarButton,{onClick:o,children:(0,P8.__)("Cancel")})]})}var rs=c(C(),1);function Dfe({id:e,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i,onSaveImage:s,onFinishEditing:a,borderProps:l}){return(0,rs.jsx)(w8,{children:(0,rs.jsxs)(Efe,{id:e,url:t,naturalWidth:i,naturalHeight:n,onSaveImage:s,onFinishEditing:a,children:[(0,rs.jsx)(Pfe,{borderProps:l,url:t,width:o,height:r,naturalHeight:n,naturalWidth:i}),(0,rs.jsxs)(mo,{children:[(0,rs.jsxs)(B0.ToolbarGroup,{children:[(0,rs.jsx)(Ife,{}),(0,rs.jsx)(B0.ToolbarItem,{children:u=>(0,rs.jsx)(Tfe,{toggleProps:u})}),(0,rs.jsx)(Mfe,{})]}),(0,rs.jsx)(B0.ToolbarGroup,{children:(0,rs.jsx)(Nfe,{})})]})]})})}var ns=c(N(),1),hm=c(F(),1);var zv=c(A(),1);function Vfe(e,t,o,r,n){let[i,s]=(0,zv.useState)(t??r??""),[a,l]=(0,zv.useState)(e??o??"");return(0,zv.useEffect)(()=>{t===void 0&&r!==void 0&&s(r),e===void 0&&o!==void 0&&l(o)},[r,o]),(0,zv.useEffect)(()=>{t!==void 0&&Number.parseInt(t)!==Number.parseInt(i)&&s(t),e!==void 0&&Number.parseInt(e)!==Number.parseInt(a)&&l(e)},[t,e]),{currentHeight:a,currentWidth:i,updateDimension:(f,m)=>{let h=m===""?void 0:parseInt(m,10);f==="width"?s(h):l(h),n({[f]:h})},updateDimensions:(f,m)=>{l(f??o),s(m??r),n({height:f,width:m})}}}var ea=c(C(),1),Ffe=[25,50,75,100],zFe=()=>{};function zfe(e,t,o){let r=Math.round(t*(e/100)),n=Math.round(o*(e/100));return{scaledWidth:r,scaledHeight:n}}function jfe({imageSizeHelp:e,imageWidth:t,imageHeight:o,imageSizeOptions:r=[],isResizable:n=!0,slug:i,width:s,height:a,onChange:l,onChangeImage:u=zFe}){let{currentHeight:d,currentWidth:f,updateDimension:m,updateDimensions:h}=Vfe(a,s,o,t,l),p=b=>{if(b===void 0){h();return}let{scaledWidth:v,scaledHeight:y}=zfe(b,t,o);h(y,v)},g=Ffe.find(b=>{let{scaledWidth:v,scaledHeight:y}=zfe(b,t,o);return f===v&&d===y});return(0,ea.jsxs)(ns.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[r&&r.length>0&&(0,ea.jsx)(ns.SelectControl,{label:(0,hm.__)("Resolution"),value:i,options:r,onChange:u,help:e,size:"__unstable-large"}),n&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)(ns.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,ea.jsx)(ns.__experimentalNumberControl,{label:(0,hm.__)("Width"),value:f,min:1,onChange:b=>m("width",b),size:"__unstable-large"}),(0,ea.jsx)(ns.__experimentalNumberControl,{label:(0,hm.__)("Height"),value:d,min:1,onChange:b=>m("height",b),size:"__unstable-large"})]}),(0,ea.jsx)(ns.__experimentalToggleGroupControl,{label:(0,hm.__)("Image size presets"),hideLabelFromVision:!0,onChange:p,value:g,isBlock:!0,__next40pxDefaultSize:!0,children:Ffe.map(b=>(0,ea.jsx)(ns.__experimentalToggleGroupControlOption,{value:b,label:(0,hm.sprintf)((0,hm.__)("%d%%"),b)},b))})]})]})}var h2=c(N(),1);var eg=c(F(),1),Ufe=c(C(),1),Hfe={left:Rd,center:Bd,right:Pd,"space-between":Kg,stretch:Yg};function jFe({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:o,value:r,popoverProps:n,isToolbar:i}){let s=f=>{o(f===r?void 0:f)},a=r?Hfe[r]:Hfe.left,l=[{name:"left",icon:Rd,title:(0,eg.__)("Justify items left"),isActive:r==="left",onClick:()=>s("left")},{name:"center",icon:Bd,title:(0,eg.__)("Justify items center"),isActive:r==="center",onClick:()=>s("center")},{name:"right",icon:Pd,title:(0,eg.__)("Justify items right"),isActive:r==="right",onClick:()=>s("right")},{name:"space-between",icon:Kg,title:(0,eg.__)("Space between items"),isActive:r==="space-between",onClick:()=>s("space-between")},{name:"stretch",icon:Yg,title:(0,eg.__)("Stretch items"),isActive:r==="stretch",onClick:()=>s("stretch")}],u=i?h2.ToolbarGroup:h2.ToolbarDropdownMenu,d=i?{isCollapsed:t}:{};return(0,Ufe.jsx)(u,{icon:a,popoverProps:n,label:(0,eg.__)("Change items justification"),controls:l.filter(f=>e.includes(f.name)),...d})}var I8=jFe;var O8=c(C(),1),hb=e=>(0,O8.jsx)(I8,{...e,isToolbar:!1}),Gfe=e=>(0,O8.jsx)(I8,{...e,isToolbar:!0});var Un=c(N(),1),ll=c(F(),1),Lo=c(A(),1),Nme=c(oe(),1),Dme=c(at(),1),Vme=c(Bt(),1),Fme=c(Ix(),1),B2=c(G(),1),j8=c(nb(),1);var zme=c(Je(),1),R2=c(Ai(),1);var jv=c(N(),1);var g2=c(oe(),1),b2=c(F(),1),Wfe=c(A(),1),ju=c(C(),1);function $fe({children:e,settingsOpen:t,setSettingsOpen:o}){let r=(0,g2.useReducedMotion)(),n=r?Wfe.Fragment:jv.__unstableAnimatePresence,i=r?"div":jv.__unstableMotion.div,a=`link-control-settings-drawer-${(0,g2.useInstanceId)($fe)}`;return(0,ju.jsxs)(ju.Fragment,{children:[(0,ju.jsx)(jv.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>o(!t),icon:(0,b2.isRTL)()?dS:Td,"aria-controls":a,children:(0,b2._x)("Advanced","Additional link settings")}),(0,ju.jsx)(n,{children:t&&(0,ju.jsx)(i,{className:"block-editor-link-control__drawer",hidden:!t,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,ju.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}var Kfe=$fe;var x2=c(A(),1),F8=c(F(),1),fme=c(Je(),1);var R0=c(F(),1),nme=c(N(),1);var y2=c(F(),1),Yfe=c(N(),1),qfe=c(A(),1);var A8=c(C(),1),HFe=({searchTerm:e,onClick:t,itemProps:o,buttonText:r})=>{if(!e)return null;let n;return r?n=typeof r=="function"?r(e):r:n=(0,qfe.createInterpolateElement)((0,y2.sprintf)((0,y2.__)("Create: <mark>%s</mark>"),e),{mark:(0,A8.jsx)("mark",{})}),(0,A8.jsx)(Yfe.MenuItem,{...o,iconPosition:"left",icon:ks,className:"block-editor-link-control__search-item",onClick:t,children:n})},Zfe=HFe;var Hu=c(F(),1),k2=c(N(),1);var Xfe=c(at(),1),Uv=c(Ai(),1),Qfe=c(oe(),1),Jfe=c(Je(),1),Hv=c(C(),1),v2={post:{icon:U5,label:(0,Hu.__)("Post")},page:{icon:wp,label:(0,Hu.__)("Page")},post_tag:{icon:yV,label:(0,Hu.__)("Tag")},category:{icon:UN,label:(0,Hu.__)("Category")},attachment:{icon:yD,label:(0,Hu.__)("Attachment")}};function UFe({isURL:e,suggestion:t}){let o=null;return e?o=mS:t.type in v2&&(o=v2[t.type].icon,t.type==="page"&&(t.isFrontPage&&(o=ZD),t.isBlogHome&&(o=OV))),o?(0,Hv.jsx)(We,{className:"block-editor-link-control__search-item-icon",icon:o}):null}function GFe(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function WFe(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}var $Fe=(e,...t)=>(...o)=>e(...o,...t),KFe=e=>t=>t==null||t!==t?e:t;function YFe(e){return e&&(0,Qfe.pipe)(Uv.safeDecodeURI,Uv.getPath,KFe(""),$Fe(Uv.filterURLForDisplay,24),WFe,GFe)(e)}var eme=({itemProps:e,suggestion:t,searchTerm:o,onClick:r,isURL:n=!1,shouldShowType:i=!1})=>{let s=n?(0,Hu.__)("Press ENTER to add this link"):YFe(t.url);return(0,Hv.jsx)(k2.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,Hv.jsx)(UFe,{suggestion:t,isURL:n}),onClick:r,shortcut:i&&qFe(t),className:"block-editor-link-control__search-item",children:(0,Hv.jsx)(k2.TextHighlight,{text:(0,Xfe.__unstableStripHTML)(t.title),highlight:o})})};function qFe(e){return e.isFrontPage?(0,Hu.__)("Front page"):e.isBlogHome?(0,Hu.__)("Blog home"):e.type in v2?v2[e.type].label:e.type}var tme=eme,ome=e=>((0,Jfe.default)("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,Hv.jsx)(eme,{...e}));var rme=c(F(),1),tg="__CREATE__",L8="tel",S2="link",M8="mailto",N8="internal",Gv=[S2,M8,L8,N8],D8=[{id:"opensInNewTab",title:(0,rme.__)("Open in new tab")}];var ime=c(Je(),1),og=c(C(),1);function sme({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:n,suggestions:i,selectedSuggestion:s,isLoading:a,isInitialSuggestions:l,createSuggestionButtonText:u,suggestionsQuery:d}){let f=U("block-editor-link-control__search-results",{"is-loading":a}),m=i.length===1&&Gv.includes(i[0].type),h=e&&!m&&!l,p=!d?.type,g=l?(0,R0.__)("Suggestions"):(0,R0.sprintf)((0,R0.__)('Search results for "%s"'),t);return(0,og.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,og.jsx)("div",{...r,className:f,"aria-label":g,children:(0,og.jsx)(nme.MenuGroup,{children:i.map((b,v)=>h&&tg===b.type?(0,og.jsx)(Zfe,{searchTerm:t,buttonText:u,onClick:()=>o(b),itemProps:n(b,v),isSelected:v===s},b.type):tg===b.type?null:(0,og.jsx)(tme,{itemProps:n(b,v),suggestion:b,index:v,onClick:()=>{o(b)},isSelected:v===s,isURL:Gv.includes(b.type),searchTerm:t,shouldShowType:p,isFrontPage:b?.isFrontPage,isBlogHome:b?.isBlogHome},`${b.id}-${b.type}`))})})})}var ame=sme,lme=e=>((0,ime.default)("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,og.jsx)(sme,{...e}));var cme=c(A(),1),ume=c(G(),1);var _2=c(Ai(),1);function P0(e){let t=e?.trim();if(!t)return{url:t,type:S2};let o=S2,r=(0,_2.getProtocol)(t)||"";return r.includes("mailto")?o=M8:r.includes("tel")?o=L8:t?.startsWith("#")&&(o=N8),lp(t)||cp(t)||t.startsWith("?")||r?{url:t,type:o}:{url:(0,_2.prependHTTPS)(t),type:o}}var ZFe=()=>Promise.resolve([]),XFe=e=>{let{url:t,type:o}=P0(e);return Promise.resolve([{id:e,title:e,url:t,type:o}])},QFe=async(e,t,o,r,n,i)=>{let{isInitialSuggestions:s}=t,a=await o(e,t);return a.map(l=>Number(l.id)===n?(l.isFrontPage=!0,l):(Number(l.id)===i&&(l.isBlogHome=!0),l)),s||up(e)||!r?a:a.concat({title:e,url:e,type:tg})};function dme(e,t,o){let{fetchSearchSuggestions:r,pageOnFront:n,pageForPosts:i}=(0,ume.useSelect)(a=>{let{getSettings:l}=a(w);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),s=t?XFe:ZFe;return(0,cme.useCallback)((a,{isInitialSuggestions:l})=>up(a)?s(a,{isInitialSuggestions:l}):QFe(a,{...e,isInitialSuggestions:l},r,o,n,i),[s,r,n,i,e,o])}var Wv=c(C(),1),JFe=()=>Promise.resolve([]),V8=()=>{},mme=(0,x2.forwardRef)(({value:e,children:t,currentLink:o={},className:r=null,placeholder:n=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=V8,onChange:a=V8,onSelect:l=V8,showSuggestions:u=!0,renderSuggestions:d=x=>(0,Wv.jsx)(ame,{...x}),fetchSuggestions:f=null,allowDirectEntry:m=!0,showInitialSuggestions:h=!1,suggestionsQuery:p={},withURLSuggestion:g=!0,createSuggestionButtonText:b,hideLabelFromVision:v=!1,suffix:y,isEntity:k=!1,customValidity:S},_)=>{let x=dme(p,m,i,g),E=u?f||x:JFe,[T,R]=(0,x2.useState)(),B=(L,j)=>{a(L),R(j)},O=L=>d({...L,withCreateSuggestion:i,createSuggestionButtonText:b,suggestionsQuery:p,handleSuggestionClick:j=>{L.handleSuggestionClick&&L.handleSuggestionClick(j),I(j)}}),I=async L=>{let j=L;if(tg===L.type){try{j=await s(L.title),j?.url&&l(j)}catch{}return}if(m||j&&Object.keys(j).length>=1){let{id:V,url:D,kind:z,type:W,...K}=o??{};l({...K,...j},j)}},P=n??(0,F8.__)("Search or type URL"),M=v&&n!==""?P:(0,F8.__)("Link");return(0,Wv.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,Wv.jsx)(gm,{disableSuggestions:o?.url===e,label:M,hideLabelFromVision:v,className:r,value:e,onChange:B,placeholder:P,__experimentalRenderSuggestions:u?O:null,__experimentalFetchLinkSuggestions:E,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,customValidity:S,required:!1,onSubmit:(L,j)=>{let V=L||T;!V&&!e?.trim()?.length?j.preventDefault():I(V||{url:e})},inputRef:_,suffix:y,disabled:k}),t]})}),pme=mme,hme=e=>((0,fme.default)("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,Wv.jsx)(mme,{...e}));var bm=c(F(),1),ur=c(N(),1),kme=c(oe(),1),E2=c(Ai(),1);var Sme=c(at(),1),T2=c(G(),1),_me=c(Ni(),1),xme=c(nb(),1);var gme=c(N(),1),{Slot:bme,Fill:yme}=(0,gme.createSlotFill)("BlockEditorLinkControlViewer");var vme=c(G(),1),w2=c(A(),1);function e4e(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}function t4e(e){let[t,o]=(0,w2.useReducer)(e4e,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,vme.useSelect)(n=>{let{getSettings:i}=n(w);return{fetchRichUrlData:i().__experimentalFetchRichUrlData}},[]);return(0,w2.useEffect)(()=>{if(e?.length&&r&&typeof AbortController<"u"){o({type:"LOADING"});let n=new window.AbortController,i=n.signal;return r(e,{signal:i}).then(s=>{o({type:"RESOLVED",richData:s})}).catch(()=>{i.aborted||o({type:"ERROR"})}),()=>{n.abort()}}},[e]),t}var C2=t4e;var Zt=c(C(),1),{Badge:o4e}=H(ur.privateApis);function wme({value:e,onEditClick:t,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:n}){let i=(0,T2.useSelect)(b=>b(xme.store).get("core","showIconLabels"),[]),s=o?e?.url:null,{richData:a,isFetching:l}=C2(s),u=a&&Object.keys(a).length,d=e&&(0,E2.filterURLForDisplay)((0,E2.safeDecodeURI)(e.url),24)||"",f=!e?.url?.length,m=!f&&(0,Sme.__unstableStripHTML)(e?.entityTitle||a?.title||e?.title||d),h;a?.icon?h=(0,Zt.jsx)("img",{src:a?.icon,alt:""}):f?h=(0,Zt.jsx)(We,{icon:JD,size:32}):h=(0,Zt.jsx)(We,{icon:mS});let{createNotice:p}=(0,T2.useDispatch)(_me.store),g=(0,kme.useCopyToClipboard)(e.url,()=>{p("info",(0,bm.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Zt.jsx)(ur.Flex,{role:"group","aria-label":(0,bm.__)("Manage link"),className:U("block-editor-link-control__preview",{"is-current":!0,"is-rich":u,"is-fetching":!!l,"is-preview":!0,"is-error":f,"is-url-title":m===d}),children:(0,Zt.jsxs)(ur.Flex,{gap:0,align:"flex-start",children:[(0,Zt.jsxs)(ur.Flex,{className:"block-editor-link-control__link-information",role:"figure","aria-label":(0,bm.__)("Link information"),justify:"start",align:"flex-start",children:[e?.image?(0,Zt.jsx)(ur.Flex,{className:"block-editor-link-control__preview-image",justify:"center",children:(0,Zt.jsx)("img",{src:e?.image,alt:""})}):(0,Zt.jsx)(ur.Flex,{className:U("block-editor-link-control__preview-icon",{"is-image":a?.icon}),justify:"center",children:h}),(0,Zt.jsx)(ur.Flex,{className:"block-editor-link-control__preview-details",direction:"column",gap:2,children:f?(0,Zt.jsx)("span",{className:"block-editor-link-control__preview-error-notice",children:(0,bm.__)("Link is empty")}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(ur.ExternalLink,{className:"block-editor-link-control__preview-title",href:e.url,children:(0,Zt.jsx)(ur.__experimentalTruncate,{numberOfLines:1,children:m})}),(0,Zt.jsx)("span",{className:"block-editor-link-control__preview-info",children:(0,Zt.jsx)(ur.__experimentalTruncate,{numberOfLines:1,children:d})}),e?.badges?.length>0&&(0,Zt.jsx)(ur.__experimentalHStack,{className:"block-editor-link-control__preview-badges",alignment:"left",gap:1,children:e.badges.map((b,v)=>(0,Zt.jsx)(o4e,{intent:b.intent,children:b.label},`${b.label}|${b.intent}|${v}`))})]})})]}),(0,Zt.jsx)(ur.Button,{icon:Cp,label:(0,bm.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),r&&(0,Zt.jsx)(ur.Button,{icon:vs,label:(0,bm.__)("Remove link"),onClick:n,size:"compact",showTooltip:!i}),(0,Zt.jsx)(ur.Button,{icon:tD,label:(0,bm.__)("Copy link"),ref:g,accessibleWhenDisabled:!0,disabled:f,size:"compact",showTooltip:!i}),(0,Zt.jsx)(bme,{fillProps:e})]})})}var Cme=c(F(),1),Eme=c(N(),1);var rg=c(C(),1),r4e=()=>{},n4e=({value:e,onChange:t=r4e,settings:o})=>{if(!o||!o.length)return null;let r=i=>s=>{t({...e,[i.id]:s})},n=o.map(i=>{if("render"in i){if(typeof i.render=="function"){let s=i.render(i,e,t);return(0,rg.jsx)("div",{className:"block-editor-link-control__setting",children:s},i.id)}return null}return(0,rg.jsx)(Eme.CheckboxControl,{className:"block-editor-link-control__setting",label:i.title,onChange:r(i),checked:e?!!e[i.id]:!1,help:i?.help},i.id)}).filter(Boolean);return(0,rg.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,rg.jsx)(ct,{render:(0,rg.jsx)("legend",{}),children:(0,Cme.__)("Currently selected link settings")}),n]})},Tme=n4e;var Bme=c(F(),1),ng=c(A(),1);function Rme(e){let t=(0,ng.useRef)(),[o,r]=(0,ng.useState)(!1),[n,i]=(0,ng.useState)(null),s=async function(a){r(!0),i(null);try{return t.current=i4e(Promise.resolve(e(a))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw i(l.message||(0,Bme.__)("An unknown error occurred during creation. Please try again.")),l}finally{r(!1)}};return(0,ng.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:s,isCreatingPage:o,errorMessage:n}}var i4e=e=>{let t=!1;return{promise:new Promise((r,n)=>{e.then(i=>t?n({isCanceled:!0}):r(i),i=>n(t?{isCanceled:!0}:i))}),cancel(){t=!0}}};var z8=c(A(),1),Ome=c(Ime(),1);function Ame(e){let[t,o]=(0,z8.useState)(e||{}),[r,n]=(0,z8.useState)(e);return(0,Ome.default)(e,r)||(n(e),o(e)),[t,o,l=>{o({...t,url:l})},l=>{o({...t,title:l})},l=>u=>{let d=Object.keys(u).reduce((f,m)=>(l.includes(m)&&(f[m]=u[m]),f),{});o({...t,...d})}]}var io=c(C(),1),H8=()=>{},Lme="core/block-editor",Mme="linkControlSettingsDrawer";function ig({searchInputPlaceholder:e,value:t,settings:o=D8,onChange:r=H8,onInputChange:n,onRemove:i,onCancel:s,noDirectEntry:a=!1,showSuggestions:l=!0,showInitialSuggestions:u,forceIsEditingLink:d,createSuggestion:f,withCreateSuggestion:m,inputValue:h="",suggestionsQuery:p={},noURLSuggestion:g=!1,createSuggestionButtonText:b,hasRichPreviews:v=!1,hasTextControl:y=!1,renderControlBottom:k=null,handleEntities:S=!1}){m===void 0&&f&&(m=!0);let[_,x]=(0,Lo.useState)(!1),[E,T]=(0,Lo.useState)(void 0),{advancedSettingsPreference:R}=(0,B2.useSelect)(de=>({advancedSettingsPreference:de(j8.store).get(Lme,Mme)??!1}),[]),{set:B}=(0,B2.useDispatch)(j8.store),O=de=>{B&&B(Lme,Mme,de),x(de)},I=R||_,P=(0,Lo.useRef)(!0),M=(0,Lo.useRef)(),L=(0,Lo.useRef)(),j=(0,Lo.useRef)(),V=(0,Lo.useRef)(),D=o.map(({id:de})=>de),[z,W,K,ne,X]=Ame(t),ee=de=>{K(de),n?.(de)},Y=S&&!!z?.id,$=(0,Nme.useInstanceId)(ig,"link-control"),Z=Y?`${$}__help`:null,q=t&&!(0,Fme.isShallowEqualObjects)(z,t),[J,re]=(0,Lo.useState)(d!==void 0?d:!t||!t.url),{createPage:ie,isCreatingPage:ce,errorMessage:_e}=Rme(f);(0,Lo.useEffect)(()=>{d!==void 0&&re(d)},[d]),(0,Lo.useEffect)(()=>{if(P.current)return;(Dme.focus.focusable.find(M.current)[0]||M.current).focus()},[J,ce]),(0,Lo.useEffect)(()=>(P.current=!1,()=>{P.current=!0}),[]);let ae=(0,Lo.useRef)();(0,Lo.useEffect)(()=>{if(ae.current===void 0){ae.current=h;return}ae.current!==h&&(console.warn("LinkControl: The inputValue prop is uncontrolled and only sets the initial value. onInputChange is an observer for the input value. Changes to inputValue from the parent will not update the search input."),ae.current=h)},[h]),(0,Lo.useEffect)(()=>{if(E?.type==="invalid"){let de=j.current;de&&typeof de.reportValidity=="function"&&de.reportValidity()}},[E]);let we=t?.url?.trim()?.length>0,Te=()=>{re(!1)},Fe=de=>{let He={type:"invalid",message:(0,ll.__)("Please enter a valid URL.")},dt={type:"valid"},je=de?.trim();if(!je?.length||!up(je))return He;if(lp(je)||cp(je))return dt;let ve=(0,R2.prependHTTPS)(je);return(0,R2.isURL)(ve)?dt:He},Qe=de=>{if(!(de&&de.id&&de.type&&!Gv.includes(de.type))){let je=de?.url||tt,ve=Fe(je);if(ve.type==="invalid"){T(ve);return}let{url:ot}=P0(je);de={...de,url:ot}}de?.kind==="taxonomy"&&de?.url&&(V.current=de.url);let dt=Object.keys(de).reduce((je,ve)=>(D.includes(ve)||(je[ve]=de[ve]),je),{});r({...z,...dt,title:z?.title||de?.title}),T(void 0),Te()},Ae=()=>{if(ut)return!1;let de=tt.trim(),He=z&&z.id&&z.type&&!Gv.includes(z.type),dt=t?.url===de;if(He&&dt)return T(void 0),!0;let je=Fe(tt);return je.type==="invalid"?(T(je),!1):(T(void 0),!0)},nt=()=>{q&&r({...t,...z,url:P0(tt).url}),Te(),T(void 0)},ke=()=>{Ae()&&nt()},Lt=de=>{let{keyCode:He}=de;He===Vme.ENTER&&!ut&&(de.preventDefault(),ke())},le=()=>{W(t)},fe=de=>{de.preventDefault(),de.stopPropagation(),le(),T(void 0),we?Te():i?.(),s?.()},[Re,Ze]=(0,Lo.useState)(!1),gt=()=>{let{id:de,kind:He,type:dt,...je}=z;W({...je,id:void 0,kind:void 0,type:void 0,url:void 0}),Ze(!0)};(0,Lo.useEffect)(()=>{Re&&(j.current?.focus(),Ze(!1))},[Re]);let tt=z?.url!==void 0?z.url:h||"",ut=!tt?.trim()?.length;(0,Lo.useEffect)(()=>{T(void 0)},[tt]);let Mt=!E,Le=i&&t&&!J&&!ce,De=J&&we,Ke=we&&y,Ye=(J||!t)&&!ce,bt=ut||!Mt||t&&!q,eo=!!o?.length&&J&&we,vo=(0,Lo.useMemo)(()=>t?.kind==="taxonomy"&&!t?.url&&V.current?{...t,url:V.current}:t,[t]);return(0,io.jsxs)("div",{tabIndex:-1,ref:M,className:"block-editor-link-control",children:[ce&&(0,io.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,io.jsx)(Un.Spinner,{})," ",(0,ll.__)("Creating"),"\u2026"]}),Ye&&(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)("div",{className:U({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":Ke,"has-actions":De}),children:[Ke&&(0,io.jsx)(Un.TextControl,{ref:L,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,ll.__)("Text"),value:z?.title,onChange:ne,onKeyDown:Lt,__next40pxDefaultSize:!0}),(0,io.jsx)(pme,{ref:j,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:tt,withCreateSuggestion:m,onCreateSuggestion:ie,onChange:ee,onSelect:Qe,showInitialSuggestions:u,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:p,withURLSuggestion:!g,createSuggestionButtonText:b,hideLabelFromVision:!Ke,isEntity:Y,customValidity:E,suffix:(0,io.jsx)(s4e,{isEntity:Y,showActions:De,isDisabled:bt,onUnlink:gt,onSubmit:ke,helpTextId:Z})}),Y&&Z&&(0,io.jsx)("p",{id:Z,className:"block-editor-link-control__help",children:(0,ll.sprintf)((0,ll.__)("Synced with the selected %s."),z?.type||"item")})]}),_e&&(0,io.jsx)(Un.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:_e})]}),t&&!J&&!ce&&(0,io.jsx)(wme,{value:vo,onEditClick:()=>re(!0),hasRichPreviews:v,hasUnlinkControl:Le,onRemove:()=>{i(),re(!0)}},vo?.url),eo&&(0,io.jsx)("div",{className:"block-editor-link-control__tools",children:!ut&&(0,io.jsx)(Kfe,{settingsOpen:I,setSettingsOpen:O,children:(0,io.jsx)(Tme,{value:z,settings:o,onChange:X(D)})})}),De&&(0,io.jsxs)(Un.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,io.jsx)(Un.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:fe,children:(0,ll.__)("Cancel")}),(0,io.jsx)(Un.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:bt?H8:ke,className:"block-editor-link-control__search-submit","aria-disabled":bt,children:(0,ll.__)("Apply")})]}),!ce&&k&&k()]})}function s4e({isEntity:e,showActions:t,isDisabled:o,onUnlink:r,onSubmit:n,helpTextId:i}){if(e)return(0,io.jsx)(Un.Button,{icon:vs,onClick:r,"aria-describedby":i,showTooltip:!0,label:(0,ll.__)("Unsync and edit"),__next40pxDefaultSize:!0});if(!t)return(0,io.jsx)(Un.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,io.jsx)(Un.Button,{onClick:o?H8:n,label:(0,ll.__)("Submit"),icon:Lc,className:"block-editor-link-control__search-submit","aria-disabled":o,size:"small"})})}ig.ViewerFill=yme;ig.DEFAULT_LINK_SETTINGS=D8;var P2=e=>((0,zme.default)("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,io.jsx)(ig,{...e}));P2.ViewerFill=ig.ViewerFill;P2.DEFAULT_LINK_SETTINGS=ig.DEFAULT_LINK_SETTINGS;var ym=ig;var Hme=c(F(),1),Ume=c(N(),1),Gme=c(Je(),1);var I0=1.5,U8=.01,G8=10,W8="";function jme(e){return e!==void 0&&e!==W8}var $8=c(C(),1),a4e=({__next40pxDefaultSize:e=!1,value:t,onChange:o,__unstableInputWidth:r="60px",...n})=>{let i=jme(t),s=(d,f)=>{if(i)return d;let m=U8*G8;switch(`${d}`){case`${m}`:return I0+m;case"0":return f?d:I0-m;case"":return I0;default:return d}},a=(d,f)=>{let m=["insertText","insertFromPaste"].includes(f.payload.event.nativeEvent?.inputType),h=s(d.value,m);return{...d,value:h}},l=i?t:W8,u=(d,{event:f})=>{if(d===""){o();return}if(f.type==="click"){o(s(`${d}`,!1));return}o(`${d}`)};return!e&&(n.size===void 0||n.size==="default")&&(0,Gme.default)("36px default size for wp.blockEditor.LineHeightControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),(0,$8.jsx)("div",{className:"block-editor-line-height-control",children:(0,$8.jsx)(Ume.__experimentalNumberControl,{...n,__shouldNotWarnDeprecated36pxSize:!0,__next40pxDefaultSize:e,__unstableInputWidth:r,__unstableStateReducer:a,onChange:u,label:(0,Hme.__)("Line height"),placeholder:I0,step:U8,spinFactor:G8,value:l,min:0,spinControls:"custom"})})},I2=a4e;var lc=c(F(),1),Wme=c(Cr(),1),Gn=c(N(),1),A2=c(G(),1),$me=c(Bt(),1);var Kme=c(oe(),1),Yme=c(at(),1),qme=c(Ni(),1),Zme=c(A(),1);function O2(e,t,o){if(o)return o;if(!t||typeof t!="object"||Object.keys(t).length===0)return e&&e.length>0?e.map(n=>`${n}/*`).join(","):void 0;if(!e||e.length===0)return;let r=[];for(let[,n]of Object.entries(t))e.some(s=>s.includes("/")?n===s:n.startsWith(`${s}/`))&&r.push(n);return r.length>0?r.join(","):e.map(n=>`${n}/*`).join(",")}var Mr=c(C(),1),l4e=()=>{},c4e=0,u4e=({mediaURL:e,mediaId:t,mediaIds:o,allowedTypes:r,accept:n,onError:i,onSelect:s,onSelectURL:a,onReset:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:f=l4e,name:m=(0,lc.__)("Replace"),createNotice:h,removeNotice:p,children:g,multiple:b=!1,addToGallery:v,handleUpload:y=!0,variant:k,popoverProps:S,renderToggle:_,className:x})=>{let{mediaUpload:E,allowedMimeTypes:T}=(0,A2.useSelect)(D=>{let{getSettings:z}=D(w),W=z();return{mediaUpload:W.mediaUpload,allowedMimeTypes:W.allowedMimeTypes}},[]),R=`block-editor/media-replace-flow/error-notice/${++c4e}`,B=(0,Zme.useMemo)(()=>O2(r,T,n),[r,T,n]),O=D=>{let z=(0,Yme.__unstableStripHTML)(D);if(i){i(z);return}setTimeout(()=>{h("error",z,{speak:!0,id:R,isDismissible:!0})},1e3)},I=(D,z)=>{d&&u&&u(),z(),s(D),(0,Wme.speak)((0,lc.__)("The media file has been replaced")),p(R)},P=(D,z)=>{let W=D.target.files;if(!y)return z(),s(W);f(W),E({allowedTypes:r,filesList:W,onFileChange:([K])=>{I(K,z)},onError:O})},M=D=>{D.keyCode===$me.DOWN&&(D.preventDefault(),D.target.click())},j=b&&(!r||r.length===0?!1:r.every(D=>D==="image"||D.startsWith("image/"))),V={...S,variant:k};return(0,Mr.jsx)(Gn.Dropdown,{popoverProps:V,className:x,contentClassName:U("block-editor-media-replace-flow__options",k&&`is-variant-${k}`),renderToggle:({isOpen:D,onToggle:z})=>_?_({"aria-expanded":D,"aria-haspopup":"true",onClick:z,onKeyDown:M,children:m}):(0,Mr.jsx)(Gn.ToolbarButton,{"aria-expanded":D,"aria-haspopup":"true",onClick:z,onKeyDown:M,children:m}),renderContent:({onClose:D})=>(0,Mr.jsxs)(Mr.Fragment,{children:[(0,Mr.jsxs)(Gn.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,Mr.jsxs)($a,{children:[(0,Mr.jsx)(Lf,{gallery:j,addToGallery:v,multiple:b,value:b?o:t,onSelect:z=>I(z,D),allowedTypes:r,render:({open:z})=>(0,Mr.jsx)(Gn.MenuItem,{icon:qg,onClick:z,children:(0,lc.__)("Open Media Library")})}),(0,Mr.jsx)(Gn.FormFileUpload,{onChange:z=>{P(z,D)},accept:B,multiple:!!b,render:({openFileDialog:z})=>(0,Mr.jsx)(Gn.MenuItem,{icon:PV,onClick:()=>{z()},children:(0,lc._x)("Upload","verb")})})]}),u&&(0,Mr.jsx)(Gn.MenuItem,{icon:j5,onClick:u,isPressed:d,children:(0,lc.__)("Use featured image")}),typeof g=="function"?g({onClose:D}):g,e&&l&&(0,Mr.jsx)(Gn.MenuItem,{onClick:()=>{l(),D()},children:(0,lc.__)("Reset")})]}),a&&(0,Mr.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,Mr.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,lc.__)("Current media URL:")}),(0,Mr.jsx)(ym,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:z})=>{a(z)},searchInputPlaceholder:(0,lc.__)("Paste or type URL")})]})]})})},$v=(0,Kme.compose)([(0,A2.withDispatch)(e=>{let{createNotice:t,removeNotice:o}=e(qme.store);return{createNotice:t,removeNotice:o}}),(0,Gn.withFilters)("editor.MediaReplaceFlow")])(u4e);var tr=c(N(),1),er=c(F(),1),_m=c(A(),1),upe=c(G(),1);var dpe=c(Je(),1);var Y8=c(F(),1),M2=c(A(),1),Kv=c(N(),1);var cpe=c(Je(),1);var Jme=c(F(),1),epe=c(N(),1);var Xme=c(N(),1),L2=c(Ai(),1),K8=c(C(),1);function Qme({url:e,urlLabel:t,className:o}){let r=U(o,"block-editor-url-popover__link-viewer-url");return e?(0,K8.jsx)(Xme.ExternalLink,{className:r,href:e,children:t||(0,L2.filterURLForDisplay)((0,L2.safeDecodeURI)(e))}):(0,K8.jsx)("span",{className:r})}var O0=c(C(),1);function tpe({className:e,linkClassName:t,onEditLinkClick:o,url:r,urlLabel:n,...i}){return(0,O0.jsxs)("div",{className:U("block-editor-url-popover__link-viewer",e),...i,children:[(0,O0.jsx)(Qme,{url:r,urlLabel:n,className:t}),o&&(0,O0.jsx)(epe.Button,{icon:Cp,label:(0,Jme.__)("Edit"),onClick:o,size:"compact"})]})}var spe=c(F(),1),ape=c(N(),1);var Uu=c(F(),1),A0=c(A(),1),cl=c(Bt(),1),ki=c(N(),1),vm=c(oe(),1),ope=c(G(),1),rpe=c(Ai(),1);var cc=c(C(),1),npe=c(pe(),1),{ValidatedInputControl:d4e}=H(ki.privateApis);function ipe(e){return typeof e=="function"}var f4e=class extends A0.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,A0.createRef)(),this.inputRef=e.inputRef||(0,A0.createRef)(),this.hasRenderedValidation={current:!1},this.updateSuggestions=(0,vm.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){let{showSuggestions:t,selectedSuggestion:o}=this.state,{value:r,__experimentalShowInitialSuggestions:n=!1}=this.props;t&&o!==null&&this.suggestionNodes[o]&&this.suggestionNodes[o].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),e.value!==r&&!this.props.disableSuggestions&&(r?.length?this.updateSuggestions(r):n&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){let{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){let{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:o}=this.props;if(!t)return;let r=!e?.length;if(e=e.trim(),!r&&(e.length<2||!o&&(0,rpe.isURL)(e))){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});return}this.setState({selectedSuggestion:null,loading:!0});let n=t(e,{isInitialSuggestions:r});n.then(i=>{this.suggestionsRequest===n&&(this.setState({suggestions:i,suggestionsValue:e,loading:!1,showSuggestions:!!i.length}),i.length?this.props.debouncedSpeak((0,Uu.sprintf)((0,Uu._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",i.length),i.length),"assertive"):this.props.debouncedSpeak((0,Uu.__)("No results."),"assertive"))}).catch(()=>{this.suggestionsRequest===n&&this.setState({loading:!1})}).finally(()=>{this.suggestionsRequest===n&&(this.suggestionsRequest=null)}),this.suggestionsRequest=n}onChange(e){this.props.onChange(e)}onFocus(){let{suggestions:e}=this.state,{disableSuggestions:t,value:o}=this.props;o&&!t&&!(e&&e.length)&&this.suggestionsRequest===null&&this.updateSuggestions(o)}onKeyDown(e){this.props.onKeyDown?.(e);let{showSuggestions:t,selectedSuggestion:o,suggestions:r,loading:n}=this.state;if(!t||!r.length||n){switch(e.keyCode){case cl.UP:{e.target.selectionStart!==0&&(e.preventDefault(),e.target.setSelectionRange(0,0));break}case cl.DOWN:{this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break}case cl.ENTER:{this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e));break}}return}let i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case cl.UP:{e.preventDefault();let s=o?o-1:r.length-1;this.setState({selectedSuggestion:s});break}case cl.DOWN:{e.preventDefault();let s=o===null||o===r.length-1?0:o+1;this.setState({selectedSuggestion:s});break}case cl.TAB:{this.state.selectedSuggestion!==null&&(this.selectLink(i),this.props.speak((0,Uu.__)("Link selected.")));break}case cl.ENTER:{e.preventDefault(),this.state.selectedSuggestion!==null?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,e)):this.props.onSubmit&&this.props.onSubmit(null,e);break}}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:o,__experimentalShowInitialSuggestions:r=!1},{showSuggestions:n}){let i=n,s=e&&e.length;return!r&&!s&&(i=!1),o===!0&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,cc.jsxs)(cc.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){let{label:e=null,className:t,isFullWidth:o,instanceId:r,placeholder:n=(0,Uu.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:s="",hideLabelFromVision:a=!1,help:l=null,disabled:u=!1,customValidity:d,markWhenOptional:f}=this.props,{loading:m,showSuggestions:h,selectedSuggestion:p,suggestionsListboxId:g,suggestionOptionIdPrefix:b}=this.state,v=`url-input-control-${r}`,y={id:v,label:e,className:U("block-editor-url-input",t,{"is-full-width":o}),hideLabelFromVision:a},k={id:v,value:s,required:this.props.required??!0,type:"text",name:v,autoComplete:"off",onChange:u?()=>{}:this.onChange,onFocus:u?()=>{}:this.onFocus,placeholder:n,onKeyDown:u?()=>{}:this.onKeyDown,role:"combobox","aria-label":e?void 0:(0,Uu.__)("URL"),"aria-expanded":h,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":p!==null?`${b}-${p}`:void 0,ref:this.inputRef,disabled:u,suffix:this.props.suffix,help:l},S={customValidity:d,...f!==void 0&&{markWhenOptional:f}};if(i)return i(y,k,m);d!==void 0&&(this.hasRenderedValidation.current=!0);let _=this.hasRenderedValidation.current?d4e:ki.__experimentalInputControl;return(0,cc.jsxs)(ki.BaseControl,{...y,children:[(0,cc.jsx)(_,{...k,...this.hasRenderedValidation.current?S:{},__next40pxDefaultSize:!0}),m&&(0,cc.jsx)(ki.Spinner,{})]})}renderSuggestions(){let{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:o,suggestions:r,suggestionsValue:n,selectedSuggestion:i,suggestionsListboxId:s,suggestionOptionIdPrefix:a,loading:l}=this.state;if(!o||r.length===0)return null;let u={id:s,ref:this.autocompleteRef,role:"listbox"},d=(f,m)=>({role:"option",tabIndex:"-1",id:`${a}-${m}`,ref:this.bindSuggestionNode(m),"aria-selected":m===i?!0:void 0});return ipe(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:u,buildSuggestionItemProps:d,isLoading:l,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!n?.length,currentInputValue:n}):(0,cc.jsx)(ki.Popover,{placement:"bottom",focusOnMount:!1,children:(0,cc.jsx)("div",{...u,className:U("block-editor-url-input__suggestions",{[`${e}__suggestions`]:e}),children:r.map((f,m)=>(0,npe.createElement)(ki.Button,{__next40pxDefaultSize:!0,...d(f,m),key:f.id,className:U("block-editor-url-input__suggestion",{"is-selected":m===i}),onClick:()=>this.handleOnClick(f)},f.title))})})}},gm=(0,vm.compose)(vm.withSafeTimeout,ki.withSpokenMessages,vm.withInstanceId,(0,ope.withSelect)((e,t)=>{if(ipe(t.__experimentalFetchLinkSuggestions))return;let{getSettings:o}=e(w);return{__experimentalFetchLinkSuggestions:o().__experimentalFetchLinkSuggestions}}))(f4e);var L0=c(C(),1);function lpe({autocompleteRef:e,className:t,onChangeInputValue:o,value:r,...n}){return(0,L0.jsxs)("form",{className:U("block-editor-url-popover__link-editor",t),...n,children:[(0,L0.jsx)(gm,{value:r,onChange:o,autocompleteRef:e}),(0,L0.jsx)(ape.Button,{icon:Lc,label:(0,spe.__)("Apply"),type:"submit",size:"compact"})]})}var km=c(C(),1),{__experimentalPopoverLegacyPositionToPlacement:m4e}=H(Kv.privateApis),p4e="bottom",q8=(0,M2.forwardRef)(({additionalControls:e,children:t,renderSettings:o,placement:r,focusOnMount:n="firstElement",position:i,...s},a)=>{i!==void 0&&(0,cpe.default)("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;r!==void 0?l=r:i!==void 0&&(l=m4e(i)),l=l||p4e;let[u,d]=(0,M2.useState)(!1),f=!!o&&u,m=()=>{d(!u)};return(0,km.jsxs)(Kv.Popover,{ref:a,role:"dialog","aria-modal":"true","aria-label":(0,Y8.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:n,placement:l,shift:!0,variant:"toolbar",...s,children:[(0,km.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,km.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!o&&(0,km.jsx)(Kv.Button,{className:"block-editor-url-popover__settings-toggle",icon:Ur,label:(0,Y8.__)("Link settings"),onClick:m,"aria-expanded":u,size:"compact"})]})}),f&&(0,km.jsx)("div",{className:"block-editor-url-popover__settings",children:o()}),e&&!f&&(0,km.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});q8.LinkEditor=lpe;q8.LinkViewer=tpe;var Sm=q8;var _t=c(C(),1),h4e=()=>{},g4e=({src:e,onChange:t,onSubmit:o,onClose:r,popoverAnchor:n})=>(0,_t.jsx)(Sm,{anchor:n,onClose:r,children:(0,_t.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o,children:(0,_t.jsx)(tr.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,er.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,er.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,_t.jsx)(tr.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,_t.jsx)(tr.Button,{size:"small",icon:Lc,label:(0,er.__)("Apply"),type:"submit"})})})})}),b4e=({src:e,onChangeSrc:t,onSelectURL:o})=>{let[r,n]=(0,_m.useState)(null),[i,s]=(0,_m.useState)(!1),a=()=>{s(!0)},l=()=>{s(!1),r?.focus()},u=d=>{d.preventDefault(),e&&o&&(o(e),l())};return(0,_t.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,_t.jsx)(tr.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:a,isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:n,children:(0,er.__)("Insert from URL")}),i&&(0,_t.jsx)(g4e,{src:e,onChange:t,onSubmit:u,onClose:l,popoverAnchor:r})]})};function y4e({value:e={},allowedTypes:t,className:o,icon:r,labels:n={},mediaPreview:i,notices:s,isAppender:a,accept:l,addToGallery:u,multiple:d=!1,handleUpload:f=!0,disableDropZone:m,disableMediaButtons:h,onError:p,onSelect:g,onCancel:b,onSelectURL:v,onToggleFeaturedImage:y,onDoubleClick:k,onFilesPreUpload:S=h4e,onHTMLDrop:_,children:x,mediaLibraryButton:E,placeholder:T,style:R}){_&&(0,dpe.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});let{mediaUpload:B,allowedMimeTypes:O}=(0,upe.useSelect)($=>{let{getSettings:Z}=$(w),q=Z();return{mediaUpload:q.mediaUpload,allowedMimeTypes:q.allowedMimeTypes}},[]),[I,P]=(0,_m.useState)("");(0,_m.useEffect)(()=>{P(e?.src??"")},[e?.src]);let M=(0,_m.useMemo)(()=>O2(t,O,l),[t,O,l]),L=()=>!t||t.length===0?!1:t.every($=>$==="image"||$.startsWith("image/")),j=$=>{if(!f||typeof f=="function"&&!f($))return g($);S($);let Z;if(d)if(u){let q=[];Z=J=>{let re=(e??[]).filter(ie=>ie.id?!q.some(({id:ce})=>Number(ce)===Number(ie.id)):!q.some(({urlSlug:ce})=>ie.url.includes(ce)));g(re.concat(J)),q=J.map(ie=>{let ce=ie.url.lastIndexOf("."),_e=ie.url.slice(0,ce);return{id:ie.id,urlSlug:_e}})}}else Z=g;else Z=([q])=>g(q);B({allowedTypes:t,filesList:$,onFileChange:Z,onError:p,multiple:d})};async function V($){let{blocks:Z}=M6($);if(!Z?.length)return;let q=await Promise.all(Z.map(J=>{let re=J.name.split("/")[1];return J.attributes.id?(J.attributes.type=re,J.attributes):new Promise((ie,ce)=>{window.fetch(J.attributes.url).then(_e=>_e.blob()).then(_e=>B({filesList:[_e],additionalData:{title:J.attributes.title,alt_text:J.attributes.alt,caption:J.attributes.caption,type:re},onFileChange:([ae])=>{ae.id&&ie(ae)},allowedTypes:t,onError:ce})).catch(()=>ie(J.attributes.url))})})).catch(J=>p(J));q?.length&&g(d?q:q[0])}let D=$=>{j($.target.files)},W=T??($=>{let{instructions:Z,title:q}=n;if(!B&&!v&&(Z=(0,er.__)("To edit this block, you need permission to upload media.")),Z===void 0||q===void 0){let re=t??[],[ie]=re,ce=re.length===1,_e=ce&&ie==="audio",ae=ce&&ie==="image",we=ce&&ie==="video";Z===void 0&&B&&(Z=(0,er.__)("Drag and drop an image or video, upload, or choose from your library."),_e?Z=(0,er.__)("Drag and drop an audio file, upload, or choose from your library."):ae?Z=(0,er.__)("Drag and drop an image, upload, or choose from your library."):we&&(Z=(0,er.__)("Drag and drop a video, upload, or choose from your library."))),q===void 0&&(q=(0,er.__)("Media"),_e?q=(0,er.__)("Audio"):ae?q=(0,er.__)("Image"):we&&(q=(0,er.__)("Video")))}let J=U("block-editor-media-placeholder",o,{"is-appender":a});return(0,_t.jsxs)(tr.Placeholder,{icon:r,label:q,instructions:Z,className:J,notices:s,onDoubleClick:k,preview:i,style:R,children:[$,x]})}),K=()=>m?null:(0,_t.jsx)(tr.DropZone,{onFilesDrop:j,onDrop:V,isEligible:$=>{let Z="wp-block:core/",q=[];for(let J of $.types)J.startsWith(Z)&&q.push(J.slice(Z.length));return q.every(J=>t.includes(J))&&(d?!0:q.length===1)}}),ne=()=>b&&(0,_t.jsx)(tr.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,er.__)("Cancel"),variant:"link",onClick:b,children:(0,er.__)("Cancel")}),X=()=>v&&(0,_t.jsx)(b4e,{src:I,onChangeSrc:P,onSelectURL:v}),ee=()=>y&&(0,_t.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,_t.jsx)(tr.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,er.__)("Use featured image")})}),Y=()=>{let Z=E??(({open:J})=>(0,_t.jsx)(tr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{J()},children:(0,er.__)("Media Library")})),q=(0,_t.jsx)(Lf,{addToGallery:u,gallery:d&&L(),multiple:d,onSelect:g,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:J})=>J):e.id,render:Z});if(B&&a)return(0,_t.jsxs)(_t.Fragment,{children:[K(),(0,_t.jsx)(tr.FormFileUpload,{onChange:D,accept:M,multiple:!!d,render:({openFileDialog:J})=>{let re=(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(tr.Button,{__next40pxDefaultSize:!0,variant:"primary",className:U("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:J,children:(0,er._x)("Upload","verb")}),q,X(),ee(),ne()]});return W(re)}})]});if(B){let J=(0,_t.jsxs)(_t.Fragment,{children:[K(),(0,_t.jsx)(tr.FormFileUpload,{render:({openFileDialog:re})=>(0,_t.jsx)(tr.Button,{__next40pxDefaultSize:!0,onClick:re,variant:"primary",className:U("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,er._x)("Upload","verb")}),onChange:D,accept:M,multiple:!!d}),q,X(),ee(),ne()]});return W(J)}return W(q)};return h?(0,_t.jsx)($a,{children:K()}):(0,_t.jsx)($a,{fallback:W(X()),children:Y()})}var fpe=(0,tr.withFilters)("editor.MediaPlaceholder")(y4e);var mpe=c(C(),1),v4e=({colorSettings:e,...t})=>{let o=e.map(r=>{if(!r)return r;let{value:n,onChange:i,...s}=r;return{...s,colorValue:n,onColorChange:i}});return(0,mpe.jsx)(r2,{settings:o,gradients:[],disableCustomGradients:!0,...t})},ppe=v4e;var fhe=c(OF(),1);var mhe=c(A(),1);var che=c(A(),1);var rhe=c(fp(),1),Nr=c(A(),1),wm=c(G(),1),Z2=c(oe(),1),nhe=c(Wr(),1),ihe=c(N(),1),she=c(Q(),1),ahe=c(Je(),1),rk=c(F(),1);var hpe=c(F(),1),N2=c(N(),1);var Z8=c(F(),1),sg=c(N(),1);var Gu=c(C(),1),k4e={placement:"bottom-start"},S4e=()=>(0,Gu.jsxs)(Gu.Fragment,{children:[["bold","italic","link","unknown"].map(e=>(0,Gu.jsx)(sg.Slot,{name:`RichText.ToolbarControls.${e}`},e)),(0,Gu.jsx)(sg.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;let o=e.map(([{props:r}])=>r).some(({isActive:r})=>r);return(0,Gu.jsx)(sg.ToolbarItem,{children:r=>(0,Gu.jsx)(sg.DropdownMenu,{icon:Ur,label:(0,Z8.__)("More"),toggleProps:{...r,className:U(r.className,{"is-pressed":o}),description:(0,Z8.__)("Displays more block tools")},controls:Tl(e.map(([{props:n}])=>n),"title"),popoverProps:k4e})})}})]}),X8=S4e;var xm=c(C(),1);function _4e({popoverAnchor:e}){return(0,xm.jsx)(N2.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,xm.jsx)(ov,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,hpe.__)("Format tools"),children:(0,xm.jsx)(N2.ToolbarGroup,{children:(0,xm.jsx)(X8,{})})})})}var x4e=({inline:e,editableContentElement:t})=>e?(0,xm.jsx)(_4e,{popoverAnchor:t}):(0,xm.jsx)(mo,{group:"inline",children:(0,xm.jsx)(X8,{})}),gpe=x4e;var D2=c(A(),1),bpe=c(G(),1);function ype({html:e,value:t}){let o=(0,D2.useRef)(),r=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:n}=(0,bpe.useDispatch)(w);(0,D2.useLayoutEffect)(()=>{if(!o.current){o.current=t.text;return}if(o.current!==t.text){let i=window.setTimeout(()=>{n()},1e3);return o.current=t.text,()=>{window.clearTimeout(i)}}n()},[e,r])}var Zv=c(A(),1),Fpe=c(oe(),1);var M0=c(Wr(),1),vpe=c(Ft(),1);var w4e=["`",'"',"'","\u201C\u201D","\u2018\u2019"],kpe=e=>t=>{function o(r){let{inputType:n,data:i}=r,{value:s,onChange:a,registry:l}=e.current;if(n!=="insertText"||(0,M0.isCollapsed)(s))return;let u=(0,vpe.applyFilters)("blockEditor.wrapSelectionSettings",w4e).find(([_,x])=>_===i||x===i);if(!u)return;let[d,f=d]=u,m=s.start,h=s.end+d.length,p=(0,M0.insert)(s,d,m,m);p=(0,M0.insert)(p,f,h,h);let{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:b}=l.dispatch(w);g(),a(p),b();let v={};for(let _ in r)v[_]=r[_];v.data=f;let{ownerDocument:y}=t,{defaultView:k}=y,S=new k.InputEvent("input",v);window.queueMicrotask(()=>{r.target.dispatchEvent(S)}),r.preventDefault()}return t.addEventListener("beforeinput",o),()=>{t.removeEventListener("beforeinput",o)}};var V2=c(Wr(),1),Yv=c(Q(),1);var Spe=c(Wr(),1);function _pe(e){let t="tales of gutenberg",o=" \u{1F421}\u{1F422}\u{1F980}\u{1F424}\u{1F98B}\u{1F418}\u{1F427}\u{1F439}\u{1F981}\u{1F984}\u{1F98D}\u{1F43C}\u{1F43F}\u{1F383}\u{1F434}\u{1F41D}\u{1F406}\u{1F995}\u{1F994}\u{1F331}\u{1F347}\u03C0\u{1F34C}\u{1F409}\u{1F4A7}\u{1F968}\u{1F30C}\u{1F342}\u{1F360}\u{1F966}\u{1F95A}\u{1F95D}\u{1F39F}\u{1F965}\u{1F952}\u{1F6F5}\u{1F956}\u{1F352}\u{1F36F}\u{1F3BE}\u{1F3B2}\u{1F43A}\u{1F41A}\u{1F42E}\u231B\uFE0F",{start:r,text:n}=e;return r<t.length||n.slice(r-t.length,r).toLowerCase()!==t?e:(0,Spe.insert)(e,o)}function xpe(e){let t=e.length;for(;t--;){let o=WS(e[t].attributes);if(o)return e[t].attributes[o]=e[t].attributes[o].toString().replace(Fc,""),[e[t].clientId,o,0,0];let r=xpe(e[t].innerBlocks);if(r)return r}return[]}var wpe=e=>t=>{function o(){let{getValue:n,onReplace:i,selectionChange:s,registry:a}=e.current;if(!i)return;let l=n(),{start:u,text:d}=l;if(d.slice(u-1,u)!==" ")return;let m=d.slice(0,u).trim(),h=(0,Yv.getBlockTransforms)("from").filter(({type:v})=>v==="prefix"),p=(0,Yv.findTransform)(h,({prefix:v})=>m===v);if(!p)return;let g=(0,V2.toHTMLString)({value:(0,V2.insert)(l,Fc,0,u)}),b=p.transform(g);return s(...xpe([b])),i([b]),a.dispatch(w).__unstableMarkAutomaticChange(),!0}function r(n){let{inputType:i,type:s}=n,{getValue:a,onChange:l,__unstableAllowPrefixTransformations:u,formatTypes:d,registry:f,onReplace:m}=e.current;if(i!=="insertText"&&s!=="compositionend"||u&&o())return;let h=a(),p=(0,Yv.getBlockTransforms)("from").filter(k=>k.type==="input"),g=(0,Yv.findTransform)(p,k=>k.regExp.test(h.text));if(g){m(g.transform()),f.dispatch(w).__unstableMarkAutomaticChange();return}let b=d.reduce((k,{__unstableInputRule:S})=>(S&&(k=S(k)),k),_pe(h)),{__unstableMarkLastChangeAsPersistent:v,__unstableMarkAutomaticChange:y}=f.dispatch(w);b!==h&&(v(),l({...b,activeFormats:h.activeFormats}),y())}return t.addEventListener("input",r),t.addEventListener("compositionend",r),()=>{t.removeEventListener("input",r),t.removeEventListener("compositionend",r)}};var Cpe=e=>t=>{function o(r){if(r.inputType!=="insertReplacementText")return;let{registry:n}=e.current;n.dispatch(w).__unstableMarkLastChangeAsPersistent()}return t.addEventListener("beforeinput",o),()=>{t.removeEventListener("beforeinput",o)}};var F2=c(Bt(),1),Epe=()=>e=>{function t(o){(F2.isKeyboardEvent.primary(o,"z")||F2.isKeyboardEvent.primary(o,"y")||F2.isKeyboardEvent.primaryShift(o,"z"))&&o.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}};var Tpe=e=>t=>{let{keyboardShortcuts:o}=e.current;function r(n){for(let i of o.current)i(n)}return t.addEventListener("keydown",r),()=>{t.removeEventListener("keydown",r)}};var Bpe=e=>t=>{let{inputEvents:o}=e.current;function r(n){for(let i of o.current)i(n)}return t.addEventListener("input",r),()=>{t.removeEventListener("input",r)}};var z2=c(Bt(),1);var Rpe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented||n!==z2.BACKSPACE&&n!==z2.ESCAPE)return;let{registry:i}=e.current,{didAutomaticChange:s,getSettings:a}=i.select(w),{__experimentalUndo:l}=a();l&&s()&&(r.preventDefault(),l())}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}};var Ipe=c(Q(),1),uc=c(Wr(),1),Ope=c(Ai(),1),Ape=c(oe(),1);var C4e=c(A(),1),E4e=c(Q(),1),T4e=c(C(),1);function Ppe(e,t){if(t?.length){let o=e.formats.length;for(;o--;)e.formats[o]=[...t,...e.formats[o]||[]]}}function j2(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function qv({allowedFormats:e,disableFormats:t}){return t?qv.EMPTY_ARRAY:e}qv.EMPTY_ARRAY=[];var{subscribeDelegatedListener:B4e}=H(Ape.privateApis),Lpe=e=>t=>{function o(n){let{disableFormats:i,onChange:s,value:a,formatTypes:l,tagName:u,onReplace:d,__unstableEmbedURLOnPaste:f,preserveWhiteSpace:m,pastePlainText:h,registry:p}=e.current;if(!t.contains(n.target)||n.defaultPrevented)return;let{plainText:g,html:b}=ly(n);if(n.preventDefault(),window.console.log(`Received HTML (RichText):

`,b),window.console.log(`Received plain text (RichText):

`,g),i){s((0,uc.insert)(a,g));return}let v=n.clipboardData.getData("rich-text")==="true";function y(x){let E=l.reduce((T,{__unstablePasteRule:R})=>(R&&T===a&&(T=R(a,{html:b,plainText:g})),T),a);if(E!==a)s(E);else{let T=(0,uc.create)({html:x});Ppe(T,a.activeFormats),s((0,uc.insert)(a,T))}}if(v){y(b);return}if(h){s((0,uc.insert)(a,(0,uc.create)({text:g})));return}let k="INLINE",S=g.trim();f&&(0,uc.isEmpty)(a)&&(0,Ope.isURL)(S)&&/^https?:/.test(S)&&(k="BLOCKS");let _=(0,Ipe.pasteHandler)({HTML:b,plainText:g,mode:k,tagName:u,preserveWhiteSpace:m});if(typeof _=="string"){y(_);return}!_.length||!d||!(0,uc.isEmpty)(a)||(k==="BLOCKS"&&(y(b),p.dispatch(w).__unstableMarkLastChangeAsPersistent()),d(_,_.length-1,-1))}let{defaultView:r}=t.ownerDocument;return B4e(r,"paste",o)};var N0=c(Bt(),1),H2=c(Wr(),1),Mpe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===N0.DELETE||n===N0.BACKSPACE){let{start:l,end:u,text:d}=i,f=n===N0.BACKSPACE,m=i.activeFormats&&!!i.activeFormats.length;if(!(0,H2.isCollapsed)(i)||m||f&&l!==0||!f&&u!==d.length)return;s?s(!f):a&&(0,H2.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}};var Q8=c(Bt(),1),D0=c(Wr(),1),Npe=c(oe(),1);var{subscribeDelegatedListener:R4e}=H(Npe.privateApis),Dpe=e=>t=>{function o(s){if(s.keyCode!==Q8.ENTER)return;let{onReplace:a,onSplit:l}=e.current;a&&l&&(s.__deprecatedOnSplit=!0)}function r(s){if(s.defaultPrevented||s.target!==t||s.keyCode!==Q8.ENTER)return;let{value:a,onChange:l,disableLineBreaks:u,onSplitAtEnd:d,onSplitAtDoubleLineEnd:f,registry:m}=e.current;s.preventDefault();let{text:h,start:p,end:g}=a;s.shiftKey?u||l((0,D0.insert)(a,`
`)):d&&p===g&&g===h.length?d():f&&p===g&&g===h.length&&h.slice(-2)===`

`?m.batch(()=>{let b={...a};b.start=b.end-2,l((0,D0.remove)(b)),f()}):u||l((0,D0.insert)(a,`
`))}let{defaultView:n}=t.ownerDocument,i=R4e(n,"keydown",r);return t.addEventListener("keydown",o),()=>{i(),t.removeEventListener("keydown",o)}};var Vpe=e=>t=>{function o(){let{registry:r}=e.current;if(!r.select(w).isMultiSelecting())return;let n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",o),()=>{t.removeEventListener("focus",o)}};var P4e=[kpe,wpe,Cpe,Epe,Tpe,Bpe,Rpe,Lpe,Mpe,Dpe,Vpe];function U2(e){let t=(0,Zv.useRef)(e);(0,Zv.useInsertionEffect)(()=>{t.current=e});let o=(0,Zv.useMemo)(()=>P4e.map(r=>r(t)),[t]);return(0,Fpe.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var G2=c(Wr(),1),W2=c(A(),1);var zpe=c(C(),1),jpe=c(pe(),1),I4e={},J8=Symbol("usesContext");function O4e({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[J8]:l}=n,u=(0,W2.useContext)(sn),d=(0,W2.useMemo)(()=>l?Object.fromEntries(Object.entries(u).filter(([g])=>l.includes(g))):I4e,[l,u]);if(!a)return null;let f=(0,G2.getActiveFormat)(o,s),m=f!==void 0,h=(0,G2.getActiveObject)(o),p=h!==void 0&&h.type===s;return(0,zpe.jsx)(a,{isActive:m,isVisible:i,activeAttributes:m?f.attributes||{}:{},isObjectActive:p,activeObjectAttributes:p?h.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:d},s)}function $2({formatTypes:e,...t}){return e.map(o=>(0,jpe.createElement)(O4e,{settings:o,...t,key:o.name}))}var Hpe=c(A(),1),Upe=c(Q(),1),Gpe=c(Je(),1);var eH=c(C(),1);function tH(e,t){if(Xv.isEmpty(e)){let o=j2(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,Gpe.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),Upe.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function V0({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,eH.jsx)(Hpe.RawHTML,{children:tH(e,o)}),t?(0,eH.jsx)(t,{...n,children:e}):e}var qpe=c(A(),1),rH=c(Q(),1),Zpe=c(Wr(),1),Xpe=c(Je(),1);var Wpe=c(A(),1),$pe=c(Je(),1),K2=c(G(),1),Kpe=c(Bt(),1),Qv=c(Wr(),1);var oH=c(C(),1);function A4e({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,$pe.default)("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});let{clientId:l}=Xe(),{getSelectionStart:u,getSelectionEnd:d}=(0,K2.useSelect)(w),{selectionChange:f}=(0,K2.useDispatch)(w),m=j2(i);r=r||`<${m}></${m}>`;let p=`</${m}>${r}<${m}>`.split(`</${m}><${m}>`);p.shift(),p.pop();function g(b){n(`<${m}>${b.join(`</${m}><${m}>`)}</${m}>`)}return(0,oH.jsx)(o,{ref:a,children:p.map((b,v)=>(0,oH.jsx)(Y2,{identifier:`${t}-${v}`,tagName:m,value:b,onChange:y=>{let k=p.slice();k[v]=y,g(k)},isSelected:void 0,onKeyDown:y=>{if(y.keyCode!==Kpe.ENTER)return;y.preventDefault();let{offset:k}=u(),{offset:S}=d();if(typeof k!="number"||typeof S!="number")return;let _=(0,Qv.create)({html:b});_.start=k,_.end=S;let x=(0,Qv.split)(_).map(T=>(0,Qv.toHTMLString)({value:T})),E=p.slice();E.splice(v,1,...x),g(E),f(l,`${t}-${v+1}`,0,0)},onMerge:y=>{let k=p.slice(),S=0;if(y){if(!k[v+1])return;k.splice(v,2,k[v]+k[v+1]),S=k[v].length-1}else{if(!k[v-1])return;k.splice(v-1,2,k[v-1]+k[v]),S=k[v-1].length-1}g(k),f(l,`${t}-${v-(y?0:1)}`,S,S)},...s},v))})}var Ype=(0,Wpe.forwardRef)(A4e);var Qpe=c(C(),1);function Jpe(e){return(0,qpe.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,Xpe.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),r=rH.children.toHTML(t.value),n=s=>t.onChange(rH.children.fromDOM((0,Zpe.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?Ype:e;return(0,Qpe.jsx)(i,{...t,value:r,onChange:n,ref:o})})}var ehe=c(Bt(),1),Jv=c(A(),1);function nH({character:e,type:t,onUse:o}){let r=(0,Jv.useContext)(ek),n=(0,Jv.useRef)();return n.current=o,(0,Jv.useEffect)(()=>{function i(s){ehe.isKeyboardEvent[t](s,e)&&(n.current(),s.preventDefault())}return r.current.add(i),()=>{r.current.delete(i)}},[e,t]),null}var q2=c(N(),1),the=c(Bt(),1),iH=c(C(),1);function sH({name:e,shortcutType:t,shortcutCharacter:o,...r}){let n,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&o&&(n=the.displayShortcut[t](o)),(0,iH.jsx)(q2.Fill,{name:i,children:(0,iH.jsx)(q2.ToolbarButton,{...r,shortcut:n})})}var tk=c(A(),1);function aH({inputType:e,onInput:t}){let o=(0,tk.useContext)(ok),r=(0,tk.useRef)();return r.current=t,(0,tk.useEffect)(()=>{function n(i){i.inputType===e&&(r.current(),i.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}},[e]),null}var is=c(C(),1),{useRichText:L4e}=H(nhe.privateApis),ek=(0,Nr.createContext)();ek.displayName="keyboardShortcutContext";var ok=(0,Nr.createContext)();ok.displayName="inputEventContext";var ohe=Symbol("instanceId");function lhe(e){let{__unstableMobileNoFocusOnMount:t,deleteEnter:o,placeholderTextColor:r,textAlign:n,selectionColor:i,tagsToEliminate:s,disableEditingMenu:a,fontSize:l,fontFamily:u,fontWeight:d,fontStyle:f,minWidth:m,maxWidth:h,disableSuggestions:p,disableAutocorrection:g,...b}=e;return b}function Y2({children:e,tagName:t="div",value:o="",onChange:r,isSelected:n,multiline:i,inlineToolbar:s,wrapperClassName:a,autocompleters:l,onReplace:u,placeholder:d,allowedFormats:f,withoutInteractiveFormatting:m,onRemove:h,onMerge:p,onSplit:g,__unstableOnSplitAtEnd:b,__unstableOnSplitAtDoubleLineEnd:v,identifier:y,preserveWhiteSpace:k,__unstablePastePlainText:S,__unstableEmbedURLOnPaste:_,__unstableDisableFormats:x,disableLineBreaks:E,__unstableAllowPrefixTransformations:T,readOnly:R,...B},O){B=lhe(B),g&&(0,ahe.default)("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});let I=(0,Z2.useInstanceId)(Y2),P=(0,Nr.useRef)(),[M,L]=(0,Nr.useState)(null),j=Xe(),{clientId:V,isSelected:D,name:z}=j,W=j[Fg],K=(0,Nr.useContext)(sn),ne=(0,wm.useRegistry)(),X=Le=>{if(!D)return{isSelected:!1};let{getSelectionStart:De,getSelectionEnd:Ke}=Le(w),Ye=De(),bt=Ke(),eo;return n===void 0?eo=Ye.clientId===V&&bt.clientId===V&&(y?Ye.attributeKey===y:Ye[ohe]===I):n&&(eo=Ye.clientId===V),{selectionStart:eo?Ye.offset:void 0,selectionEnd:eo?bt.offset:void 0,isSelected:eo}},{selectionStart:ee,selectionEnd:Y,isSelected:$}=(0,wm.useSelect)(X,[V,y,I,n,D]),{disableBoundBlock:Z,bindingsPlaceholder:q,bindingsLabel:J}=(0,wm.useSelect)(Le=>{if(!W?.[y])return{};let{__experimentalBlockBindingsSupportedAttributes:De}=Le(w).getSettings();if(!De?.[z])return{};let Ye=W[y],bt=(0,she.getBlockBindingsSource)(Ye.source),eo={};if(bt?.usesContext?.length)for(let st of bt.usesContext)eo[st]=K[st];let vo=!bt?.canUserEditValue?.({select:Le,context:eo,args:Ye.args});if(o.length>0)return{disableBoundBlock:vo,bindingsPlaceholder:null,bindingsLabel:null};let{getBlockAttributes:de}=Le(w),He=de(V),dt=null;bt?.getFieldsList&&(dt=bt.getFieldsList({select:Le,context:eo})?.find(zr=>(0,rhe.default)(zr.args,Ye?.args))?.label);let je=dt??bt?.label,ve=vo?je:(0,rk.sprintf)((0,rk.__)("Add %s"),je),ot=vo?Ye?.args?.key||bt?.label:(0,rk.sprintf)((0,rk.__)("Empty %s; start writing to edit its value"),Ye?.args?.key||bt?.label);return{disableBoundBlock:vo,bindingsPlaceholder:He?.placeholder||ve,bindingsLabel:ot}},[W,y,z,o,V,K]),re=!!K?.["pattern/overrides"],ie=W?.__default?.source==="core/pattern-overrides",_e=R||Z||re&&!ie,{getSelectionStart:ae,getSelectionEnd:we,getBlockRootClientId:Te}=(0,wm.useSelect)(w),{selectionChange:Fe}=(0,wm.useDispatch)(w),Qe=qv({allowedFormats:f,disableFormats:x}),Ae=!Qe||Qe.length>0,nt=(0,Nr.useCallback)((Le,De)=>{let Ke={},Ye=Le===void 0&&De===void 0,bt={clientId:V,[y?"attributeKey":ohe]:y||I};if(typeof Le=="number"||Ye){if(De===void 0&&Te(V)!==Te(we().clientId))return;Ke.start={...bt,offset:Le}}if(typeof De=="number"||Ye){if(Le===void 0&&Te(V)!==Te(ae().clientId))return;Ke.end={...bt,offset:De}}Fe(Ke)},[V,Te,we,ae,y,I,Fe]),{value:ke,getValue:Lt,onChange:le,ref:fe,formatTypes:Re}=L4e({value:o,onChange:r,selectionStart:ee,selectionEnd:Y,onSelectionChange:nt,placeholder:q||d,__unstableIsSelected:$,__unstableDisableFormats:x,preserveWhiteSpace:k,__unstableDependencies:[t],allowedFormats:Qe,withoutInteractiveFormatting:m,__unstableFormatTypeHandlerContext:(0,Nr.useMemo)(()=>({richTextIdentifier:y,blockClientId:V}),[y,V])}),Ze=vW({onReplace:u,completers:l,record:ke,onChange:le});ype({html:o,value:ke});let gt=(0,Nr.useRef)(new Set),tt=(0,Nr.useRef)(new Set);function ut(){P.current?.focus()}let Mt=t;return(0,is.jsxs)(is.Fragment,{children:[$&&(0,is.jsx)(ek.Provider,{value:gt,children:(0,is.jsx)(ok.Provider,{value:tt,children:(0,is.jsxs)(ihe.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:ke,onChange:le,onFocus:ut}),(0,is.jsx)($2,{value:ke,onChange:le,onFocus:ut,formatTypes:Re,forwardedRef:P})]})})}),$&&Ae&&(0,is.jsx)(gpe,{inline:s,editableContentElement:M}),(0,is.jsx)(Mt,{role:"textbox","aria-multiline":!E,"aria-readonly":_e,...B,draggable:void 0,"aria-label":J||B["aria-label"]||d,...Ze,ref:(0,Z2.useMergeRefs)([fe,O,Ze.ref,B.ref,U2({registry:ne,getValue:Lt,onChange:le,__unstableAllowPrefixTransformations:T,formatTypes:Re,onReplace:u,selectionChange:Fe,isSelected:$,disableFormats:x,value:ke,tagName:t,onSplit:g,__unstableEmbedURLOnPaste:_,pastePlainText:S,onMerge:p,onRemove:h,disableLineBreaks:E,onSplitAtEnd:b,onSplitAtDoubleLineEnd:v,keyboardShortcuts:gt,inputEvents:tt}),P,L]),contentEditable:!_e,suppressContentEditableWarning:!0,className:U("block-editor-rich-text__editable",B.className,"rich-text"),tabIndex:B.tabIndex===0&&!_e?null:B.tabIndex,"data-wp-block-attribute-key":y})]})}var F0=Jpe((0,Nr.forwardRef)(Y2));F0.Content=V0;F0.isEmpty=e=>!e||e.length===0;var lH=(0,Nr.forwardRef)((e,t)=>{if(Xe()[Ww]){let{children:n,tagName:i="div",value:s,onChange:a,isSelected:l,multiline:u,inlineToolbar:d,wrapperClassName:f,autocompleters:m,onReplace:h,placeholder:p,allowedFormats:g,withoutInteractiveFormatting:b,onRemove:v,onMerge:y,onSplit:k,__unstableOnSplitAtEnd:S,__unstableOnSplitAtDoubleLineEnd:_,identifier:x,preserveWhiteSpace:E,__unstablePastePlainText:T,__unstableEmbedURLOnPaste:R,__unstableDisableFormats:B,disableLineBreaks:O,__unstableAllowPrefixTransformations:I,readOnly:P,...M}=lhe(e);return(0,is.jsx)(i,{ref:t,...M,dangerouslySetInnerHTML:{__html:tH(s,u)||"<br>"}})}return(0,is.jsx)(F0,{ref:t,...e,readOnly:!1})});lH.Content=V0;lH.isEmpty=e=>!e||e.length===0;var Xv=lH;var cH=c(C(),1),uhe=(0,che.forwardRef)((e,t)=>(0,cH.jsx)(Xv,{ref:t,...e,__unstableDisableFormats:!0}));uhe.Content=function({value:t="",tagName:o="div",...r}){return(0,cH.jsx)(o,{...r,children:t})};var dhe=uhe;var uH=c(C(),1),M4e=(0,mhe.forwardRef)(({__experimentalVersion:e,...t},o)=>{if(e===2)return(0,uH.jsx)(dhe,{ref:o,...t});let{className:r,onChange:n,...i}=t;return(0,uH.jsx)(fhe.default,{ref:o,className:U("block-editor-plain-text",r),onChange:s=>n(s.target.value),...i})}),phe=M4e;var dc=c(F(),1),ghe=c(A(),1),bhe=c(N(),1);var hhe=c(oe(),1);var X2=c(F(),1),Cm=c(C(),1);function Q2({property:e,viewport:t,desc:o}){let r=(0,hhe.useInstanceId)(Q2),n=o||(0,X2.sprintf)((0,X2._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return(0,Cm.jsxs)(Cm.Fragment,{children:[(0,Cm.jsx)("span",{"aria-describedby":`rbc-desc-${r}`,children:t.label}),(0,Cm.jsx)(ct,{id:`rbc-desc-${r}`,render:(0,Cm.jsx)("span",{}),children:n})]})}var fc=c(C(),1);function N4e(e){let{title:t,property:o,toggleLabel:r,onIsResponsiveChange:n,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:a=!1,defaultLabel:l={id:"all",label:(0,dc._x)("All","screen sizes")},viewports:u=[{id:"small",label:(0,dc.__)("Small screens")},{id:"medium",label:(0,dc.__)("Medium screens")},{id:"large",label:(0,dc.__)("Large screens")}]}=e;if(!t||!o||!i)return null;let d=r||(0,dc.sprintf)((0,dc.__)("Use the same %s on all screen sizes."),o),f=(0,dc.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),m=i((0,fc.jsx)(Q2,{property:o,viewport:l}),l),h=()=>u.map(p=>(0,fc.jsx)(ghe.Fragment,{children:i((0,fc.jsx)(Q2,{property:o,viewport:p}),p)},p.id));return(0,fc.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,fc.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,fc.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,fc.jsx)(bhe.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:d,checked:!a,onChange:n,help:f}),(0,fc.jsxs)("div",{className:U("block-editor-responsive-block-control__group",{"is-responsive":a}),children:[!a&&m,a&&(s?s(u):h())]})]})]})}var yhe=N4e;var J2=c(N(),1);var vhe=c(C(),1);function khe({units:e,...t}){let[o]=xe("spacing.units"),r=(0,J2.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"],units:e});return(0,vhe.jsx)(J2.__experimentalUnitControl,{units:r,...t})}var z0=c(F(),1),She=c(A(),1),nk=c(N(),1);var mc=c(C(),1);function D4e({url:e,onChange:t}){let[o,r]=(0,She.useReducer)(i=>!i,!1),n=i=>{i.preventDefault(),r()};return(0,mc.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,mc.jsx)(nk.Button,{size:"compact",icon:ti,label:e?(0,z0.__)("Edit link"):(0,z0.__)("Insert link"),onClick:r,className:"components-toolbar__control",isPressed:!!e}),o&&(0,mc.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:n,children:(0,mc.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,mc.jsx)(nk.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:lS,label:(0,z0.__)("Close"),onClick:r}),(0,mc.jsx)(gm,{value:e||"",onChange:t,suffix:(0,mc.jsx)(nk.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,mc.jsx)(nk.Button,{size:"small",icon:Lc,label:(0,z0.__)("Submit"),type:"submit"})})})]})})]})}var _he=D4e;var Si=c(F(),1),ta=c(A(),1),The=c(at(),1),yr=c(N(),1);var Bhe=c(Ai(),1);var Xt=c(C(),1),dH="none",xhe="custom",whe="media",Che="attachment",Ehe=["noopener"],Rhe=({linkDestination:e,onChangeUrl:t,url:o,mediaType:r="image",mediaUrl:n,mediaLink:i,linkTarget:s,linkClass:a,rel:l,showLightboxSetting:u,lightboxEnabled:d,onSetLightbox:f,resetLightbox:m})=>{let[h,p]=(0,ta.useState)(!1),[g,b]=(0,ta.useState)(null),v=()=>{p(!0)},[y,k]=(0,ta.useState)(!1),[S,_]=(0,ta.useState)(null),x=(0,ta.useRef)(null),E=(0,ta.useRef)();(0,ta.useEffect)(()=>{if(!E.current)return;(The.focus.focusable.find(E.current)[0]||E.current).focus()},[y,o,d]);let T=()=>{(e===whe||e===Che)&&_(""),k(!0)},R=()=>{k(!1)},B=()=>{_(null),R(),p(!1)},O=$=>{let Z=$?"_blank":void 0,q;if(Z){let J=(l??"").split(" ");Ehe.forEach(re=>{J.includes(re)||J.push(re)}),q=J.join(" ")}else{let J=(l??"").split(" ").filter(re=>Ehe.includes(re)===!1);q=J.length?J.join(" "):void 0}return{linkTarget:Z,rel:q}},I=()=>$=>{let Z=x.current;Z&&Z.contains($.target)||(p(!1),_(null),R())},P=()=>$=>{if(S){let Z=L().find(q=>q.url===S)?.linkDestination||xhe;t({href:(0,Bhe.prependHTTPS)(S),linkDestination:Z,lightbox:{enabled:!1}})}R(),_(null),$.preventDefault()},M=()=>{t({linkDestination:dH,href:""})},L=()=>{let $=[{linkDestination:whe,title:(0,Si.__)("Link to image file"),url:r==="image"?n:void 0,icon:gS}];return r==="image"&&i&&$.push({linkDestination:Che,title:(0,Si.__)("Link to attachment page"),url:r==="image"?i:void 0,icon:wp}),$},j=$=>{let Z=L(),q;$?q=(Z.find(J=>J.url===$)||{linkDestination:xhe}).linkDestination:q=dH,t({linkDestination:q,href:$})},V=$=>{let Z=O($);t(Z)},D=$=>{t({rel:$})},z=$=>{t({linkClass:$})},W=(0,Xt.jsxs)(yr.__experimentalVStack,{spacing:"3",children:[(0,Xt.jsx)(yr.ToggleControl,{label:(0,Si.__)("Open in new tab"),onChange:V,checked:s==="_blank"}),(0,Xt.jsx)(yr.TextControl,{__next40pxDefaultSize:!0,label:(0,Si.__)("Link relation"),value:l??"",onChange:D,help:(0,ta.createInterpolateElement)((0,Si.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Xt.jsx)(yr.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,Xt.jsx)(yr.TextControl,{__next40pxDefaultSize:!0,label:(0,Si.__)("Link CSS class"),value:a||"",onChange:z})]}),K=S!==null?S:o,ne=!d||d&&!u,X=!K&&ne,ee=(L().find($=>$.linkDestination===e)||{}).title,Y=()=>{if(d&&u&&!o&&!y)return(0,Xt.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,Xt.jsx)(We,{icon:YC}),(0,Xt.jsxs)("div",{className:"text",children:[(0,Xt.jsx)("p",{children:(0,Si.__)("Enlarge on click")}),(0,Xt.jsx)("p",{className:"description",children:(0,Si.__)("Scales the image with a lightbox effect")})]}),(0,Xt.jsx)(yr.Button,{icon:vs,label:(0,Si.__)("Disable enlarge on click"),onClick:()=>{f?.(!1)},size:"compact"})]});if(!o||y)return(0,Xt.jsx)(Sm.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:K,onChangeInputValue:_,onSubmit:P(),autocompleteRef:x});if(o&&!y)return(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)(Sm.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:o,onEditLinkClick:T,urlLabel:ee}),(0,Xt.jsx)(yr.Button,{icon:vs,label:(0,Si.__)("Remove link"),onClick:()=>{M(),m?.()},size:"compact"})]})};return(0,Xt.jsxs)(Xt.Fragment,{children:[(0,Xt.jsx)(yr.ToolbarButton,{icon:ti,className:"components-toolbar__control",label:(0,Si.__)("Link"),"aria-expanded":h,onClick:v,ref:b,isActive:!!o||d&&u}),h&&(0,Xt.jsx)(Sm,{ref:E,anchor:g,onFocusOutside:I(),onClose:B,renderSettings:ne?()=>W:null,additionalControls:X&&(0,Xt.jsxs)(yr.NavigableMenu,{children:[L().map($=>(0,Xt.jsx)(yr.MenuItem,{icon:$.icon,iconPosition:"left",onClick:()=>{_(null),j($.url),R()},children:$.title},$.linkDestination)),u&&(0,Xt.jsx)(yr.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:YC,info:(0,Si.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{_(null),t({linkDestination:dH,href:""}),f?.(!0),R()},children:(0,Si.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:Y()})]})};var sk=c(N(),1),Uhe=c(A(),1),oA=c(F(),1);var Phe=c(A(),1),mH=c(F(),1);var fH=[],V4e=new Intl.Collator("und",{numeric:!0}).compare;function eA(){let[e,t,o,r]=xe("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),n=e??fH,i=t??fH,s=o&&r!==!1?o:fH;return(0,Phe.useMemo)(()=>{let a=[{name:(0,mH.__)("None"),slug:"0",size:0},...n,...i,...s];return a.every(({slug:l})=>/^[0-9]/.test(l))&&a.sort((l,u)=>V4e(l.slug,u.slug)),a.length>SW?[{name:(0,mH.__)("Default"),slug:"default",size:void 0},...a]:a},[n,i,s])}var Ihe=c(A(),1),Ohe=c(G(),1),tA=c(F(),1),Ahe=c(N(),1);var Lhe=c(C(),1),F4e={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function ik({icon:e,isMixed:t=!1,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,side:a,spacingSizes:l,type:u,value:d,...f}){let m=(0,Ohe.useSelect)(S=>S(w).getSettings()?.disableCustomSpacingSizes),[h]=xe("spacing.units"),p=(0,Ahe.__experimentalUseCustomUnits)({availableUnits:h||["px","em","rem"]}),g=(0,Ihe.useMemo)(()=>l?.map(S=>({name:S.name,slug:S.slug,size:S.size}))||[],[l]),b=($d.includes(a)||["vertical","horizontal"].includes(a))&&s?Rl[a]:"",v=s?u?.toLowerCase():u,y=(0,tA.sprintf)((0,tA._x)("%1$s %2$s","spacing"),b,v).trim(),k=p[0]?.value||"px";return(0,Lhe.jsx)(Wh,{allowNegativeOnDrag:o<0,ariaLabel:y,className:"spacing-sizes-control",customValueSettings:F4e,disableCustomValues:m,icon:e,isMixed:t,minimumCustomValue:o,onChange:r,onMouseOut:n,onMouseOver:i,presets:g,presetType:"spacing",selectedUnit:k,units:p,value:d,...f})}var j0=c(C(),1),Mhe=["vertical","horizontal"];function Nhe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=d=>f=>{if(!t)return;let m={...Object.keys(a).reduce((h,p)=>(h[p]=pb(a[p],i),h),{})};d==="vertical"&&(m.top=f,m.bottom=f),d==="horizontal"&&(m.left=f,m.right=f),t(m)},u=n?.length?Mhe.filter(d=>hF(n,d)):Mhe;return(0,j0.jsx)(j0.Fragment,{children:u.map(d=>{let f=d==="vertical"?a.top:a.left;return(0,j0.jsx)(ik,{icon:FE[d],label:Rl[d],minimumCustomValue:e,onChange:l(d),onMouseOut:o,onMouseOver:r,side:d,spacingSizes:i,type:s,value:f,withInputField:!1},`spacing-sizes-control-${d}`)})})}var H0=c(C(),1);function Dhe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,sides:n,spacingSizes:i,type:s,values:a}){let l=n?.length?$d.filter(d=>n.includes(d)):$d,u=d=>f=>{let m={...Object.keys(a).reduce((h,p)=>(h[p]=pb(a[p],i),h),{})};m[d]=f,t(m)};return(0,H0.jsx)(H0.Fragment,{children:l.map(d=>(0,H0.jsx)(ik,{icon:FE[d],label:Rl[d],minimumCustomValue:e,onChange:u(d),onMouseOut:o,onMouseOver:r,side:d,spacingSizes:i,type:s,value:a[d],withInputField:!1},`spacing-sizes-control-${d}`))})}var Vhe=c(C(),1);function Fhe({minimumCustomValue:e,onChange:t,onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,values:l}){let u=d=>f=>{let m={...Object.keys(l).reduce((h,p)=>(h[p]=pb(l[p],s),h),{})};m[d]=f,t(m)};return(0,Vhe.jsx)(ik,{label:Rl[i],minimumCustomValue:e,onChange:u(i),onMouseOut:o,onMouseOver:r,showSideInLabel:n,side:i,spacingSizes:s,type:a,value:l[i],withInputField:!1})}var zhe=c(N(),1);var pH=c(F(),1),jhe=c(C(),1);function Hhe({isLinked:e,...t}){let o=e?(0,pH.__)("Unlink sides"):(0,pH.__)("Link sides");return(0,jhe.jsx)(zhe.Button,{...t,size:"small",icon:e?ti:vs,iconSize:24,label:o})}var pc=c(C(),1);function ak({inputProps:e,label:t,minimumCustomValue:o=0,onChange:r,onMouseOut:n,onMouseOver:i,showSideInLabel:s=!0,sides:a=$d,useSelect:l,values:u}){let d=eA(),f=u||_W,m=a?.length===1,h=a?.includes("horizontal")&&a?.includes("vertical")&&a?.length===2,[p,g]=(0,Uhe.useState)(wW(f,a)),b=()=>{g(p===jc.axial?jc.custom:jc.axial)},y={...e,minimumCustomValue:o,onChange:x=>{let E={...u,...x};r(E)},onMouseOut:n,onMouseOver:i,sides:a,spacingSizes:d,type:t,useSelect:l,values:f},k=()=>p===jc.axial?(0,pc.jsx)(Nhe,{...y}):p===jc.custom?(0,pc.jsx)(Dhe,{...y}):(0,pc.jsx)(Fhe,{side:p,...y,showSideInLabel:s}),S=$d.includes(p)&&s?Rl[p]:"",_=(0,oA.sprintf)((0,oA._x)("%1$s %2$s","spacing"),t,S).trim();return(0,pc.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,pc.jsxs)(sk.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,pc.jsx)(sk.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:_}),!m&&!h&&(0,pc.jsx)(Hhe,{label:t,onClick:b,isLinked:p===jc.axial})]}),(0,pc.jsx)(sk.__experimentalVStack,{spacing:.5,children:k()})]})}var Ghe=c(Je(),1);function Whe(){return(0,Ghe.default)("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}var rA=c(A(),1);function $he(e){let[t,o]=(0,rA.useState)(window.innerWidth);(0,rA.useEffect)(()=>{if(e==="Desktop")return;let i=()=>o(window.innerWidth);return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[e]);let r=i=>{let s;switch(i){case"Tablet":s=781;break;case"Mobile":s=479;break;default:return null}return s<t?s:t};return(i=>{let s=i==="Mobile"?"768px":"1024px",a="40px",l="auto";switch(i){case"Tablet":case"Mobile":return{width:r(i),marginTop:a,marginBottom:a,marginLeft:l,marginRight:l,height:s,overflowY:"auto"};default:return{marginLeft:l,marginRight:l}}})(e)}var as=c(F(),1),Im=c(Q(),1),Sk=c(N(),1),iw=c(G(),1),Zbe=c(A(),1);var lk=c(N(),1),nA=c(F(),1),Khe=c(G(),1),iA=c(Q(),1);var ag=c(C(),1);function z4e({block:e,onNavigateToEntityRecord:t,isSyncedPattern:o,isTemplatePartBlock:r}){let n=e?.attributes||{};return(0,ag.jsx)(lk.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,ag.jsx)(lk.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{if(o)t({postId:n.ref,postType:"wp_block"});else if(r){let{theme:s,slug:a}=n,l=s&&a?`${s}//${a}`:null;l&&t({postId:l,postType:"wp_template_part"})}},children:(0,nA.__)("Edit original")})})}function j4e({clientId:e,editedContentOnlySection:t,editContentOnlySection:o,stopEditingContentOnlySection:r}){return(0,ag.jsx)(lk.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,ag.jsx)(lk.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{t?r():o(e)},children:t?(0,nA.__)("Exit pattern"):(0,nA.__)("Edit pattern")})})}function Yhe({clientId:e}){let{isWithinSection:t,isWithinEditedSection:o,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i}=XI(e),{block:s,onNavigateToEntityRecord:a,canEdit:l}=(0,Khe.useSelect)(m=>{let{getBlock:h,getSettings:p,canEditBlock:g}=m(w);return{block:h(e),onNavigateToEntityRecord:p().onNavigateToEntityRecord,canEdit:g(e)}},[e]);if(!l||!t&&!o)return null;let u=(0,iA.isReusableBlock)(s),d=(0,iA.isTemplatePart)(s);return(u||d)&&a?(0,ag.jsx)(z4e,{block:s,onNavigateToEntityRecord:a,isSyncedPattern:u,isTemplatePartBlock:d}):(0,ag.jsx)(j4e,{clientId:e,editedContentOnlySection:r,editContentOnlySection:n,stopEditingContentOnlySection:i})}var qhe=c(G(),1),Zhe=c(F(),1),Xhe=c(N(),1),Qhe=c(A(),1);var Jhe=c(C(),1);function sA(){let e=(0,qhe.useSelect)(r=>r(w).getBlockSelectionStart(),[]),t=(0,Qhe.useRef)();return Vp(e,t),e?(0,Jhe.jsx)(Xhe.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,Zhe.__)("Skip to the selected block")}):null}var aA=c(F(),1),ege=c(G(),1);var tge=c(N(),1);var U0=c(C(),1);function hH(){let e=(0,ege.useSelect)(t=>t(w).getSelectedBlockCount(),[]);return(0,U0.jsxs)(tge.__experimentalHStack,{justify:"flex-start",spacing:2,className:"block-editor-multi-selection-inspector__card",children:[(0,U0.jsx)(rt,{icon:bp,showColors:!0}),(0,U0.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,aA.sprintf)((0,aA._n)("%d Block","%d Blocks",e),e)})]})}var oge=c(N(),1),H4e=Symbol("BlockInspectorPreTabs"),{Fill:JIt,Slot:rge}=(0,oge.createSlotFill)(H4e);var aL=c(N(),1),ml=c(A(),1),Dbe=c(nb(),1),kk=c(G(),1);var G0=c(F(),1),lA={name:"settings",title:(0,G0.__)("Settings"),value:"settings",icon:JN},cA={name:"styles",title:(0,G0.__)("Styles"),value:"styles",icon:mV},uA={name:"content",title:(0,G0.__)("Content"),value:"content",icon:wp},Wu={name:"list",title:(0,G0.__)("List View"),value:"list-view",icon:bS};var gH=c(N(),1);var W0=c(N(),1),nge=c(F(),1);var $0=c(C(),1),U4e=({initialOpen:e=!1})=>{let t=(0,W0.__experimentalUseSlotFills)(Hf.slotName),o=(0,W0.__experimentalUseSlotFills)(Vx.name),r=!!(t&&t.length),n=!!(o&&o.length);return!r&&!n?null:(0,$0.jsxs)(W0.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,nge.__)("Advanced"),initialOpen:e,children:[(0,$0.jsx)(he.Slot,{group:"advanced"}),(0,$0.jsx)(Vx.Slot,{})]})},dA=U4e;var $u=c(C(),1),G4e=({showAdvancedControls:e=!1})=>{let t=(0,gH.__experimentalUseSlotFills)(Ka.default.name),o=(0,gH.__experimentalUseSlotFills)(Ka.bindings.name),r=!!t?.length||!!o?.length;return(0,$u.jsxs)($u.Fragment,{children:[(0,$u.jsx)(he.Slot,{}),(0,$u.jsx)(he.Slot,{group:"bindings"}),e&&(0,$u.jsx)("div",{children:(0,$u.jsx)(dA,{initialOpen:!r})})]})},ige=G4e;var yg=c(F(),1),oL=c(G(),1);var ck=c(N(),1),fA=c(G(),1),bH=c(F(),1);var K0=c(C(),1),W4e=()=>{let{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:o}=(0,fA.useSelect)(s=>{let{getBlocksByClientId:a,getSelectedBlockClientIds:l}=s(w),u=l(),d=a(u);return{selectedClientIds:u,selectedBlocks:d,hasPositionAttribute:d?.some(({attributes:f})=>!!f?.style?.position?.type)}},[]),{updateBlockAttributes:r}=(0,fA.useDispatch)(w),n=Ao();function i(){if(!e?.length||!t?.length)return;let s=Object.fromEntries(t?.map(({clientId:a,attributes:l})=>[a,{style:ye({...l?.style,position:{...l?.style?.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}})}]));r(e,s,!0)}return(0,K0.jsx)(ck.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,bH.__)("Position"),resetAll:i,dropdownMenuProps:n,children:(0,K0.jsx)(ck.__experimentalToolsPanelItem,{isShownByDefault:o,label:(0,bH.__)("Position"),hasValue:()=>o,onDeselect:i,children:(0,K0.jsx)(he.Slot,{group:"position"})})})},$4e=()=>{let e=(0,ck.__experimentalUseSlotFills)(Ka.position.name);return!(e&&e.length)?null:(0,K0.jsx)(W4e,{})},mA=$4e;var tw=c(Q(),1),PH=c(N(),1),yk=c(A(),1),hbe=c(Ft(),1),gbe=c(G(),1),KA=c(F(),1);var RH={};ps(RH,{AdvancedPanel:()=>DA,BackgroundPanel:()=>UA,BorderPanel:()=>BA,ColorPanel:()=>OA,DimensionsPanel:()=>wA,FiltersPanel:()=>LA,ImageSettingsPanel:()=>obe,StateControl:()=>GA,StateControlBadges:()=>WA,TypographyPanel:()=>vA,useHasBackgroundPanel:()=>HA,useHasBorderPanel:()=>TA,useHasBorderPanelControls:()=>q0,useHasColorPanel:()=>IA,useHasDimensionsPanel:()=>xA,useHasFiltersPanel:()=>Jge,useHasImageSettingsPanel:()=>tbe,useHasTypographyPanel:()=>yA,useSettingsForBlockElement:()=>hA});var pA=c(A(),1),sge=c(G(),1),yH=c(Q(),1),lg=c(F(),1);function hA(e,t,o){let{supportedStyles:r,supports:n}=(0,sge.useSelect)(i=>({supportedStyles:H(i(yH.store)).getSupportedStyles(t,o),supports:i(yH.store).getBlockType(t)?.supports}),[t,o]);return(0,pA.useMemo)(()=>{let i={...e};return r.includes("fontSize")||(i.typography={...i.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),r.includes("fontFamily")||(i.typography={...i.typography,fontFamilies:{}}),i.color={...i.color,text:i.color?.text&&r.includes("color"),background:i.color?.background&&(r.includes("background")||r.includes("backgroundColor")),button:i.color?.button&&r.includes("buttonColor"),heading:i.color?.heading&&r.includes("headingColor"),link:i.color?.link&&r.includes("linkColor"),caption:i.color?.caption&&r.includes("captionColor")},!r.includes("background")&&!r.includes("backgroundGradient")&&(i.color.gradients=[],i.color.customGradient=!1),r.includes("filter")||(i.color.defaultDuotone=!1,i.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","textIndent","writingMode"].forEach(s=>{r.includes(s)||(i.typography={...i.typography,[s]:!1})}),r.includes("textIndent")&&(i.typography={...i.typography,textIndent:i.typography?.textIndent??"subsequent"}),r.includes("columnCount")||(i.typography={...i.typography,textColumns:!1}),["contentSize","wideSize"].forEach(s=>{r.includes(s)||(i.layout={...i.layout,[s]:!1})}),["padding","margin","blockGap"].forEach(s=>{r.includes(s)||(i.spacing={...i.spacing,[s]:!1});let a=Array.isArray(n?.spacing?.[s])?n?.spacing?.[s]:n?.spacing?.[s]?.sides;a?.length&&i.spacing?.[s]&&(i.spacing={...i.spacing,[s]:{...i.spacing?.[s],sides:a}})}),["aspectRatio","height","minHeight","minWidth","width"].forEach(s=>{r.includes(s)||(i.dimensions={...i.dimensions,[s]:!1})}),["radius","color","style","width"].forEach(s=>{r.includes("border"+s.charAt(0).toUpperCase()+s.slice(1))||(i.border={...i.border,[s]:!1})}),[["backgroundImage","backgroundImage"],["backgroundSize","backgroundSize"],["backgroundGradient","gradient"]].forEach(([s,a])=>{r.includes(s)||(i.background={...i.background,[a]:!1})}),i.shadow=r.includes("shadow")?i.shadow:!1,i},[e,r,n])}function hc(e){let t=e?.color?.palette?.custom,o=e?.color?.palette?.theme,r=e?.color?.palette?.default,n=e?.color?.defaultPalette;return(0,pA.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,lg._x)("Theme","Indicates this palette comes from the theme."),colors:o}),n&&r&&r.length&&i.push({name:(0,lg._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&i.push({name:(0,lg._x)("Custom","Indicates this palette is created by the user."),colors:t}),i},[t,o,r,n])}function cg(e){let t=e?.color?.gradients?.custom,o=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,n=e?.color?.defaultGradients;return(0,pA.useMemo)(()=>{let i=[];return o&&o.length&&i.push({name:(0,lg._x)("Theme","Indicates this palette comes from the theme."),gradients:o}),n&&r&&r.length&&i.push({name:(0,lg._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&i.push({name:(0,lg._x)("Custom","Indicates this palette is created by the user."),gradients:t}),i},[t,o,r,n])}var Mo=c(N(),1),fr=c(F(),1),dk=c(A(),1);var uk=c(F(),1);var age=c(A(),1),gA=c(N(),1),vH=c(C(),1),K4e=[{label:(0,uk.__)("Align text left"),value:"left",icon:Cd},{label:(0,uk.__)("Align text center"),value:"center",icon:mp},{label:(0,uk.__)("Align text right"),value:"right",icon:Ed},{label:(0,uk.__)("Justify text"),value:"justify",icon:RN}],Y4e=["left","center","right"];function bA({className:e,value:t,onChange:o,options:r=Y4e}){let n=(0,age.useMemo)(()=>K4e.filter(i=>r.includes(i.value)),[r]);return n.length?(0,vH.jsx)(gA.__experimentalToggleGroupControl,{isDeselectable:!0,__next40pxDefaultSize:!0,label:(0,uk.__)("Text alignment"),className:U("block-editor-text-alignment-control",e),value:t,onChange:i=>{o(i===t?void 0:i)},children:n.map(i=>(0,vH.jsx)(gA.__experimentalToggleGroupControlOptionIcon,{value:i.value,icon:i.icon,label:i.label},i.value))}):null}var dr=c(N(),1),Y0=c(F(),1);var oa=c(C(),1);function lge({__next40pxDefaultSize:e=!1,value:t,onChange:o,__unstableInputWidth:r="60px",withSlider:n=!1,hasBottomMargin:i=!1,help:s,...a}){let[l]=xe("spacing.units"),u=(0,dr.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","ch","%","vw","vh"],defaultValues:{px:16,em:2,rem:2,ch:2}}),[d,f]=(0,dr.__experimentalParseQuantityAndUnitFromRawValue)(t,u),m=!!f&&["em","rem","%","ch","vw","vh"].includes(f);return n?(0,oa.jsxs)(dr.__experimentalView,{style:i?{marginBottom:12}:void 0,children:[(0,oa.jsx)(dr.BaseControl.VisualLabel,{children:(0,Y0.__)("Line indent")}),(0,oa.jsxs)(dr.Flex,{children:[(0,oa.jsx)(dr.FlexItem,{isBlock:!0,children:(0,oa.jsx)(dr.__experimentalUnitControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,label:(0,Y0.__)("Line indent"),labelPosition:"top",hideLabelFromVision:!0,value:t,onChange:o,size:a.size,units:u,__unstableInputWidth:r,min:0})}),n&&(0,oa.jsx)(dr.FlexItem,{isBlock:!0,children:(0,oa.jsx)(dr.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,oa.jsx)(dr.RangeControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,label:(0,Y0.__)("Line indent"),hideLabelFromVision:!0,value:d,withInputField:!1,onChange:h=>{o?.(h===void 0?void 0:h+(f??"px"))},min:0,max:m?10:100,step:m?.1:1,initialPosition:0})})})]}),s&&(0,oa.jsx)("p",{className:"components-base-control__help",children:s})]}):(0,oa.jsx)(dr.__experimentalUnitControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,...a,label:(0,Y0.__)("Line indent"),value:t,__unstableInputWidth:r,units:u,onChange:o,help:s})}function uge(e,t){let o=e?.typography?.fontFamilies,r=["default","theme","custom"].flatMap(i=>o?.[i]??[]),n=r.find(i=>i.fontFamily===t)?.fontFace??[];return{fontFamilies:r,fontFamilyFaces:n}}function cge(e,t){return t=typeof t=="number"?t.toString():t,!t||typeof t!="string"?"":!e||e.length===0?t:e?.reduce((r,{value:n})=>{let i=Math.abs(parseInt(n)-parseInt(t)),s=Math.abs(parseInt(r)-parseInt(t));return i<s?n:r},e[0]?.value)}function q4e(e,t){return typeof t!="string"||!t||!["normal","italic","oblique"].includes(t)?"":!e||e.length===0||e.find(r=>r.value===t)?t:t==="oblique"&&!e.find(r=>r.value==="oblique")?"italic":""}function dge(e,t,o){let r=t,n=o,{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:a}=Iv(e),l=i?.some(({value:d})=>d===t),u=s?.some(({value:d})=>d?.toString()===o?.toString());return l||(r=t?q4e(i,t):a?.find(d=>d.style.fontWeight===cge(s,o))?.style?.fontStyle),u||(n=o?cge(s,o):a?.find(d=>d.style.fontStyle===(r||t))?.style?.fontWeight),{nearestFontStyle:r,nearestFontWeight:n}}var It=c(C(),1),Z4e=1,X4e=6;function yA(e){let t=mge(e),o=pge(e),r=hge(e),n=gge(e),i=yge(e),s=bge(e),a=vge(e),l=_ge(e),u=kge(e),d=Sge(e),f=fge(e);return t||o||r||n||i||s||f||a||l||u||d}function fge(e){return e?.typography?.defaultFontSizes!==!1&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function mge(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function pge(e){return e?.typography?.lineHeight}function hge(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function Q4e(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,fr.__)("Appearance"):(0,fr.__)("Font style"):(0,fr.__)("Font weight")}function gge(e){return e?.typography?.letterSpacing}function bge(e){return e?.typography?.textTransform}function yge(e){return e?.typography?.textAlign}function vge(e){return e?.typography?.textDecoration}function kge(e){return e?.typography?.writingMode}function Sge(e){return e?.typography?.textColumns}function _ge(e){return e?.typography?.textIndent}function J4e(e){let t=e?.typography?.fontSizes,o=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...o?t?.default??[]:[]]}function e3e({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Ao(),s=()=>{let a=e(o);t(a)};return(0,It.jsx)(Mo.__experimentalToolsPanel,{label:(0,fr.__)("Typography"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var t3e={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,textIndent:!0,writingMode:!0,textColumns:!0};function vA({as:e=e3e,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=t3e,isGlobalStyles:a=!1}){let l=ve=>pn({settings:n},"",ve),u=mge(n),d=l(r?.typography?.fontFamily),{fontFamilies:f,fontFamilyFaces:m}=(0,dk.useMemo)(()=>uge(n,d),[n,d]),h=ve=>{let ot=f?.find(({fontFamily:mr})=>mr===ve)?.slug,st=ge(t,["typography","fontFamily"],ot?`var:preset|font-family|${ot}`:ve||void 0),zr=f?.find(({fontFamily:mr})=>mr===ve)?.fontFace??[],{fontStyles:jr,fontWeights:_n}=Iv(zr),Ee=jr?.some(({value:mr})=>mr===I),co=_n?.some(({value:mr})=>mr?.toString()===P?.toString());if(!Ee||!co){let{nearestFontStyle:mr,nearestFontWeight:wl}=dge(zr,I,P);mr||wl?st={...st,typography:{...st?.typography,fontStyle:mr||void 0,fontWeight:wl||void 0}}:(I||P)&&(st={...st,typography:{...st?.typography,fontStyle:void 0,fontWeight:void 0}})}o(st)},p=()=>!!t?.typography?.fontFamily,g=()=>h(void 0),b=fge(n),v=!n?.typography?.customFontSize,y=J4e(n),k=l(r?.typography?.fontSize),S=(()=>{let ve=r?.typography?.fontSize;if(!ve||typeof ve!="string")return;if(ve.startsWith("var:preset|font-size|"))return ve.replace("var:preset|font-size|","");let ot=ve.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);if(ot)return ot[1]})(),_=(ve,ot)=>{let st=ot?.slug?`var:preset|font-size|${ot?.slug}`:ve;o(ge(t,["typography","fontSize"],st||void 0))},x=()=>!!t?.typography?.fontSize,E=()=>_(void 0),T=hge(n),R=Q4e(n),B=n?.typography?.fontStyle,O=n?.typography?.fontWeight,I=l(r?.typography?.fontStyle),P=l(r?.typography?.fontWeight),M=(0,dk.useCallback)(({fontStyle:ve,fontWeight:ot})=>{(ve!==I||ot!==P)&&o({...t,typography:{...t?.typography,fontStyle:ve||void 0,fontWeight:ot||void 0}})},[I,P,o,t]),L=()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,j=(0,dk.useCallback)(()=>{M({})},[M]),V=pge(n),D=l(r?.typography?.lineHeight),z=ve=>{o(ge(t,["typography","lineHeight"],ve||void 0))},W=()=>t?.typography?.lineHeight!==void 0,K=()=>z(void 0),ne=gge(n),X=l(r?.typography?.letterSpacing),ee=ve=>{o(ge(t,["typography","letterSpacing"],ve||void 0))},Y=()=>!!t?.typography?.letterSpacing,$=()=>ee(void 0),Z=_ge(n),q=l(r?.typography?.textIndent),re=(n?.typography?.textIndent??"subsequent")==="all",ie=ve=>{o(ge(t,["typography","textIndent"],ve||void 0))},ce=ve=>{o({...t,settings:{typography:{textIndent:ve?"all":"subsequent"}}})},_e=()=>!!t?.typography?.textIndent,ae=()=>{o(ge(t,["typography","textIndent"],void 0))},we=re?(0,fr.__)("Indents the first line of all paragraphs."):(0,fr.__)("Indents the first line of each paragraph after the first one."),Te=Sge(n),Fe=l(r?.typography?.textColumns),Qe=ve=>{o(ge(t,["typography","textColumns"],ve||void 0))},Ae=()=>!!t?.typography?.textColumns,nt=()=>Qe(void 0),ke=bge(n),Lt=l(r?.typography?.textTransform),le=ve=>{o(ge(t,["typography","textTransform"],ve||void 0))},fe=()=>!!t?.typography?.textTransform,Re=()=>le(void 0),Ze=vge(n),gt=l(r?.typography?.textDecoration),tt=ve=>{o(ge(t,["typography","textDecoration"],ve||void 0))},ut=()=>!!t?.typography?.textDecoration,Mt=()=>tt(void 0),Le=kge(n),De=l(r?.typography?.writingMode),Ke=ve=>{o(ge(t,["typography","writingMode"],ve||void 0))},Ye=()=>!!t?.typography?.writingMode,bt=()=>Ke(void 0),eo=yge(n),vo=l(r?.typography?.textAlign),de=ve=>{o(ge(t,["typography","textAlign"],ve||void 0))},He=()=>!!t?.typography?.textAlign,dt=()=>de(void 0),je=(0,dk.useCallback)(ve=>({...ve,typography:{}}),[]);return(0,It.jsxs)(e,{resetAllFilter:je,value:t,onChange:o,panelId:i,children:[u&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{label:(0,fr.__)("Font"),hasValue:p,onDeselect:g,isShownByDefault:s.fontFamily,panelId:i,children:(0,It.jsx)($O,{fontFamilies:f,value:d,onChange:h,size:"__unstable-large"})}),b&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{label:(0,fr.__)("Size"),hasValue:x,onDeselect:E,isShownByDefault:s.fontSize,panelId:i,children:(0,It.jsx)(Mo.FontSizePicker,{value:S||k,valueMode:S?"slug":"literal",onChange:_,fontSizes:y,disableCustomFontSizes:v,withReset:!1,withSlider:!0,size:"__unstable-large"})}),T&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{label:R,hasValue:L,onDeselect:j,isShownByDefault:s.fontAppearance,panelId:i,children:(0,It.jsx)(WO,{value:{fontStyle:I,fontWeight:P},onChange:M,hasFontStyles:B,hasFontWeights:O,fontFamilyFaces:m,size:"__unstable-large"})}),V&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",label:(0,fr.__)("Line height"),hasValue:W,onDeselect:K,isShownByDefault:s.lineHeight,panelId:i,children:(0,It.jsx)(I2,{__unstableInputWidth:"auto",value:D,onChange:z,size:"__unstable-large"})}),ne&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",label:(0,fr.__)("Letter spacing"),hasValue:Y,onDeselect:$,isShownByDefault:s.letterSpacing,panelId:i,children:(0,It.jsx)(YO,{value:X,onChange:ee,size:"__unstable-large",__unstableInputWidth:"auto"})}),Z&&(0,It.jsxs)(Mo.__experimentalToolsPanelItem,{label:(0,fr.__)("Line indent"),hasValue:_e,onDeselect:ae,isShownByDefault:s.textIndent,panelId:i,children:[(0,It.jsx)(lge,{value:q,onChange:ie,size:"__unstable-large",__unstableInputWidth:"auto",withSlider:!0,hasBottomMargin:a}),a&&(0,It.jsx)(Mo.ToggleControl,{label:(0,fr.__)("Indent all paragraphs"),checked:re,onChange:ce,help:we})]}),Te&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",label:(0,fr.__)("Columns"),hasValue:Ae,onDeselect:nt,isShownByDefault:s.textColumns,panelId:i,children:(0,It.jsx)(Mo.__experimentalNumberControl,{label:(0,fr.__)("Columns"),max:X4e,min:Z4e,onChange:Qe,size:"__unstable-large",spinControls:"custom",value:Fe,initialPosition:1})}),Ze&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",label:(0,fr.__)("Decoration"),hasValue:ut,onDeselect:Mt,isShownByDefault:s.textDecoration,panelId:i,children:(0,It.jsx)(ZO,{value:gt,onChange:tt,size:"__unstable-large",__unstableInputWidth:"auto"})}),Le&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",label:(0,fr.__)("Orientation"),hasValue:Ye,onDeselect:bt,isShownByDefault:s.writingMode,panelId:i,children:(0,It.jsx)(e2,{value:De,onChange:Ke,size:"__unstable-large"})}),ke&&(0,It.jsx)(Mo.__experimentalToolsPanelItem,{label:(0,fr.__)("Letter case"),hasValue:fe,onDeselect:Re,isShownByDefault:s.textTransform,panelId:i,children:(0,It.jsx)(QO,{value:Lt,onChange:le,showNone:!0,isBlock:!0,size:"__unstable-large"})}),eo&&(0,It.jsxs)(Mo.__experimentalToolsPanelItem,{label:(0,fr.__)("Text alignment"),hasValue:He,onDeselect:dt,isShownByDefault:s.textAlign,panelId:i,children:[(0,It.jsx)(bA,{value:vo,onChange:de,options:["left","center","right","justify"],size:"__unstable-large"}),vo==="justify"&&(0,It.jsx)("div",{children:(0,It.jsx)(Mo.Notice,{status:"warning",isDismissible:!1,children:(0,fr.__)("Justified text can reduce readability. For better accessibility, use left-aligned text instead.")})})]})]})}var so=c(F(),1),ao=c(N(),1);var mk=c(A(),1);var Ot=c(N(),1),vr=c(F(),1),wge=c(A(),1),kA=c(G(),1);var xge=c(G(),1);function ug(e,t){let{getBlockOrder:o,getBlockAttributes:r}=(0,xge.useSelect)(w);return(i,s)=>{let a=(s-1)*t+i-1,l=0;for(let u of o(e)){let{columnStart:d,rowStart:f}=r(u).style?.layout??{};(f-1)*t+d-1<a&&l++}return l}}var wo=c(C(),1);function o3e(e,t){let{orientation:o="horizontal"}=t;return e==="fill"?(0,vr.__)("Stretch to fill available space."):e==="fixed"&&o==="horizontal"?(0,vr.__)("Specify a fixed width."):e==="fixed"?(0,vr.__)("Specify a fixed height."):(0,vr.__)("Fit contents.")}function Cge({value:e={},onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i=!0}){let{type:s,default:{type:a="default"}={}}=o??{},l=s||a;return l==="flex"?(0,wo.jsx)(r3e,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}):l==="grid"?(0,wo.jsx)(i3e,{childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}):null}function r3e({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n}){let{selfStretch:i,flexSize:s}=e,{orientation:a="horizontal"}=o??{},l=()=>!!i,u=a==="horizontal"?(0,vr.__)("Width"):(0,vr.__)("Height"),[d]=xe("spacing.units"),f=(0,Ot.__experimentalUseCustomUnits)({availableUnits:d||["%","px","em","rem","vh","vw"]}),m=()=>{t({selfStretch:void 0,flexSize:void 0})};return(0,wge.useEffect)(()=>{i==="fixed"&&!s&&t({...e,selfStretch:"fit"})},[]),(0,wo.jsxs)(Ot.__experimentalVStack,{as:Ot.__experimentalToolsPanelItem,spacing:2,hasValue:l,label:u,onDeselect:m,isShownByDefault:r,panelId:n,children:[(0,wo.jsxs)(Ot.__experimentalToggleGroupControl,{size:"__unstable-large",label:n3e(o),value:i||"fit",help:o3e(i,o),onChange:h=>{t({selfStretch:h,flexSize:h!=="fixed"?null:s})},isBlock:!0,children:[(0,wo.jsx)(Ot.__experimentalToggleGroupControlOption,{value:"fit",label:(0,vr._x)("Fit","Intrinsic block width in flex layout")},"fit"),(0,wo.jsx)(Ot.__experimentalToggleGroupControlOption,{value:"fill",label:(0,vr._x)("Grow","Block with expanding width in flex layout")},"fill"),(0,wo.jsx)(Ot.__experimentalToggleGroupControlOption,{value:"fixed",label:(0,vr._x)("Fixed","Block with fixed width in flex layout")},"fixed")]}),i==="fixed"&&(0,wo.jsx)(Ot.__experimentalUnitControl,{size:"__unstable-large",units:f,onChange:h=>{t({selfStretch:i,flexSize:h})},value:s,min:0,label:u,hideLabelFromVision:!0})]})}function n3e(e){let{orientation:t="horizontal"}=e;return t==="horizontal"?(0,vr.__)("Width"):(0,vr.__)("Height")}function i3e({childLayout:e,onChange:t,parentLayout:o,isShownByDefault:r,panelId:n,showGridSpanDefaults:i}){let{columnStart:s,rowStart:a,columnSpan:l,rowSpan:u}=e,{columnCount:d,rowCount:f}=o??{},m=(0,kA.useSelect)(T=>T(w).getBlockRootClientId(n)),{moveBlocksToPosition:h,__unstableMarkNextChangeAsNotPersistent:p}=(0,kA.useDispatch)(w),g=ug(m,d||3),b=()=>!!s||!!a,v=()=>!!l||!!u,y=()=>{t({columnStart:void 0,rowStart:void 0})},k=()=>{t({columnSpan:void 0,rowSpan:void 0})},S=d?d-(s??1)+1:void 0,_=window.__experimentalEnableGridInteractivity&&f?f-(a??1)+1:void 0,x=l??(i?1:void 0),E=u??(i?1:void 0);return(0,wo.jsxs)(wo.Fragment,{children:[(0,wo.jsxs)(Ot.Flex,{as:Ot.__experimentalToolsPanelItem,hasValue:v,label:(0,vr.__)("Grid span"),onDeselect:k,isShownByDefault:r,panelId:n,children:[(0,wo.jsx)(Ot.FlexItem,{style:{width:"50%"},children:(0,wo.jsx)(Ot.__experimentalInputControl,{size:"__unstable-large",label:(0,vr.__)("Column span"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10),B=S?Math.min(R,S):R;t({columnStart:s,rowStart:a,rowSpan:u,columnSpan:B})},value:x,min:1,max:S})}),(0,wo.jsx)(Ot.FlexItem,{style:{width:"50%"},children:(0,wo.jsx)(Ot.__experimentalInputControl,{size:"__unstable-large",label:(0,vr.__)("Row span"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10),B=_?Math.min(R,_):R;t({columnStart:s,rowStart:a,columnSpan:l,rowSpan:B})},value:E,min:1,max:_})})]}),window.__experimentalEnableGridInteractivity&&(0,wo.jsxs)(Ot.Flex,{as:Ot.__experimentalToolsPanelItem,hasValue:b,label:(0,vr.__)("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:n,children:[(0,wo.jsx)(Ot.FlexItem,{style:{width:"50%"},children:(0,wo.jsx)(Ot.__experimentalInputControl,{size:"__unstable-large",label:(0,vr.__)("Column"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10);t({columnStart:R,rowStart:a,columnSpan:l,rowSpan:u}),p(),h([n],m,m,g(R,a))},value:s??1,min:1,max:d?d-(l??1)+1:void 0})}),(0,wo.jsx)(Ot.FlexItem,{style:{width:"50%"},children:(0,wo.jsx)(Ot.__experimentalInputControl,{size:"__unstable-large",label:(0,vr.__)("Row"),type:"number",onChange:T=>{let R=T===""?1:parseInt(T,10);t({columnStart:s,rowStart:R,columnSpan:l,rowSpan:u}),p(),h([n],m,m,g(s,R))},value:a??1,min:1,max:f?f-(u??1)+1:void 0})})]})]})}var SA=c(N(),1),fk=c(F(),1);var kH=c(C(),1);function _A({panelId:e,value:t,onChange:o=()=>{},options:r,defaultValue:n="auto",hasValue:i,isShownByDefault:s=!0}){let a=t??"auto",[l,u,d]=xe("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.map(({name:p,ratio:g})=>({label:p,value:g})),m=l?.map(({name:p,ratio:g})=>({label:p,value:g})),h=[{label:(0,fk._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?m:[],...f||[],{label:(0,fk._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,kH.jsx)(SA.__experimentalToolsPanelItem,{hasValue:i||(()=>a!==n),label:(0,fk.__)("Aspect ratio"),onDeselect:()=>o(void 0),isShownByDefault:s,panelId:e,children:(0,kH.jsx)(SA.SelectControl,{label:(0,fk.__)("Aspect ratio"),value:a,options:r??h,onChange:o,size:"__unstable-large"})})}var mt=c(C(),1),SH=["horizontal","vertical"];function xA(e,t=$l){return mk.Platform.OS==="web"&&(Bge(e)||Rge(e)||Pge(e)||Ige(e)||Oge(e)||Age(e)||Lge(e)||Mge(e)||Nge(e)||Dge(e,t)||Vge(e,t))}function Bge(e){return e?.layout?.contentSize}function Rge(e){return e?.layout?.wideSize}function Pge(e){return e?.spacing?.padding}function Ige(e){return e?.spacing?.margin}function Oge(e){return e?.spacing?.blockGap}function Age(e){return e?.dimensions?.height}function Lge(e){return e?.dimensions?.minHeight}function Mge(e){return e?.dimensions?.minWidth}function Nge(e){return e?.dimensions?.width}function Dge(e,t=$l){return Ir(t)&&e?.dimensions?.aspectRatio}function Vge(e,t=$l){if(bu(t))return!1;let{type:o="default",default:{type:r="default"}={},allowSizingOnChildren:n=!1}=e?.parentLayout??{},i=(r==="flex"||o==="flex"||r==="grid"||o==="grid")&&n;return!!e?.layout&&i}function s3e(e){let{defaultSpacingSizes:t,spacingSizes:o}=e?.spacing||{};return t!==!1&&o?.default?.length>0||o?.theme?.length>0||o?.custom?.length>0}function Ege(e,t){if(!t||!e)return e;let o={};return t.forEach(r=>{r==="vertical"&&(o.top=e.top,o.bottom=e.bottom),r==="horizontal"&&(o.left=e.left,o.right=e.right),o[r]=e?.[r]}),o}function Tge(e){return e&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function a3e(e,t){return e&&(typeof e=="string"?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top})}function l3e({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Ao(),s=()=>{let a=e(o);t(a)};return(0,mt.jsx)(ao.__experimentalToolsPanel,{label:(0,so.__)("Dimensions"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var ra={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,height:!0,minHeight:!0,minWidth:!0,width:!0,aspectRatio:!0,childLayout:!0};function wA({as:e=l3e,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=ra,onVisualize:a=()=>{},includeLayoutControls:l=!1,styleState:u=$l}){let{dimensions:d,spacing:f}=n,m=Ee=>Ee&&typeof Ee=="object"?Object.keys(Ee).reduce((co,mr)=>(co[mr]=pn({settings:{dimensions:d,spacing:f}},"",Ee[mr]),co),{}):pn({settings:{dimensions:d,spacing:f}},"",Ee),h=s3e(n),p=(0,ao.__experimentalUseCustomUnits)({availableUnits:n?.spacing?.units||["%","px","em","rem","vw"]}),g=-1/0,[b,v]=(0,mk.useState)(g),y=(0,mk.useCallback)(Ee=>({...Ee,layout:ye({...Ee?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...Ee?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...Ee?.dimensions,height:void 0,minHeight:void 0,minWidth:void 0,aspectRatio:void 0,width:void 0}}),[]),k=Bge(n)&&l,S=m(r?.layout?.contentSize),_=Ee=>{o(ge(t,["layout","contentSize"],Ee||void 0))},x=()=>!!t?.layout?.contentSize,E=()=>_(void 0),T=Rge(n)&&l,R=m(r?.layout?.wideSize),B=Ee=>{o(ge(t,["layout","wideSize"],Ee||void 0))},O=()=>!!t?.layout?.wideSize,I=()=>B(void 0),P=Pge(n),M=m(r?.spacing?.padding),L=Tge(M),j=Array.isArray(n?.spacing?.padding)?n?.spacing?.padding:n?.spacing?.padding?.sides,V=j&&j.some(Ee=>SH.includes(Ee)),D=Ee=>{let co=Ege(Ee,j);o(ge(t,["spacing","padding"],co))},z=()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,W=()=>D(void 0),K=()=>a("padding"),ne=Ige(n),X=m(r?.spacing?.margin),ee=Tge(X),Y=Array.isArray(n?.spacing?.margin)?n?.spacing?.margin:n?.spacing?.margin?.sides,$=Y&&Y.some(Ee=>SH.includes(Ee)),Z=Ee=>{let co=Ege(Ee,Y);o(ge(t,["spacing","margin"],co))},q=()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,J=()=>Z(void 0),re=()=>a("margin"),ie=Oge(n),ce=Array.isArray(n?.spacing?.blockGap)?n?.spacing?.blockGap:n?.spacing?.blockGap?.sides,_e=ce&&ce.some(Ee=>SH.includes(Ee)),ae=m(r?.spacing?.blockGap),we=a3e(ae,_e),Te=Ee=>{o(ge(t,["spacing","blockGap"],Ee))},Fe=Ee=>{Ee||Te(null),!_e&&Ee?.hasOwnProperty("top")?Te(Ee.top):Te({top:Ee?.top,left:Ee?.left})},Qe=()=>Te(void 0),Ae=()=>!!t?.spacing?.blockGap,nt=Lge(n),ke=m(r?.dimensions?.minHeight),Lt=Ee=>{let co=ge(t,["dimensions","minHeight"],Ee);o(ge(co,["dimensions","aspectRatio"],void 0))},le=()=>{Lt(void 0)},fe=()=>!!t?.dimensions?.minHeight,Re=Age(n),Ze=m(r?.dimensions?.height),gt=Ee=>{let co=ge(t,["dimensions","height"],Ee);o(ge(co,["dimensions","aspectRatio"],void 0))},tt=()=>{gt(void 0)},ut=()=>!!t?.dimensions?.height,Mt=Mge(n),Le=m(r?.dimensions?.minWidth),De=Ee=>{o(ge(t,["dimensions","minWidth"],Ee))},Ke=()=>{De(void 0)},Ye=()=>!!t?.dimensions?.minWidth,bt=Nge(n),eo=m(r?.dimensions?.width),vo=Ee=>{o(ge(t,["dimensions","width"],Ee))},de=()=>{vo(void 0)},He=()=>!!t?.dimensions?.width,dt=Dge(n,u),je=m(r?.dimensions?.aspectRatio),ve=Ee=>{let co=ge(t,["dimensions","aspectRatio"],Ee);o(ge(co,["dimensions","minHeight"],void 0))},ot=()=>!!t?.dimensions?.aspectRatio,st=Vge(n,u),zr=r?.layout,jr=Ee=>{o({...t,layout:{...t?.layout,...Ee}})},_n=()=>a(!1);return(0,mt.jsxs)(e,{resetAllFilter:y,value:t,onChange:o,panelId:i,children:[(k||T)&&(0,mt.jsx)("span",{className:"span-columns",children:(0,so.__)("Set the width of the main content area.")}),k&&(0,mt.jsx)(ao.__experimentalToolsPanelItem,{label:(0,so.__)("Content width"),hasValue:x,onDeselect:E,isShownByDefault:s.contentSize??ra.contentSize,panelId:i,children:(0,mt.jsx)(ao.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,so.__)("Content width"),labelPosition:"top",value:S||"",onChange:Ee=>{_(Ee)},units:p,prefix:(0,mt.jsx)(ao.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,mt.jsx)(We,{icon:pp})})})}),T&&(0,mt.jsx)(ao.__experimentalToolsPanelItem,{label:(0,so.__)("Wide width"),hasValue:O,onDeselect:I,isShownByDefault:s.wideSize??ra.wideSize,panelId:i,children:(0,mt.jsx)(ao.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,so.__)("Wide width"),labelPosition:"top",value:R||"",onChange:Ee=>{B(Ee)},units:p,prefix:(0,mt.jsx)(ao.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,mt.jsx)(We,{icon:Tp})})})}),P&&(0,mt.jsxs)(ao.__experimentalToolsPanelItem,{hasValue:z,label:(0,so.__)("Padding"),onDeselect:W,isShownByDefault:s.padding??ra.padding,className:U({"tools-panel-item-spacing":h}),panelId:i,children:[!h&&(0,mt.jsx)(ao.BoxControl,{__next40pxDefaultSize:!0,values:L,onChange:D,label:(0,so.__)("Padding"),sides:j,units:p,allowReset:!1,splitOnAxis:V,inputProps:{onMouseOver:K,onMouseOut:_n}}),h&&(0,mt.jsx)(ak,{values:L,onChange:D,label:(0,so.__)("Padding"),sides:j,units:p,allowReset:!1,onMouseOver:K,onMouseOut:_n})]}),ne&&(0,mt.jsxs)(ao.__experimentalToolsPanelItem,{hasValue:q,label:(0,so.__)("Margin"),onDeselect:J,isShownByDefault:s.margin??ra.margin,className:U({"tools-panel-item-spacing":h}),panelId:i,children:[!h&&(0,mt.jsx)(ao.BoxControl,{__next40pxDefaultSize:!0,values:ee,onChange:Z,inputProps:{min:b,onDragStart:()=>{v(0)},onDragEnd:()=>{v(g)},onMouseOver:re,onMouseOut:_n},label:(0,so.__)("Margin"),sides:Y,units:p,allowReset:!1,splitOnAxis:$}),h&&(0,mt.jsx)(ak,{values:ee,onChange:Z,minimumCustomValue:-1/0,label:(0,so.__)("Margin"),sides:Y,units:p,allowReset:!1,onMouseOver:re,onMouseOut:_n})]}),ie&&(0,mt.jsxs)(ao.__experimentalToolsPanelItem,{hasValue:Ae,label:(0,so.__)("Block spacing"),onDeselect:Qe,isShownByDefault:s.blockGap??ra.blockGap,className:U({"tools-panel-item-spacing":h,"single-column":!h&&!_e}),panelId:i,children:[!h&&(_e?(0,mt.jsx)(ao.BoxControl,{__next40pxDefaultSize:!0,label:(0,so.__)("Block spacing"),min:0,onChange:Fe,units:p,sides:ce,values:we,allowReset:!1,splitOnAxis:_e}):(0,mt.jsx)(ao.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,so.__)("Block spacing"),min:0,onChange:Te,units:p,value:ae})),h&&(0,mt.jsx)(ak,{label:(0,so.__)("Block spacing"),min:0,onChange:Fe,showSideInLabel:!1,sides:_e?ce:["top"],values:we,allowReset:!1})]}),st&&(0,mt.jsx)(Cge,{value:zr,onChange:jr,parentLayout:n?.parentLayout,panelId:i,showGridSpanDefaults:!gu(u),isShownByDefault:s.childLayout??ra.childLayout}),nt&&(0,mt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:fe,label:(0,so.__)("Minimum height"),onDeselect:le,isShownByDefault:s.minHeight??ra.minHeight,panelId:i,children:(0,mt.jsx)(Yh,{label:(0,so.__)("Minimum height"),value:ke,onChange:Lt,dimensionSizes:d?.dimensionSizes})}),Mt&&(0,mt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:Ye,label:(0,so.__)("Minimum width"),onDeselect:Ke,isShownByDefault:s.minWidth??ra.minWidth,panelId:i,children:(0,mt.jsx)(Yh,{label:(0,so.__)("Minimum width"),value:Le,onChange:De,dimensionSizes:d?.dimensionSizes})}),Re&&(0,mt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:ut,label:(0,so.__)("Height"),onDeselect:tt,isShownByDefault:s.height??ra.height,panelId:i,children:(0,mt.jsx)(Yh,{label:(0,so.__)("Height"),value:Ze,onChange:gt,dimensionSizes:d?.dimensionSizes})}),bt&&(0,mt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:He,label:(0,so.__)("Width"),onDeselect:de,isShownByDefault:s.width??ra.width,panelId:i,children:(0,mt.jsx)(Yh,{label:(0,so.__)("Width"),value:eo,onChange:vo,dimensionSizes:d?.dimensionSizes})}),dt&&(0,mt.jsx)(_A,{hasValue:ot,value:je,onChange:ve,panelId:i,isShownByDefault:s.aspectRatio??ra.aspectRatio})]})}var Wn=c(N(),1),hk=c(A(),1),pk=c(F(),1);var dg=c(F(),1),kr=c(N(),1),EA=c(A(),1);var Ht=c(C(),1),CA=[];function c3e({shadow:e,onShadowChange:t,settings:o}){let r=_H(o);return(0,Ht.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,Ht.jsxs)(kr.__experimentalVStack,{spacing:4,children:[(0,Ht.jsx)(kr.__experimentalHeading,{level:5,children:(0,dg.__)("Drop shadow")}),(0,Ht.jsx)(u3e,{presets:r,activeShadow:e,onSelect:t}),(0,Ht.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,Ht.jsx)(kr.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,dg.__)("Clear")})})]})})}function u3e({presets:e,activeShadow:t,onSelect:o}){return e?(0,Ht.jsx)(kr.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,dg.__)("Drop shadows"),children:e.map(({name:r,slug:n,shadow:i})=>(0,Ht.jsx)(d3e,{label:r,isActive:i===t,type:n==="unset"?"unset":"preset",onSelect:()=>o(i===t?void 0:i),shadow:i},n))}):null}function d3e({type:e,label:t,isActive:o,onSelect:r,shadow:n}){return(0,Ht.jsxs)(lt.Root,{children:[(0,Ht.jsx)(lt.Trigger,{render:(0,Ht.jsx)(kr.Composite.Item,{role:"option","aria-label":t,"aria-selected":o,className:U("block-editor-global-styles__shadow__item",{"is-active":o}),render:(0,Ht.jsx)("button",{className:U("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:r,style:{boxShadow:n},"aria-label":t,children:o&&(0,Ht.jsx)(We,{icon:ys})})})}),(0,Ht.jsx)(lt.Popup,{children:t})]})}function Fge({shadow:e,onShadowChange:t,settings:o}){return(0,Ht.jsx)(kr.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles__shadow-dropdown",renderToggle:f3e(e,t),renderContent:()=>(0,Ht.jsx)(kr.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,Ht.jsx)(c3e,{shadow:e,onShadowChange:t,settings:o})})})}function f3e(e,t){return function({onToggle:r,isOpen:n}){let i=(0,EA.useRef)(void 0),s={onClick:r,className:U("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":n}),"aria-expanded":n,ref:i},a={onClick:()=>{n&&r(),t(void 0),i.current?.focus()},className:U("block-editor-global-styles__shadow-editor__remove-button",{"is-open":n}),label:(0,dg.__)("Remove")};return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(kr.Button,{__next40pxDefaultSize:!0,...s,children:(0,Ht.jsxs)(kr.__experimentalHStack,{justify:"flex-start",children:[(0,Ht.jsx)(We,{className:"block-editor-global-styles__toggle-icon",icon:eV,size:24}),(0,Ht.jsx)(kr.FlexItem,{children:(0,dg.__)("Drop shadow")})]})}),!!e&&(0,Ht.jsx)(kr.Button,{__next40pxDefaultSize:!0,size:"small",icon:Gr,...a})]})}}function _H(e){return(0,EA.useMemo)(()=>{if(!e?.shadow)return CA;let t=e?.shadow?.defaultPresets,{default:o,theme:r,custom:n}=e?.shadow?.presets??{},i={name:(0,dg.__)("Unset"),slug:"unset",shadow:"none"},s=[...t&&o||CA,...r||CA,...n||CA];return s.length&&s.unshift(i),s},[e])}var ul=c(C(),1);function TA(e){return Object.values(q0(e)).some(Boolean)}function q0(e){return{hasBorderColor:zge(e),hasBorderRadius:jge(e),hasBorderStyle:Hge(e),hasBorderWidth:Uge(e),hasShadow:Gge(e)}}function zge(e){return e?.border?.color}function jge(e){return e?.border?.radius}function Hge(e){return e?.border?.style}function Uge(e){return e?.border?.width}function Gge(e){let t=_H(e);return!!e?.shadow&&t.length>0}function m3e({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Ao();return(0,ul.jsx)(Wn.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,dropdownMenuProps:s,children:n})}var p3e={radius:!0,color:!0,width:!0,shadow:!0};function BA({as:e=m3e,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,name:s,defaultControls:a=p3e}){let l=hc(n),u=(0,hk.useCallback)(V=>pn({settings:n},"",V),[n]),d=V=>{let z=l.flatMap(({colors:W})=>W).find(({color:W})=>W===V);return z?"var:preset|color|"+z.slug:V},f=(0,hk.useMemo)(()=>{if((0,Wn.__experimentalHasSplitBorders)(r?.border)){let V={...r?.border};return["top","right","bottom","left"].forEach(D=>{V[D]={...V[D],color:u(V[D]?.color)}}),V}return{...r?.border,color:r?.border?.color?u(r?.border?.color):void 0}},[r?.border,u]),m=V=>o({...t,border:V}),h=zge(n),p=Hge(n),g=Uge(n),b=jge(n),v=(0,hk.useMemo)(()=>typeof r?.border?.radius!="object"?u(r?.border?.radius):{topLeft:u(r?.border?.radius?.topLeft),topRight:u(r?.border?.radius?.topRight),bottomLeft:u(r?.border?.radius?.bottomLeft),bottomRight:u(r?.border?.radius?.bottomRight)},[r?.border?.radius,u]),y=V=>m({...f,radius:V}),k=()=>{let V=t?.border?.radius;return typeof V=="object"?Object.entries(V).some(Boolean):!!V},S=Gge(n),_=u(r?.shadow),x=n?.shadow?.presets??{},E=x.custom??x.theme??x.default??[],T=V=>{let D=E?.find(({shadow:z})=>z===V)?.slug;o(ge(t,["shadow"],D?`var:preset|shadow|${D}`:V||void 0))},R=()=>!!t?.shadow,B=()=>T(void 0),O=()=>{if(k())return m({radius:t?.border?.radius});m(void 0)},I=V=>{let D={...V};(0,Wn.__experimentalHasSplitBorders)(D)?["top","right","bottom","left"].forEach(z=>{D[z]&&(D[z]={...D[z],color:d(D[z]?.color)})}):D&&(D.color=d(D.color)),m({radius:f?.radius,...D})},P=(0,hk.useCallback)(V=>({...V,border:void 0,shadow:void 0}),[]),M=a?.color||a?.width,L=h||p||g||b,j=fg({blockName:s,hasShadowControl:S,hasBorderControl:L});return(0,ul.jsxs)(e,{resetAllFilter:P,value:t,onChange:o,panelId:i,label:j,children:[(g||h)&&(0,ul.jsx)(Wn.__experimentalToolsPanelItem,{hasValue:()=>(0,Wn.__experimentalIsDefinedBorder)(t?.border),label:(0,pk.__)("Border"),onDeselect:()=>O(),isShownByDefault:M,panelId:i,children:(0,ul.jsx)(Wn.BorderBoxControl,{colors:l,enableAlpha:!0,enableStyle:p,onChange:I,popoverOffset:40,popoverPlacement:"left-start",value:f,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!S,label:(0,pk.__)("Border")})}),b&&(0,ul.jsx)(Wn.__experimentalToolsPanelItem,{hasValue:k,label:(0,pk.__)("Radius"),onDeselect:()=>y(void 0),isShownByDefault:a.radius,panelId:i,children:(0,ul.jsx)(FO,{presets:n?.border?.radiusSizes,values:v,onChange:V=>{y(V||void 0)}})}),S&&(0,ul.jsxs)(Wn.__experimentalToolsPanelItem,{label:(0,pk.__)("Shadow"),hasValue:R,onDeselect:B,isShownByDefault:a.shadow,panelId:i,children:[L?(0,ul.jsx)(Wn.BaseControl.VisualLabel,{as:"legend",children:(0,pk.__)("Shadow")}):null,(0,ul.jsx)(Fge,{shadow:_,onShadowChange:T,settings:n})]})]})}var Eo=c(N(),1),PA=c(A(),1),Co=c(F(),1);function dl(e,t){if(typeof e!="string")return;let o=`var:preset|${t}|`;if(e.startsWith(o))return e.slice(o.length);let r=`--wp--preset--${t}--`;return e.match(new RegExp(`^var\\(${r}([^)]+)\\)$`))?.[1]}var Dt=c(C(),1);function IA(e){let t=$ge(e),o=Xge(e),r=Kge(e),n=qge(e),i=Zge(e),s=Yge(e);return t||o||r||n||i||s}function $ge(e){let t=hc(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function Kge(e){let t=hc(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function Yge(e){let t=hc(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function qge(e){let t=hc(e),o=cg(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function Zge(e){let t=hc(e),o=cg(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function Xge(e){let t=hc(e),o=cg(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||o?.length>0||e?.color?.customGradient)}function xH({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,label:i}){let s=Ao(),a=()=>{let l=e(o);t(l)};return(0,Dt.jsx)(Eo.__experimentalToolsPanel,{label:i||(0,Co.__)("Elements"),resetAll:a,panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,Dt.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:n})})}function mg(e,t,o){if(o)return"var:preset|color|"+o;let r=e.find(({color:n})=>n===t);return r?"var:preset|color|"+r.slug:t}var h3e={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},g3e={placement:"left-start",offset:36,shift:!0},{Tabs:RA}=H(Eo.privateApis),b3e=({indicators:e,label:t})=>(0,Dt.jsxs)(Eo.__experimentalHStack,{justify:"flex-start",children:[(0,Dt.jsx)(Eo.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map((o,r)=>(0,Dt.jsx)(Eo.Flex,{expanded:!1,children:(0,Dt.jsx)(Eo.ColorIndicator,{colorValue:o})},r))}),(0,Dt.jsx)(Eo.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function Wge({isGradient:e,inheritedValue:t,inheritedSlug:o,userValue:r,setValue:n,colorGradientControlSettings:i}){return(0,Dt.jsx)(um,{...i,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,colorSlug:e?void 0:o,gradientValue:e?t:void 0,onColorChange:e?void 0:n,onGradientChange:e?n:void 0,clearable:t===r,headingLevel:3})}function wH({label:e,hasValue:t,resetValue:o,isShownByDefault:r,indicators:n,tabs:i,colorGradientControlSettings:s,panelId:a,className:l="block-editor-tools-panel-color-gradient-settings__item"}){let u=i.find(h=>h.userValue!==void 0),{key:d,...f}=i[0]??{},m=(0,PA.useRef)(void 0);return(0,Dt.jsx)(Eo.__experimentalToolsPanelItem,{className:l,hasValue:t,label:e,onDeselect:o,isShownByDefault:r,panelId:a,children:(0,Dt.jsx)(Eo.Dropdown,{popoverProps:g3e,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:h,isOpen:p})=>{let g={onClick:h,className:U("block-editor-panel-color-gradient-settings__dropdown",{"is-open":p}),"aria-expanded":p,ref:m};return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Eo.Button,{...g,__next40pxDefaultSize:!0,children:(0,Dt.jsx)(b3e,{indicators:n,label:e})}),t()&&(0,Dt.jsx)(Eo.Button,{__next40pxDefaultSize:!0,label:(0,Co.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Gr,onClick:()=>{o(),p&&h(),m.current?.focus()}})]})},renderContent:()=>(0,Dt.jsx)(Eo.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,Dt.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[i.length===1&&(0,Dt.jsx)(Wge,{...f,colorGradientControlSettings:s},d),i.length>1&&(0,Dt.jsxs)(RA,{defaultTabId:u?.key,children:[(0,Dt.jsx)(RA.TabList,{children:i.map(h=>(0,Dt.jsx)(RA.Tab,{tabId:h.key,children:h.label},h.key))}),i.map(h=>{let{key:p,...g}=h;return(0,Dt.jsx)(RA.TabPanel,{tabId:p,focusable:!1,children:(0,Dt.jsx)(Wge,{...g,colorGradientControlSettings:s},p)},p)})]})]})})})})}function OA({as:e=xH,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=h3e,label:a,children:l}){let u=hc(n),d=cg(n),f=n?.color?.custom,m=n?.color?.customGradient,h=u.length>0||f,p=d.length>0||m,g=!!n?.background?.gradient,b=p&&!g,v=ae=>pn({settings:n},"",ae),y=(0,PA.useMemo)(()=>u.flatMap(({colors:ae})=>ae),[u]),k=ae=>{let Te=d.flatMap(({gradients:Fe})=>Fe).find(({gradient:Fe})=>Fe===ae);return Te?"var:preset|gradient|"+Te.slug:ae},S=Xge(n),_=v(r?.color?.background),x=v(t?.color?.background),E=v(r?.color?.gradient),T=v(t?.color?.gradient),R=()=>!!x||!g&&!!T,B=(ae,we)=>{let Te=ge(t,["color","background"],mg(y,ae,we));g||(Te.color.gradient=void 0),o(Te)},O=ae=>{let we=ge(t,["color","gradient"],k(ae));we.color.background=void 0,o(we)},I=()=>{let ae=ge(t,["color","background"],void 0);g||(ae.color.gradient=void 0),o(ae)},P=Kge(n),M=v(r?.elements?.link?.color?.text),L=v(t?.elements?.link?.color?.text),j=(ae,we)=>{o(ge(t,["elements","link","color","text"],mg(y,ae,we)))},V=v(r?.elements?.link?.[":hover"]?.color?.text),D=v(t?.elements?.link?.[":hover"]?.color?.text),z=(ae,we)=>{o(ge(t,["elements","link",":hover","color","text"],mg(y,ae,we)))},W=()=>!!L||!!D,K=()=>{let ae=ge(t,["elements","link",":hover","color","text"],void 0);ae=ge(ae,["elements","link","color","text"],void 0),o(ae)},ne=$ge(n),X=Yge(n),ee=Zge(n),Y=qge(n),$=v(r?.color?.text),Z=v(t?.color?.text),q=()=>!!Z,J=(ae,we)=>{let Te=ge(t,["color","text"],mg(y,ae,we));r?.color?.text===r?.elements?.link?.color?.text&&(Te=ge(Te,["elements","link","color","text"],mg(y,ae,we))),o(Te)},re=()=>J(void 0),ie=[{name:"caption",label:(0,Co.__)("Captions"),showPanel:X},{name:"button",label:(0,Co.__)("Button"),showPanel:ee},{name:"heading",label:(0,Co.__)("Heading"),showPanel:Y},{name:"h1",label:(0,Co.__)("H1"),showPanel:Y},{name:"h2",label:(0,Co.__)("H2"),showPanel:Y},{name:"h3",label:(0,Co.__)("H3"),showPanel:Y},{name:"h4",label:(0,Co.__)("H4"),showPanel:Y},{name:"h5",label:(0,Co.__)("H5"),showPanel:Y},{name:"h6",label:(0,Co.__)("H6"),showPanel:Y}],ce=ae=>({...ae,color:void 0,elements:{...ae?.elements,link:{...ae?.elements?.link,color:void 0,":hover":{color:void 0}},...ie.reduce((we,Te)=>({...we,[Te.name]:{...ae?.elements?.[Te.name],color:void 0}}),{})}}),_e=[ne&&{key:"text",label:(0,Co.__)("Text"),hasValue:q,resetValue:re,isShownByDefault:s.text,indicators:[$],tabs:[{key:"text",label:(0,Co.__)("Text"),inheritedValue:$,inheritedSlug:dl(r?.color?.text,"color"),setValue:J,userValue:Z}]},S&&{key:"background",label:(0,Co.__)("Background"),hasValue:R,resetValue:I,isShownByDefault:s.background,indicators:[(b?E:void 0)??_],tabs:[h&&{key:"background",label:(0,Co.__)("Color"),inheritedValue:_,inheritedSlug:dl(r?.color?.background,"color"),setValue:B,userValue:x},b&&{key:"gradient",label:(0,Co.__)("Gradient"),inheritedValue:E,setValue:O,userValue:T,isGradient:!0}].filter(Boolean)},P&&{key:"link",label:(0,Co.__)("Link"),hasValue:W,resetValue:K,isShownByDefault:s.link,indicators:[M,V],tabs:[{key:"link",label:(0,Co.__)("Default"),inheritedValue:M,inheritedSlug:dl(r?.elements?.link?.color?.text,"color"),setValue:j,userValue:L},{key:"hover",label:(0,Co.__)("Hover"),inheritedValue:V,inheritedSlug:dl(r?.elements?.link?.[":hover"]?.color?.text,"color"),setValue:z,userValue:D}]}].filter(Boolean);return ie.forEach(({name:ae,label:we,showPanel:Te})=>{if(!Te)return;let Fe=v(r?.elements?.[ae]?.color?.background),Qe=v(r?.elements?.[ae]?.color?.gradient),Ae=v(r?.elements?.[ae]?.color?.text),nt=v(t?.elements?.[ae]?.color?.background),ke=v(t?.elements?.[ae]?.color?.gradient),Lt=v(t?.elements?.[ae]?.color?.text),le=()=>!!(Lt||nt||ke),fe=()=>{let Mt=ge(t,["elements",ae,"color","background"],void 0);Mt.elements[ae].color.gradient=void 0,Mt.elements[ae].color.text=void 0,o(Mt)},Re=(Mt,Le)=>{o(ge(t,["elements",ae,"color","text"],mg(y,Mt,Le)))},Ze=(Mt,Le)=>{let De=ge(t,["elements",ae,"color","background"],mg(y,Mt,Le));De.elements[ae].color.gradient=void 0,o(De)},gt=Mt=>{let Le=ge(t,["elements",ae,"color","gradient"],k(Mt));Le.elements[ae].color.background=void 0,o(Le)},tt=!0,ut=ae!=="caption";_e.push({key:ae,label:we,hasValue:le,resetValue:fe,isShownByDefault:s[ae],indicators:tt&&ut?[Ae,Qe??Fe]:[tt?Ae:Qe??Fe],tabs:[h&&tt&&{key:"text",label:(0,Co.__)("Text"),inheritedValue:Ae,inheritedSlug:dl(r?.elements?.[ae]?.color?.text,"color"),setValue:Re,userValue:Lt},h&&ut&&{key:"background",label:(0,Co.__)("Background"),inheritedValue:Fe,inheritedSlug:dl(r?.elements?.[ae]?.color?.background,"color"),setValue:Ze,userValue:nt},p&&ut&&{key:"gradient",label:(0,Co.__)("Gradient"),inheritedValue:Qe,setValue:gt,userValue:ke,isGradient:!0}].filter(Boolean)})}),(0,Dt.jsxs)(e,{resetAllFilter:ce,value:t,onChange:o,panelId:i,label:a,children:[_e.map(ae=>{let{key:we,...Te}=ae;return(0,Dt.jsx)(wH,{...Te,colorGradientControlSettings:{colors:u,disableCustomColors:!f,gradients:d,disableCustomGradients:!m},panelId:i},we)}),l]})}var Ut=c(N(),1),Ku=c(F(),1),gk=c(A(),1);var No=c(C(),1),AA=[];function Qge(e,{presetSetting:t,defaultSetting:o}){let r=!e?.color?.[o],n=e?.color?.[t]?.custom||AA,i=e?.color?.[t]?.theme||AA,s=e?.color?.[t]?.default||AA;return(0,gk.useMemo)(()=>[...n,...i,...r?AA:s],[r,n,i,s])}function Jge(e){return ebe(e)}function ebe(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function y3e({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n}){let i=Ao(),s=()=>{let a=e(o);t(a)};return(0,No.jsx)(Ut.__experimentalToolsPanel,{label:(0,Ku._x)("Filters","Name for applying graphical effects"),resetAll:s,panelId:r,dropdownMenuProps:i,children:n})}var v3e={duotone:!0},k3e={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,Ku.__)("Duotone")},S3e=({indicator:e,label:t})=>(0,No.jsxs)(Ut.__experimentalHStack,{justify:"flex-start",children:[(0,No.jsx)(Ut.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,No.jsx)(Ut.Flex,{expanded:!1,children:e==="unset"||!e?(0,No.jsx)(Ut.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):(0,No.jsx)(Ut.DuotoneSwatch,{values:e})})}),(0,No.jsx)(Ut.FlexItem,{title:t,children:t})]}),_3e=(e,t)=>function({onToggle:r,isOpen:n}){let i=(0,gk.useRef)(void 0),s={onClick:r,className:U("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":n}),"aria-expanded":n,ref:i},a={onClick:()=>{n&&r(),t(),i.current?.focus()},className:"block-editor-panel-duotone-settings__reset",label:(0,Ku.__)("Reset")};return(0,No.jsxs)(No.Fragment,{children:[(0,No.jsx)(Ut.Button,{__next40pxDefaultSize:!0,...s,children:(0,No.jsx)(S3e,{indicator:e,label:(0,Ku.__)("Duotone")})}),e&&(0,No.jsx)(Ut.Button,{size:"small",icon:Gr,...a})]})};function LA({as:e=y3e,value:t,onChange:o,inheritedValue:r=t,settings:n,panelId:i,defaultControls:s=v3e}){let a=b=>pn({settings:n},"",b),l=ebe(n),u=Qge(n,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),d=Qge(n,{presetSetting:"palette",defaultSetting:"defaultPalette"}),f=a(r?.filter?.duotone),m=b=>{let v=u.find(({colors:k})=>k===b),y=v?`var:preset|duotone|${v.slug}`:b;o(ge(t,["filter","duotone"],y))},h=()=>!!t?.filter?.duotone,p=()=>m(void 0),g=(0,gk.useCallback)(b=>({...b,filter:{...b.filter,duotone:void 0}}),[]);return(0,No.jsx)(e,{resetAllFilter:g,value:t,onChange:o,panelId:i,children:l&&(0,No.jsx)(Ut.__experimentalToolsPanelItem,{label:(0,Ku.__)("Duotone"),hasValue:h,onDeselect:p,isShownByDefault:s.duotone,panelId:i,children:(0,No.jsx)(Ut.Dropdown,{popoverProps:k3e,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:_3e(f,p),renderContent:()=>(0,No.jsx)(Ut.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,No.jsxs)(Ut.MenuGroup,{label:(0,Ku.__)("Duotone"),children:[(0,No.jsx)("p",{children:(0,Ku.__)("Create a two-tone color effect without losing your original image.")}),(0,No.jsx)(Ut.DuotonePicker,{colorPalette:d,duotonePalette:u,disableCustomColors:!0,disableCustomDuotone:!0,value:f,onChange:m})]})})})})})}var bk=c(N(),1),Z0=c(F(),1);var pg=c(C(),1);function tbe(e,t,o){return e==="core/image"&&o?.lightbox?.allowEditing||!!t?.lightbox}function obe({onChange:e,value:t,inheritedValue:o,panelId:r}){let n=Ao(),i=()=>{e(void 0)},s=l=>{e({enabled:l})},a=!1;return o?.lightbox?.enabled&&(a=o.lightbox.enabled),(0,pg.jsx)(pg.Fragment,{children:(0,pg.jsx)(bk.__experimentalToolsPanel,{label:(0,Z0._x)("Settings","Image settings"),resetAll:i,panelId:r,dropdownMenuProps:n,children:(0,pg.jsx)(bk.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,Z0.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:r,children:(0,pg.jsx)(bk.ToggleControl,{label:(0,Z0.__)("Enlarge on click"),checked:a,onChange:s})})})})}var MA=c(N(),1);var nbe=c(A(),1),NA=c(F(),1);var X0=c(C(),1);function CH(e){return!(typeof e=="string"&&/<\/?\w/.test(e))}function ibe(e){return CH(e)?null:(0,NA.__)("The custom CSS is invalid. Do not use <> markup.")}function rbe(e){if(!e)return null;let t=ibe(e);if(t)return t;let[o]=by([{css:e}],".for-validation-only");return o===null?(0,NA.__)("There is an error with your CSS structure."):null}function DA({value:e,onChange:t,inheritedValue:o=e,help:r}){let n=o?.css,[i,s]=(0,nbe.useState)(()=>rbe(n));function a(u){t({...e,css:u}),s(ibe(u))}function l(u){s(rbe(u?.target?.value))}return(0,X0.jsxs)(Ne,{direction:"column",gap:"md",children:[i&&(0,X0.jsx)(MA.Notice,{status:"error",onRemove:()=>s(null),children:i}),(0,X0.jsx)(MA.TextareaControl,{label:(0,NA.__)("Additional CSS"),value:n,onChange:u=>a(u),onBlur:l,className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1,help:r})]})}var jA=c(N(),1),ew=c(A(),1),J0=c(F(),1);var qe=c(N(),1);var lo=c(F(),1),abe=c(Ni(),1),EH=c(Ai(),1),Yu=c(A(),1),Q0=c(G(),1),lbe=c(at(),1),cbe=c(k6(),1);var Ge=c(C(),1),VA="image",x3e={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},zA=()=>{},FA=e=>{window.requestAnimationFrame(()=>{let[t]=lbe.focus.tabbable.find(e?.current);t&&t.focus()})};function w3e(e){return e==="cover"||e===void 0?(0,lo.__)("Image covers the space evenly."):e==="contain"?(0,lo.__)("Image is contained without distortion."):(0,lo.__)("Image has a fixed width.")}var C3e=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;let t=isNaN(e.x)?.5:e.x,o=isNaN(e.y)?.5:e.y;return`${t*100}% ${o*100}%`},E3e=e=>{if(!e)return{x:void 0,y:void 0};let[t,o]=e.split(" ").map(r=>parseFloat(r)/100);return t=isNaN(t)?void 0:t,o=isNaN(o)?t:o,{x:t,y:o}};function ube({as:e="span",imgUrl:t,toggleProps:o={},filename:r,label:n,onToggleCallback:i=zA}){let{isOpen:s,...a}=o;(0,Yu.useEffect)(()=>{typeof s<"u"&&i(s)},[s,i]);let l=()=>(0,Ge.jsxs)(qe.__experimentalHStack,{className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[(0,Ge.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:t?`url(${t})`:void 0}}),(0,Ge.jsxs)(qe.FlexBlock,{children:[(0,Ge.jsx)(qe.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:n}),(0,Ge.jsx)(ct,{render:(0,Ge.jsx)("span",{}),children:t?(0,lo.sprintf)((0,lo.__)("Background image: %s"),r||n):(0,lo.__)("No background image selected")})]})]});return e==="button"?(0,Ge.jsx)(qe.Button,{__next40pxDefaultSize:!0,...a,children:l()}):l()}function T3e({label:e,filename:t,url:o,children:r,onToggle:n=zA,hasImageValue:i,onReset:s,containerRef:a}){if(!i)return;let l=e||(0,EH.getFilename)(o)||(0,lo.__)("Image");return(0,Ge.jsx)(qe.Dropdown,{popoverProps:x3e,renderToggle:({onToggle:u,isOpen:d})=>{let f={onClick:u,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":d,"aria-label":(0,lo.__)("Background size, position and repeat options."),isOpen:d};return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(ube,{imgUrl:o,filename:t,label:l,toggleProps:f,as:"button",onToggleCallback:n}),s&&(0,Ge.jsx)(qe.Button,{__next40pxDefaultSize:!0,label:(0,lo.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:Gr,onClick:()=>{s(),d&&u(),FA(a)}})]})},renderContent:()=>(0,Ge.jsx)(qe.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:r})})}function B3e(){return(0,Ge.jsx)(qe.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,Ge.jsx)(qe.Spinner,{})})}function sbe({onChange:e,style:t,inheritedValue:o,onRemoveImage:r=zA,onResetImage:n=zA,displayInPanel:i,defaultValues:s,containerRef:a}){let[l,u]=(0,Yu.useState)(!1),{getSettings:d}=(0,Q0.useSelect)(w),{id:f,title:m,url:h}=t?.background?.backgroundImage||{...o?.background?.backgroundImage},{createErrorNotice:p}=(0,Q0.useDispatch)(abe.store),g=E=>{p(E,{type:"snackbar"}),u(!1)},b=()=>e(ge(t,["background","backgroundImage"],void 0)),v=E=>{if(!E||!E.url){b(),u(!1);return}if((0,cbe.isBlobURL)(E.url)){u(!0);return}if(E.media_type&&E.media_type!==VA||!E.media_type&&E.type&&E.type!==VA){g((0,lo.__)("Only images can be used as a background image."));return}let T=t?.background?.backgroundSize||s?.backgroundSize,R=t?.background?.backgroundPosition;e(ge(t,["background"],{...t?.background,backgroundImage:{url:E.url,id:E.id,source:"file",title:E.title||void 0},backgroundPosition:!R&&(T==="auto"||!T)?"50% 0":R,backgroundSize:T})),u(!1),FA(a)},y=E=>{d().mediaUpload({allowedTypes:[VA],filesList:E,onFileChange([T]){v(T)},onError:g,multiple:!1})},k=Em(t),S=()=>e(ge(t,["background"],{backgroundImage:"none"})),_=!k&&Em(o),x=m||(0,EH.getFilename)(h)||(0,lo.__)("Image");return(0,Ge.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[l&&(0,Ge.jsx)(B3e,{}),(0,Ge.jsx)($v,{mediaId:f,mediaURL:h,allowedTypes:[VA],accept:"image/*",onSelect:v,popoverProps:{className:U({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,Ge.jsx)(ube,{imgUrl:h,filename:m,label:x}),renderToggle:E=>(0,Ge.jsx)(qe.Button,{...E,__next40pxDefaultSize:!0}),onError:g,onReset:()=>{FA(a),n()},children:_&&(0,Ge.jsx)(qe.MenuItem,{onClick:()=>{FA(a),S(),r()},children:(0,lo.__)("Remove")})}),(0,Ge.jsx)(qe.DropZone,{onFilesDrop:y,label:(0,lo.__)("Drop to upload")})]})}function R3e({onChange:e,style:t,inheritedValue:o,defaultValues:r}){let n=t?.background?.backgroundSize||o?.background?.backgroundSize,i=t?.background?.backgroundRepeat||o?.background?.backgroundRepeat,s=t?.background?.backgroundImage?.url||o?.background?.backgroundImage?.url,a=t?.background?.backgroundImage?.id,l=t?.background?.backgroundPosition||o?.background?.backgroundPosition,u=t?.background?.backgroundAttachment||o?.background?.backgroundAttachment,d=!n&&a?r?.backgroundSize:n||"auto";d=["cover","contain","auto"].includes(d)?d:"auto";let f=!(i==="no-repeat"||d==="cover"&&i===void 0),m=v=>{let y=i,k=l;v==="contain"&&(y="no-repeat",k=void 0),v==="cover"&&(y=void 0,k=void 0),(d==="cover"||d==="contain")&&v==="auto"&&(y=void 0,t?.background?.backgroundImage?.id&&(k="50% 0")),!v&&d==="auto"&&(v="auto"),e(ge(t,["background"],{...t?.background,backgroundPosition:k,backgroundRepeat:y,backgroundSize:v}))},h=v=>{e(ge(t,["background","backgroundPosition"],C3e(v)))},p=()=>e(ge(t,["background","backgroundRepeat"],f===!0?"no-repeat":"repeat")),g=()=>e(ge(t,["background","backgroundAttachment"],u==="fixed"?"scroll":"fixed")),b=!l&&a&&n==="contain"?r?.backgroundPosition:l;return(0,Ge.jsxs)(qe.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,Ge.jsx)(qe.FocalPointPicker,{label:(0,lo.__)("Focal point"),url:s,value:E3e(b),onChange:h}),(0,Ge.jsx)(qe.ToggleControl,{label:(0,lo.__)("Fixed background"),checked:u==="fixed",onChange:g}),(0,Ge.jsxs)(qe.__experimentalToggleGroupControl,{size:"__unstable-large",label:(0,lo.__)("Size"),value:d,onChange:m,isBlock:!0,help:w3e(n||r?.backgroundSize),children:[(0,Ge.jsx)(qe.__experimentalToggleGroupControlOption,{value:"cover",label:(0,lo._x)("Cover","Size option for background image control")},"cover"),(0,Ge.jsx)(qe.__experimentalToggleGroupControlOption,{value:"contain",label:(0,lo._x)("Contain","Size option for background image control")},"contain"),(0,Ge.jsx)(qe.__experimentalToggleGroupControlOption,{value:"auto",label:(0,lo._x)("Tile","Size option for background image control")},"tile")]}),(0,Ge.jsxs)(qe.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,Ge.jsx)(qe.__experimentalUnitControl,{"aria-label":(0,lo.__)("Background image width"),onChange:m,value:n,size:"__unstable-large",__unstableInputWidth:"100px",min:0,placeholder:(0,lo.__)("Auto"),disabled:d!=="auto"||d===void 0}),(0,Ge.jsx)(qe.ToggleControl,{label:(0,lo.__)("Repeat"),checked:f,onChange:p,disabled:d==="cover"})]})]})}function dbe({value:e,onChange:t,inheritedValue:o=e,settings:r,defaultValues:n={}}){let{globalStyles:i,_links:s}=(0,Q0.useSelect)(v=>{let{getSettings:y}=v(w),k=y();return{globalStyles:k[ei],_links:k[tC]}},[]),a=(0,Yu.useMemo)(()=>{let v={background:{}};return o?.background?(Object.entries(o?.background).forEach(([y,k])=>{v.background[y]=iv(k,{styles:i,_links:s})}),v):o},[i,s,o]),l=()=>t(ge(e,["background"],{})),{title:u,url:d}=e?.background?.backgroundImage||{...a?.background?.backgroundImage},f=Em(e)||Em(a),m=e?.background?.backgroundImage||o?.background?.backgroundImage,h=f&&m!=="none"&&(r?.background?.backgroundSize||r?.background?.backgroundPosition||r?.background?.backgroundRepeat),[p,g]=(0,Yu.useState)(!1),b=(0,Yu.useRef)();return(0,Ge.jsx)("div",{ref:b,className:U("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":p}),children:h?(0,Ge.jsx)(T3e,{label:u,filename:u,url:d,onToggle:g,hasImageValue:f,onReset:l,containerRef:b,children:(0,Ge.jsxs)(qe.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,Ge.jsx)(sbe,{onChange:t,style:e,inheritedValue:a,displayInPanel:!0,onResetImage:()=>{g(!1),l()},onRemoveImage:()=>g(!1),defaultValues:n,containerRef:b}),(0,Ge.jsx)(R3e,{onChange:t,style:e,defaultValues:n,inheritedValue:a})]})}):(0,Ge.jsx)(sbe,{onChange:t,style:e,inheritedValue:a,defaultValues:n,onResetImage:()=>{g(!1),l()},onRemoveImage:()=>g(!1),containerRef:b})})}var Tm=c(C(),1),P3e={backgroundImage:!0,gradient:!0};function fbe(e,t){return ew.Platform.OS==="web"&&e?.background?.[t]}function HA(e){let{backgroundImage:t,gradient:o}=e?.background||{};return ew.Platform.OS==="web"&&(t||o)}function Em(e){return!!e?.background?.backgroundImage?.id||typeof e?.background?.backgroundImage=="string"||!!e?.background?.backgroundImage?.url}function TH(e){return typeof e?.background?.gradient=="string"&&e?.background?.gradient!==""}function I3e({resetAllFilter:e,onChange:t,value:o,panelId:r,children:n,headerLabel:i}){let s=Ao();return(0,Tm.jsx)(jA.__experimentalToolsPanel,{label:i,resetAll:()=>{let l=e(o);t(l)},panelId:r,hasInnerWrapper:!0,className:"background-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:(0,Tm.jsx)("div",{className:"background-block-support-panel__inner-wrapper",children:n})})}function UA({as:e=I3e,value:t,onChange:o,inheritedValue:r,settings:n,panelId:i,defaultControls:s=P3e,defaultValues:a={},headerLabel:l=(0,J0.__)("Background")}){let u=cg(n),d=n?.color?.customGradient,f=u.length>0||d,m=fbe(n,"gradient"),h=f&&m,p=fbe(n,"backgroundImage"),g=(0,ew.useCallback)(E=>({...E,background:{},color:m?{...E?.color,gradient:void 0}:E?.color}),[m]);if(!h&&!p)return null;let b=E=>pn({settings:n},"",E),v=E=>{let R=u.flatMap(({gradients:B})=>B).find(({gradient:B})=>B===E);return R?"var:preset|gradient|"+R.slug:E},y=()=>o(ge(t,["background","backgroundImage"],void 0)),k=()=>{let E=ge(t,["background","gradient"],void 0);E=ge(E,["color","gradient"],void 0),o(E)},S=b(t?.background?.gradient??t?.color?.gradient),_=b(r?.background?.gradient??r?.color?.gradient),x=E=>{let T=ge(t,["background","gradient"],v(E));T=ge(T,["color","gradient"],void 0),o(T)};return(0,Tm.jsxs)(e,{resetAllFilter:g,value:t,onChange:o,panelId:i,headerLabel:l,children:[p&&(0,Tm.jsx)(jA.__experimentalToolsPanelItem,{className:"block-editor-background-panel__item",hasValue:()=>Em(t),label:(0,J0.__)("Image"),onDeselect:y,isShownByDefault:s.backgroundImage,panelId:i,children:(0,Tm.jsx)(dbe,{value:t,onChange:o,settings:n,inheritedValue:r,defaultControls:s,defaultValues:a})}),h&&(0,Tm.jsx)(wH,{className:"block-editor-background-panel__item",label:(0,J0.__)("Gradient"),hasValue:()=>TH(t),resetValue:k,isShownByDefault:s.gradient,indicators:[S],tabs:[{key:"gradient",label:(0,J0.__)("Gradient"),inheritedValue:S??_,setValue:x,userValue:S,isGradient:!0}],colorGradientControlSettings:{gradients:u,disableCustomGradients:!d},panelId:i})]})}var gc=c(F(),1);var Bm=c(N(),1);var fl=c(C(),1);function GA({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",onChangeViewport:n,onChangePseudoState:i,showText:s=!0,popoverProps:a={}}){if(!e.length&&!t.length)return null;let l=[{label:(0,gc.__)("Default"),value:"default"},...e.map(v=>({label:v.label,value:v.value}))],u=[{label:(0,gc.__)("Default"),value:"default"},...t.map(v=>({label:v.label,value:v.value}))],d=e.length>0,f=t.length>0,m=(0,gc.__)("States"),h=[];if(d&&o!=="default"){let v=l.find(y=>y.value===o);v&&h.push({key:`viewport-${v.value}`,label:v.label})}if(f&&r!=="default"){let v=u.find(y=>y.value===r);v&&h.push({key:`pseudo-${v.value}`,label:v.label})}let p=h.length?h.map(v=>v.label).join(", "):(0,gc.__)("Default"),g=s?Ur:Li,b=s?{size:"compact",variant:"tertiary",iconPosition:"right"}:{size:"compact",variant:"tertiary"};return(0,fl.jsx)(Ne,{direction:"column",gap:"sm",align:"flex-end",className:"block-editor-global-styles-state-control",children:(0,fl.jsx)(Bm.DropdownMenu,{icon:g,label:s?m:(0,gc.sprintf)((0,gc.__)("State: %s"),p),popoverProps:{placement:"right-start",...a},text:s?m:void 0,toggleProps:b,children:({onClose:v})=>(0,fl.jsxs)(fl.Fragment,{children:[d&&(0,fl.jsx)(Bm.MenuGroup,{label:(0,gc.__)("Viewport"),children:l.map(y=>(0,fl.jsx)(Bm.MenuItem,{onClick:()=>{n?.(y.value),f||v()},icon:o===y.value?ys:null,children:y.label},`viewport-${y.value}`))}),f&&(0,fl.jsx)(Bm.MenuGroup,{label:(0,gc.__)("Pseudo state"),children:u.map(y=>(0,fl.jsx)(Bm.MenuItem,{onClick:()=>{i?.(y.value),d||v()},icon:r===y.value?ys:null,children:y.label},`pseudo-${y.value}`))})]})})})}var mbe=c(N(),1);var BH=c(C(),1),{Badge:O3e}=H(mbe.privateApis);function WA({viewportStates:e=[],pseudoStates:t=[],viewportValue:o="default",pseudoStateValue:r="default",className:n="block-editor-global-styles-state-control__badges"}){let i=[],s=e.find(l=>l.value===o),a=t.find(l=>l.value===r);return s&&i.push({key:`viewport-${s.value}`,label:s.label}),a&&i.push({key:`pseudo-${a.value}`,label:a.label}),(0,BH.jsx)(Ne,{className:n,direction:"row",justify:"flex-start",gap:"xs",wrap:"wrap",children:i.map(l=>(0,BH.jsx)(O3e,{intent:"info",children:l.label},l.key))})}var IH=c(C(),1),gg="__experimentalBorder",ow="shadow",pbe=(e,t,o)=>{let r;return e.some(n=>n.colors.some(i=>i[t]===o?(r=i,!0):!1)),r},hg=({colors:e,namedColor:t,customColor:o})=>{if(t){let n=pbe(e,"slug",t);if(n)return n}if(!o)return{color:void 0};let r=pbe(e,"color",o);return r||{color:o}};function $A(e){let t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function bbe(e){if((0,PH.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};let t=e?.border?.color,o=t?.startsWith("var:preset|color|")?t.substring(17):void 0,r={...e};return r.border={...r.border,color:o?void 0:t},{style:ye(r),borderColor:o}}function ybe(e){return(0,PH.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function A3e({label:e,children:t,resetAllFilter:o}){let r=(0,yk.useCallback)(n=>{let i=ybe(n),s=o(i);return{...n,...bbe(s)}},[o]);return(0,IH.jsx)(he,{group:"border",resetAllFilter:r,label:e,children:t})}function vbe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Hs(),i=TA(r),{style:s,borderColor:a}=(0,gbe.useSelect)(m=>{if(!i)return{};let{style:h,borderColor:p}=m(w).getBlockAttributes(e)||{};return{style:h,borderColor:p}},[e,i]),l=!Ir(n),u=(0,yk.useMemo)(()=>l?Jr(s,n):ybe({style:s,borderColor:a}),[l,n,s,a]),d=l?m=>{o({style:hi(s,n,m)})}:m=>{o(bbe(m))};if(!i)return null;let f={...(0,tw.getBlockSupport)(t,[gg,"__experimentalDefaultControls"]),...(0,tw.getBlockSupport)(t,[ow,"__experimentalDefaultControls"])};return(0,IH.jsx)(BA,{as:A3e,panelId:e,settings:r,value:u,onChange:d,defaultControls:f})}function YA(e,t="any"){if(yk.Platform.OS!=="web")return!1;let o=(0,tw.getBlockSupport)(e,gg);return o===!0?!0:t==="any"?!!(o?.color||o?.radius||o?.width||o?.style):!!o?.[t]}function fg({blockName:e,hasBorderControl:t,hasShadowControl:o}={}){let r=na(e),n=q0(r);return!t&&!o&&e&&(t=n?.hasBorderColor||n?.hasBorderStyle||n?.hasBorderWidth||n?.hasBorderRadius,o=n?.hasShadow),t&&o?(0,KA.__)("Border & Shadow"):o?(0,KA.__)("Shadow"):(0,KA.__)("Border")}function L3e(e){return!YA(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function kbe(e,t,o){if(!YA(t,"color")||yt(t,gg,"color"))return e;let r=OH(o),n=U(e.className,r);return e.className=n||void 0,e}function OH(e){let{borderColor:t,style:o}=e,r=gs("border-color",t);return U({"has-border-color":t||o?.border?.color,[r]:!!r})}function M3e({name:e,borderColor:t,style:o}){let{colors:r}=fm();if(!YA(e,"color")||yt(e,gg,"color"))return{};let{color:n}=hg({colors:r,namedColor:t}),{color:i}=hg({colors:r,namedColor:$A(o?.border?.top?.color)}),{color:s}=hg({colors:r,namedColor:$A(o?.border?.right?.color)}),{color:a}=hg({colors:r,namedColor:$A(o?.border?.bottom?.color)}),{color:l}=hg({colors:r,namedColor:$A(o?.border?.left?.color)});return kbe({style:ye({borderTopColor:i||n,borderRightColor:s||n,borderBottomColor:a||n,borderLeftColor:l||n})||{}},e,{borderColor:t,style:o})}var AH={useBlockProps:M3e,addSaveProps:kbe,attributeKeys:["borderColor","style"],hasSupport(e){return YA(e,"color")}};(0,hbe.addFilter)("blocks.registerBlockType","core/border/addAttributes",L3e);var DH=c(Ft(),1),qu=c(Q(),1),Rm=c(A(),1),Pbe=c(G(),1);var MH=c(Q(),1),Sbe=c(G(),1),NH=c(A(),1);var qA=c(C(),1),bg="background",LH={backgroundSize:"cover",backgroundPosition:"50% 50%"};function rw(e,t="any"){let o=(0,MH.getBlockSupport)(e,bg);return o===!0?!0:t==="any"?!!o?.backgroundImage||!!o?.backgroundSize||!!o?.backgroundRepeat||!!o?.gradient:!!o?.[t]}function ZA(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:LH.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:LH.backgroundPosition}),t}function N3e({name:e,style:t}){if(!rw(e)||!t?.background?.backgroundImage)return;let o=ZA(t?.background);if(o)return{style:{...o}}}function _be(e){return Em(e)||TH(e)?"has-background":""}function D3e({children:e,backgroundGradientSupported:t=!1}){let o=(0,NH.useCallback)(r=>{let n=r.className?.includes("has-background")?r.className.split(" ").filter(i=>i!=="has-background").join(" ")||void 0:r.className;return{...r,className:n,style:ye({...r.style,background:void 0,color:t?{...r.style?.color,gradient:void 0}:r.style?.color})}},[t]);return(0,qA.jsx)(he,{group:"background",resetAllFilter:o,children:e})}function xbe({clientId:e,name:t,setAttributes:o,settings:r}){let n=Hs(),{style:i,className:s,inheritedValue:a}=(0,Sbe.useSelect)(g=>{let{getBlockAttributes:b,getSettings:v}=g(w),y=v(),k=b(e);return{style:k?.style,className:k?.className,inheritedValue:y[ei]?.blocks?.[t]}},[e,t]),l=rw(t,"gradient"),u=(0,NH.useCallback)(({children:g})=>(0,qA.jsx)(D3e,{backgroundGradientSupported:l,children:g}),[l]);if(!HA(r)||!rw(t))return null;let d=!Ir(n),f=d?g=>{o({style:hi(i,n,g)})}:g=>{let b=l&&!!i?.color?.gradient,v={style:ye(l?{...g,color:{...g?.color,gradient:void 0}}:g)};b&&g?.background?.gradient?v.className=U(s,"has-background"):!g?.background?.gradient&&s?.includes("has-background")&&(v.className=s.split(" ").filter(y=>y!=="has-background").join(" ")||void 0),o(v)},m=l&&!i?.background?.gradient&&i?.color?.gradient?{...i,background:{...i?.background,gradient:i?.color?.gradient}}:i,h={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&rw(t,"backgroundSize")}},p=(0,MH.getBlockSupport)(t,[bg,"__experimentalDefaultControls"]);return(0,qA.jsx)(UA,{inheritedValue:a,as:u,panelId:e,defaultValues:LH,settings:h,onChange:f,defaultControls:p,value:d?Jr(i,n):m})}var wbe={useBlockProps:N3e,attributeKeys:["style"],hasSupport:rw};var nw=c(A(),1),Ebe=c(G(),1),Tbe=c(Q(),1);var Bbe=c(C(),1);function XA(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function Cbe(e,t){if(!e||!t)return{};let o=Xi(t,"color.text",{fallback:!0}),r=Xi(t,"color.background",{fallback:!0}),n=e.querySelector(o)||e,i=e.querySelector(r)||e,s=e.querySelector("a"),a=XA(n,"color"),l=s&&s.textContent?XA(s,"color"):void 0,u=i,d=XA(u,"background-color");for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=XA(u,"background-color");return{textColor:a,backgroundColor:d,linkColor:l}}function V3e(e,t){return Object.keys(t).some(r=>e[r]!==t[r])?t:e}function Rbe({clientId:e,name:t}){let o=Rt(e),[r,n]=(0,nw.useReducer)(V3e,{}),i=(0,Ebe.useSelect)(s=>t?s(Tbe.store).getBlockType(t):void 0,[t]);return(0,nw.useLayoutEffect)(()=>{!o||!i||window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>n(Cbe(o,i))))}),(0,nw.useLayoutEffect)(()=>{if(!o||!i)return;let s=new window.MutationObserver(()=>{n(Cbe(o,i))});return s.observe(o,{attributes:!0,attributeFilter:["class","style"]}),()=>{s.disconnect()}},[o,i]),(0,Bbe.jsx)(jO,{backgroundColor:r.backgroundColor,textColor:r.textColor,linkColor:r.linkColor,enableAlphaChecker:!0})}var QA=c(C(),1),Dr="color",JA=e=>{let t=(0,qu.getBlockSupport)(e,Dr);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},F3e=e=>{if(Rm.Platform.OS!=="web")return!1;let t=(0,qu.getBlockSupport)(e,Dr);return t!==null&&typeof t=="object"&&!!t.link},VH=e=>{let t=(0,qu.getBlockSupport)(e,Dr);return t!==null&&typeof t=="object"&&!!t.gradients},z3e=e=>{let t=(0,qu.getBlockSupport)(e,Dr);return t&&t.background!==!1},j3e=e=>{let t=(0,qu.getBlockSupport)(e,Dr);return t&&t.text!==!1};function H3e(e){return JA(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),VH(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function Ibe(e,t,o){if(!JA(t)||yt(t,Dr))return e;let r=VH(t),{backgroundColor:n,textColor:i,gradient:s,style:a}=o,l=g=>!yt(t,Dr,g),u=l("text")?gs("color",i):void 0,d=l("gradients")?cb(s):void 0,f=l("background")?gs("background-color",n):void 0,m=l("background")||l("gradients"),h=n||a?.color?.background||r&&(s||a?.color?.gradient),p=U(e.className,u,d,{[f]:(!r||!a?.color?.gradient)&&!!f,"has-text-color":l("text")&&(i||a?.color?.text),"has-background":m&&h,"has-link-color":l("link")&&a?.elements?.link?.color});return e.className=p||void 0,e}function Obe(e){let t=e?.color?.text,o=dl(t,"color"),r=e?.color?.background,n=dl(r,"color"),i=e?.color?.gradient,s=dl(i,"gradient"),a={...e};return a.color={...a.color,text:o?void 0:t,background:n?void 0:r,gradient:s?void 0:i},{style:ye(a),textColor:o,backgroundColor:n,gradient:s}}function Abe(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function U3e({children:e,resetAllFilter:t}){let o=(0,Rm.useCallback)(r=>{let n=Abe(r),i=t(n);return{...r,...Obe(i)}},[t]);return(0,QA.jsx)(he,{group:"color",resetAllFilter:o,children:e})}function eL({clientId:e,name:t,setAttributes:o,settings:r,asWrapper:n,label:i,defaultControls:s}){let a=Hs(),l=IA(r),{style:u,textColor:d,backgroundColor:f,gradient:m}=(0,Pbe.useSelect)(y=>{if(!l)return{};let{style:k,textColor:S,backgroundColor:_,gradient:x}=y(w).getBlockAttributes(e)||{};return{style:k,textColor:S,backgroundColor:_,gradient:x}},[e,l]),h=!Ir(a),p=(0,Rm.useMemo)(()=>h?Jr(u,a):Abe({style:u,textColor:d,backgroundColor:f,gradient:m}),[h,a,u,d,f,m]),g=h?y=>{o({style:hi(u,a,y)})}:y=>{o(Obe(y))},b=n||U3e;if(!l)return null;s=s||(0,qu.getBlockSupport)(t,[Dr,"__experimentalDefaultControls"]);let v=!h&&Rm.Platform.OS==="web"&&!p?.color?.gradient&&(r?.color?.text||r?.color?.link)&&(0,qu.getBlockSupport)(t,[Dr,"enableContrastChecker"])!==!1;return(0,QA.jsx)(OA,{as:b,panelId:e,settings:r,value:p,onChange:g,defaultControls:s,label:i,enableContrastChecker:(0,qu.getBlockSupport)(t,[Dr,"enableContrastChecker"])!==!1,children:v&&(0,QA.jsx)(Rbe,{clientId:e,name:t})})}function G3e({name:e,backgroundColor:t,textColor:o,gradient:r,style:n}){let[i,s,a]=xe("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,Rm.useMemo)(()=>[...i||[],...s||[],...a||[]],[i,s,a]);if(!JA(e)||yt(e,Dr))return{};let u={};o&&!yt(e,Dr,"text")&&(u.color=Cl(l,o)?.color),t&&!yt(e,Dr,"background")&&(u.backgroundColor=Cl(l,t)?.color);let d=Ibe({style:u},e,{textColor:o,backgroundColor:t,gradient:r,style:n}),f=t||n?.color?.background||r||n?.color?.gradient;return{...d,className:U(d.className,!f&&_be(n))}}var FH={useBlockProps:G3e,addSaveProps:Ibe,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:JA},W3e={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function $3e(e,t,o,r){let n=e.name,i={linkColor:F3e(n),textColor:j3e(n),backgroundColor:z3e(n),gradient:VH(n)};return tL(i,W3e,e,t,o,r)}(0,DH.addFilter)("blocks.registerBlockType","core/color/addAttribute",H3e);(0,DH.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",$3e);var Sr=c(C(),1);function K3e({blockName:e,clientId:t,contentClientIds:o}){let r=na(e),{updateBlockAttributes:n}=(0,oL.useDispatch)(w),{hasButtons:i,hasHeading:s}=(0,oL.useSelect)(l=>{let u=l(w).getBlockNamesByClientId(o);return{hasButtons:u.includes("core/buttons"),hasHeading:u.includes("core/heading")}},[o]);return(0,Sr.jsx)(eL,{clientId:t,name:e,settings:r,setAttributes:l=>{n(t,l)},asWrapper:xH,label:(0,yg.__)("Color"),defaultControls:{text:!0,background:!0,button:i,heading:s}})}var Y3e=({blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:r,contentClientIds:n})=>{let i=fg({blockName:e});return(0,Sr.jsxs)(Sr.Fragment,{children:[o&&(0,Sr.jsx)(Ev,{clientId:t}),r&&(0,Sr.jsx)(K3e,{blockName:e,clientId:t,contentClientIds:n}),!r&&(0,Sr.jsxs)(Sr.Fragment,{children:[(0,Sr.jsx)(he.Slot,{group:"color",label:(0,yg.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Sr.jsx)(he.Slot,{group:"background",label:(0,yg.__)("Background image"),className:"background-block-support-panel__inner-wrapper"}),(0,Sr.jsx)(he.Slot,{group:"filter"}),(0,Sr.jsx)(he.Slot,{group:"typography",label:(0,yg.__)("Typography")}),(0,Sr.jsx)(he.Slot,{group:"layout",label:(0,yg.__)("Layout")}),(0,Sr.jsx)(he.Slot,{group:"dimensions",label:(0,yg.__)("Dimensions")}),(0,Sr.jsx)(he.Slot,{group:"border",label:i}),(0,Sr.jsx)(mA,{}),(0,Sr.jsx)(he.Slot,{group:"styles"})]})]})},Lbe=Y3e;var Mbe=c(N(),1),Nbe=c(F(),1);var rL=c(Q(),1),nL=c(G(),1),ss=c(N(),1);var ia=c(C(),1);function iL({clientIds:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){return e.length?(0,ia.jsx)(ss.__experimentalVStack,{spacing:1,children:e.map(n=>(0,ia.jsx)(q3e,{onSelect:t,onSwitchToListView:o,hasListViewTab:r,clientId:n},n))}):null}function q3e({clientId:e,onSelect:t,onSwitchToListView:o,hasListViewTab:r}){let n=ro(e),{isSelected:i,childBlocks:s,hasListViewSupport:a,blockName:l}=(0,nL.useSelect)(g=>{let{isBlockSelected:b,hasSelectedInnerBlock:v,getBlockOrder:y,getBlockName:k}=g(w),S=k(e);return{isSelected:b(e)||v(e,!0),childBlocks:y(e),hasListViewSupport:S==="core/navigation"||(0,rL.hasBlockSupport)(S,"listView"),blockName:S}},[e]),u=(0,rL.getBlockType)(l),f=Kr({clientId:e,context:"list-view"})||u?.title||l,{selectBlock:m}=(0,nL.useDispatch)(w),p=s&&s.length>0&&r&&a;return(0,ia.jsx)(ss.Button,{__next40pxDefaultSize:!0,className:"block-editor-block-quick-navigation__item",isPressed:i,onClick:async()=>{await m(e),p&&o&&o(e),t&&t(e)},children:(0,ia.jsxs)(ss.Flex,{children:[(0,ia.jsx)(ss.FlexItem,{children:(0,ia.jsx)(rt,{icon:n?.icon})}),(0,ia.jsx)(ss.FlexBlock,{style:{textAlign:"left"},children:(0,ia.jsx)(ss.__experimentalTruncate,{children:f})}),p&&(0,ia.jsx)(ss.FlexItem,{children:(0,ia.jsx)(We,{icon:pr,size:24})})]})})}var vk=c(C(),1),Z3e=({contentClientIds:e,onSwitchToListView:t,hasListViewTab:o})=>{if(!e||e.length===0)return null;let r=window?.__experimentalContentOnlyInspectorFields;return(0,vk.jsx)(vk.Fragment,{children:!r&&(0,vk.jsx)(Mbe.PanelBody,{title:(0,Nbe.__)("Content"),children:(0,vk.jsx)(iL,{clientIds:e,onSwitchToListView:t,hasListViewTab:o})})})},sL=Z3e;var or=c(C(),1),{Tabs:Pm}=H(aL.privateApis);function zH({blockName:e,clientId:t,hasBlockStyles:o,tabs:r,isSectionBlock:n,contentClientIds:i}){let s=(0,ml.useRef)(null),a=(0,kk.useSelect)(S=>S(Dbe.store).get("core","showIconLabels"),[]),{requestedTab:l}=(0,kk.useSelect)(S=>({requestedTab:H(S(w)).getRequestedInspectorTab()})),[u,d]=(0,ml.useState)(()=>l?.tabName??r[0]?.name),f=(0,ml.useRef)(!1),m=(0,ml.useRef)(!1),{__unstableSetOpenListViewPanel:h,__unstableIncrementListViewExpandRevision:p,__unstableSetAllListViewPanelsOpen:g}=(0,kk.useDispatch)(w),{clearRequestedInspectorTab:b}=H((0,kk.useDispatch)(w));(0,ml.useEffect)(()=>{f.current=!1},[t]),(0,ml.useEffect)(()=>{l&&(d(l.tabName),l.tabName===Wu.name&&l.options?.openPanel&&(h(l.options.openPanel),p()),m.current=!0,f.current=!0,b())},[l,h,p,b]),(0,ml.useEffect)(()=>{u===Wu.name&&!f.current&&(g(),p())},[t,u,g,p]),(0,ml.useEffect)(()=>{if(!r?.length||f.current&&r.some(_=>_.name===u))return;let S=r[0]?.name;u!==S&&d(S)},[r,u]);let v=S=>{d(S),f.current=!0,S===Wu.name&&!m.current&&(g(),p()),m.current=!1},y=r.some(S=>S.name===Wu.name),k=S=>{y&&(h(S),p(),m.current=!0,v(Wu.name))};return(0,or.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,or.jsxs)(Pm,{selectedTabId:u,onSelect:v,children:[(0,or.jsx)(Pm.TabList,{children:r.map(S=>a?(0,or.jsx)(Pm.Tab,{tabId:S.name,children:S.title},S.name):(0,or.jsxs)(lt.Root,{children:[(0,or.jsx)(Pm.Tab,{tabId:S.name,"aria-label":S.title,render:(0,or.jsx)(lt.Trigger,{}),children:(0,or.jsx)(aL.Icon,{icon:S.icon})}),(0,or.jsx)(lt.Popup,{children:S.title})]},S.name))}),(0,or.jsxs)(Pm.TabPanel,{tabId:uA.name,focusable:!1,children:[(0,or.jsx)(sL,{contentClientIds:i,onSwitchToListView:k,hasListViewTab:y}),(0,or.jsx)(he.Slot,{group:"content"})]}),(0,or.jsxs)(Pm.TabPanel,{tabId:Wu.name,focusable:!1,children:[(0,or.jsx)(he.Slot,{group:"list",ref:s}),(0,or.jsx)(HP,{listViewRef:s})]}),(0,or.jsx)(Pm.TabPanel,{tabId:lA.name,focusable:!1,children:(0,or.jsx)(ige,{showAdvancedControls:!!e})}),(0,or.jsx)(Pm.TabPanel,{tabId:cA.name,focusable:!1,children:(0,or.jsx)(Lbe,{blockName:e,clientId:t,hasBlockStyles:o,isSectionBlock:n,contentClientIds:i})})]},t)})}var _i=c(N(),1),Vbe=c(G(),1);var X3e=[];function Q3e(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function Fbe(e,t,o,r){let n=[],{bindings:i,border:s,color:a,content:l,default:u,layout:d,dimensions:f,list:m,position:h,styles:p,typography:g,effects:b}=Ka,v=(0,_i.__experimentalUseSlotFills)(m.name),y=!!v&&v.length,k=(0,_i.__experimentalUseSlotFills)(l.name),S=!!k&&k.length,x=[...(0,_i.__experimentalUseSlotFills)(s.name)||[],...(0,_i.__experimentalUseSlotFills)(a.name)||[],...(0,_i.__experimentalUseSlotFills)(d.name)||[],...(0,_i.__experimentalUseSlotFills)(h.name)||[],...(0,_i.__experimentalUseSlotFills)(f.name)||[],...(0,_i.__experimentalUseSlotFills)(p.name)||[],...(0,_i.__experimentalUseSlotFills)(g.name)||[],...(0,_i.__experimentalUseSlotFills)(b.name)||[]].length,E=[...(0,_i.__experimentalUseSlotFills)(Hf.slotName)||[],...(0,_i.__experimentalUseSlotFills)(i.name)||[]],T=[...(0,_i.__experimentalUseSlotFills)(u.name)||[],...y&&x>1?E:[]],R=window?.__experimentalContentOnlyInspectorFields,B=S||!R&&t?.length;B&&n.push(uA),y&&n.push(Wu),(T.length||E.length&&(B||y))&&n.push(lA);let{tabSettings:O,isPreviewMode:I}=(0,Vbe.useSelect)(M=>{let L=M(w).getSettings();return{tabSettings:L.blockInspectorTabs,isPreviewMode:L.isPreviewMode}},[]);return!I&&(r||x)&&n.push(cA),Q3e(e,O)?n:X3e}var zbe=c(N(),1);var jH=c(C(),1),{Fill:J3e,Slot:eze}=(0,zbe.createSlotFill)(Symbol("InspectorControlsLastItem")),jbe=e=>Xe()[ga]?(0,jH.jsx)(J3e,{...e}):null;jbe.Slot=function(t){return(0,jH.jsx)(eze,{...t})};var lL=jbe;var Hbe=c(G(),1);function Ube(e){return(0,Hbe.useSelect)(t=>{if(e){let o=t(w).getSettings().blockInspectorAnimation,r=o?.animationParent,{getSelectedBlockClientId:n,getBlockParentsByBlockName:i}=t(w),s=n();return!i(s,r,!0)[0]&&e.name!==r?null:o?.[e.name]}return null},[e])}var Wbe=c(Q(),1),vg=c(F(),1);var HH=c(C(),1),Gbe={":hover":(0,vg.__)("Hover"),":focus":(0,vg.__)("Focus"),":focus-visible":(0,vg.__)("Focus-visible"),":active":(0,vg.__)("Active")},tze={tablet:(0,vg.__)("Tablet"),mobile:(0,vg.__)("Mobile")},uL={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]};function $be(e){return(uL[e]??[]).filter(o=>Gbe[o]).map(o=>({value:o,label:Gbe[o]}))}var cL="default";function Kbe(e){return(0,Wbe.getBlockType)(e)?.attributes?.style?Object.entries(tze).map(([t,o])=>({value:t,label:o})):[]}function Ybe({name:e,value:t,onChange:o}){let r=Kbe(e),n=$be(e),i=Ao();return!r.length&&!n.length?null:(0,HH.jsx)(GA,{viewportStates:r,pseudoStates:n,viewportValue:t?.viewport??cL,pseudoStateValue:t?.pseudo??cL,onChangeViewport:s=>o({viewport:s}),onChangePseudoState:s=>o({pseudo:s}),popoverProps:i.popoverProps,showText:!1})}function qbe({name:e,value:t}){let o=Kbe(e),r=$be(e);return!o.length&&!r.length?null:(0,HH.jsx)(WA,{viewportStates:o,pseudoStates:r,viewportValue:t?.viewport??cL,pseudoStateValue:t?.pseudo??cL})}var Se=c(C(),1);function Xbe({blockName:e,showAdvancedControls:t=!0,showPositionControls:o=!0,showBindingsControls:r=!0}){let n=fg({blockName:e});return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(he.Slot,{}),(0,Se.jsx)(he.Slot,{group:"color",label:(0,as.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Se.jsx)(he.Slot,{group:"background",label:(0,as.__)("Background image"),className:"background-block-support-panel__inner-wrapper"}),(0,Se.jsx)(he.Slot,{group:"typography",label:(0,as.__)("Typography")}),(0,Se.jsx)(he.Slot,{group:"layout",label:(0,as.__)("Layout")}),(0,Se.jsx)(he.Slot,{group:"dimensions",label:(0,as.__)("Dimensions")}),(0,Se.jsx)(he.Slot,{group:"border",label:n}),o&&(0,Se.jsx)(mA,{}),(0,Se.jsx)(he.Slot,{group:"styles"}),r&&(0,Se.jsx)(he.Slot,{group:"bindings"}),t&&(0,Se.jsx)("div",{children:(0,Se.jsx)(dA,{})})]})}function oze({blockName:e,selectedBlockStyleState:t}){let o=fg({blockName:e}),r=gu(t)&&!bu(t);return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(he.Slot,{group:"color",label:(0,as.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,Se.jsx)(he.Slot,{group:"background",label:(0,as.__)("Background image"),className:"background-block-support-panel__inner-wrapper"}),(0,Se.jsx)(he.Slot,{group:"typography",label:(0,as.__)("Typography")}),r&&(0,Se.jsx)(he.Slot,{group:"layout",label:(0,as.__)("Layout")}),(0,Se.jsx)(he.Slot,{group:"dimensions",label:(0,as.__)("Dimensions")}),(0,Se.jsx)(he.Slot,{group:"border",label:o})]})}function rze(){let{selectedBlockCount:e,renderedBlockName:t,renderedBlockClientId:o,blockType:r,isSectionBlock:n,isSectionBlockInSelection:i,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,onViewportStateChange:f}=(0,iw.useSelect)(S=>{let{getSelectedBlockClientId:_,getSelectedBlockClientIds:x,getSelectedBlockCount:E,getBlockName:T,getParentSectionBlock:R,isSectionBlock:B,getEditedContentOnlySection:O,isWithinEditedContentOnlySection:I,getBlockEditingMode:P,getSelectedBlockStyleState:M,isSelectedBlockStyleStateShownOnCanvas:L}=H(S(w)),j=S(w).getSettings(),{getBlockStyles:V}=S(Im.store),D=_(),W=I(D)?D:R(D)||D,K=W&&T(W),ne=K&&(0,Im.getBlockType)(K),ee=x().some(Z=>B(Z)),Y=K&&V(K),$=Y&&Y.length>0;return{selectedBlockCount:E(),renderedBlockClientId:W,renderedBlockName:K,blockType:ne,isSectionBlockInSelection:ee,isSectionBlock:B(W),hasBlockStyles:$,editedContentOnlySection:O(),blockEditingMode:P(W),selectedBlockStyleState:M(W),showStateOnCanvas:L(W),onViewportStateChange:j?.[iC]}},[]),m=(0,iw.useSelect)(S=>{if(!n||!o)return[];let{getClientIdsOfDescendants:_,getBlockName:x,getBlockEditingMode:E}=H(S(w)),T=_(o),R=new Set;return T.forEach(B=>{let O=x(B);(O==="core/navigation"||(0,Im.hasBlockSupport)(O,"listView"))&&_(B).forEach(P=>R.add(P))}),T.filter(B=>!R.has(B)&&E(B)==="contentOnly")},[n,o]),h=Fbe(r?.name,m,n,s),p=h?.length>1,g=Ube(r),b=e>1,v=!Ir(u);if(b&&!i)return(0,Se.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,Se.jsx)(hH,{}),p?(0,Se.jsx)(zH,{tabs:h}):(0,Se.jsx)(Xbe,{blockName:t,showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(b&&i)return(0,Se.jsx)("div",{className:"block-editor-block-inspector",children:(0,Se.jsx)(hH,{})});let y=t===(0,Im.getUnregisteredTypeHandlerName)();return!r||!o||y?(0,Se.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,as.__)("No block selected.")}):(0,Se.jsx)(nze,{animate:g,wrapper:S=>(0,Se.jsx)(ize,{blockInspectorAnimationSettings:g,renderedBlockClientId:o,children:S}),children:(0,Se.jsx)(sze,{renderedBlockClientId:o,blockName:r.name,isSectionBlock:n,availableTabs:h,contentClientIds:m,hasBlockStyles:s,editedContentOnlySection:a,blockEditingMode:l,selectedBlockStyleState:u,showStateOnCanvas:d,onViewportStateChange:f,isBlockStyleStateSelected:v})})}var nze=({animate:e,wrapper:t,children:o})=>e?t(o):o,ize=({blockInspectorAnimationSettings:e,renderedBlockClientId:t,children:o})=>{let r=e&&e.enterDirection==="leftToRight"?-50:50;return(0,Se.jsx)(Sk.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},children:o},t)},sze=({renderedBlockClientId:e,blockName:t,isSectionBlock:o,availableTabs:r,contentClientIds:n,hasBlockStyles:i,editedContentOnlySection:s,blockEditingMode:a,selectedBlockStyleState:l,showStateOnCanvas:u,onViewportStateChange:d,isBlockStyleStateSelected:f})=>{let m=(0,Zbe.useRef)(null),h=r?.length>1,p=s&&s!==e,g=ro(s),b=ro(e),v=b.isSynced,{setSelectedBlockStyleState:y,setSelectedBlockStyleStateCanvasPreview:k}=H((0,iw.useDispatch)(w)),S=x=>{let E={...l,...x};y(e,E),x.viewport&&d?.({viewport:E.viewport,showStateOnCanvas:u})},_=x=>{k(e,x),x&&d?.({viewport:l.viewport,showStateOnCanvas:x})};return(0,Se.jsxs)("div",{className:"block-editor-block-inspector",children:[p&&(0,Se.jsx)(Q_,{...g,className:g?.isSynced&&"is-synced",parentClientId:s}),(0,Se.jsx)(Q_,{...b,allowParentNavigation:!0,className:v&&"is-synced",isChild:p,clientId:e,controls:a==="default"&&(0,Se.jsx)(Ybe,{name:t,value:l,onChange:S})}),a==="default"&&f&&(0,Se.jsxs)(Sk.__experimentalSpacer,{paddingX:4,paddingY:2,children:[(0,Se.jsx)(Sk.ToggleControl,{label:(0,as.__)("Show state on canvas"),checked:u,onChange:_}),(0,Se.jsx)(qbe,{name:t,value:l})]}),(0,Se.jsx)(OY,{clientId:e}),(0,Se.jsx)(Yhe,{clientId:e}),!f&&(0,Se.jsx)(AO,{blockClientId:e}),(0,Se.jsx)(rge,{}),f&&!o&&(0,Se.jsx)(oze,{blockName:t,selectedBlockStyleState:l}),!f&&h&&(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)(zH,{hasBlockStyles:i,clientId:e,blockName:t,tabs:r,isSectionBlock:o,contentClientIds:n})}),!f&&!h&&(0,Se.jsxs)(Se.Fragment,{children:[i&&(0,Se.jsx)(Ev,{clientId:e}),(0,Se.jsx)(sL,{contentClientIds:n}),(0,Se.jsx)(he.Slot,{group:"content"}),(0,Se.jsx)(he.Slot,{group:"list",ref:m}),(0,Se.jsx)(HP,{listViewRef:m}),!o&&(0,Se.jsx)(Xbe,{blockName:t})]}),!f&&(0,Se.jsx)(lL.Slot,{}),(0,Se.jsx)(sA,{},"back")]})},Qbe=rze;var UH=c(Je(),1);var Jbe=c(C(),1),eye=()=>((0,UH.default)("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),tx());function tye(e){return(0,UH.default)("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,Jbe.jsx)("div",{...e,ref:tx()})}var oye=c(G(),1),GH=c(A(),1);var WH=c(C(),1),aze=()=>{};function lze({rootClientId:e,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:a,__experimentalFilterValue:l,onPatternCategorySelection:u,onSelect:d=aze,shouldFocusBlock:f=!1,onClose:m},h){let{destinationRootClientId:p}=(0,oye.useSelect)(g=>{let{getBlockRootClientId:b}=g(w);return{destinationRootClientId:e||b(t)||void 0}},[t,e]);return(0,WH.jsx)(C6,{onSelect:d,rootClientId:p,clientId:t,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:n,__experimentalInsertionIndex:i,__experimentalFilterValue:l,onPatternCategorySelection:u,__experimentalInitialTab:s,__experimentalInitialCategory:a,shouldFocusBlock:f,ref:h,onClose:m})}var $H=(0,GH.forwardRef)(lze);function cze(e,t){return(0,WH.jsx)($H,{...e,onPatternCategorySelection:void 0,ref:t})}var rye=(0,GH.forwardRef)(cze);var nye=c(Je(),1);function iye(){return(0,nye.default)("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}var sye=c(oe(),1),sw=c(at(),1),aye=c(G(),1),Om=c(Bt(),1);var lye=c(C(),1),uze=window.navigator.userAgent.indexOf("Trident")!==-1,dze=new Set([Om.UP,Om.DOWN,Om.LEFT,Om.RIGHT]),fze=.75;function KH(){let e=(0,aye.useSelect)(t=>t(w).hasSelectedBlock(),[]);return(0,sye.useRefEffect)(t=>{if(!e)return;let{ownerDocument:o}=t,{defaultView:r}=o,n,i,s;function a(){n||(n=r.requestAnimationFrame(()=>{m(),n=null}))}function l(g){i&&r.cancelAnimationFrame(i),i=r.requestAnimationFrame(()=>{u(g),i=null})}function u({keyCode:g}){if(!h())return;let b=(0,sw.computeCaretRect)(r);if(!b)return;if(!s){s=b;return}if(dze.has(g)){s=b;return}let v=b.top-s.top;if(v===0)return;let y=(0,sw.getScrollContainer)(t);if(!y)return;let k=y===o.body||y===o.documentElement,S=k?r.scrollY:y.scrollTop,_=k?0:y.getBoundingClientRect().top,x=k?s.top/r.innerHeight:(s.top-_)/(r.innerHeight-_);if(S===0&&x<fze&&p()){s=b;return}let E=k?r.innerHeight:y.clientHeight;if(s.top+s.height>_+E||s.top<_){s=b;return}k?r.scrollBy(0,v):y.scrollTop+=v}function d(){o.addEventListener("selectionchange",f)}function f(){o.removeEventListener("selectionchange",f),m()}function m(){h()&&(s=(0,sw.computeCaretRect)(r))}function h(){return t.contains(o.activeElement)&&o.activeElement.isContentEditable}function p(){let g=t.querySelectorAll('[contenteditable="true"]');return g[g.length-1]===o.activeElement}return r.addEventListener("scroll",a,!0),r.addEventListener("resize",a,!0),t.addEventListener("keydown",l),t.addEventListener("keyup",u),t.addEventListener("mousedown",d),t.addEventListener("touchstart",d),()=>{r.removeEventListener("scroll",a,!0),r.removeEventListener("resize",a,!0),t.removeEventListener("keydown",l),t.removeEventListener("keyup",u),t.removeEventListener("mousedown",d),t.removeEventListener("touchstart",d),o.removeEventListener("selectionchange",f),r.cancelAnimationFrame(n),r.cancelAnimationFrame(i)}},[e])}function mze({children:e}){return(0,lye.jsx)("div",{ref:KH(),className:"block-editor__typewriter",children:e})}var pze=uze?e=>e.children:mze,cye=pze;var kg=c(A(),1),YH=c(Je(),1);var qH=c(C(),1),dL=(0,kg.createContext)({});dL.displayName="RenderedRefsContext";function hze(e,t,o){let r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(o),r}function ZH({children:e,uniqueId:t,blockName:o=""}){let r=(0,kg.useContext)(dL),{name:n}=Xe();o=o||n;let i=(0,kg.useMemo)(()=>hze(r,o,t),[r,o,t]);return(0,qH.jsx)(dL.Provider,{value:i,children:e})}function XH(e,t=""){let o=(0,kg.useContext)(dL),{name:r}=Xe();return t=t||r,!!o[t]?.has(e)}var uye=e=>((0,YH.default)("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,qH.jsx)(ZH,{...e})),dye=(...e)=>((0,YH.default)("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),XH(...e));var mL=c(N(),1),QH=c(F(),1),JH=c(A(),1),mye=c(nc(),1);var ls=c(N(),1);var fye=c(F(),1),Zu=c(C(),1);function fL({title:e,help:t,actions:o=[],onClose:r}){return(0,Zu.jsxs)(ls.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,Zu.jsxs)(ls.__experimentalHStack,{alignment:"center",children:[(0,Zu.jsx)(ls.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),(0,Zu.jsx)(ls.__experimentalSpacer,{}),o.map(({label:n,icon:i,onClick:s})=>(0,Zu.jsx)(ls.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:n,icon:i,variant:!i&&"tertiary",onClick:s,children:!i&&n},n)),r&&(0,Zu.jsx)(ls.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,fye.__)("Close"),icon:gp,onClick:r})]}),t&&(0,Zu.jsx)(ls.__experimentalText,{children:t})]})}var _k=c(C(),1);function gze({onClose:e,onChange:t,showPopoverHeaderActions:o,isCompact:r,currentDate:n,title:i,...s},a){let l={startOfWeek:(0,mye.getSettings)().l10n.startOfWeek,onChange:t,currentDate:r?void 0:n,currentTime:r?n:void 0,...s},u=r?mL.TimePicker:mL.DateTimePicker;return(0,_k.jsxs)("div",{ref:a,className:"block-editor-publish-date-time-picker",children:[(0,_k.jsx)(fL,{title:i||(0,QH.__)("Publish"),actions:o?[{label:(0,QH.__)("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,_k.jsx)(u,{...l})]})}var e9=(0,JH.forwardRef)(gze);function bze(e,t){return(0,_k.jsx)(e9,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}var pye=(0,JH.forwardRef)(bze);var pL=c(G(),1),hye=c(A(),1);function Do(e){let t=Xe(),{clientId:o=""}=t,{setBlockEditingMode:r,unsetBlockEditingMode:n}=(0,pL.useDispatch)(w),i=(0,pL.useSelect)(s=>o?null:s(w).getBlockEditingMode(),[o]);return(0,hye.useEffect)(()=>(e&&r(o,e),()=>{e&&n(o)}),[o,e,r,n]),o?t[Gw]:i}var gye=c(Je(),1),bye=c(A(),1);function yze(){return(0,gye.default)("wp.blockEditor.ToolSelector",{since:"6.9",hint:"The ToolSelector component no longer renders anything."}),null}var yye=(0,bye.forwardRef)(yze);var lw=c(C(),1),ye=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;let t=Object.entries(e).map(([o,r])=>[o,ye(r)]).filter(([,o])=>o!==void 0);return t.length?Object.fromEntries(t):void 0};function tL(e,t,o,r,n,i){if(Object.values(e??{}).every(l=>!l)||i.length===1&&o.innerBlocks.length===r.length)return o;let s=r[0]?.attributes;if(i.length>1&&r.length>1)if(r[n])s=r[n]?.attributes;else return o;let a=o;return Object.entries(e).forEach(([l,u])=>{u&&t[l].forEach(d=>{let f=ya(s,d);f&&(a={...a,attributes:ge(a.attributes,d,f)})})}),a}function yt(e,t,o){let n=(0,vye.getBlockSupport)(e,t)?.__experimentalSkipSerialization;return Array.isArray(n)?n.includes(o):n}var Xu=new WeakMap;function gi({id:e,css:t}){return Cu({id:e,css:t})}function Cu({id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i}={}){let{setStyleOverride:s,deleteStyleOverride:a}=H((0,hL.useDispatch)(w)),l=(0,hL.useRegistry)(),u=(0,sa.useId)();(0,sa.useEffect)(()=>{if(!t&&!o)return;let d=e||u,f={id:e,css:t,assets:o,__unstableType:r,variation:n,clientId:i};return Xu.get(l)||Xu.set(l,[]),Xu.get(l).push([d,f]),window.queueMicrotask(()=>{Xu.get(l)?.length&&l.batch(()=>{Xu.get(l).forEach(m=>{s(...m)}),Xu.set(l,[])})}),()=>{Xu.get(l)?.find(([h])=>h===d)?Xu.set(l,Xu.get(l).filter(([h])=>h!==d)):a(d)}},[e,t,i,o,r,u,s,a,l,n])}function na(e,t){let[o,r,n,i,s,a,l,u,d,f,m,h,p,g,b,v,y,k,S,_,x,E,T,R,B,O,I,P,M,L,j,V,D,z,W,K,ne,X,ee,Y,$,Z,q,J,re,ie,ce,_e,ae,we,Te,Fe,Qe,Ae,nt,ke,Lt,le,fe,Re,Ze,gt,tt]=xe("background.backgroundImage","background.backgroundSize","background.gradient","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textIndent","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.height","dimensions.minHeight","dimensions.minWidth","dimensions.width","dimensions.dimensionSizes","layout","border.color","border.radius","border.style","border.width","border.radiusSizes","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow"),ut=(0,sa.useMemo)(()=>({background:{backgroundImage:o,backgroundSize:r,gradient:n},color:{palette:{custom:J,theme:ie,default:ce},gradients:{custom:Qe,theme:Ae,default:nt},duotone:{custom:we,theme:Te,default:Fe},defaultGradients:ke,defaultPalette:_e,defaultDuotone:ae,custom:q,customGradient:Lt,customDuotone:re,background:le,link:fe,heading:Ze,button:gt,text:Re},typography:{fontFamilies:{custom:i,default:s,theme:a},fontSizes:{custom:u,default:d,theme:f},customFontSize:m,defaultFontSizes:l,fontStyle:h,fontWeight:p,lineHeight:g,textAlign:b,textColumns:v,textDecoration:y,textIndent:k,textTransform:_,letterSpacing:x,writingMode:S},spacing:{spacingSizes:{custom:I,default:P,theme:M},customSpacingSize:O,defaultSpacingSizes:B,padding:E,margin:T,blockGap:R,units:L},border:{color:X,radius:ee,style:Y,width:$,radiusSizes:Z},dimensions:{aspectRatio:j,height:V,minHeight:D,minWidth:z,width:W,dimensionSizes:K},layout:ne,parentLayout:t,shadow:tt}),[o,r,n,i,s,a,l,u,d,f,m,h,p,g,b,v,y,k,_,x,S,E,T,R,B,O,I,P,M,L,j,V,D,z,W,K,ne,t,X,ee,Y,$,Z,q,J,re,ie,ce,_e,ae,we,Te,Fe,Qe,Ae,nt,ke,Lt,le,fe,Re,Ze,gt,tt]);return hA(ut,e)}function kye(e){e=e.map(o=>({...o,Edit:(0,sa.memo)(o.edit)}));let t=(0,t9.createHigherOrderComponent)(o=>function(n){let i=Xe();return[...e.map((s,a)=>{let{Edit:l,hasSupport:u,attributeKeys:d=[],shareWithChildBlocks:f,supportsPatternEditing:m}=s;if(!(m&&i[bd]||i[ga]||i[Vg]&&f)||!u(n.name))return null;let p={};for(let g of d)n.attributes[g]&&(p[g]=n.attributes[g]);return(0,lw.jsx)(l,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...p},a)}),(0,lw.jsx)(o,{...n},"edit")]},"withBlockEditHooks");(0,aw.addFilter)("editor.BlockEdit","core/editor/hooks",t)}function vze({index:e,useBlockProps:t,setAllWrapperProps:o,...r}){let n=t(r),i=s=>o(a=>{let l=[...a];return l[e]=s,l});return(0,sa.useEffect)(()=>(i(n),()=>{i(void 0)})),null}var kze=(0,sa.memo)(vze);function Sye(e){let t=(0,t9.createHigherOrderComponent)(o=>function(n){let[i,s]=(0,sa.useState)(Array(e.length).fill(void 0));return[...e.map((a,l)=>{let{hasSupport:u,attributeKeys:d=[],useBlockProps:f,isMatch:m}=a,h={};for(let p of d)n.attributes[p]&&(h[p]=n.attributes[p]);return!Object.keys(h).length||!u(n.name)||m&&!m(h)?null:(0,lw.jsx)(kze,{index:l,useBlockProps:f,setAllWrapperProps:s,name:n.name,clientId:n.clientId,...h},l)}),(0,lw.jsx)(o,{...n,wrapperProps:i.filter(Boolean).reduce((a,l)=>({...a,...l,className:U(a.className,l.className),style:{...a.style,...l.style}}),n.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");(0,aw.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}function _ye(e){function t(o,r,n){return e.reduce((i,s)=>{let{hasSupport:a,attributeKeys:l=[],addSaveProps:u}=s,d={};for(let f of l)n[f]&&(d[f]=n[f]);return!Object.keys(d).length||!a(r)?i:u(i,r,d)},o)}(0,aw.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),(0,aw.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",o=>(o.hasOwnProperty("className")&&!o.className&&delete o.className,o))}var xye=c(Q(),1),wye=c(Ft(),1);function Sze(e){let{apiVersion:t=1}=e;return t<2&&(0,xye.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}(0,wye.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",Sze);function Cye(e){e.hasAttribute("crossorigin")||e.setAttribute("crossorigin","anonymous")}if(window.crossOriginIsolated){let e=function(){document.body?t.observe(document.body,{childList:!0,attributes:!0,subtree:!0}):document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",()=>{document.body&&t.observe(document.body,{childList:!0,attributes:!0,subtree:!0})})};_ze=e;let t=new window.MutationObserver(o=>{o.forEach(r=>{[r.addedNodes,r.target].forEach(n=>{(n instanceof window.NodeList?n:[n]).forEach(s=>{let a=s;a.querySelectorAll&&(a.querySelectorAll("source,script,video,link").forEach(l=>{Cye(l)}),["SOURCE","SCRIPT","VIDEO","LINK"].includes(a.nodeName)&&Cye(a))})})})});e()}var _ze;var Eye=c(Ft(),1),aa=c(Q(),1);var o9=c(C(),1),r9=["left","center","right","wide","full"],xze=["wide","full"];function n9(e,t=!0,o=!0){let r;return Array.isArray(e)?r=r9.filter(n=>e.includes(n)):e===!0?r=[...r9]:r=[],!o||e===!0&&!t?r.filter(n=>!xze.includes(n)):r}function wze(e){return"type"in(e.attributes?.align??{})||(0,aa.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...r9,""]}}),e}function Cze({name:e,align:t,setAttributes:o}){let r=n9((0,aa.getBlockSupport)(e,"align"),(0,aa.hasBlockSupport)(e,"alignWide",!0)),n=e_(r).map(({name:a})=>a),i=Do();return!n.length||i!=="default"?null:(0,o9.jsx)(mo,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,o9.jsx)(WE,{value:t,onChange:a=>{a||(0,aa.getBlockType)(e)?.attributes?.align?.default&&(a=""),o({align:a})},controls:n})})}var gL={shareWithChildBlocks:!0,edit:Cze,useBlockProps:Eze,addSaveProps:Tze,attributeKeys:["align"],hasSupport(e){return(0,aa.hasBlockSupport)(e,"align",!1)}};function Eze({name:e,align:t}){let o=n9((0,aa.getBlockSupport)(e,"align"),(0,aa.hasBlockSupport)(e,"alignWide",!0));return e_(o).some(n=>n.name===t)?{"data-align":t}:{}}function Tze(e,t,o){let{align:r}=o,n=(0,aa.getBlockSupport)(t,"align"),i=(0,aa.hasBlockSupport)(t,"alignWide",!0);return n9(n,i).includes(r)&&(e.className=U(`align${r}`,e.className)),e}(0,Eye.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",wze);var Tye=c(Ft(),1);function Bze(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}(0,Tye.addFilter)("blocks.registerBlockType","core/lock/addAttribute",Bze);var c9=c(Ft(),1),Tk=c(Q(),1);var cw=c(N(),1),vL=c(F(),1),Fye=c(A(),1),zye=c(G(),1),kL=c(Q(),1);var xi=c(N(),1),Nye=c(A(),1),Ek=c(F(),1),Dye=c(G(),1);var a9=c(Q(),1),Aye=c(G(),1),Ck=c(N(),1),pl=c(F(),1),bL=c(A(),1),Lye=c(oe(),1),Mye=c(Cr(),1);var i9=c(A(),1),Pye=c(oe(),1),Iye=c(N(),1);var Bye=c(N(),1);var xk=c(C(),1);function Rze({blockTypes:e,value:t,onItemChange:o}){return(0,xk.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map(r=>(0,xk.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,xk.jsx)(Bye.CheckboxControl,{label:r.title,checked:t.includes(r.name),onChange:(...n)=>o(r,...n)}),(0,xk.jsx)(rt,{icon:r.icon})]},r.name))})}var Rye=Rze;var wk=c(C(),1);function Oye({title:e,blockTypes:t,selectedBlockTypes:o,onChange:r}){let n=(0,Pye.useInstanceId)(Oye),i=(0,i9.useCallback)((f,m)=>{r(m?[...o,f]:o.filter(({name:h})=>h!==f.name))},[o,r]),s=(0,i9.useCallback)(f=>{r(f?[...o,...t.filter(m=>!o.find(({name:h})=>h===m.name))]:o.filter(m=>!t.find(({name:h})=>h===m.name)))},[t,o,r]);if(!t.length)return null;let a=t.map(({name:f})=>f).filter(f=>(o??[]).some(m=>m.name===f)),l="block-editor-block-manager__category-title-"+n,u=a.length===t.length,d=!u&&a.length>0;return(0,wk.jsxs)("div",{role:"group","aria-labelledby":l,className:"block-editor-block-manager__category",children:[(0,wk.jsx)(Iye.CheckboxControl,{checked:u,onChange:s,className:"block-editor-block-manager__category-title",indeterminate:d,label:(0,wk.jsx)("span",{id:l,children:e})}),(0,wk.jsx)(Rye,{blockTypes:t,value:a,onItemChange:i})]})}var s9=Oye;var Qu=c(C(),1);function yL({blockTypes:e,selectedBlockTypes:t,onChange:o,showSelectAll:r=!0}){let n=(0,Lye.useDebounce)(Mye.speak,500),[i,s]=(0,bL.useState)(""),{categories:a,isMatchingSearchTerm:l}=(0,Aye.useSelect)(m=>({categories:m(a9.store).getCategories(),isMatchingSearchTerm:m(a9.store).isMatchingSearchTerm}),[]),u=e.filter(m=>!i||l(m,i)),d=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,bL.useEffect)(()=>{if(!i)return;let m=u.length,h=(0,pl.sprintf)((0,pl._n)("%d result found.","%d results found.",m),m);n(h)},[u?.length,i,n]),(0,Qu.jsxs)(Ck.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,Qu.jsx)(Ck.SearchControl,{label:(0,pl.__)("Search for a block"),placeholder:(0,pl.__)("Search for a block"),value:i,onChange:m=>s(m),className:"block-editor-block-manager__search"}),r&&(0,Qu.jsx)(Ck.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,pl.__)("Select all"),checked:f,onChange:()=>{o(f?[]:e)},indeterminate:d}),(0,Qu.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,pl.__)("Available block types"),className:"block-editor-block-manager__results",children:[u.length===0&&(0,Qu.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,pl.__)("No blocks found.")}),a.map(m=>(0,Qu.jsx)(s9,{title:m.title,blockTypes:u.filter(h=>h.category===m.slug),selectedBlockTypes:t,onChange:o},m.slug)),(0,Qu.jsx)(s9,{title:(0,pl.__)("Uncategorized"),blockTypes:u.filter(({category:m})=>!m),selectedBlockTypes:t,onChange:o})]})]})}var hl=c(C(),1);function Vye({clientId:e,blockTypes:t,selectedBlockTypes:o,onClose:r}){let[n,i]=(0,Nye.useState)(o),{updateBlockAttributes:s}=(0,Dye.useDispatch)(w),a=()=>{let l=n.length===t.length,u=n.map(({name:d})=>d);s(e,{allowedBlocks:l?void 0:u}),r()};return(0,hl.jsx)(xi.Modal,{title:(0,Ek._x)("Manage allowed blocks","modal title"),onRequestClose:r,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,hl.jsxs)(xi.__experimentalVStack,{as:"form",onSubmit:l=>{l.preventDefault(),a()},spacing:"4",children:[(0,hl.jsx)(xi.__experimentalText,{children:(0,Ek.__)("Select which blocks can be added inside this container.")}),(0,hl.jsx)(yL,{blockTypes:t,selectedBlockTypes:n,onChange:l=>{i(l)}}),(0,hl.jsxs)(xi.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,hl.jsx)(xi.FlexItem,{children:(0,hl.jsx)(xi.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,Ek.__)("Cancel")})}),(0,hl.jsx)(xi.FlexItem,{children:(0,hl.jsx)(xi.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,Ek.__)("Apply")})})]})]})})}var Sg=c(C(),1);function jye({clientId:e}){let[t,o]=(0,Fye.useState)(!1),{blockTypes:r,selectedBlockNames:n}=(0,zye.useSelect)(a=>{let{getBlockAttributes:l}=a(w);return{blockTypes:a(kL.store).getBlockTypes(),selectedBlockNames:l(e)?.allowedBlocks}},[e]),i=r.filter(a=>(0,kL.hasBlockSupport)(a,"inserter",!0)&&(!a.parent||a.parent.includes("core/post-content")));if(!i)return null;let s=n===void 0?i:i.filter(a=>n.includes(a.name));return(0,Sg.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,Sg.jsxs)(cw.BaseControl,{help:(0,vL.__)("Specify which blocks are allowed inside this container."),children:[(0,Sg.jsx)(cw.BaseControl.VisualLabel,{children:(0,vL.__)("Allowed Blocks")}),(0,Sg.jsx)(cw.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{o(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,vL.__)("Manage allowed blocks")})]}),t&&(0,Sg.jsx)(Vye,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>o(!1)})]})}var l9=c(C(),1);function Pze({clientId:e}){return Do()==="contentOnly"?null:(0,l9.jsx)(Vx.Fill,{children:(0,l9.jsx)(jye,{clientId:e})})}var Hye={edit:Pze,attributeKeys:["allowedBlocks"],hasSupport(e){return(0,Tk.hasBlockSupport)(e,"allowedBlocks")}};function Ize(e){return e?.attributes?.allowedBlocks?.type||(0,Tk.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e}(0,c9.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",Ize);function Oze(e,t,o,r){if(!(0,Tk.hasBlockSupport)(e.name,"allowedBlocks")||t.length!==1&&r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length||e.attributes.allowedBlocks)return e;let n=t[o]?.attributes?.allowedBlocks;if(!n)return e;let s=(0,Tk.getBlockType)(e.name)?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:n}};let a=n.filter(l=>s.includes(l));return{...e,attributes:{...e.attributes,allowedBlocks:a}}}(0,c9.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",Oze);var Uye=c(Ft(),1),SL=c(N(),1),Bk=c(F(),1),_L=c(Q(),1),Gye=c(A(),1);var bc=c(C(),1),Aze=/[\s#]/g;function Lze(e){return"type"in(e.attributes?.anchor??{})||(0,_L.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string"}}),e}function Mze({anchor:e,setAttributes:t}){if(Do()!=="default")return null;let r=Gye.Platform.OS==="web";return(0,bc.jsx)(he,{group:"advanced",children:(0,bc.jsx)(SL.TextControl,{__next40pxDefaultSize:!0,className:"html-anchor-control",label:(0,Bk.__)("HTML anchor"),help:(0,bc.jsxs)(bc.Fragment,{children:[(0,Bk.__)("Enter a word or two\u2014without spaces\u2014to make a unique web address just for this block, called an \u201Canchor\u201D. Then, you\u2019ll be able to link directly to this section of your page."),r&&(0,bc.jsxs)(bc.Fragment,{children:[" ",(0,bc.jsx)(SL.ExternalLink,{href:(0,Bk.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,Bk.__)("Learn more about anchors")})]})]}),value:e||"",placeholder:r?null:(0,Bk.__)("Add an anchor"),onChange:n=>{n=n.replace(Aze,"-"),t({anchor:n!==""?n:void 0})},autoCapitalize:"none",autoComplete:"off"})})}var u9={addSaveProps:Nze,edit:Mze,attributeKeys:["anchor"],hasSupport(e){return(0,_L.hasBlockSupport)(e,"anchor")}};function Nze(e,t,o){return(0,_L.hasBlockSupport)(t,"anchor")&&(e.id=o.anchor===""?null:o.anchor),e}(0,Uye.addFilter)("blocks.registerBlockType","core/anchor/attribute",Lze);var Wye=c(Ft(),1),xL=c(Q(),1);function Dze(e){return e?.attributes?.ariaLabel?.type||(0,xL.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}function Vze(e,t,o){return(0,xL.hasBlockSupport)(t,"ariaLabel")&&!yt(t,"ariaLabel","ariaLabel")&&(e["aria-label"]=o.ariaLabel===""?null:o.ariaLabel),e}var $ye={addSaveProps:Vze,attributeKeys:["ariaLabel"],hasSupport(e){return(0,xL.hasBlockSupport)(e,"ariaLabel")}};(0,Wye.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",Dze);var jk=c(Q(),1),$Se=c(oe(),1),xM=c(N(),1),wM=c(G(),1);var d9=c(F(),1);var go="isAny",bo="isNone",hn="isAll",gn="isNotAll",$n="between",Kn="inThePast",wi="over",To="is",Bo="isNot",Am="lessThan",Lm="greaterThan",Mm="lessThanOrEqual",Nm="greaterThanOrEqual",Dm="before",Vm="after",Fm="beforeInc",zm="afterInc",yc="contains",vc="notContains",kc="startsWith",jm="on",Hm="notOn";var p5t={asc:(0,d9.__)("Sort ascending"),desc:(0,d9.__)("Sort descending")};var Kye=c(Yw(),1),{lock:g5t,unlock:Qt}=(0,Kye.__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/dataviews");var uw=c(A(),1),Fze=[];function Ci({elements:e,getElements:t}){let o=Array.isArray(e)&&e.length>0?e:Fze,[r,n]=(0,uw.useState)(o),[i,s]=(0,uw.useState)(!1);return(0,uw.useEffect)(()=>{if(!t){n(o);return}let a=!1;return s(!0),t().then(l=>{if(!a){let u=Array.isArray(l)&&l.length>0?l:o;n(u)}}).catch(()=>{a||n(o)}).finally(()=>{a||s(!1)}),()=>{a=!0}},[t,o]),{elements:r,isLoading:i}}var zze=Math.pow(10,8)*24*60*60*1e3,v5t=-zze,wL=6048e5,Yye=864e5;var jze=3600;var qye=jze*24,k5t=qye*7,Hze=qye*365.2425,Uze=Hze/12,S5t=Uze*3,f9=Symbol.for("constructDateFrom");function _r(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&f9 in e?e[f9](t):e instanceof Date?new e.constructor(t):new Date(t)}function Vt(e,t){return _r(t||e,e)}function CL(e,t,o){let r=Vt(e,o?.in);return isNaN(t)?_r(o?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function EL(e,t,o){let r=Vt(e,o?.in);if(isNaN(t))return _r(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),i=_r(o?.in||e,r.getTime());i.setMonth(r.getMonth()+t+1,0);let s=i.getDate();return n>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}var Gze={};function Um(){return Gze}function Ju(e,t){let o=Um(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Vt(e,t?.in),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function _g(e,t){return Ju(e,{...t,weekStartsOn:1})}function TL(e,t){let o=Vt(e,t?.in),r=o.getFullYear(),n=_r(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=_g(n),s=_r(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let a=_g(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=a.getTime()?r:r-1}function m9(e){let t=Vt(e),o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),+e-+o}function Zye(e,...t){let o=_r.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function p9(e,t){let o=Vt(e,t?.in);return o.setHours(0,0,0,0),o}function Xye(e,t,o){let[r,n]=Zye(o?.in,e,t),i=p9(r),s=p9(n),a=+i-m9(i),l=+s-m9(s);return Math.round((a-l)/Yye)}function Qye(e,t){let o=TL(e,t),r=_r(t?.in||e,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),_g(r)}function Jye(e,t,o){return CL(e,t*7,o)}function eve(e,t,o){return EL(e,t*12,o)}function tve(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ed(e){return!(!tve(e)&&typeof e!="number"||isNaN(+Vt(e)))}function ove(e,t){let o=Vt(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function BL(e,t){let o=Vt(e,t?.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}var Wze={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},rve=(e,t,o)=>{let r,n=Wze[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",t.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function RL(e){return(t={})=>{let o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}var $ze={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yze={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nve={date:RL({formats:$ze,defaultWidth:"full"}),time:RL({formats:Kze,defaultWidth:"full"}),dateTime:RL({formats:Yze,defaultWidth:"full"})};var qze={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ive=(e,t,o,r)=>qze[e];function Rk(e){return(t,o)=>{let r=o?.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=o?.width?String(o.width):s;n=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=o?.width?String(o.width):e.defaultWidth;n=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return n[i]}}var Zze={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xze={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Qze={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Jze={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e6e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},t6e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o6e=(e,t)=>{let o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},sve={ordinalNumber:o6e,era:Rk({values:Zze,defaultWidth:"wide"}),quarter:Rk({values:Xze,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rk({values:Qze,defaultWidth:"wide"}),day:Rk({values:Jze,defaultWidth:"wide"}),dayPeriod:Rk({values:e6e,defaultWidth:"wide",formattingValues:t6e,defaultFormattingWidth:"wide"})};function Pk(e){return(t,o={})=>{let r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;let s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?n6e(a,f=>f.test(s)):r6e(a,f=>f.test(s)),u;u=e.valueCallback?e.valueCallback(l):l,u=o.valueCallback?o.valueCallback(u):u;let d=t.slice(s.length);return{value:u,rest:d}}}function r6e(e,t){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function n6e(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function ave(e){return(t,o={})=>{let r=t.match(e.matchPattern);if(!r)return null;let n=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=o.valueCallback?o.valueCallback(s):s;let a=t.slice(n.length);return{value:s,rest:a}}}var i6e=/^(\d+)(th|st|nd|rd)?/i,s6e=/\d+/i,a6e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l6e={any:[/^b/i,/^(a|c)/i]},c6e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},u6e={any:[/1/i,/2/i,/3/i,/4/i]},d6e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f6e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m6e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p6e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},h6e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g6e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lve={ordinalNumber:ave({matchPattern:i6e,parsePattern:s6e,valueCallback:e=>parseInt(e,10)}),era:Pk({matchPatterns:a6e,defaultMatchWidth:"wide",parsePatterns:l6e,defaultParseWidth:"any"}),quarter:Pk({matchPatterns:c6e,defaultMatchWidth:"wide",parsePatterns:u6e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pk({matchPatterns:d6e,defaultMatchWidth:"wide",parsePatterns:f6e,defaultParseWidth:"any"}),day:Pk({matchPatterns:m6e,defaultMatchWidth:"wide",parsePatterns:p6e,defaultParseWidth:"any"}),dayPeriod:Pk({matchPatterns:h6e,defaultMatchWidth:"any",parsePatterns:g6e,defaultParseWidth:"any"})};var h9={code:"en-US",formatDistance:rve,formatLong:nve,formatRelative:ive,localize:sve,match:lve,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cve(e,t){let o=Vt(e,t?.in);return Xye(o,BL(o))+1}function uve(e,t){let o=Vt(e,t?.in),r=+_g(o)-+Qye(o);return Math.round(r/wL)+1}function PL(e,t){let o=Vt(e,t?.in),r=o.getFullYear(),n=Um(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=_r(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let a=Ju(s,t),l=_r(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let u=Ju(l,t);return+o>=+a?r+1:+o>=+u?r:r-1}function dve(e,t){let o=Um(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=PL(e,t),i=_r(t?.in||e,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Ju(i,t)}function fve(e,t){let o=Vt(e,t?.in),r=+Ju(o,t)-+dve(o,t);return Math.round(r/wL)+1}function xt(e,t){let o=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return o+r}var td={y(e,t){let o=e.getFullYear(),r=o>0?o:1-o;return xt(t==="yy"?r%100:r,t.length)},M(e,t){let o=e.getMonth();return t==="M"?String(o+1):xt(o+1,2)},d(e,t){return xt(e.getDate(),t.length)},a(e,t){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];default:return o==="am"?"a.m.":"p.m."}},h(e,t){return xt(e.getHours()%12||12,t.length)},H(e,t){return xt(e.getHours(),t.length)},m(e,t){return xt(e.getMinutes(),t.length)},s(e,t){return xt(e.getSeconds(),t.length)},S(e,t){let o=t.length,r=e.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return xt(n,t.length)}};var Ik={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g9={G:function(e,t,o){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})}},y:function(e,t,o){if(t==="yo"){let r=e.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return td.y(e,t)},Y:function(e,t,o,r){let n=PL(e,r),i=n>0?n:1-n;if(t==="YY"){let s=i%100;return xt(s,2)}return t==="Yo"?o.ordinalNumber(i,{unit:"year"}):xt(i,t.length)},R:function(e,t){let o=TL(e);return xt(o,t.length)},u:function(e,t){let o=e.getFullYear();return xt(o,t.length)},Q:function(e,t,o){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return xt(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,o){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return xt(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,o){let r=e.getMonth();switch(t){case"M":case"MM":return td.M(e,t);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,o){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return xt(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,o,r){let n=fve(e,r);return t==="wo"?o.ordinalNumber(n,{unit:"week"}):xt(n,t.length)},I:function(e,t,o){let r=uve(e);return t==="Io"?o.ordinalNumber(r,{unit:"week"}):xt(r,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getDate(),{unit:"date"}):td.d(e,t)},D:function(e,t,o){let r=cve(e);return t==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):xt(r,t.length)},E:function(e,t,o){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,o,r){let n=e.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return xt(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,o,r){let n=e.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return xt(i,t.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,o){let r=e.getDay(),n=r===0?7:r;switch(t){case"i":return String(n);case"ii":return xt(n,t.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,o){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,o){let r=e.getHours(),n;switch(r===12?n=Ik.noon:r===0?n=Ik.midnight:n=r/12>=1?"pm":"am",t){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,o){let r=e.getHours(),n;switch(r>=17?n=Ik.evening:r>=12?n=Ik.afternoon:r>=4?n=Ik.morning:n=Ik.night,t){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,o){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return td.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getHours(),{unit:"hour"}):td.H(e,t)},K:function(e,t,o){let r=e.getHours()%12;return t==="Ko"?o.ordinalNumber(r,{unit:"hour"}):xt(r,t.length)},k:function(e,t,o){let r=e.getHours();return r===0&&(r=24),t==="ko"?o.ordinalNumber(r,{unit:"hour"}):xt(r,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getMinutes(),{unit:"minute"}):td.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getSeconds(),{unit:"second"}):td.s(e,t)},S:function(e,t){return td.S(e,t)},X:function(e,t,o){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pve(r);case"XXXX":case"XX":return xg(r);default:return xg(r,":")}},x:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"x":return pve(r);case"xxxx":case"xx":return xg(r);default:return xg(r,":")}},O:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+mve(r,":");default:return"GMT"+xg(r,":")}},z:function(e,t,o){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+mve(r,":");default:return"GMT"+xg(r,":")}},t:function(e,t,o){let r=Math.trunc(+e/1e3);return xt(r,t.length)},T:function(e,t,o){return xt(+e,t.length)}};function mve(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+t+xt(i,2)}function pve(e,t){return e%60===0?(e>0?"-":"+")+xt(Math.abs(e)/60,2):xg(e,t)}function xg(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=xt(Math.trunc(r/60),2),i=xt(r%60,2);return o+n+t+i}var hve=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},gve=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},b6e=(e,t)=>{let o=e.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return hve(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",hve(r,t)).replace("{{time}}",gve(n,t))},bve={p:gve,P:b6e};var y6e=/^D+$/,v6e=/^Y+$/,k6e=["D","DD","YY","YYYY"];function yve(e){return y6e.test(e)}function vve(e){return v6e.test(e)}function kve(e,t,o){let r=S6e(e,t,o);if(console.warn(r),k6e.includes(e))throw new RangeError(r)}function S6e(e,t,o){let r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _6e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,x6e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w6e=/^'([^]*?)'?$/,C6e=/''/g,E6e=/[a-zA-Z]/;function b9(e,t,o){let r=Um(),n=o?.locale??r.locale??h9,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Vt(e,o?.in);if(!ed(a))throw new RangeError("Invalid time value");let l=t.match(x6e).map(d=>{let f=d[0];if(f==="p"||f==="P"){let m=bve[f];return m(d,n.formatLong)}return d}).join("").match(_6e).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let f=d[0];if(f==="'")return{isToken:!1,value:T6e(d)};if(g9[f])return{isToken:!0,value:d};if(f.match(E6e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});n.localize.preprocessor&&(l=n.localize.preprocessor(a,l));let u={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return l.map(d=>{if(!d.isToken)return d.value;let f=d.value;(!o?.useAdditionalWeekYearTokens&&vve(f)||!o?.useAdditionalDayOfYearTokens&&yve(f))&&kve(f,t,String(e));let m=g9[f[0]];return m(a,f,n.localize,u)}).join("")}function T6e(e){let t=e.match(w6e);return t?t[1].replace(C6e,"'"):e}function wg(e,t,o){return CL(e,-t,o)}function IL(e,t,o){return EL(e,-t,o)}function Sve(e,t,o){return Jye(e,-t,o)}function OL(e,t,o){return eve(e,-t,o)}var be=c(F(),1),Vo=c(A(),1),Yn=c(nc(),1);var y9=c(C(),1),rr={Name:(0,y9.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,y9.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function _ve(e,t){switch(t){case"days":return wg(new Date,e);case"weeks":return Sve(new Date,e);case"months":return IL(new Date,e);case"years":return OL(new Date,e);default:return new Date}}var xve={label:(0,be.__)("Is none of"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),rr),filter:((e,t,o)=>{if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?!o.some(n=>r.includes(n)):typeof r=="string"?!o.includes(r):!1}),selection:"multi"},wve=[{name:go,label:(0,be.__)("Includes"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),rr),filter(e,t,o){if(!o?.length)return!0;let r=t.getValue({item:e});return Array.isArray(r)?o.some(n=>r.includes(n)):typeof r=="string"?o.includes(r):!1},selection:"multi"},{name:bo,...xve},{name:hn,label:(0,be.__)("Includes all"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),e.name,t.map(o=>o.label).join(", ")),rr),filter(e,t,o){return o?.length?o.every(r=>t.getValue({item:e})?.includes(r)):!0},selection:"multi"},{name:gn,...xve},{name:$n,label:(0,be.__)("Between (inc)"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),e.name,t[0].label[0],t[0].label[1]),rr),filter(e,t,o){if(!Array.isArray(o)||o.length!==2||o[0]===void 0||o[1]===void 0)return!0;let r=t.getValue({item:e});return typeof r=="number"||r instanceof Date||typeof r=="string"?r>=o[0]&&r<=o[1]:!1},selection:"custom"},{name:Kn,label:(0,be.__)("In the past"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),rr),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=_ve(o.value,o.unit),n=(0,Yn.getDate)(t.getValue({item:e}));return n>=r&&n<=new Date},selection:"custom"},{name:wi,label:(0,be.__)("Over"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),e.name,`${t[0].value.value} ${t[0].value.unit}`),rr),filter(e,t,o){if(o?.value===void 0||o?.unit===void 0)return!0;let r=_ve(o.value,o.unit);return(0,Yn.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:To,label:(0,be.__)("Is"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){return o===t.getValue({item:e})||o===void 0},selection:"single"},{name:Bo,label:(0,be.__)("Is not"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){return o!==t.getValue({item:e})},selection:"single"},{name:Am,label:(0,be.__)("Less than"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<o},selection:"single"},{name:Lm,label:(0,be.__)("Greater than"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>o},selection:"single"},{name:Mm,label:(0,be.__)("Less than or equal"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})<=o},selection:"single"},{name:Nm,label:(0,be.__)("Greater than or equal"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){return o===void 0?!0:t.getValue({item:e})>=o},selection:"single"},{name:Dm,label:(0,be.__)("Before"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Yn.getDate)(o);return(0,Yn.getDate)(t.getValue({item:e}))<r},selection:"single"},{name:Vm,label:(0,be.__)("After"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Yn.getDate)(o);return(0,Yn.getDate)(t.getValue({item:e}))>r},selection:"single"},{name:Fm,label:(0,be.__)("Before (inc)"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Yn.getDate)(o);return(0,Yn.getDate)(t.getValue({item:e}))<=r},selection:"single"},{name:zm,label:(0,be.__)("After (inc)"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Yn.getDate)(o);return(0,Yn.getDate)(t.getValue({item:e}))>=r},selection:"single"},{name:yc,label:(0,be.__)("Contains"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&r.toLowerCase().includes(String(o).toLowerCase())},selection:"single"},{name:vc,label:(0,be.__)("Doesn't contain"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&!r.toLowerCase().includes(String(o).toLowerCase())},selection:"single"},{name:kc,label:(0,be.__)("Starts with"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=t.getValue({item:e});return typeof r=="string"&&o&&r.toLowerCase().startsWith(String(o).toLowerCase())},selection:"single"},{name:jm,label:(0,be.__)("On"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Yn.getDate)(o),n=(0,Yn.getDate)(t.getValue({item:e}));return r.getTime()===n.getTime()},selection:"single"},{name:Hm,label:(0,be.__)("Not on"),filterText:(e,t)=>(0,Vo.createInterpolateElement)((0,be.sprintf)((0,be.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),e.name,t[0].label),rr),filter(e,t,o){if(o===void 0)return!0;let r=(0,Yn.getDate)(o),n=(0,Yn.getDate)(t.getValue({item:e}));return r.getTime()!==n.getTime()},selection:"single"}],Cve=e=>wve.find(t=>t.name===e),Eve=()=>wve.map(e=>e.name);var Tve=c(N(),1),Bve=c(A(),1);function Gt(e,t){let o;return e?.required&&t?.required?o=t?.required?.message?t.required:void 0:e?.pattern&&t?.pattern?o=t.pattern:e?.min&&t?.min?o=t.min:e?.max&&t?.max?o=t.max:e?.minLength&&t?.minLength?o=t.minLength:e?.maxLength&&t?.maxLength?o=t.maxLength:e?.elements&&t?.elements?o=t.elements:t?.custom&&(o=t.custom),o}var Rve=c(C(),1),{ValidatedCheckboxControl:B6e}=Qt(Tve.privateApis);function Pve({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,label:l,description:u,isValid:d}=e,f=e.isDisabled({item:o,field:e}),m=(0,Bve.useCallback)(()=>{t(a({item:o,value:!s({item:o})}))},[o,s,t,a]);return(0,Rve.jsx)(B6e,{required:!!e.isValid?.required,markWhenOptional:n,customValidity:Gt(d,i),hidden:r,label:l,help:u,checked:s({item:o}),onChange:m,disabled:f})}var AL=c(N(),1),Ive=c(A(),1);var v9=c(C(),1),{ValidatedComboboxControl:R6e}=Qt(AL.privateApis);function LL({data:e,field:t,onChange:o,hideLabelFromVision:r,validity:n}){let{label:i,description:s,placeholder:a,getValue:l,setValue:u,isValid:d}=t,f=l({item:e})??"",m=(0,Ive.useCallback)(g=>o(u({item:e,value:g??""})),[e,o,u]),{elements:h,isLoading:p}=Ci({elements:t.elements,getElements:t.getElements});return p?(0,v9.jsx)(AL.Spinner,{}):(0,v9.jsx)(R6e,{required:!!t.isValid?.required,customValidity:Gt(d,n),label:i,value:f,help:s,placeholder:a,options:h,onChange:m,hideLabelFromVision:r,allowReset:!0,expandOnFocus:!0})}var DL=c(N(),1),la=c(A(),1),NL=c(F(),1),cs=c(nc(),1);var Ak=c(N(),1),k9=c(A(),1),Sc=c(F(),1);var Ok=c(C(),1),P6e={[Kn]:[{value:"days",label:(0,Sc.__)("Days")},{value:"weeks",label:(0,Sc.__)("Weeks")},{value:"months",label:(0,Sc.__)("Months")},{value:"years",label:(0,Sc.__)("Years")}],[wi]:[{value:"days",label:(0,Sc.__)("Days ago")},{value:"weeks",label:(0,Sc.__)("Weeks ago")},{value:"months",label:(0,Sc.__)("Months ago")},{value:"years",label:(0,Sc.__)("Years ago")}]};function ML({className:e,data:t,field:o,onChange:r,hideLabelFromVision:n,operator:i}){let s=P6e[i===Kn?"inThePast":"over"],{id:a,label:l,description:u,getValue:d,setValue:f}=o,m=o.isDisabled({item:t,field:o}),h=d({item:t}),{value:p="",unit:g=s[0].value}=h&&typeof h=="object"?h:{},b=(0,k9.useCallback)(y=>r(f({item:t,value:{value:Number(y),unit:g}})),[r,f,t,g]),v=(0,k9.useCallback)(y=>r(f({item:t,value:{value:p,unit:y}})),[r,f,t,p]);return(0,Ok.jsx)(Ak.BaseControl,{id:a,className:U(e,"dataviews-controls__relative-date"),label:l,hideLabelFromVision:n,help:u,children:(0,Ok.jsxs)(Ne,{direction:"row",gap:"sm",children:[(0,Ok.jsx)(Ak.__experimentalNumberControl,{__next40pxDefaultSize:!0,className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:p,onChange:b,disabled:m}),(0,Ok.jsx)(Ak.SelectControl,{className:"dataviews-controls__relative-date-unit",__next40pxDefaultSize:!0,label:(0,Sc.__)("Unit"),value:g,options:s,onChange:v,hideLabelFromVision:!0,disabled:m})]})})}var Ove=c(A(),1);function dw(e,t){let o=typeof e.min?.constraint=="string"?e.min.constraint:void 0,r=typeof e.max?.constraint=="string"?e.max.constraint:void 0,n=(0,Ove.useMemo)(()=>{let i=[];if(o){let s=t(o);s&&i.push({before:s})}if(r){let s=t(r);s&&i.push({after:s})}return i.length>0?i:void 0},[o,r,t]);return{minConstraint:o,maxConstraint:r,disabledMatchers:n}}var Ave=c(nc(),1);function fw(e){if(!e)return null;let t=(0,Ave.getDate)(e);return t&&ed(t)?t:null}var Gm=c(C(),1),{DateCalendar:I6e,ValidatedInputControl:O6e}=Qt(DL.privateApis),S9=e=>e?(0,cs.dateI18n)("Y-m-d\\TH:i",(0,cs.getDate)(e)):"";function A6e({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,config:s}){let{compact:a}=s||{},{id:l,label:u,description:d,setValue:f,getValue:m,isValid:h}=t,p=t.isDisabled({item:e,field:t}),g=m({item:e}),b=typeof g=="string"?g:void 0,[v,y]=(0,la.useState)(()=>fw(b)||new Date),k=(0,la.useRef)(null),S=(0,la.useRef)(void 0),_=(0,la.useRef)(null),{minConstraint:x,maxConstraint:E,disabledMatchers:T}=dw(h,fw),R=(0,la.useCallback)(j=>o(f({item:e,value:j})),[e,o,f]);(0,la.useEffect)(()=>()=>{S.current&&clearTimeout(S.current)},[]);let B=(0,la.useCallback)(j=>{let V;if(j){let D=(0,cs.dateI18n)("Y-m-d",j),z;b?z=(0,cs.dateI18n)("H:i",(0,cs.getDate)(b)):z=(0,cs.dateI18n)("H:i",j),V=(0,cs.getDate)(`${D}T${z}`).toISOString(),R(V),S.current&&clearTimeout(S.current)}else R(void 0);_.current=k.current&&k.current.ownerDocument.activeElement,S.current=setTimeout(()=>{k.current&&(k.current.focus(),k.current.blur(),R(V),_.current&&_.current instanceof HTMLElement&&_.current.focus())},0)},[R,b]),O=(0,la.useCallback)(j=>{if(j){let V=(0,cs.getDate)(j);R(V.toISOString());let D=fw(V.toISOString());D&&y(D)}else R(void 0)},[R]),{format:I}=t,P=I.weekStartsOn??(0,cs.getSettings)().l10n.startOfWeek,{timezone:{string:M}}=(0,cs.getSettings)(),L=u;return h?.required&&!n&&!r?L=`${u} (${(0,NL.__)("Required")})`:!h?.required&&n&&!r&&(L=`${u} (${(0,NL.__)("Optional")})`),(0,Gm.jsx)(DL.BaseControl,{id:l,label:L,help:d,hideLabelFromVision:r,children:(0,Gm.jsxs)(Ne,{direction:"column",gap:"lg",children:[(0,Gm.jsx)(O6e,{ref:k,__next40pxDefaultSize:!0,required:!!h?.required,customValidity:Gt(h,i),type:"datetime-local",label:(0,NL.__)("Date time"),hideLabelFromVision:!0,value:S9(b),onChange:O,disabled:p,min:x?S9(x):void 0,max:E?S9(E):void 0}),!a&&(0,Gm.jsx)(I6e,{style:{width:"100%"},selected:b&&fw(b)||void 0,onSelect:B,month:v,onMonthChange:y,timeZone:M||void 0,weekStartsOn:P,disabled:p||T})]})})}function Lve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s,config:a}){return i===Kn||i===wi?(0,Gm.jsx)(ML,{className:"dataviews-controls__datetime",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):(0,Gm.jsx)(A6e,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,config:a})}var yn=c(N(),1),At=c(A(),1),xr=c(F(),1),bn=c(nc(),1);var Wt=c(C(),1),{DateCalendar:L6e,DateRangeCalendar:M6e}=Qt(yn.privateApis),N6e=[{id:"today",label:(0,xr.__)("Today"),getValue:()=>(0,bn.getDate)(null)},{id:"yesterday",label:(0,xr.__)("Yesterday"),getValue:()=>{let e=(0,bn.getDate)(null);return wg(e,1)}},{id:"past-week",label:(0,xr.__)("Past week"),getValue:()=>{let e=(0,bn.getDate)(null);return wg(e,7)}},{id:"past-month",label:(0,xr.__)("Past month"),getValue:()=>{let e=(0,bn.getDate)(null);return IL(e,1)}}],D6e=[{id:"last-7-days",label:(0,xr.__)("Last 7 days"),getValue:()=>{let e=(0,bn.getDate)(null);return[wg(e,7),e]}},{id:"last-30-days",label:(0,xr.__)("Last 30 days"),getValue:()=>{let e=(0,bn.getDate)(null);return[wg(e,30),e]}},{id:"month-to-date",label:(0,xr.__)("Month to date"),getValue:()=>{let e=(0,bn.getDate)(null);return[ove(e),e]}},{id:"last-year",label:(0,xr.__)("Last year"),getValue:()=>{let e=(0,bn.getDate)(null);return[OL(e,1),e]}},{id:"year-to-date",label:(0,xr.__)("Year to date"),getValue:()=>{let e=(0,bn.getDate)(null);return[BL(e),e]}}],Wm=e=>{if(!e)return null;let t=(0,bn.getDate)(e);return t&&ed(t)?t:null},_9=e=>e?typeof e=="string"?e:b9(e,"yyyy-MM-dd"):"";function Mve({field:e,validity:t,inputRefs:o,isTouched:r,setIsTouched:n,children:i}){let{isValid:s}=e,[a,l]=(0,At.useState)(void 0),u=(0,At.useCallback)(()=>{let f=Array.isArray(o)?o:[o];for(let m of f){let h=m.current;if(h&&!h.validity.valid){l({type:"invalid",message:h.validationMessage});return}}l(void 0)},[o]);return(0,At.useEffect)(()=>{let f=Array.isArray(o)?o:[o],m=t?Gt(s,t):void 0;for(let h of f){let p=h.current;p&&p.setCustomValidity(m?.type==="invalid"&&m.message?m.message:"")}},[o,s,t]),(0,At.useEffect)(()=>{let f=Array.isArray(o)?o:[o],m=h=>{h.preventDefault(),n(!0)};for(let h of f)h.current?.addEventListener("invalid",m);return()=>{for(let h of f)h.current?.removeEventListener("invalid",m)}},[o,n]),(0,At.useEffect)(()=>{if(!r)return;let f=t?Gt(s,t):void 0;f?l(f):u()},[r,s,t,u]),(0,Wt.jsxs)("div",{onBlur:f=>{r||(!f.relatedTarget||!f.currentTarget.contains(f.relatedTarget))&&n(!0)},children:[i,(0,Wt.jsx)("div",{"aria-live":"polite",children:a&&(0,Wt.jsxs)("p",{className:U("components-validated-control__indicator",a.type==="invalid"?"is-invalid":void 0),children:[(0,Wt.jsx)(yn.Icon,{className:"components-validated-control__indicator-icon",icon:_p,size:16,fill:"currentColor"}),a.message]})})]})}function V6e({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,setValue:u,getValue:d,isValid:f,format:m}=t,h=t.isDisabled({item:e,field:t}),[p,g]=(0,At.useState)(null),b=m.weekStartsOn??(0,bn.getSettings)().l10n.startOfWeek,v=d({item:e}),y=typeof v=="string"?v:void 0,[k,S]=(0,At.useState)(()=>Wm(y)||new Date),[_,x]=(0,At.useState)(!1),E=(0,At.useRef)(null),{minConstraint:T,maxConstraint:R,disabledMatchers:B}=dw(f,Wm),O=(0,At.useCallback)(V=>o(u({item:e,value:V})),[e,o,u]),I=(0,At.useCallback)(V=>{let D=V?b9(V,"yyyy-MM-dd"):void 0;O(D),g(null),x(!0)},[O]),P=(0,At.useCallback)(V=>{let D=V.getValue(),z=_9(D);S(D),O(z),g(V.id),x(!0)},[O]),M=(0,At.useCallback)(V=>{if(O(V),V){let D=Wm(V);D&&S(D)}g(null),x(!0)},[O]),{timezone:{string:L}}=(0,bn.getSettings)(),j=a;return f?.required&&!n?j=`${a} (${(0,xr.__)("Required")})`:!f?.required&&n&&(j=`${a} (${(0,xr.__)("Optional")})`),(0,Wt.jsx)(Mve,{field:t,validity:i,inputRefs:E,isTouched:_,setIsTouched:x,children:(0,Wt.jsx)(yn.BaseControl,{id:s,className:"dataviews-controls__date",label:j,help:l,hideLabelFromVision:r,children:(0,Wt.jsxs)(Ne,{direction:"column",gap:"lg",children:[(0,Wt.jsxs)(Ne,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[N6e.map(V=>{let D=p===V.id;return(0,Wt.jsx)(yn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:D,size:"small",disabled:h,accessibleWhenDisabled:!0,onClick:()=>P(V),children:V.label},V.id)}),(0,Wt.jsx)(yn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!p,size:"small",disabled:!!p||h,accessibleWhenDisabled:!0,children:(0,xr.__)("Custom")})]}),(0,Wt.jsx)(yn.__experimentalInputControl,{__next40pxDefaultSize:!0,ref:E,type:"date",label:(0,xr.__)("Date"),hideLabelFromVision:!0,value:y,onChange:M,required:!!t.isValid?.required,disabled:h,min:T,max:R}),(0,Wt.jsx)(L6e,{style:{width:"100%"},selected:y&&Wm(y)||void 0,onSelect:I,month:k,onMonthChange:S,timeZone:L||void 0,weekStartsOn:b,disabled:h||B,disableNavigation:h})]})})})}function F6e({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{id:s,label:a,description:l,getValue:u,setValue:d,isValid:f,format:m}=t,h=t.isDisabled({item:e,field:t}),p,g=u({item:e});Array.isArray(g)&&g.length===2&&g.every(W=>typeof W=="string")&&(p=g);let b=m.weekStartsOn??(0,bn.getSettings)().l10n.startOfWeek,{minConstraint:v,maxConstraint:y,disabledMatchers:k}=dw(f,Wm),S=(0,At.useCallback)(W=>{o(d({item:e,value:W}))},[e,o,d]),[_,x]=(0,At.useState)(null),E=(0,At.useMemo)(()=>{if(!p)return{from:void 0,to:void 0};let[W,K]=p;return{from:Wm(W)||void 0,to:Wm(K)||void 0}},[p]),[T,R]=(0,At.useState)(()=>E.from||new Date),[B,O]=(0,At.useState)(!1),I=(0,At.useRef)(null),P=(0,At.useRef)(null),M=(0,At.useCallback)((W,K)=>{W&&K?S([_9(W),_9(K)]):!W&&!K&&S(void 0)},[S]),L=(0,At.useCallback)(W=>{M(W?.from,W?.to),x(null),O(!0)},[M]),j=(0,At.useCallback)(W=>{let[K,ne]=W.getValue();R(K),M(K,ne),x(W.id),O(!0)},[M]),V=(0,At.useCallback)((W,K)=>{let[ne,X]=p||[void 0,void 0];if(M(W==="from"?K:ne,W==="to"?K:X),K){let $=Wm(K);$&&R($)}x(null),O(!0)},[p,M]),{timezone:D}=(0,bn.getSettings)(),z=a;return t.isValid?.required&&!n?z=`${a} (${(0,xr.__)("Required")})`:!t.isValid?.required&&n&&(z=`${a} (${(0,xr.__)("Optional")})`),(0,Wt.jsx)(Mve,{field:t,validity:i,inputRefs:[I,P],isTouched:B,setIsTouched:O,children:(0,Wt.jsx)(yn.BaseControl,{id:s,className:"dataviews-controls__date",label:z,help:l,hideLabelFromVision:r,children:(0,Wt.jsxs)(Ne,{direction:"column",gap:"lg",children:[(0,Wt.jsxs)(Ne,{direction:"row",gap:"sm",wrap:"wrap",justify:"flex-start",children:[D6e.map(W=>{let K=_===W.id;return(0,Wt.jsx)(yn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:K,size:"small",disabled:h,accessibleWhenDisabled:!0,onClick:()=>j(W),children:W.label},W.id)}),(0,Wt.jsx)(yn.Button,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!_,size:"small",accessibleWhenDisabled:!0,disabled:!!_||h,children:(0,xr.__)("Custom")})]}),(0,Wt.jsxs)(Ne,{direction:"row",gap:"sm",justify:"space-between",className:"dataviews-controls__date-range-inputs",children:[(0,Wt.jsx)(yn.__experimentalInputControl,{__next40pxDefaultSize:!0,ref:I,type:"date",label:(0,xr.__)("From"),hideLabelFromVision:!0,value:p?.[0],onChange:W=>V("from",W),required:!!t.isValid?.required,disabled:h,min:v,max:y}),(0,Wt.jsx)(yn.__experimentalInputControl,{__next40pxDefaultSize:!0,ref:P,type:"date",label:(0,xr.__)("To"),hideLabelFromVision:!0,value:p?.[1],onChange:W=>V("to",W),required:!!t.isValid?.required,disabled:h,min:v,max:y})]}),(0,Wt.jsx)(M6e,{style:{width:"100%"},selected:E,onSelect:L,month:T,onMonthChange:R,timeZone:D.string||void 0,weekStartsOn:b,disabled:h||k})]})})})}function Nve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){return i===Kn||i===wi?(0,Wt.jsx)(ML,{className:"dataviews-controls__date",data:e,field:t,onChange:o,hideLabelFromVision:r,operator:i}):i===$n?(0,Wt.jsx)(F6e,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s}):(0,Wt.jsx)(V6e,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s})}var VL=c(N(),1),Dve=c(A(),1);var x9=c(C(),1),{ValidatedSelectControl:z6e}=Qt(VL.privateApis);function FL({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{type:s,label:a,description:l,getValue:u,setValue:d,isValid:f}=t,m=t.isDisabled({item:e,field:t}),h=s==="array",p=u({item:e})??(h?[]:""),g=(0,Dve.useCallback)(y=>o(d({item:e,value:y})),[e,o,d]),{elements:b,isLoading:v}=Ci({elements:t.elements,getElements:t.getElements});return v?(0,x9.jsx)(VL.Spinner,{}):(0,x9.jsx)(z6e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Gt(f,i),label:a,value:p,help:l,options:b,onChange:g,__next40pxDefaultSize:!0,hideLabelFromVision:r,multiple:h,disabled:m})}var w9=c(C(),1),j6e=10;function Vve(e){let{field:t}=e,{elements:o}=Ci({elements:t.elements,getElements:t.getElements});return o.length>=j6e?(0,w9.jsx)(LL,{...e}):(0,w9.jsx)(FL,{...e})}var jL=c(N(),1);var Fve=c(N(),1),zve=c(A(),1);var jve=c(C(),1),{ValidatedInputControl:H6e}=Qt(Fve.privateApis);function _c({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,type:i,prefix:s,suffix:a,validity:l}){let{label:u,placeholder:d,description:f,getValue:m,setValue:h,isValid:p}=t,g=m({item:e}),b=t.isDisabled({item:e,field:t}),v=(0,zve.useCallback)(y=>o(h({item:e,value:y})),[e,h,o]);return(0,jve.jsx)(H6e,{required:!!p.required,markWhenOptional:n,customValidity:Gt(p,l),label:u,placeholder:d,value:g??"",help:f,onChange:v,hideLabelFromVision:r,type:i,prefix:s,suffix:a,disabled:b,pattern:p.pattern?p.pattern.constraint:void 0,minLength:p.minLength?p.minLength.constraint:void 0,maxLength:p.maxLength?p.maxLength.constraint:void 0,__next40pxDefaultSize:!0})}var zL=c(C(),1);function Hve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,zL.jsx)(_c,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"email",prefix:(0,zL.jsx)(jL.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,zL.jsx)(jL.Icon,{icon:mD})})})}var UL=c(N(),1);var HL=c(C(),1);function Uve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,HL.jsx)(_c,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"tel",prefix:(0,HL.jsx)(UL.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,HL.jsx)(UL.Icon,{icon:kS})})})}var WL=c(N(),1);var GL=c(C(),1);function Gve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){return(0,GL.jsx)(_c,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:"url",prefix:(0,GL.jsx)(WL.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,GL.jsx)(WL.Icon,{icon:ti})})})}var od=c(N(),1),mw=c(A(),1),$L=c(F(),1);var $m=c(C(),1),{ValidatedNumberControl:U6e}=Qt(od.privateApis);function Wve(e){if(e===""||e===void 0)return"";let t=Number(e);return Number.isFinite(t)?t:""}function G6e({value:e,onChange:t,hideLabelFromVision:o,step:r}){let[n="",i=""]=e,s=(0,mw.useCallback)(l=>t([Wve(l),i]),[t,i]),a=(0,mw.useCallback)(l=>t([n,Wve(l)]),[t,n]);return(0,$m.jsx)(od.BaseControl,{help:(0,$L.__)("The max. value must be greater than the min. value."),children:(0,$m.jsxs)(od.Flex,{direction:"row",gap:4,children:[(0,$m.jsx)(od.__experimentalNumberControl,{label:(0,$L.__)("Min."),value:n,max:i?Number(i)-r:void 0,onChange:s,__next40pxDefaultSize:!0,hideLabelFromVision:o,step:r}),(0,$m.jsx)(od.__experimentalNumberControl,{label:(0,$L.__)("Max."),value:i,min:n?Number(n)+r:void 0,onChange:a,__next40pxDefaultSize:!0,hideLabelFromVision:o,step:r})]})})}function KL({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,operator:i,validity:s}){let a=t.format?.decimals??0,l=Math.pow(10,Math.abs(a)*-1),{label:u,description:d,getValue:f,setValue:m,isValid:h}=t,p=f({item:e})??"",g=t.isDisabled({item:e,field:t}),b=(0,mw.useCallback)(y=>{o(m({item:e,value:["",void 0].includes(y)?void 0:Number(y)}))},[e,o,m]),v=(0,mw.useCallback)(y=>{o(m({item:e,value:y}))},[e,o,m]);if(i===$n){let y=["",""];return Array.isArray(p)&&p.length===2&&p.every(k=>typeof k=="number"||k==="")&&(y=p),(0,$m.jsx)(G6e,{value:y,onChange:v,hideLabelFromVision:r,step:l})}return(0,$m.jsx)(U6e,{required:!!h.required,markWhenOptional:n,customValidity:Gt(h,s),label:u,help:d,value:p,onChange:b,__next40pxDefaultSize:!0,hideLabelFromVision:r,step:l,min:h.min?h.min.constraint:void 0,max:h.max?h.max.constraint:void 0,disabled:g})}var $ve=c(C(),1);function Kve(e){return(0,$ve.jsx)(KL,{...e})}var Yve=c(C(),1);function qve(e){return(0,Yve.jsx)(KL,{...e})}var YL=c(N(),1),Zve=c(A(),1);var C9=c(C(),1),{ValidatedRadioControl:W6e}=Qt(YL.privateApis);function Xve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:u,isValid:d}=t,f=t.isDisabled({item:e,field:t}),{elements:m,isLoading:h}=Ci({elements:t.elements,getElements:t.getElements}),p=l({item:e}),g=(0,Zve.useCallback)(b=>o(u({item:e,value:b})),[e,o,u]);return h?(0,C9.jsx)(YL.Spinner,{}):(0,C9.jsx)(W6e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Gt(d,i),label:s,help:a,onChange:g,options:m,selected:p,hideLabelFromVision:r,disabled:f})}var E9=c(A(),1);var Qve=c(C(),1);function Jve({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{prefix:a,suffix:l}=i||{};return(0,Qve.jsx)(_c,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:s,prefix:a?(0,E9.createElement)(a):void 0,suffix:l?(0,E9.createElement)(l):void 0})}var eke=c(N(),1),tke=c(A(),1);var oke=c(C(),1),{ValidatedToggleControl:$6e}=Qt(eke.privateApis);function rke({field:e,onChange:t,data:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,description:a,getValue:l,setValue:u,isValid:d}=e,f=e.isDisabled({item:o,field:e}),m=(0,tke.useCallback)(()=>{t(u({item:o,value:!l({item:o})}))},[t,u,o,l]);return(0,oke.jsx)($6e,{required:!!d.required,markWhenOptional:n,customValidity:Gt(d,i),hidden:r,label:s,help:a,checked:l({item:o}),onChange:m,disabled:f})}var nke=c(N(),1),ike=c(A(),1);var ske=c(C(),1),{ValidatedTextareaControl:K6e}=Qt(nke.privateApis);function ake({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{rows:a=4}=i||{},l=t.isDisabled({item:e,field:t}),{label:u,placeholder:d,description:f,setValue:m,isValid:h}=t,p=t.getValue({item:e}),g=(0,ike.useCallback)(b=>o(m({item:e,value:b})),[e,o,m]);return(0,ske.jsx)(K6e,{required:!!h.required,markWhenOptional:n,customValidity:Gt(h,s),label:u,placeholder:d,value:p??"",help:f,onChange:g,rows:a,disabled:l,minLength:h.minLength?h.minLength.constraint:void 0,maxLength:h.maxLength?h.maxLength.constraint:void 0,__next40pxDefaultSize:!0,hideLabelFromVision:r})}var Lk=c(N(),1),lke=c(A(),1);var qL=c(C(),1),{ValidatedToggleGroupControl:Y6e}=Qt(Lk.privateApis);function cke({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,isValid:l}=t,u=t.isDisabled({item:e,field:t}),d=s({item:e}),f=(0,lke.useCallback)(g=>o(a({item:e,value:g})),[e,o,a]),{elements:m,isLoading:h}=Ci({elements:t.elements,getElements:t.getElements});if(h)return(0,qL.jsx)(Lk.Spinner,{});if(m.length===0)return null;let p=m.find(g=>g.value===d);return(0,qL.jsx)(Y6e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Gt(l,i),__next40pxDefaultSize:!0,isBlock:!0,label:t.label,help:p?.description||t.description,onChange:f,value:d,hideLabelFromVision:r,children:m.map(g=>(0,qL.jsx)(Lk.__experimentalToggleGroupControlOption,{label:g.label,value:g.value,disabled:u},g.value))})}var ZL=c(N(),1),XL=c(A(),1);var pw=c(C(),1),{ValidatedFormTokenField:q6e}=Qt(ZL.privateApis);function uke({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,getValue:u,setValue:d,isValid:f}=t,m=u({item:e}),h=t.isDisabled({item:e,field:t}),{elements:p,isLoading:g}=Ci({elements:t.elements,getElements:t.getElements}),b=(0,XL.useMemo)(()=>Array.isArray(m)?m.map(y=>p?.find(S=>S.value===y)||{value:y,label:y}):[],[m,p]),v=(0,XL.useCallback)(y=>{let k=y.map(S=>typeof S=="object"&&"value"in S?S.value:S);o(d({item:e,value:k}))},[o,d,e]);return g?(0,pw.jsx)(ZL.Spinner,{}):(0,pw.jsx)(q6e,{required:!!f?.required,markWhenOptional:n,customValidity:Gt(f,i),label:r?void 0:s,value:b,onChange:v,placeholder:a,suggestions:p?.map(y=>y.value),disabled:h,__experimentalValidateInput:y=>t.isValid?.elements&&p?p.some(k=>k.value===y||k.label===y):!0,__experimentalExpandOnFocus:p&&p.length>0,help:l??(t.isValid?.elements?"":void 0),displayTransform:y=>typeof y=="object"&&"label"in y?y.label:typeof y=="string"&&p&&p.find(S=>S.value===y)?.label||y,__experimentalRenderItem:({item:y})=>{if(typeof y=="string"&&p){let k=p.find(S=>S.value===y);return(0,pw.jsx)("span",{children:k?.label||y})}return(0,pw.jsx)("span",{children:y})}})}var Ei=c(N(),1),T9=c(A(),1),dke=c(F(),1);var rd=c(C(),1),{ValidatedInputControl:Z6e}=Qt(Ei.privateApis),X6e=({color:e,onColorChange:t,disabled:o})=>{let r=e&&to(e).isValid()?e:"#ffffff";return(0,rd.jsx)(Ei.Dropdown,{className:"dataviews-controls__color-picker-dropdown",popoverProps:{resize:!1},renderToggle:({onToggle:n})=>(0,rd.jsx)(Ei.Button,{onClick:n,"aria-label":(0,dke.__)("Open color picker"),size:"small",disabled:o,accessibleWhenDisabled:!0,icon:()=>(0,rd.jsx)(Ei.ColorIndicator,{colorValue:r})}),renderContent:()=>(0,rd.jsx)(Ei.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,rd.jsx)(Ei.ColorPicker,{color:r,onChange:t,enableAlpha:!0})})})};function fke({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,setValue:u,isValid:d}=t,f=t.isDisabled({item:e,field:t}),m=t.getValue({item:e})||"",h=(0,T9.useCallback)(g=>{o(u({item:e,value:g}))},[e,o,u]),p=(0,T9.useCallback)(g=>{o(u({item:e,value:g||""}))},[e,o,u]);return(0,rd.jsx)(Z6e,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:Gt(d,i),label:s,placeholder:a,value:m,help:l,onChange:p,hideLabelFromVision:r,type:"text",disabled:f,prefix:(0,rd.jsx)(Ei.__experimentalInputControlPrefixWrapper,{variant:"control",children:(0,rd.jsx)(X6e,{color:m,onColorChange:h,disabled:f})})})}var JL=c(N(),1),eM=c(A(),1),B9=c(F(),1);var QL=c(C(),1);function mke({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let[s,a]=(0,eM.useState)(!1),l=t.isDisabled({item:e,field:t}),u=(0,eM.useCallback)(()=>{a(d=>!d)},[]);return(0,QL.jsx)(_c,{data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,type:s?"text":"password",suffix:(0,QL.jsx)(JL.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,QL.jsx)(JL.Button,{icon:s?ba:Ep,onClick:u,size:"small",label:s?(0,B9.__)("Hide password"):(0,B9.__)("Show password"),disabled:l,accessibleWhenDisabled:!0})})})}function tM(e){return Array.isArray(e.elements)&&e.elements.length>0||typeof e.getElements=="function"}var hke=c(C(),1),pke={adaptiveSelect:Vve,array:uke,checkbox:Pve,color:fke,combobox:LL,datetime:Lve,date:Nve,email:Hve,telephone:Uve,url:Gve,integer:Kve,number:qve,password:mke,radio:Xve,select:FL,text:Jve,toggle:rke,textarea:ake,toggleGroup:cke};function Q6e(e){return e&&typeof e=="object"&&typeof e.control=="string"}function J6e(e){let{control:t,...o}=e,r=oM(t);return r===null?null:function(i){return(0,hke.jsx)(r,{...i,config:o})}}function gke(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?oM(e.Edit):Q6e(e.Edit)?J6e(e.Edit):tM(e)&&e.type!=="array"?oM("adaptiveSelect"):t===null?null:oM(t)}function oM(e){return Object.keys(pke).includes(e)?pke[e]:null}function eje(e,t,o){if(e.filterBy===!1)return!1;let r=e.filterBy?.operators?.filter(n=>o.includes(n))??t;return r.length===0?!1:{isPrimary:!!e.filterBy?.isPrimary,operators:r}}var bke=eje;var tje=e=>({item:t})=>{let o=e.split("."),r=t;for(let n of o)r.hasOwnProperty(n)?r=r[n]:r=void 0;return r},yke=tje;var oje=e=>({value:t})=>{let o=e.split("."),r={},n=r;for(let i of o.slice(0,-1))n[i]={},n=n[i];return n[o.at(-1)]=t,r},vke=oje;var Ske=c(F(),1);function rM({item:e,field:t}){let{elements:o,isLoading:r}=Ci({elements:t.elements,getElements:t.getElements}),n=t.getValue({item:e});return r||o.length===0?n:o?.find(i=>i.value===n)?.label||t.getValue({item:e})}var kke=c(C(),1);function Fo({item:e,field:t}){return t.hasElements?(0,kke.jsx)(rM,{item:e,field:t}):t.getValueFormatted({item:e,field:t})}var xc=(e,t,o)=>o==="asc"?e.localeCompare(t):t.localeCompare(e);function zo(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)}function wc(e,t){if(typeof t.isValid.minLength?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:String(o).length>=t.isValid.minLength.constraint}function Cc(e,t){if(typeof t.isValid.maxLength?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:String(o).length<=t.isValid.maxLength.constraint}function Ec(e,t){if(t.isValid.pattern?.constraint===void 0)return!0;try{let o=new RegExp(t.isValid.pattern.constraint),r=t.getValue({item:e});return[void 0,"",null].includes(r)?!0:o.test(String(r))}catch{return!1}}function Jt(e,t){let r=(t.elements??[]).map(i=>i.value);if(r.length===0)return!0;let n=t.getValue({item:e});return[].concat(n).every(i=>r.includes(i))}function rje({item:e,field:t}){return t.getValue({item:e})}var qn=rje;var nje=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function ije(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!nje.test(o)?(0,Ske.__)("Value must be a valid email address."):null}var _ke={type:"email",render:Fo,Edit:"email",sort:xc,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[go,bo],validOperators:[To,Bo,yc,vc,kc,go,bo,hn,gn],format:{},getValueFormatted:qn,validate:{required:zo,pattern:Ec,minLength:wc,maxLength:Cc,elements:Jt,custom:ije}};var xke=c(F(),1);var Mk=(e,t,o)=>o==="asc"?e-t:t-e;function nM(e,t){if(typeof t.isValid.min?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:Number(o)>=t.isValid.min.constraint}function iM(e,t){if(typeof t.isValid.max?.constraint!="number")return!1;let o=t.getValue({item:e});return[void 0,"",null].includes(o)?!0:Number(o)<=t.isValid.max.constraint}var wke={separatorThousand:","};function sje({item:e,field:t}){let o=t.getValue({item:e});if(o==null)return"";if(o=Number(o),!Number.isFinite(o))return String(o);let r;t.type!=="integer"?r=wke:r=t.format;let{separatorThousand:n}=r,i=Math.trunc(o);return n?String(i).replace(/\B(?=(\d{3})+(?!\d))/g,n):String(i)}function aje(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Number.isInteger(o)?(0,xke.__)("Value must be an integer."):null}var Cke={type:"integer",render:Fo,Edit:"integer",sort:Mk,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[To,Bo,Am,Lm,Mm,Nm,$n],validOperators:[To,Bo,Am,Lm,Mm,Nm,$n,go,bo,hn,gn],format:wke,getValueFormatted:sje,validate:{required:zo,min:nM,max:iM,elements:Jt,custom:aje}};var Eke=c(F(),1);var Tke={separatorThousand:",",separatorDecimal:".",decimals:2};function lje({item:e,field:t}){let o=t.getValue({item:e});if(o==null)return"";if(o=Number(o),!Number.isFinite(o))return String(o);let r;t.type!=="number"?r=Tke:r=t.format;let{separatorThousand:n,separatorDecimal:i,decimals:s}=r,a=o.toFixed(s),[l,u]=a.split("."),d=n?l.replace(/\B(?=(\d{3})+(?!\d))/g,n):l;return s===0?d:d+i+u}function cje(e){return e===""||e===void 0||e===null}function uje(e,t){let o=t.getValue({item:e});return!cje(o)&&!Number.isFinite(o)?(0,Eke.__)("Value must be a number."):null}var Bke={type:"number",render:Fo,Edit:"number",sort:Mk,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[To,Bo,Am,Lm,Mm,Nm,$n],validOperators:[To,Bo,Am,Lm,Mm,Nm,$n,go,bo,hn,gn],format:Tke,getValueFormatted:lje,validate:{required:zo,min:nM,max:iM,elements:Jt,custom:uje}};var Rke={type:"text",render:Fo,Edit:"text",sort:xc,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[go,bo],validOperators:[To,Bo,yc,vc,kc,go,bo,hn,gn],format:{},getValueFormatted:qn,validate:{required:zo,pattern:Ec,minLength:wc,maxLength:Cc,elements:Jt}};var Cg=c(nc(),1);var Ike=c(nc(),1);function Pke(e){if(!e||!ed(new Date(e)))return null;let t=(0,Ike.getDate)(e);return t&&ed(t)?t:null}function Oke(e,t,o){let r=t.isValid[o]?.constraint;if(typeof r!="string")return!1;let n=t.getValue({item:e}),i=Array.isArray(n)?n[o==="min"?0:n.length-1]:n;if(i==null||i==="")return!0;let s=Pke(r),a=Pke(String(i));return!!s&&!!a&&(o==="min"?a.getTime()>=s.getTime():a.getTime()<=s.getTime())}function sM(e,t){return Oke(e,t,"min")}function aM(e,t){return Oke(e,t,"max")}var Ake={datetime:(0,Cg.getSettings)().formats.datetime,weekStartsOn:(0,Cg.getSettings)().l10n.startOfWeek};function dje({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="datetime"?r=Ake:r=t.format,(0,Cg.dateI18n)(r.datetime,(0,Cg.getDate)(o))}var fje=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},Lke={type:"datetime",render:Fo,Edit:"datetime",sort:fje,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[jm,Hm,Dm,Vm,Fm,zm,Kn,wi],validOperators:[jm,Hm,Dm,Vm,Fm,zm,Kn,wi],format:Ake,getValueFormatted:dje,validate:{required:zo,elements:Jt,min:sM,max:aM}};var Eg=c(nc(),1);var Mke={date:(0,Eg.getSettings)().formats.date,weekStartsOn:(0,Eg.getSettings)().l10n.startOfWeek};function mje({item:e,field:t}){let o=t.getValue({item:e});if(["",void 0,null].includes(o))return"";let r;return t.type!=="date"?r=Mke:r=t.format,(0,Eg.dateI18n)(r.date,(0,Eg.getDate)(o))}var pje=(e,t,o)=>{let r=new Date(e).getTime(),n=new Date(t).getTime();return o==="asc"?r-n:n-r},Nke={type:"date",render:Fo,Edit:"date",sort:pje,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[jm,Hm,Dm,Vm,Fm,zm,Kn,wi,$n],validOperators:[jm,Hm,Dm,Vm,Fm,zm,Kn,wi,$n],format:Mke,getValueFormatted:mje,validate:{required:zo,elements:Jt,min:sM,max:aM}};var lM=c(F(),1);function Dke(e,t){return t.getValue({item:e})===!0}function hje({item:e,field:t}){let o=t.getValue({item:e});return o===!0?(0,lM.__)("True"):o===!1?(0,lM.__)("False"):""}function gje(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&![!0,!1].includes(o)?(0,lM.__)("Value must be true, false, or undefined"):null}var bje=(e,t,o)=>{let r=!!e;return r===!!t?0:o==="asc"?r?1:-1:r?-1:1},Vke={type:"boolean",render:Fo,Edit:"checkbox",sort:bje,validate:{required:Dke,elements:Jt,custom:gje},enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[To,Bo],validOperators:[To,Bo],format:{},getValueFormatted:hje};var Fke={type:"media",render:()=>null,Edit:null,sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:qn,validate:{}};var R9=c(F(),1);function zke(e,t){let o=t.getValue({item:e});return Array.isArray(o)&&o.length>0&&o.every(r=>![void 0,"",null].includes(r))}function jke({item:e,field:t}){let o=t.getValue({item:e});return(Array.isArray(o)?o:[]).join(", ")}function yje({item:e,field:t}){return jke({item:e,field:t})}function vje(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!Array.isArray(o)?(0,R9.__)("Value must be an array."):o.every(r=>typeof r=="string")?null:(0,R9.__)("Every value must be a string.")}var kje=(e,t,o)=>{let r=Array.isArray(e)?e:[],n=Array.isArray(t)?t:[];if(r.length!==n.length)return o==="asc"?r.length-n.length:n.length-r.length;let i=r.join(","),s=n.join(",");return o==="asc"?i.localeCompare(s):s.localeCompare(i)},Hke={type:"array",render:yje,Edit:"array",sort:kje,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[go,bo],validOperators:[go,bo,hn,gn],format:{},getValueFormatted:jke,validate:{required:zke,elements:Jt,custom:vje}};function Sje({item:e,field:t}){return t.getValue({item:e})?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":""}var Uke={type:"password",render:Fo,Edit:"password",sort:()=>0,enableSorting:!1,enableGlobalSearch:!1,defaultOperators:[],validOperators:[],format:{},getValueFormatted:Sje,validate:{required:zo,pattern:Ec,minLength:wc,maxLength:Cc,elements:Jt}};var Gke={type:"telephone",render:Fo,Edit:"telephone",sort:xc,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[go,bo],validOperators:[To,Bo,yc,vc,kc,go,bo,hn,gn],format:{},getValueFormatted:qn,validate:{required:zo,pattern:Ec,minLength:wc,maxLength:Cc,elements:Jt}};var Wke=c(F(),1);var Nk=c(C(),1);function _je({item:e,field:t}){if(t.hasElements)return(0,Nk.jsx)(rM,{item:e,field:t});let o=qn({item:e,field:t});return!o||!to(o).isValid()?o:(0,Nk.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nk.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"50%",backgroundColor:o,border:"1px solid #ddd",flexShrink:0}}),(0,Nk.jsx)("span",{children:o})]})}function xje(e,t){let o=t.getValue({item:e});return![void 0,"",null].includes(o)&&!to(o).isValid()?(0,Wke.__)("Value must be a valid color."):null}var wje=(e,t,o)=>{let r=to(e),n=to(t);if(!r.isValid()&&!n.isValid())return 0;if(!r.isValid())return o==="asc"?1:-1;if(!n.isValid())return o==="asc"?-1:1;let i=r.toHsl(),s=n.toHsl();return i.h!==s.h?o==="asc"?i.h-s.h:s.h-i.h:i.s!==s.s?o==="asc"?i.s-s.s:s.s-i.s:o==="asc"?i.l-s.l:s.l-i.l},$ke={type:"color",render:_je,Edit:"color",sort:wje,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[go,bo],validOperators:[To,Bo,go,bo],format:{},getValueFormatted:qn,validate:{required:zo,elements:Jt,custom:xje}};var Kke={type:"url",render:Fo,Edit:"url",sort:xc,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[go,bo],validOperators:[To,Bo,yc,vc,kc,go,bo,hn,gn],format:{},getValueFormatted:qn,validate:{required:zo,pattern:Ec,minLength:wc,maxLength:Cc,elements:Jt}};var Cje=(e,t,o)=>typeof e=="number"&&typeof t=="number"?Mk(e,t,o):xc(e,t,o),Yke={render:Fo,Edit:null,sort:Cje,enableSorting:!0,enableGlobalSearch:!1,defaultOperators:[To,Bo],validOperators:Eve(),format:{},getValueFormatted:qn,validate:{required:zo,elements:Jt}};function Eje(e){return e==="integer"||e==="number"}function Tje(e){return e==="date"||e==="datetime"}function qke(e,t,o){let r=t.validate[o];if(r&&(typeof e=="number"&&Eje(t.type)||typeof e=="string"&&Tje(t.type)))return{constraint:e,validate:r}}function Zke(e,t){let o=e.isValid,r;o?.required===!0&&t.validate.required!==void 0&&(r={constraint:!0,validate:t.validate.required});let n;(o?.elements===!0||o?.elements===void 0&&(e.elements||e.getElements))&&t.validate.elements!==void 0&&(n={constraint:!0,validate:t.validate.elements});let i=qke(o?.min,t,"min"),s=qke(o?.max,t,"max"),a=o?.minLength,l;typeof a=="number"&&t.validate.minLength!==void 0&&(l={constraint:a,validate:t.validate.minLength});let u=o?.maxLength,d;typeof u=="number"&&t.validate.maxLength!==void 0&&(d={constraint:u,validate:t.validate.maxLength});let f=o?.pattern,m;f!==void 0&&t.validate.pattern!==void 0&&(m={constraint:f,validate:t.validate.pattern});let h=o?.custom??t.validate.custom;return{required:r,elements:n,min:i,max:s,minLength:l,maxLength:d,pattern:m,custom:h}}function Xke(e){return e.validOperators.reduce((t,o)=>{let r=Cve(o);return r?.filter&&(t[o]=r.filter),t},{})}function Bje(e,t){return{...t.format,...e.format}}var Qke=Bje;function Rje(e){let t=[_ke,Cke,Bke,Rke,Lke,Nke,Vke,Fke,Hke,Uke,Gke,$ke,Kke].find(o=>o?.type===e);return t||Yke}function hw(e){return e.map(t=>{let o=Rje(t.type),r=t.getValue||yke(t.id),n=function(i,s,a){let l=r({item:i}),u=r({item:s});return t.sort?t.sort(l,u,a):o.sort(l,u,a)};return{id:t.id,label:t.label||t.id,header:t.header||t.label||t.id,description:t.description,placeholder:t.placeholder,getValue:r,setValue:t.setValue||vke(t.id),elements:t.elements,getElements:t.getElements,hasElements:tM(t),isVisible:t.isVisible,isDisabled:typeof t.isDisabled=="function"?t.isDisabled:()=>!!t.isDisabled,enableHiding:t.enableHiding??!0,readOnly:t.readOnly??!1,type:o.type,render:t.render??o.render,Edit:gke(t,o.Edit),sort:n,enableSorting:t.enableSorting??o.enableSorting,enableGlobalSearch:t.enableGlobalSearch??o.enableGlobalSearch,isValid:Zke(t,o),filterBy:bke(t,o.defaultOperators,o.validOperators),filter:Xke(o),format:Qke(t,o),getValueFormatted:t.getValueFormatted??o.getValueFormatted}})}var L9=c(A(),1);var Jke=c(A(),1),eSe=c(C(),1),P9=(0,Jke.createContext)({fields:[]});P9.displayName="DataFormContext";function tSe({fields:e,children:t}){return(0,eSe.jsx)(P9.Provider,{value:{fields:e},children:t})}var ca=P9;var yM=c(A(),1);var uM=c(A(),1),bw=c(N(),1);var gw=c(F(),1),vn={type:"regular",labelPosition:"top"},Pje=e=>typeof e=="string"?[{id:e,visibility:"when-collapsed"}]:e.map(t=>typeof t=="string"?{id:t,visibility:"when-collapsed"}:{id:t.id,visibility:t.visibility});function oSe(e){let t=vn;if(e?.type==="regular")t={type:"regular",labelPosition:e?.labelPosition??"top"};else if(e?.type==="panel"){let o=e.summary??[],r=Array.isArray(o)?o:[o],n=e?.openAs,i;typeof n=="object"&&n.type==="modal"?i={type:"modal",applyLabel:n.applyLabel?.trim()||(0,gw.__)("Apply"),cancelLabel:n.cancelLabel?.trim()||(0,gw.__)("Cancel")}:n==="modal"?i={type:"modal",applyLabel:(0,gw.__)("Apply"),cancelLabel:(0,gw.__)("Cancel")}:i={type:"dropdown"},t={type:"panel",labelPosition:e?.labelPosition??"side",openAs:i,summary:r,editVisibility:e?.editVisibility??"on-hover"}}else if(e?.type==="card")if(e.withHeader===!1)t={type:"card",withHeader:!1,isOpened:!0,summary:[],isCollapsible:!1};else{let o=e.summary??[];t={type:"card",withHeader:!0,isOpened:typeof e.isOpened=="boolean"?e.isOpened:!0,summary:Pje(o),isCollapsible:e.isCollapsible===void 0?!0:e.isCollapsible}}else e?.type==="row"?t={type:"row",alignment:e?.alignment??"center",styles:e?.styles??{}}:e?.type==="details"&&(t={type:"details",summary:e?.summary??""});return t}function rSe(e){let t=oSe(e?.layout),o=(e.fields??[]).map(r=>{if(typeof r=="string")return{id:r,layout:t};let n=r.layout?oSe(r.layout):t;return{id:r.id,layout:n,...!!r.label&&{label:r.label},...!!r.description&&{description:r.description},..."children"in r&&Array.isArray(r.children)&&{children:rSe({fields:r.children,layout:vn}).fields}}});return{layout:t,fields:o}}var cM=rSe;var yo=c(C(),1);function Ije({title:e}){return(0,yo.jsx)(Ne,{direction:"column",className:"dataforms-layouts-regular__header",gap:"lg",children:(0,yo.jsx)(Ne,{direction:"row",align:"center",children:(0,yo.jsx)(bw.__experimentalHeading,{level:2,size:13,children:e})})})}function nSe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,uM.useContext)(ca),a=t.layout,l=(0,uM.useMemo)(()=>({layout:vn,fields:t.children?t.children:[]}),[t]);if(t.children)return(0,yo.jsxs)(yo.Fragment,{children:[!r&&t.label&&(0,yo.jsx)(Ije,{title:t.label}),(0,yo.jsx)(Ti,{data:e,form:l,onChange:o,validity:i?.children})]});let u=a.labelPosition,d=s.find(f=>f.id===t.id);return!d||!d.Edit?null:u==="side"?(0,yo.jsxs)(Ne,{direction:"row",className:"dataforms-layouts-regular__field",gap:"sm",children:[(0,yo.jsx)("div",{className:U("dataforms-layouts-regular__field-label",`dataforms-layouts-regular__field-label--label-position-${u}`),children:(0,yo.jsx)(bw.BaseControl.VisualLabel,{children:d.label})}),(0,yo.jsx)("div",{className:"dataforms-layouts-regular__field-control",children:d.readOnly===!0?(0,yo.jsx)(d.render,{item:e,field:d}):(0,yo.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:!0,markWhenOptional:n,validity:i},d.id)})]}):(0,yo.jsx)("div",{className:"dataforms-layouts-regular__field",children:d.readOnly===!0?(0,yo.jsx)(yo.Fragment,{children:(0,yo.jsxs)(yo.Fragment,{children:[!r&&u!=="none"&&(0,yo.jsx)(bw.BaseControl.VisualLabel,{children:d.label}),(0,yo.jsx)(d.render,{item:e,field:d})]})}):(0,yo.jsx)(d.Edit,{data:e,field:d,onChange:o,hideLabelFromVision:u==="none"?!0:r,markWhenOptional:n,validity:i})})}var O9=c(jI(),1),Tg=c(N(),1),gl=c(A(),1),pM=c(oe(),1);var dM=c(N(),1),Dk=c(F(),1);var uSe=c(oe(),1);var dSe=c(A(),1);function Oje(e,t){return U("dataforms-layouts-panel__field-label",`dataforms-layouts-panel__field-label--label-position-${e}`,{"has-error":t})}var iSe=Oje;var sSe=c(N(),1);var Km=c(C(),1);function Aje(e,t,o){return e?(0,Km.jsxs)(lt.Root,{children:[(0,Km.jsx)(lt.Trigger,{render:(0,Km.jsxs)("span",{className:"dataforms-layouts-panel__field-label-error-content",children:[(0,Km.jsx)(sSe.Icon,{icon:_p,size:16}),(0,Km.jsxs)(ct,{children:[t,": "]}),o]})}),(0,Km.jsx)(lt.Popup,{children:t})]}):o}var aSe=Aje;function lSe(e){if(!e)return;let t=Object.keys(e).filter(o=>o!=="children");for(let o of t){let r=e[o];if(r!==void 0&&r.type==="invalid")return r.message?r.message:o==="required"?"A required field is empty":"Unidentified validation error"}if(e.children)for(let o of Object.values(e.children)){let r=lSe(o);if(r)return r}}var cSe=lSe;var Zn=c(C(),1);function yw({data:e,field:t,fieldLabel:o,summaryFields:r,validity:n,touched:i,disabled:s,onClick:a,"aria-expanded":l}){let{labelPosition:u,editVisibility:d}=t.layout,f=cSe(n),m=i&&!!f,h=iSe(u,m),p=aSe(m,f,o),g=U("dataforms-layouts-panel__field-trigger",`dataforms-layouts-panel__field-trigger--label-${u}`,{"is-disabled":s,"dataforms-layouts-panel__field-trigger--edit-always":d==="always"}),b=(0,uSe.useInstanceId)(yw,"dataforms-layouts-panel__field-control"),v=m?(0,Dk.sprintf)((0,Dk._x)("Edit %s (has errors)","field"),o||""):(0,Dk.sprintf)((0,Dk._x)("Edit %s","field"),o||""),y=(0,dSe.useRef)(null);return(0,Zn.jsxs)("div",{ref:y,className:g,onClick:s?void 0:()=>{let _=y.current?.ownerDocument.defaultView?.getSelection();_&&_.toString().length>0||a()},onKeyDown:s?void 0:_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),a())},children:[u!=="none"&&(0,Zn.jsx)("span",{className:h,children:p}),u==="none"&&m&&(0,Zn.jsxs)(lt.Root,{children:[(0,Zn.jsx)(lt.Trigger,{render:(0,Zn.jsx)("span",{className:"dataforms-layouts-panel__field-label-error-content",role:"img","aria-label":f,children:(0,Zn.jsx)(dM.Icon,{icon:_p,size:16})})}),(0,Zn.jsx)(lt.Popup,{children:f})]}),(0,Zn.jsx)("span",{id:`${b}`,className:"dataforms-layouts-panel__field-control",children:r.length>1?(0,Zn.jsx)("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"2px"},children:r.map(_=>(0,Zn.jsx)("span",{style:{width:"100%"},children:(0,Zn.jsx)(_.render,{item:e,field:_})},_.id))}):r.map(_=>(0,Zn.jsx)(_.render,{item:e,field:_},_.id))}),!s&&(0,Zn.jsx)(dM.Button,{className:"dataforms-layouts-panel__field-trigger-icon",label:v,icon:Cp,size:"small","aria-expanded":l,"aria-haspopup":"dialog","aria-describedby":`${b}`})]})}var fSe=c(jI(),1),I9=c(fp(),1),Tc=c(A(),1),Xn=c(F(),1);function mSe(e){return e?Object.values(e).every(t=>Object.entries(t).every(([o,r])=>o==="children"&&r&&typeof r=="object"?mSe(r):r.type!=="invalid"&&r.type!=="validating")):!0}function Lje(e,t){let o=cM(e);if(o.fields.length===0)return[];let r=new Map;t.forEach(s=>{r.set(s.id,s)});function n(s){if("children"in s&&Array.isArray(s.children)){let u=s.children.map(n).filter(f=>f!==null);if(u.length===0)return null;let d=r.get(s.id);if(d){let[f]=hw([d]);return{id:s.id,children:u,field:f}}return{id:s.id,children:u}}let a=r.get(s.id);if(!a)return null;let[l]=hw([a]);return{id:s.id,children:[],field:l}}return o.fields.map(n).filter(s=>s!==null)}function Vk(e,t,o){if(e||(e={}),o.length===0)return e;let r={...e},n=r;for(let s=0;s<o.length-1;s++){let a=o[s];n[a]||(n[a]={}),n[a]={...n[a]},n=n[a]}let i=o[o.length-1];return n[i]={...n[i]||{},...t},r}function pSe(e,t,o){if(!e||t.length===0)return e;let r={...e},n=r;for(let a=0;a<t.length-1;a++){let l=t[a];if(!n[l])return e;n[l]={...n[l]},n=n[l]}let i=t[t.length-1];if(!n[i])return e;let s={...n[i]};if(delete s[o],Object.keys(s).length===0?delete n[i]:n[i]=s,Object.keys(r).length!==0)return r}function Mje(e,t,o){let{elementsCounterRef:r,setFormValidity:n,path:i,item:s}=o,a=(r.current[t.id]||0)+1;r.current[t.id]=a,e.then(l=>{if(a===r.current[t.id]){if(!Array.isArray(l)){n(u=>Vk(u,{elements:{type:"invalid",message:(0,Xn.__)("Could not validate elements.")}},[...i,t.id]));return}t.field?.isValid.elements&&!t.field.isValid.elements.validate(s,{...t.field,elements:l})?n(u=>Vk(u,{elements:{type:"invalid",message:(0,Xn.__)("Value must be one of the elements.")}},[...i,t.id])):n(u=>pSe(u,[...i,t.id],"elements"))}}).catch(l=>{if(a!==r.current[t.id])return;let u;l instanceof Error?u=l.message:u=String(l)||(0,Xn.__)("Unknown error when running elements validation asynchronously."),n(d=>Vk(d,{elements:{type:"invalid",message:u}},[...i,t.id]))})}function Nje(e,t,o){let{customCounterRef:r,setFormValidity:n,path:i}=o,s=(r.current[t.id]||0)+1;r.current[t.id]=s,e.then(a=>{if(s===r.current[t.id]){if(a===null){n(l=>pSe(l,[...i,t.id],"custom"));return}if(typeof a=="string"){n(l=>Vk(l,{custom:{type:"invalid",message:a}},[...i,t.id]));return}n(l=>Vk(l,{custom:{type:"invalid",message:(0,Xn.__)("Validation could not be processed.")}},[...i,t.id]))}}).catch(a=>{if(s!==r.current[t.id])return;let l;a instanceof Error?l=a.message:l=String(a)||(0,Xn.__)("Unknown error when running custom validation asynchronously."),n(u=>Vk(u,{custom:{type:"invalid",message:l}},[...i,t.id]))})}function hSe(e,t,o){if(t.field?.isValid.required&&!t.field.isValid.required.validate(e,t.field))return{required:{type:"invalid"}};if(t.field?.isValid.pattern&&!t.field.isValid.pattern.validate(e,t.field))return{pattern:{type:"invalid",message:(0,Xn.__)("Value does not match the required pattern.")}};if(t.field?.isValid.min&&!t.field.isValid.min.validate(e,t.field))return{min:{type:"invalid",message:(0,Xn.__)("Value is below the minimum.")}};if(t.field?.isValid.max&&!t.field.isValid.max.validate(e,t.field))return{max:{type:"invalid",message:(0,Xn.__)("Value is above the maximum.")}};if(t.field?.isValid.minLength&&!t.field.isValid.minLength.validate(e,t.field))return{minLength:{type:"invalid",message:(0,Xn.__)("Value is too short.")}};if(t.field?.isValid.maxLength&&!t.field.isValid.maxLength.validate(e,t.field))return{maxLength:{type:"invalid",message:(0,Xn.__)("Value is too long.")}};if(t.field?.isValid.elements&&t.field.hasElements&&!t.field.getElements&&Array.isArray(t.field.elements)&&!t.field.isValid.elements.validate(e,t.field))return{elements:{type:"invalid",message:(0,Xn.__)("Value must be one of the elements.")}};let r;if(t.field&&t.field.isValid.custom)try{let i=t.field.getValue({item:e});r=t.field.isValid.custom((0,fSe.default)(e,t.field.setValue({item:e,value:i})),t.field)}catch(i){let s;return i instanceof Error?s=i.message:s=String(i)||(0,Xn.__)("Unknown error when running custom validation."),{custom:{type:"invalid",message:s}}}if(typeof r=="string")return{custom:{type:"invalid",message:r}};let n={};if(t.field&&t.field.isValid.elements&&t.field.hasElements&&typeof t.field.getElements=="function"&&(Mje(t.field.getElements(),t,o),n.elements={type:"validating",message:(0,Xn.__)("Validating\u2026")}),r instanceof Promise&&(Nje(r,t,o),n.custom={type:"validating",message:(0,Xn.__)("Validating\u2026")}),Object.keys(n).length>0)return n;if(t.children.length>0){let i={};t.children.forEach(a=>{i[a.id]=hSe(e,a,{...o,path:[...o.path,t.id,"children"]})});let s={};return Object.entries(i).forEach(([a,l])=>{l!==void 0&&(s[a]=l)}),Object.keys(s).length===0?void 0:{children:s}}}function gSe(e,t){let o=e?.field?.getValue({item:t});if(e.children.length===0)return o;let r=e.children.map(n=>gSe(n,t));return r?{value:o,children:r}:o}function Dje(e,t,o){let[r,n]=(0,Tc.useState)(),i=(0,Tc.useRef)({}),s=(0,Tc.useRef)({}),a=(0,Tc.useRef)({}),l=(0,Tc.useCallback)(()=>{let u={customCounterRef:i,elementsCounterRef:s,setFormValidity:n,path:[],item:e},d=Lje(o,t);if(d.length===0){n(void 0);return}let f={},m=[];d.forEach(h=>{let p=gSe(h,e);if(a.current.hasOwnProperty(h.id)&&(0,I9.default)(a.current[h.id],p)){m.push(h.id);return}a.current[h.id]=p;let g=hSe(e,h,u);g!==void 0&&(f[h.id]=g)}),n(h=>{let p={...h,...f},g=[...m,...Object.keys(f)];return Object.keys(p).forEach(v=>{p&&!g.includes(v)&&delete p[v]}),Object.keys(p).length===0&&(p=void 0),(0,I9.default)(h,p)?h:p})},[e,t,o]);return(0,Tc.useEffect)(()=>{l()},[l]),{validity:r,isValid:mSe(r)}}var bSe=Dje;var ySe=c(A(),1);function Ym(e,t){(0,ySe.useEffect)(()=>{t&&e.current&&e.current.querySelectorAll("input, textarea, select").forEach(r=>{r.reportValidity()})},[t,e])}var vSe=c(A(),1);function Vje(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.id):[]}var fM=(e,t)=>Array.isArray(e)&&e.length>0?Vje(e).map(r=>t.find(n=>n.id===r)).filter(r=>r!==void 0):[];var Fje=(e,t)=>{let o=t.find(r=>r.id===e.id);return o||t.find(r=>{if(e.children){let n=e.children.filter(i=>!i.children);return n.length===0?!1:r.id===n[0].id}return r.id===e.id})};function zje(e){let{fields:t}=(0,vSe.useContext)(ca),o=e.layout,r=fM(o.summary,t),n=Fje(e,t),i=e.children?e.label:n?.label;return r.length===0?{summaryFields:n?[n]:[],fieldDefinition:n,fieldLabel:i}:{summaryFields:r,fieldDefinition:n,fieldLabel:i}}var mM=zje;var Qn=c(C(),1);function jje({data:e,field:t,onChange:o,fieldLabel:r,onClose:n,touched:i}){let{openAs:s}=t.layout,{applyLabel:a,cancelLabel:l}=s,{fields:u}=(0,gl.useContext)(ca),[d,f]=(0,gl.useState)({}),m=(0,gl.useMemo)(()=>(0,O9.default)(e,d,{arrayMerge:(_,x)=>x}),[e,d]),h=(0,gl.useMemo)(()=>({layout:vn,fields:t.children?t.children:[{id:t.id,layout:vn}]}),[t]),p=u.map(_=>({..._,Edit:_.Edit===null?void 0:_.Edit,isValid:{required:_.isValid.required?.constraint,elements:_.isValid.elements?.constraint,min:_.isValid.min?.constraint,max:_.isValid.max?.constraint,pattern:_.isValid.pattern?.constraint,minLength:_.isValid.minLength?.constraint,maxLength:_.isValid.maxLength?.constraint}})),{validity:g}=bSe(m,p,h),b=()=>{o(d),n()},v=_=>{f(x=>(0,O9.default)(x,_,{arrayMerge:(E,T)=>T}))},y=(0,pM.useFocusOnMount)("firstInputElement"),k=(0,gl.useRef)(null),S=(0,pM.useMergeRefs)([y,k]);return Ym(k,i),(0,Qn.jsxs)(Tg.Modal,{className:"dataforms-layouts-panel__modal",onRequestClose:n,isFullScreen:!1,title:r,size:"medium",children:[(0,Qn.jsx)("div",{ref:S,children:(0,Qn.jsx)(Ti,{data:m,form:h,onChange:v,validity:g,children:(_,x,E,T)=>(0,Qn.jsx)(_,{data:m,field:x,onChange:v,hideLabelFromVision:h.fields.length<2,markWhenOptional:T,validity:E},x.id)})}),(0,Qn.jsxs)(Ne,{direction:"row",className:"dataforms-layouts-panel__modal-footer",gap:"md",children:[(0,Qn.jsx)(Tg.__experimentalSpacer,{style:{flex:1}}),(0,Qn.jsx)(Tg.Button,{variant:"tertiary",onClick:n,__next40pxDefaultSize:!0,children:l}),(0,Qn.jsx)(Tg.Button,{variant:"primary",onClick:b,__next40pxDefaultSize:!0,children:a})]})]})}function Hje({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,gl.useState)(!1),[s,a]=(0,gl.useState)(!1),{fieldDefinition:l,fieldLabel:u,summaryFields:d}=mM(t);if(!l)return null;let f=()=>{a(!1),i(!0)};return(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsx)(yw,{data:e,field:t,fieldLabel:u,summaryFields:d,validity:r,touched:n,disabled:l.readOnly===!0,onClick:()=>a(!0),"aria-expanded":s}),s&&(0,Qn.jsx)(jje,{data:e,field:t,onChange:o,fieldLabel:u??"",onClose:f,touched:n})]})}var kSe=Hje;var qm=c(N(),1),SSe=c(F(),1),nd=c(A(),1);var _Se=c(oe(),1);var kn=c(C(),1);function Uje({title:e,onClose:t}){return(0,kn.jsx)(Ne,{direction:"column",className:"dataforms-layouts-panel__dropdown-header",gap:"lg",children:(0,kn.jsxs)(Ne,{direction:"row",gap:"sm",align:"center",children:[e&&(0,kn.jsx)(qm.__experimentalHeading,{level:2,size:13,children:e}),(0,kn.jsx)(qm.__experimentalSpacer,{style:{flex:1}}),t&&(0,kn.jsx)(qm.Button,{label:(0,SSe.__)("Close"),icon:gp,onClick:t,size:"small"})]})})}function Gje({touched:e,children:t}){let o=(0,nd.useRef)(null);return Ym(o,e),(0,kn.jsx)("div",{ref:o,children:t})}function Wje({data:e,field:t,onChange:o,validity:r}){let[n,i]=(0,nd.useState)(!1),[s,a]=(0,nd.useState)(null),l=(0,nd.useMemo)(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]),[u,d]=(0,_Se.__experimentalUseDialog)({focusOnMount:"firstInputElement"}),f=(0,nd.useMemo)(()=>({layout:vn,fields:t.children?t.children:[{id:t.id,layout:vn}]}),[t]),m=(0,nd.useMemo)(()=>{if(r!==void 0)return t.children?r?.children:{[t.id]:r}},[r,t]),{fieldDefinition:h,fieldLabel:p,summaryFields:g}=mM(t);return h?(0,kn.jsx)("div",{ref:a,className:"dataforms-layouts-panel__field-dropdown-anchor",children:(0,kn.jsx)(qm.Dropdown,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:l,focusOnMount:!1,onToggle:b=>{b||i(!0)},renderToggle:({isOpen:b,onToggle:v})=>(0,kn.jsx)(yw,{data:e,field:t,fieldLabel:p,summaryFields:g,validity:r,touched:n,disabled:h.readOnly===!0,onClick:v,"aria-expanded":b}),renderContent:({onClose:b})=>(0,kn.jsx)(Gje,{touched:n,children:(0,kn.jsxs)("div",{ref:u,...d,children:[(0,kn.jsx)(Uje,{title:p,onClose:b}),(0,kn.jsx)(Ti,{data:e,form:f,onChange:o,validity:m,children:(v,y,k,S)=>(0,kn.jsx)(v,{data:e,field:y,onChange:o,hideLabelFromVision:(f?.fields??[]).length<2,markWhenOptional:S,validity:k},y.id)})]})})})}):null}var xSe=Wje;var A9=c(C(),1);function wSe({data:e,field:t,onChange:o,validity:r}){return t.layout.openAs.type==="modal"?(0,A9.jsx)(kSe,{data:e,field:t,onChange:o,validity:r}):(0,A9.jsx)(xSe,{data:e,field:t,onChange:o,validity:r})}var Bi=c(A(),1);var hM=c(F(),1),CSe=c(C(),1);function ESe(e){if(!e)return 0;let t=0,o=Object.keys(e).filter(r=>r!=="children");for(let r of o)e[r]?.type==="invalid"&&t++;if(e.children)for(let r of Object.values(e.children))t+=ESe(r);return t}function gM({validity:e}){let t=ESe(e);return t===0?null:(0,CSe.jsx)(N3,{intent:"high",children:(0,hM.sprintf)((0,hM._n)("%d field needs attention","%d fields need attention",t),t)})}var jo=c(C(),1);function $je(e,t,o){if(!t||Array.isArray(t)&&t.length===0)return!1;let n=(Array.isArray(t)?t:[t]).find(i=>typeof i=="string"?i===e.id:typeof i=="object"&&"id"in i?i.id===e.id:!1);return n?typeof n=="string"?!0:typeof n=="object"&&"visibility"in n?n.visibility==="always"||n.visibility==="when-collapsed"&&!o:!0:!1}function Kje({data:e,fields:t,label:o,layout:r,isOpen:n,touched:i,validity:s}){let l=fM(r.summary,t).filter(f=>$je(f,r.summary,n)),u=i&&r.isCollapsible,d=l.length>0&&r.withHeader;return(0,jo.jsxs)(Ne,{align:"center",justify:"space-between",className:"dataforms-layouts-card__field-header-content",children:[(0,jo.jsx)(Vl.Title,{children:o}),(u||d)&&(0,jo.jsxs)(ah.HeaderDescription,{className:"dataforms-layouts-card__field-header-content-description",children:[u&&(0,jo.jsx)(gM,{validity:s}),d&&(0,jo.jsx)("div",{className:"dataforms-layouts-card__field-summary",children:l.map(f=>(0,jo.jsx)(f.render,{item:e,field:f},f.id))})]})]})}function Yje({data:e,field:t,form:o,onChange:r,hideLabelFromVision:n,markWhenOptional:i,validity:s,withHeader:a}){if(t.children)return(0,jo.jsxs)(jo.Fragment,{children:[t.description&&(0,jo.jsx)("div",{className:"dataforms-layouts-card__field-description",children:t.description}),(0,jo.jsx)(Ti,{data:e,form:o,onChange:r,validity:s?.children})]});let l=Bg("regular")?.component;return l?(0,jo.jsx)(l,{data:e,field:t,onChange:r,hideLabelFromVision:n||a,markWhenOptional:i,validity:s}):null}function TSe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{fields:s}=(0,Bi.useContext)(ca),a=t.layout,l=(0,Bi.useRef)(null),u=(0,Bi.useMemo)(()=>({layout:vn,fields:t.children??[]}),[t]),{isOpened:d,isCollapsible:f}=a,[m,h]=(0,Bi.useState)(d),[p,g]=(0,Bi.useState)(!1);(0,Bi.useEffect)(()=>{h(d)},[d]);let b=(0,Bi.useCallback)(x=>{x||g(!0),h(x)},[]),v=(0,Bi.useCallback)(()=>{g(!0)},[]);Ym(l,(f?m:!0)&&p);let y=t.label,k;if(t.children)k=!!y&&a.withHeader;else{let x=s.find(E=>E.id===t.id);if(!x||!x.Edit)return null;y=x.label,k=!!y&&a.withHeader}let S=(0,jo.jsx)(Yje,{data:e,field:t,form:u,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i,withHeader:k}),_=(0,jo.jsx)(Kje,{data:e,fields:s,label:y,layout:a,isOpen:f?!!m:!0,touched:p,validity:i});return k&&f?(0,jo.jsxs)(ah.Root,{className:"dataforms-layouts-card__field",open:m,onOpenChange:b,children:[(0,jo.jsx)(ah.Header,{children:_}),(0,jo.jsx)(ah.Content,{ref:l,onBlur:v,children:S})]}):(0,jo.jsxs)(Vl.Root,{className:"dataforms-layouts-card__field",children:[k&&(0,jo.jsx)(Vl.Header,{children:_}),(0,jo.jsx)(Vl.Content,{ref:l,onBlur:v,children:S})]})}var BSe=c(N(),1);var Vr=c(C(),1);function qje({title:e}){return(0,Vr.jsx)(Ne,{direction:"column",className:"dataforms-layouts-row__header",gap:"lg",children:(0,Vr.jsx)(Ne,{direction:"row",align:"center",children:(0,Vr.jsx)(BSe.__experimentalHeading,{level:2,size:13,children:e})})})}var Zje=({children:e})=>(0,Vr.jsx)(Vr.Fragment,{children:e});function RSe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let s=t.layout;if(t.children){let l={layout:vn,fields:t.children};return(0,Vr.jsxs)("div",{className:"dataforms-layouts-row__field",children:[!r&&t.label&&(0,Vr.jsx)(qje,{title:t.label}),(0,Vr.jsx)(Ne,{direction:"row",align:s.alignment,gap:"lg",children:(0,Vr.jsx)(Ti,{data:e,form:l,onChange:o,validity:i?.children,as:Zje,children:(u,d,f)=>(0,Vr.jsx)("div",{className:"dataforms-layouts-row__field-control",style:s.styles[d.id],children:(0,Vr.jsx)(u,{data:e,field:d,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:f})},d.id)})})]})}let a=Bg("regular")?.component;return a?(0,Vr.jsx)(Vr.Fragment,{children:(0,Vr.jsx)("div",{className:"dataforms-layouts-row__field-control",children:(0,Vr.jsx)(a,{data:e,field:t,onChange:o,markWhenOptional:n,validity:i})})}):null}var Ri=c(A(),1),PSe=c(F(),1);var id=c(C(),1);function ISe({data:e,field:t,onChange:o,validity:r}){let{fields:n}=(0,Ri.useContext)(ca),i=(0,Ri.useRef)(null),s=(0,Ri.useRef)(null),[a,l]=(0,Ri.useState)(!1),[u,d]=(0,Ri.useState)(!1),f=(0,Ri.useMemo)(()=>({layout:vn,fields:t.children??[]}),[t]);(0,Ri.useEffect)(()=>{let b=i.current;if(!b)return;let v=()=>{let y=b.open;y||l(!0),d(y)};return b.addEventListener("toggle",v),()=>{b.removeEventListener("toggle",v)}},[]),Ym(s,u&&a);let m=(0,Ri.useCallback)(()=>{l(!0)},[]);if(!t.children)return null;let h=t.layout.summary??"",p=h?n.find(b=>b.id===h):void 0,g;return p&&p.render?g=(0,id.jsx)(p.render,{item:e,field:p}):g=t.label||(0,PSe.__)("More details"),(0,id.jsxs)("details",{ref:i,className:"dataforms-layouts-details__details",children:[(0,id.jsx)("summary",{className:"dataforms-layouts-details__summary",children:(0,id.jsxs)(Ne,{direction:"row",align:"center",gap:"md",className:"dataforms-layouts-details__summary-content",children:[g,a&&(0,id.jsx)(gM,{validity:r})]})}),(0,id.jsx)("div",{ref:s,className:"dataforms-layouts-details__content",onBlur:m,children:(0,id.jsx)(Ti,{data:e,form:f,onChange:o,validity:r?.children})})]})}var Rg=c(C(),1),Xje=[{type:"regular",component:nSe,wrapper:({children:e})=>(0,Rg.jsx)(Ne,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e})},{type:"panel",component:wSe,wrapper:({children:e})=>(0,Rg.jsx)(Ne,{direction:"column",className:"dataforms-layouts__wrapper",gap:"md",children:e})},{type:"card",component:TSe,wrapper:({children:e})=>(0,Rg.jsx)(Ne,{direction:"column",className:"dataforms-layouts__wrapper",gap:"xl",children:e})},{type:"row",component:RSe,wrapper:({children:e,layout:t})=>(0,Rg.jsx)(Ne,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:(0,Rg.jsx)("div",{className:"dataforms-layouts-row__field",children:(0,Rg.jsx)(Ne,{direction:"row",gap:"lg",align:t.alignment,children:e})})})},{type:"details",component:ISe}];function Bg(e){return Xje.find(t=>t.type===e)}var bM=c(C(),1),Qje=({children:e})=>(0,bM.jsx)(Ne,{direction:"column",className:"dataforms-layouts__wrapper",gap:"lg",children:e});function Ti({data:e,form:t,onChange:o,validity:r,children:n,as:i}){let{fields:s}=(0,yM.useContext)(ca),a=(0,yM.useMemo)(()=>{let d=s.filter(m=>!!m.isValid?.required).length,f=s.length-d;return d>f},[s]);function l(d){return s.find(f=>f.id===d.id)}let u=i??Bg(t.layout.type)?.wrapper??Qje;return(0,bM.jsx)(u,{layout:t.layout,children:t.fields.map(d=>{let f=Bg(d.layout.type)?.component;if(!f)return null;let m=d.children?void 0:l(d);return m&&m.isVisible&&!m.isVisible(e)?null:n?n(f,d,r?.[d.id],a):(0,bM.jsx)(f,{data:e,field:d,onChange:o,markWhenOptional:a,validity:r?.[d.id]},d.id)})})}var M9=c(C(),1);function vw({data:e,form:t,fields:o,onChange:r,validity:n}){let i=(0,L9.useMemo)(()=>cM(t),[t]),s=(0,L9.useMemo)(()=>hw(o),[o]);return t.fields?(0,M9.jsx)(tSe,{fields:s,children:(0,M9.jsx)(Ti,{data:e,form:i,onChange:r,validity:n})}):null}var Xm=c(A(),1),KSe=c(F(),1);var zk=c(N(),1);var N9=c(F(),1);var OSe=c(oe(),1);function Fk({isControl:e}={isControl:!1}){return(0,OSe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:e?35:259}}}var vM=c(C(),1);function ASe({fields:e,visibleFields:t,onToggleField:o}){let{popoverProps:r}=Fk();return!e||e.length===0?null:(0,vM.jsx)(zk.DropdownMenu,{icon:Li,label:(0,N9.__)("Options"),popoverProps:r,toggleProps:{size:"small"},children:({onClose:n})=>(0,vM.jsx)(zk.MenuGroup,{label:(0,N9.__)("Show / Hide"),children:e.map(i=>{let s=t.includes(i.id);return(0,vM.jsx)(zk.MenuItem,{isSelected:s,onClick:()=>{o(i.id),n()},role:"menuitemcheckbox",icon:s?ys:null,children:i.label},i.id)})})})}var kM=c(N(),1),LSe=c(oe(),1),MSe=c(G(),1),sd=c(A(),1),NSe=c(Wr(),1);var bl=c(C(),1),{useRichText:Jje}=H(NSe.privateApis);function DSe({data:e,field:t,hideLabelFromVision:o,onChange:r,config:n={}}){let i=(0,MSe.useRegistry)(),s=t.getValue({item:e}),a=t.config||{},{clientId:l}=n,[u,d]=(0,sd.useState)({start:void 0,end:void 0}),[f,m]=(0,sd.useState)(!1),h=(0,sd.useRef)(),p=(0,sd.useRef)(new Set),g=(0,sd.useRef)(new Set),b=qv({allowedFormats:a?.allowedFormats,disableFormats:a?.disableFormats});function v(){h.current?.focus()}let{value:y,getValue:k,onChange:S,ref:_,formatTypes:x}=Jje({value:s,onChange(R){r(t.setValue({item:e,value:R}))},selectionStart:u.start,selectionEnd:u.end,onSelectionChange:(R,B)=>d({start:R,end:B}),__unstableIsSelected:f,preserveWhiteSpace:!!a?.preserveWhiteSpace,placeholder:a?.placeholder,__unstableDisableFormats:a?.disableFormats,allowedFormats:b,withoutInteractiveFormatting:a?.withoutInteractiveFormatting,__unstableFormatTypeHandlerContext:(0,sd.useMemo)(()=>({richTextIdentifier:t.id,blockClientId:l}),[t.id,l])}),{baseControlProps:E,controlProps:T}=(0,kM.useBaseControlProps)({hideLabelFromVision:o??t.hideLabelFromVision,label:t.label});return(0,bl.jsxs)(bl.Fragment,{children:[f&&(0,bl.jsx)(ek.Provider,{value:g,children:(0,bl.jsx)(ok.Provider,{value:p,children:(0,bl.jsx)("div",{children:(0,bl.jsx)($2,{value:y,onChange:S,onFocus:v,formatTypes:x,forwardedRef:h,isVisible:!1})})})}),(0,bl.jsx)(kM.BaseControl,{...E,children:(0,bl.jsx)("div",{className:"block-editor-content-only-controls__rich-text",role:"textbox","aria-multiline":!a?.disableLineBreaks,ref:(0,LSe.useMergeRefs)([_,U2({registry:i,getValue:k,onChange:S,formatTypes:x,selectionChange:d,isSelected:f,disableFormats:a?.disableFormats,value:y,tagName:"div",disableLineBreaks:a?.disableLineBreaks,keyboardShortcuts:g,inputEvents:p}),h]),onFocus:()=>m(!0),onBlur:()=>m(!1),contentEditable:!0,...T})})]})}var Zm=c(N(),1),VSe=c(G(),1),FSe=c(at(),1),zSe=c(A(),1),Pg=c(F(),1);var Ro=c(C(),1),e8e=e=>{window.requestAnimationFrame(()=>{let[t]=FSe.focus.tabbable.find(e?.current);t&&t.focus()})};function t8e({data:e,field:t,attachment:o,config:r}){let{allowedTypes:n=[],multiple:i=!1}=r||{};if(i)return"todo multiple";if(o?.media_type==="image"||o?.poster)return(0,Ro.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,Ro.jsx)("img",{alt:"",width:20,height:20,src:o.media_type==="image"?o.source_url:o.poster})});if(n.length===1){let a=t.getValue({item:e})?.url;if(n[0]==="image"&&a)return(0,Ro.jsx)("div",{className:"block-editor-content-only-controls__media-thumbnail",children:(0,Ro.jsx)("img",{alt:"",width:20,height:20,src:a})});let l;if(n[0]==="image"?l=gS:n[0]==="video"?l=LV:n[0]==="audio"?l=zN:l=qg,l)return(0,Ro.jsx)(Zm.Icon,{icon:l,size:20})}return(0,Ro.jsx)(Zm.Icon,{icon:qg,size:20})}function jSe({data:e,field:t,onChange:o,config:r={}}){let{popoverProps:n}=Fk({isControl:!0}),i=t.getValue({item:e}),{allowedTypes:s=[],multiple:a=!1,useFeaturedImage:l=!1}=r,u=i?.id,d=i?.url,f=(0,VSe.useSelect)(p=>{if(!u)return;let b=p(w).getSettings()[nC];if(b)return b(p,u)},[u]),m;if(s.length===1){let p=s[0];p==="image"?m=(0,Pg.__)("Image"):p==="video"?m=(0,Pg.__)("Video"):p==="application"?m=(0,Pg.__)("File"):m=(0,Pg.__)("Media")}else m=(0,Pg.__)("Media");let h=(0,zSe.useRef)();return(0,Ro.jsx)($a,{children:(0,Ro.jsxs)("div",{ref:h,className:"block-editor-content-only-controls",children:[(0,Ro.jsx)($v,{className:"block-editor-content-only-controls__media-replace-flow",allowedTypes:s,mediaId:u,mediaURL:d,multiple:a,popoverProps:n,onReset:()=>{o(t.setValue({item:e,value:{}}))},...l&&{useFeaturedImage:!!i?.featuredImage,onToggleFeaturedImage:()=>{o(t.setValue({item:e,value:{featuredImage:!i?.featuredImage}}))}},onSelect:p=>{if(p.id&&p.url){let g={...p,mediaType:p.media_type};l&&(g.featuredImage=!1),o(t.setValue({item:e,value:g}))}},renderToggle:p=>(0,Ro.jsx)(Zm.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__media",...p,children:(0,Ro.jsxs)(Zm.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"20px 1fr",className:"block-editor-content-only-controls__media-row",children:[d&&(0,Ro.jsxs)(Ro.Fragment,{children:[(0,Ro.jsx)(t8e,{attachment:f,field:t,data:e,config:r}),(0,Ro.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:f?.title?.raw&&f?.title?.raw!==""?f?.title?.raw:d})]}),!d&&(0,Ro.jsxs)(Ro.Fragment,{children:[(0,Ro.jsx)("span",{className:"block-editor-content-only-controls__media-placeholder",style:{width:"20px",height:"20px"}}),(0,Ro.jsx)("span",{className:"block-editor-content-only-controls__media-title",children:m})]})]})})}),d&&(0,Ro.jsx)(Zm.Button,{label:(0,Pg.__)("Reset"),className:"block-editor-content-only-controls__media-reset",size:"small",icon:Gr,onClick:()=>{o(t.setValue({item:e,value:{}})),e8e(h)}})]})})}var ad=c(N(),1),_M=c(A(),1),HSe=c(F(),1);var USe=c(Ai(),1);var on=c(C(),1),D9="noopener",GSe="_blank",SM="nofollow";function o8e({rel:e="",url:t="",opensInNewTab:o,nofollow:r}){let n,i=e;if(o)n=GSe,i=i?.includes(D9)?i:i+` ${D9}`;else{let s=new RegExp(`\\b${D9}\\s*`,"g");i=i?.replace(s,"").trim()}if(r)i=i?.includes(SM)?i:(i+` ${SM}`).trim();else{let s=new RegExp(`\\b${SM}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,USe.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function WSe({data:e,field:t,onChange:o}){let[r,n]=(0,_M.useState)(!1),{popoverProps:i}=Fk({isControl:!0}),s=t.getValue({item:e}),a=s?.url,l=s?.rel||"",d=s?.linkTarget===GSe,f=l===SM,m=(0,_M.useMemo)(()=>({url:a,opensInNewTab:d,nofollow:f}),[a,d,f]);return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(ad.Button,{__next40pxDefaultSize:!0,className:"block-editor-content-only-controls__link",onClick:()=>{n(!0)},children:(0,on.jsxs)(ad.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:"24px 1fr",className:"block-editor-content-only-controls__link-row",children:[a&&(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(ad.Icon,{icon:ti,size:24}),(0,on.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:a})]}),!a&&(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(ad.Icon,{icon:ti,size:24,style:{opacity:.3}}),(0,on.jsx)("span",{className:"block-editor-content-only-controls__link-title",children:(0,HSe.__)("Link")})]})]})}),r&&(0,on.jsx)(ad.Popover,{onClose:()=>{n(!1)},...i??{},children:(0,on.jsx)(ym,{value:m,onChange:h=>{let p=o8e({rel:l,...h});o(t.setValue({item:e,value:p}))},onRemove:()=>{o(t.setValue({item:e,value:{}}))}})})]})}var rn=c(C(),1),{fieldsKey:YSe,formKey:V9}=H(jk.privateApis);function F9(e,t={}){return function(r){return(0,rn.jsx)(e,{...r,config:t})}}function r8e({clientId:e,blockType:t,setAttributes:o,isMultiBlock:r=!1}){let n=Kr({clientId:e,context:"list-view"}),i=ro(e),s=t?.[YSe],a=(0,Xm.useContext)(sn),l=(0,wM.useSelect)(v=>{let y=v(w).getBlockAttributes(e);if(!y?.metadata?.bindings)return y;let{getBlockBindingsSource:k}=H(v(jk.store));return Object.entries(y.metadata.bindings).reduce((S,[_,x])=>{let E=k(x.source);if(!E)return S;let T=E.getValues({select:v,context:a,bindings:{[_]:x}});return{...S,...T}},y)},[a,e]),{selectBlock:u,toggleBlockHighlight:d}=(0,wM.useDispatch)(w),f=(0,$Se.useDebounce)(d,50),m=(0,Xm.useMemo)(()=>r?{...t?.[V9],fields:[t?.[V9]?.fields?.[0]]}:t?.[V9],[t,r]),[h,p]=(0,Xm.useState)(m),g=(0,Xm.useMemo)(()=>s?.length?s.map(v=>{let y={...v};return typeof v.Edit=="string"&&v.Edit==="rich-text"?y.Edit=F9(DSe,{clientId:e}):typeof v.Edit=="string"&&v.Edit==="link"?y.Edit=F9(WSe):typeof v.Edit=="object"&&v.Edit.control==="media"&&(y.Edit=F9(jSe,{...v.Edit})),y}):[],[s,e]);if(!s?.length)return null;let b=v=>{p(y=>y.fields?.includes(v)?{...y,fields:y.fields.filter(k=>k!==v)}:{...y,fields:[...y.fields||[],v]})};return(0,rn.jsxs)("div",{className:"block-editor-block-fields__container",onMouseEnter:r?()=>f(e,!0):void 0,onMouseLeave:()=>r?f(e,!1):void 0,onFocus:r?()=>{u(e,null)}:void 0,children:[(0,rn.jsx)("div",{className:"block-editor-block-fields__header",children:(0,rn.jsxs)(xM.__experimentalHStack,{spacing:1,children:[r&&(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)(rt,{className:"block-editor-block-fields__header-icon",icon:i?.icon}),(0,rn.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,rn.jsx)(xM.__experimentalTruncate,{numberOfLines:1,children:n})}),(0,rn.jsx)(ASe,{fields:g,visibleFields:h.fields,onToggleField:b})]}),!r&&(0,rn.jsx)("h2",{className:"block-editor-block-fields__header-title",children:(0,KSe.__)("Content")})]})}),(0,rn.jsx)(vw,{data:l,fields:g,form:h,onChange:o})]})}function n8e(e){return!!(window?.__experimentalContentOnlyInspectorFields&&(0,jk.getBlockType)(e)?.[YSe])}function i8e(e){let{blockType:t,isSelectionWithinCurrentSection:o}=(0,Xm.useContext)(Hr);return(0,rn.jsx)(Bh,{group:"content",children:(0,rn.jsx)(r8e,{...e,blockType:t,isMultiBlock:o})})}var qSe={edit:i8e,hasSupport:n8e,attributeKeys:[],supportsPatternEditing:!0};var H9=c(Ft(),1),ZSe=c(N(),1),z9=c(F(),1),kw=c(Q(),1);var j9=c(C(),1);function s8e(e){return(0,kw.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function a8e({className:e,setAttributes:t}){return Do()!=="default"?null:(0,j9.jsx)(he,{group:"advanced",children:(0,j9.jsx)(ZSe.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,z9.__)("Additional CSS class(es)"),value:e||"",onChange:r=>{t({className:r!==""?r:void 0})},help:(0,z9.__)("Separate multiple classes with spaces.")})})}var U9={edit:a8e,addSaveProps:l8e,attributeKeys:["className"],hasSupport(e){return(0,kw.hasBlockSupport)(e,"customClassName",!0)}};function l8e(e,t,o){return(0,kw.hasBlockSupport)(t,"customClassName",!0)&&o.className&&(e.className=U(e.className,o.className)),e}function c8e(e,t,o,r){if(!(0,kw.hasBlockSupport)(e.name,"customClassName",!0)||r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1)return e;if(t[o]){let n=t[o]?.attributes.className;if(n&&e.attributes.className===void 0)return{...e,attributes:{...e.attributes,className:n}}}return e}(0,H9.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",s8e);(0,H9.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",c8e);var XSe=c(Ft(),1),Sw=c(Q(),1);function u8e(e,t){return(0,Sw.hasBlockSupport)(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([(0,Sw.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,Sw.getBlockDefaultClassName)(t.name)),e}(0,XSe.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",u8e);var tU=c(A(),1),P_e=c(Ft(),1),I_e=c(G(),1);var yl=c(Q(),1),O_e=c(oe(),1),op=c(JS(),1);var X9=c(Q(),1),PM=c(A(),1),h_e=c(G(),1);var d8e=c(Q(),1);var f8e=c(C(),1),QSe="typography.lineHeight";var JSe=c(Ft(),1),CM=c(Q(),1),e_e=c(NI(),1),t_e=c(N(),1);var _w="typography.__experimentalFontFamily",{kebabCase:m8e}=H(t_e.privateApis);function p8e(e){return(0,CM.hasBlockSupport)(e,_w)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function o_e(e,t,o){if(!(0,CM.hasBlockSupport)(t,_w)||yt(t,ua,"fontFamily")||!o?.fontFamily)return e;let r=new e_e.default(e.className);r.add(`has-${m8e(o?.fontFamily)}-font-family`);let n=r.value;return e.className=n||void 0,e}function h8e({name:e,fontFamily:t}){return o_e({},e,{fontFamily:t})}var G9={useBlockProps:h8e,addSaveProps:o_e,attributeKeys:["fontFamily"],hasSupport(e){return(0,CM.hasBlockSupport)(e,_w)}};(0,JSe.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",p8e);var W9=c(Ft(),1),Hk=c(Q(),1),r_e=c(NI(),1);var g8e=c(C(),1),Ig="typography.fontSize";function b8e(e){return(0,Hk.hasBlockSupport)(e,Ig)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function n_e(e,t,o){if(!(0,Hk.hasBlockSupport)(t,Ig)||yt(t,ua,"fontSize"))return e;let r=new r_e.default(e.className);r.add(zd(o.fontSize));let n=r.value;return e.className=n||void 0,e}function y8e({name:e,fontSize:t,style:o}){let[r,n,i]=xe("typography.fontSizes","typography.fluid","layout");if(!(0,Hk.hasBlockSupport)(e,Ig)||yt(e,ua,"fontSize")||!t&&!o?.typography?.fontSize)return;let s;if(o?.typography?.fontSize&&(s={style:{fontSize:wu({size:o.typography.fontSize},{typography:{fluid:n},layout:i})}}),t&&(s={style:{fontSize:ub(r,t,o?.typography?.fontSize).size}}),!!s)return n_e(s,e,{fontSize:t})}var $9={useBlockProps:y8e,addSaveProps:n_e,attributeKeys:["fontSize","style"],hasSupport(e){return(0,Hk.hasBlockSupport)(e,Ig)}},v8e={fontSize:[["fontSize"],["style","typography","fontSize"]]};function k8e(e,t,o,r){let n=e.name,i={fontSize:(0,Hk.hasBlockSupport)(n,Ig)};return tL(i,v8e,e,t,o,r)}(0,W9.addFilter)("blocks.registerBlockType","core/font/addAttribute",b8e);(0,W9.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",k8e);var EM=c(F(),1),Uk=c(Q(),1);var K9=c(C(),1),Gk="typography.textAlign",S8e=[{icon:Cd,title:(0,EM.__)("Align text left"),align:"left"},{icon:mp,title:(0,EM.__)("Align text center"),align:"center"},{icon:Ed,title:(0,EM.__)("Align text right"),align:"right"}],i_e=["left","center","right"],_8e=[];function Y9(e){return Array.isArray(e)?i_e.filter(t=>e.includes(t)):e===!0?i_e:_8e}function x8e({style:e,name:t,setAttributes:o}){let n=na(t)?.typography?.textAlign,i=Do();if(!n||i!=="default")return null;let s=Y9((0,Uk.getBlockSupport)(t,Gk));if(!s.length)return null;let a=S8e.filter(u=>s.includes(u.align)),l=u=>{let d={...e,typography:{...e?.typography,textAlign:u}};o({style:ye(d)})};return(0,K9.jsx)(mo,{group:"block",children:(0,K9.jsx)(BE,{value:e?.typography?.textAlign,onChange:l,alignmentControls:a})})}var TM={edit:x8e,useBlockProps:w8e,addSaveProps:C8e,attributeKeys:["style"],hasSupport(e){return(0,Uk.hasBlockSupport)(e,Gk,!1)}};function w8e({name:e,style:t}){if(!t?.typography?.textAlign||!Y9((0,Uk.getBlockSupport)(e,Gk)).length||yt(e,ua,"textAlign"))return null;let r=t.typography.textAlign;return{className:U({[`has-text-align-${r}`]:r})}}function C8e(e,t,o){if(!o?.style?.typography?.textAlign)return e;let{textAlign:r}=o.style.typography,n=(0,Uk.getBlockSupport)(t,Gk);return Y9(n).includes(r)&&!yt(t,ua,"textAlign")&&(e.className=U(`has-text-align-${r}`,e.className)),e}var Z9=c(Ft(),1),Qm=c(Q(),1),Og=c(A(),1),f_e=c(G(),1),xw=c(F(),1),BM=c(N(),1),m_e=c(oe(),1);function E8e(e,t){let o=e.scrollHeight>e.clientHeight,r=0,n=2400,i=r,s=window.getComputedStyle(e),a=parseFloat(s.paddingLeft)||0,l=parseFloat(s.paddingRight)||0,u=document.createRange();u.selectNodeContents(e);let d=e,f=e.parentElement;if(f){let h=window.getComputedStyle(f);h?.display==="flex"&&(d=f,a+=parseFloat(h.paddingLeft)||0,l+=parseFloat(h.paddingRight)||0)}let m=d.clientHeight;for(;r<=n;){let h=Math.floor((r+n)/2);t(h);let g=u.getBoundingClientRect().width,b=e.scrollWidth<=d.clientWidth&&g<=d.clientWidth-a-l,v=o||e.scrollHeight<=d.clientHeight||e.scrollHeight<=m;d.clientHeight>m&&(m=d.clientHeight),b&&v?(i=h,r=h+1):n=h-1}return u.detach(),i}function s_e(e,t){if(!e)return;t(0);let o=E8e(e,t);return t(o),o}var a_e=c(A(),1),l_e=c(F(),1),c_e=c(N(),1),u_e=c(Cr(),1),q9=c(C(),1);function d_e(){let e=(0,l_e.__)("The text may be too small to read. Consider using a larger container or less text.");return(0,a_e.useEffect)(()=>{(0,u_e.speak)(e)},[e]),(0,q9.jsx)("div",{className:"block-editor-fit-text-size-warning",children:(0,q9.jsx)(c_e.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:e})})}var Pi=c(C(),1),T8e={},B8e=12,ld="typography.fitText";function R8e(e){return!(0,Qm.hasBlockSupport)(e,ld)||e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}}function P8e({fitText:e,name:t,clientId:o}){let[r,n]=(0,Og.useState)(null),i=(0,Qm.hasBlockSupport)(t,ld),s=Rt(o),{blockAttributes:a,parentId:l,blockMode:u}=(0,f_e.useSelect)(f=>{if(!o||!i||!e)return T8e;let m=f(w).getBlockMode(o);return m==="html"?{blockMode:m}:{blockAttributes:f(w).getBlockAttributes(o),parentId:f(w).getBlockRootClientId(o),blockMode:m}},[o,i,e]),d=(0,Og.useCallback)(()=>{if(!s||!i||!e)return;let f=`fit-text-${o}`,m=s.ownerDocument.getElementById(f);m||(m=s.ownerDocument.createElement("style"),m.id=f,s.ownerDocument.head.appendChild(m));let h=`#block-${o}`,g=s_e(s,b=>{b===0?m.textContent="":m.textContent=`${h} { font-size: ${b}px !important; }`});n(g)},[s,o,i,e]);return(0,Og.useEffect)(()=>{if(!e||!s||!o||!i||u==="html")return;let f=s,m=f.style.visibility,h=null,p=null,g=null;h=window.requestAnimationFrame(()=>{f.style.visibility="hidden",p=window.requestAnimationFrame(()=>{d(),g=setTimeout(()=>{f.style.visibility=m},10)})});let b;return window.ResizeObserver&&f.parentElement&&(b=new window.ResizeObserver(d),b.observe(f.parentElement),b.observe(f)),()=>{h!==null&&window.cancelAnimationFrame(h),p!==null&&window.cancelAnimationFrame(p),g!==null&&clearTimeout(g),b&&b.disconnect();let v=`fit-text-${o}`,y=f.ownerDocument.getElementById(v);y&&y.remove()}},[e,o,l,d,s,i,u]),(0,Og.useEffect)(()=>{if(e&&s&&i&&u!=="html"){let f=window.requestAnimationFrame(()=>{s&&d()});return()=>window.cancelAnimationFrame(f)}},[a,e,d,s,i,u]),{fontSize:r}}function I8e({clientId:e,fitText:t=!1,setAttributes:o,name:r,fontSize:n,style:i}){return(0,Qm.hasBlockSupport)(r,ld)?(0,Pi.jsx)(BM.__experimentalToolsPanelItem,{hasValue:()=>t,label:(0,xw.__)("Fit text"),onDeselect:()=>o({fitText:void 0}),resetAllFilter:()=>({fitText:void 0}),panelId:e,children:(0,Pi.jsx)(BM.ToggleControl,{label:(0,xw.__)("Fit text"),checked:t,onChange:()=>{let s=!t||void 0,a={fitText:s};s&&(n&&(a.fontSize=void 0),i?.typography?.fontSize&&(a.style={...i,typography:{...i?.typography,fontSize:void 0}})),o(a)},help:t?(0,xw.__)("Text will resize to fit its container."):(0,xw.__)("The text will resize to fit its container, resetting other font size settings.")})}):null}function O8e(e,t,o){if(!(0,Qm.hasBlockSupport)(t,ld))return e;let{fitText:r}=o;if(!r)return e;let n=e.className?`${e.className} has-fit-text`:"has-fit-text";return{...e,className:n}}function A8e({name:e,fitText:t}){return t&&(0,Qm.hasBlockSupport)(e,ld)?{className:"has-fit-text"}:{}}(0,Z9.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",R8e);var L8e=e=>(0,Qm.hasBlockSupport)(e,ld);function M8e({fitText:e,name:t,clientId:o,isSelected:r}){let{fontSize:n}=P8e({fitText:e,name:t,clientId:o});return r&&n&&n<B8e?(0,Pi.jsx)(he,{group:"typography",children:(0,Pi.jsx)(d_e,{})}):null}var N8e=(0,m_e.createHigherOrderComponent)(e=>function(o){let{name:r,attributes:n,clientId:i,isSelected:s,setAttributes:a}=o,{fitText:l}=n;return(0,Qm.hasBlockSupport)(r,ld)?(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)(e,{...o}),(0,Pi.jsx)(he,{group:"typography",children:(0,Pi.jsx)(I8e,{clientId:i,fitText:l,setAttributes:a,name:r,fontSize:n.fontSize,style:n.style})}),l&&(0,Pi.jsx)(M8e,{fitText:l,name:r,clientId:i,isSelected:s})]}):(0,Pi.jsx)(e,{...o})},"addFitTextControl");(0,Z9.addFilter)("editor.BlockEdit","core/fit-text/add-fit-text-control",N8e);var RM={useBlockProps:A8e,addSaveProps:O8e,attributeKeys:["fitText","fontSize","style"],hasSupport:L8e,edit:()=>null};var Q9=c(C(),1);function p_e(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.includes(o)))}var D8e="typography.__experimentalLetterSpacing",V8e="typography.__experimentalTextTransform",F8e="typography.__experimentalTextDecoration",z8e="typography.textIndent",j8e="typography.textColumns",H8e="typography.__experimentalFontStyle",U8e="typography.__experimentalFontWeight",G8e="typography.__experimentalWritingMode",ua="typography",g_e=[QSe,Ig,H8e,U8e,_w,Gk,j8e,F8e,z8e,G8e,V8e,D8e,ld];function b_e(e){let t={...p_e(e,["fontFamily"])},o=e?.typography?.fontSize,r=e?.typography?.fontFamily,n=typeof o=="string"&&o?.startsWith("var:preset|font-size|")?o.substring(21):void 0,i=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0;return t.typography={...p_e(t.typography,["fontFamily"]),fontSize:n?void 0:o},{style:ye(t),fontFamily:i,fontSize:n}}function y_e(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function W8e({children:e,resetAllFilter:t}){let o=(0,PM.useCallback)(r=>{let n=y_e(r),i=t(n);return{...r,...b_e(i)}},[t]);return(0,Q9.jsx)(he,{group:"typography",resetAllFilter:o,children:e})}function v_e({clientId:e,name:t,setAttributes:o,settings:r}){let n=Hs(),i=yA(r),{style:s,fontFamily:a,fontSize:l,fitText:u}=(0,h_e.useSelect)(p=>{if(!i)return{};let{style:g,fontFamily:b,fontSize:v,fitText:y}=p(w).getBlockAttributes(e)||{};return{style:g,fontFamily:b,fontSize:v,fitText:y}},[e,i]),d=!Ir(n),f=(0,PM.useMemo)(()=>d?Jr(s,n):y_e({style:s,fontFamily:a,fontSize:l}),[d,n,s,l,a]),m=d?p=>{o({style:hi(s,n,p)})}:p=>{let g=b_e(p);(g.fontSize||g.style?.typography?.fontSize)&&u&&(g.fitText=void 0),o(g)};if(!i)return null;let h=(0,X9.getBlockSupport)(t,[ua,"__experimentalDefaultControls"]);return(0,Q9.jsx)(vA,{as:W8e,panelId:e,settings:r,value:f,onChange:m,defaultControls:h})}var ep=c(A(),1),OM=c(G(),1),IM=c(Q(),1),w_e=c(Je(),1);var Bc=c(A(),1),k_e=c(Ix(),1);var ww=c(C(),1);function S_e({clientId:e,value:t,computeStyle:o,forceShow:r}){let n=Rt(e),[i,s]=(0,Bc.useReducer)(()=>o(n));(0,Bc.useEffect)(()=>{n&&r&&s()},[n,r]),(0,Bc.useEffect)(()=>{if(!n)return;let d=new window.MutationObserver(s);return d.observe(n,{attributes:!0,attributeFilter:["style","class"]}),()=>{d.disconnect()}},[n]);let a=(0,Bc.useRef)(t),[l,u]=(0,Bc.useState)(!1);return(0,Bc.useEffect)(()=>{if((0,k_e.isShallowEqual)(t,a.current)||r)return;u(!0),a.current=t;let d=setTimeout(()=>{u(!1)},400);return()=>{u(!1),clearTimeout(d)}},[t,r]),!l&&!r?null:(0,ww.jsx)(zs,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,ww.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})})}function Jm(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function __e({clientId:e,value:t,forceShow:o}){return(0,ww.jsx)(S_e,{clientId:e,value:t?.spacing?.margin,computeStyle:r=>{let n=Jm(r,"margin-top"),i=Jm(r,"margin-right"),s=Jm(r,"margin-bottom"),a=Jm(r,"margin-left");return{borderTopWidth:n,borderRightWidth:i,borderBottomWidth:s,borderLeftWidth:a,top:n?`-${n}`:0,right:i?`-${i}`:0,bottom:s?`-${s}`:0,left:a?`-${a}`:0}},forceShow:o})}function x_e({clientId:e,value:t,forceShow:o}){return(0,ww.jsx)(S_e,{clientId:e,value:t?.spacing?.padding,computeStyle:r=>({borderTopWidth:Jm(r,"padding-top"),borderRightWidth:Jm(r,"padding-right"),borderBottomWidth:Jm(r,"padding-bottom"),borderLeftWidth:Jm(r,"padding-left")}),forceShow:o})}var cd=c(C(),1),Rc="dimensions",Cw="spacing";function $8e(){let[e,t]=(0,ep.useState)(!1),{hideBlockInterface:o,showBlockInterface:r}=H((0,OM.useDispatch)(w));return(0,ep.useEffect)(()=>{e?o():r()},[e,r,o]),[e,t]}function K8e({children:e,resetAllFilter:t}){let o=(0,ep.useCallback)(r=>{let n=r.style,i=t(n);return{...r,style:i}},[t]);return(0,cd.jsx)(he,{group:"dimensions",resetAllFilter:o,children:e})}function C_e({clientId:e,name:t,setAttributes:o,settings:r}){let n=Hs(),i=!Ir(n),s=xA(r,n),a=(0,OM.useSelect)(g=>{if(s)return g(w).getBlockAttributes(e)?.style},[e,s]),[l,u]=$8e(),d=i?Jr(a,n):a,f=i?g=>{o({style:hi(a,n,g)})}:g=>{o({style:ye(g)})};if(!s)return null;let m=(0,IM.getBlockSupport)(t,[Rc,"__experimentalDefaultControls"]),h=(0,IM.getBlockSupport)(t,[Cw,"__experimentalDefaultControls"]),p={minHeight:!1,minWidth:!1,...m,...h};return(0,cd.jsxs)(cd.Fragment,{children:[(0,cd.jsx)(wA,{as:K8e,panelId:e,settings:r,value:d,onChange:f,defaultControls:p,styleState:n,onVisualize:i?void 0:u}),!i&&!!r?.spacing?.padding&&l==="padding"&&(0,cd.jsx)(x_e,{forceShow:l==="padding",clientId:e,value:d}),!i&&!!r?.spacing?.margin&&l==="margin"&&(0,cd.jsx)(__e,{forceShow:l==="margin",clientId:e,value:d})]})}function E_e(e,t="any"){if(ep.Platform.OS!=="web")return!1;let o=(0,IM.getBlockSupport)(e,Rc);return o===!0?!0:t==="any"?!!(o?.aspectRatio||o?.height||o?.minHeight||o?.width||o?.minWidth):!!o?.[t]}var T_e={useBlockProps:Y8e,attributeKeys:["height","minHeight","width","style"],hasSupport(e){return E_e(e)}};function Y8e({name:e,height:t,minHeight:o,style:r}){if(!E_e(e,"aspectRatio")||yt(e,Rc,"aspectRatio"))return{};let n=U({"has-aspect-ratio":!!r?.dimensions?.aspectRatio}),i={};return r?.dimensions?.aspectRatio?(i.minHeight="unset",i.height="unset"):(o||r?.dimensions?.minHeight||t||r?.dimensions?.height)&&(i.aspectRatio="unset"),{className:n,style:i}}function J9(){(0,w_e.default)("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}var q8e=c(Q(),1);function B_e(e,t,o=""){if(typeof t!="string"||!t)return Xl(e).map(i=>`${i.trim()}${o}`).join(", ");let r=Xl(e).filter(i=>i.trim()),n=Xl(t).filter(i=>i.trim());return n.length?n.map(i=>{i=i.trim();let s=i.match(/^([.#]?[-_a-zA-Z0-9]+|\[[^\]]+\])/);return s?r.map(a=>`${a.trim()}${i.slice(s[0].length)}${o}`).join(", "):r.map(a=>`${a.trim()}${o}`).join(", ")}).join(", "):r.map(i=>`${i.trim()}${o}`).join(", ")}var tp=c(C(),1),Z8e=["Top","Right","Bottom","Left"],X8e={mobile:"@media (width <= 480px)",tablet:"@media (480px < width <= 782px)"},Q8e=[...g_e,gg,Dr,Rc,bg,Cw,ow],oU=e=>Q8e.some(t=>(0,yl.hasBlockSupport)(e,t));function us(e={}){let t={};return(0,op.getCSSRules)(e).forEach(o=>{t[o.key]=o.value}),t}function J8e(e){let t=e?.border;if(!t)return;let o=!!t.style,r=!!t.color,n=!!t.width,i={};return!o&&(r||n)&&(i.style="solid"),Z8e.forEach(s=>{let a=s.toLowerCase(),l=t[a],u=!!l?.style,d=!!l?.color,f=!!l?.width;!o&&!u&&(d||f)&&(i[a]={style:"solid"})}),ye({border:ye(i)})}function eHe(e,t){let o=(0,op.compileCSS)(e,{selector:t}),r=o?o.replace(/;/g," !important;"):void 0,n=J8e(e),i=n?(0,op.compileCSS)(n,{selector:t}):void 0;return[r,i].filter(Boolean).join(`
`)}function LM(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function A_e(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=LM(n)&&LM(o[r])?A_e(o[r],n):n}),o}function AM(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:A_e(n.style,o)})}function tHe(e,t){let o=(0,yl.getBlockType)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([n,i])=>{let s=o[n];if(typeof s=="string"){AM(r,s,{[n]:i});return}if(LM(s)&&LM(i)){let a={...i};Object.entries(s).forEach(([l,u])=>{l==="root"||typeof u!="string"||!Object.hasOwn(i,l)||(AM(r,u,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&AM(r,s.root||o.root,{[n]:a});return}AM(r,o.root,{[n]:i})}),Array.from(r.values())}function rU(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=tHe(e,o).map(({selector:s,style:a})=>eHe(a,B_e(r,s,n))).filter(Boolean);return i.length?i.join(`
`):void 0}function oHe(e,t){if(!e)return e;let o={...e};return t.forEach(r=>{delete o[r]}),o}function L_e(e,t,o){let r=uL[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=rU(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function rHe(e,t,o){let r=[],i=["elements",...uL[t]??[]];return Object.entries(X8e).forEach(([s,a])=>{let l=e?.[s];if(!l)return;let u=[],d=rU(oHe(l,i),{name:t,baseSelector:o});d&&u.push(d);let f=D_e(l.elements,t,o);f&&u.push(f),u.push(...L_e(l,t,o)),u.length&&r.push(`${a}{${u.join("")}}`)}),r}function R_e(e,t){let o=Jr(e,t);if(!gu(t))return o;let r={...t,viewport:$l.viewport},n=Jr(e,r);return n&&o?HI(n,o):o||n}function nHe(e){return!oU(e)&&!(0,yl.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var M_e={[`${gg}.__experimentalSkipSerialization`]:["border"],[`${Dr}.__experimentalSkipSerialization`]:[Dr],[`${ua}.__experimentalSkipSerialization`]:[ua],[`${Rc}.__experimentalSkipSerialization`]:[Rc],[`${Cw}.__experimentalSkipSerialization`]:[Cw],[`${ow}.__experimentalSkipSerialization`]:[ow]},iHe={...M_e,[`${Rc}.aspectRatio`]:[`${Rc}.aspectRatio`],[`${bg}`]:[bg]},sHe={[`${Rc}.aspectRatio`]:!0,[`${bg}`]:!0},aHe={gradients:"gradient"};function eU(e,t,o=!1){if(!e)return e;let r=e;return o||(r=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(n=>{if(Array.isArray(n)||(n=n.split(".")),n.length>1){let[i,...s]=n;eU(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function N_e(e,t,o,r=iHe){if(!oU(t))return e;let{style:n}=o;return Object.entries(r).forEach(([i,s])=>{let a=sHe[i]||(0,yl.getBlockSupport)(t,i);a===!0&&(n=eU(n,s)),Array.isArray(a)&&a.forEach(l=>{let u=aHe[l]||l;n=eU(n,[[...s,u]])})}),e.style={...us(n),...e.style},e}function lHe({clientId:e,name:t,setAttributes:o,style:r,__unstableParentLayout:n}){let i=na(t,n),s=Do(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:u}=(0,I_e.useSelect)(p=>{let g=p(w),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=H(g);return{globalBlockStyles:g.getSettings()?.[ei]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),d=bu(l),f=(0,tU.useMemo)(()=>{if(!u||!d)return;let p=R_e(a,l),g=R_e(r,l),b;if(p&&g)b=HI(p,g);else if(g)b=g;else if(p)b=p;else return;return rU(b,{name:t,baseSelector:`[data-block="${e}"]`})},[u,d,a,r,l,e,t]);if(gi({css:f}),s!=="default")return null;let m={...i,typography:{...i.typography,textAlign:!1}},h={clientId:e,name:t,setAttributes:o,settings:m};return(0,tp.jsxs)(eie,{value:l,children:[(0,tp.jsx)(eL,{...h}),(0,tp.jsx)(xbe,{...h}),(0,tp.jsx)(v_e,{...h}),(0,tp.jsx)(vbe,{...h}),(0,tp.jsx)(C_e,{...h})]})}var MM={edit:lHe,hasSupport:oU,addSaveProps:N_e,attributeKeys:["style"],useBlockProps:dHe},cHe=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],uHe={};function D_e(e,t,o){if(!e)return;let r=[];return cHe.forEach(({elementType:n,pseudo:i,elements:s})=>{if(yt(t,Dr,n))return;let l=e?.[n];if(l){let u=$y(o,yl.__EXPERIMENTAL_ELEMENTS[n]);r.push((0,op.compileCSS)(l,{selector:u})),i&&i.forEach(d=>{l[d]&&r.push((0,op.compileCSS)(l[d],{selector:$y(o,`${yl.__EXPERIMENTAL_ELEMENTS[n]}${d}`)}))})}s&&s.forEach(u=>{e[u]&&r.push((0,op.compileCSS)(e[u],{selector:$y(o,yl.__EXPERIMENTAL_ELEMENTS[u])}))})}),r.length>0?r.join(""):void 0}function dHe({name:e,style:t}){let o=(0,O_e.useInstanceId)(uHe,"wp-elements"),r=`.${o}`,n=t?.elements,i=(0,tU.useMemo)(()=>{let s=[],a=D_e(n,e,r);return a&&s.push(a),s.push(...L_e(t,e,r)),s.push(...rHe(t,e,r)),s.length>0?s.join(""):void 0},[r,n,e,t]);return gi({css:i}),N_e({className:o},e,{style:t},M_e)}(0,P_e.addFilter)("blocks.registerBlockType","core/style/addAttribute",nHe);var V_e=c(Ft(),1),F_e=c(Q(),1),fHe=e=>(0,F_e.hasBlockSupport)(e,"__experimentalSettings",!1);function mHe(e){return fHe(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,V_e.addFilter)("blocks.registerBlockType","core/settings/addAttribute",mHe);var rp=c(Q(),1),H_e=c(oe(),1),U_e=c(Ft(),1),Ew=c(A(),1);function pHe(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(o=>{let r=to(o).toRgb();t.r.push(r.r/255),t.g.push(r.g/255),t.b.push(r.b/255),t.a.push(r.a)}),t}function z_e(e){return`${e}{filter:none}`}function j_e(e,t){return`${e}{filter:url(#${t})}`}function NM(e,t){let o=pHe(t);return`
<svg
	xmlns:xlink="http://www.w3.org/1999/xlink"
	viewBox="0 0 0 0"
	width="0"
	height="0"
	focusable="false"
	role="none"
	aria-hidden="true"
	style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
>
	<defs>
		<filter id="${e}">
			<!--
				Use sRGB instead of linearRGB so transparency looks correct.
				Use perceptual brightness to convert to grayscale.
			-->
			<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>
			<!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
			<feComponentTransfer color-interpolation-filters="sRGB">
				<feFuncR type="table" tableValues="${o.r.join(" ")}"></feFuncR>
				<feFuncG type="table" tableValues="${o.g.join(" ")}"></feFuncG>
				<feFuncB type="table" tableValues="${o.b.join(" ")}"></feFuncB>
				<feFuncA type="table" tableValues="${o.a.join(" ")}"></feFuncA>
			</feComponentTransfer>
			<!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
			<feComposite in2="SourceGraphic" operator="in"></feComposite>
		</filter>
	</defs>
</svg>`}var ud=c(C(),1),nU=[],hHe=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");yd([vd]);function iU({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=xe(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,Ew.useMemo)(()=>[...r||nU,...n||nU,...o&&i||nU],[o,r,n,i])}function G_e(e,t){if(!e)return;let o=t?.find(({slug:r})=>e===`var:preset|duotone|${r}`);return o?o.colors:void 0}function gHe(e,t){if(!e||!Array.isArray(e))return;let o=t?.find(r=>r?.colors?.every((n,i)=>n===e[i]));return o?`var:preset|duotone|${o.slug}`:void 0}function bHe({style:e,setAttributes:t,name:o}){let r=e?.color?.duotone,n=na(o),i=Do(),s=iU({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),a=iU({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[l,u]=xe("color.custom","color.customDuotone"),d=!l,f=!u||a?.length===0&&d;if(s?.length===0&&f||i!=="default")return null;let m=r==="unset"||Array.isArray(r)?r:G_e(r,s);return(0,ud.jsxs)(ud.Fragment,{children:[(0,ud.jsx)(he,{group:"filter",children:(0,ud.jsx)(LA,{value:{filter:{duotone:m}},onChange:h=>{let p={...e,color:{...h?.filter}};t({style:ye(p)})},settings:n})}),(0,ud.jsx)(mo,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,ud.jsx)(UO,{duotonePalette:s,colorPalette:a,disableCustomDuotone:f,disableCustomColors:d,value:m,onChange:h=>{let p=gHe(h,s),g={...e,color:{...e?.color,duotone:p??h}};t({style:ye(g)})},settings:n})})]})}var sU={shareWithChildBlocks:!0,edit:bHe,useBlockProps:SHe,attributeKeys:["style"],hasSupport(e){return(0,rp.hasBlockSupport)(e,"filter.duotone")}};function yHe(e){return(0,rp.hasBlockSupport)(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function vHe({clientId:e,id:t,selector:o,attribute:r}){let n=iU({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:G_e(r,n),a=typeof r=="string"&&s,l=typeof r=="string"&&!a,u=null;a?u=s:(l||i)&&(u=r);let m=o.split(",").map(g=>`.${t}${g.trim()}`).join(", "),h=Array.isArray(u)||u==="unset";Cu(h?{css:u!=="unset"?j_e(m,t):z_e(m),__unstableType:"presets"}:void 0),Cu(h?{assets:u!=="unset"?NM(t,u):"",__unstableType:"svgs"}:void 0);let p=Rt(e);(0,Ew.useEffect)(()=>{if(h&&p&&hHe){let g=p.style.display;p.style.setProperty("display","inline-block"),p.offsetHeight,p.style.setProperty("display",g)}},[h,p,u])}var kHe={};function SHe({clientId:e,name:t,style:o}){let r=(0,H_e.useInstanceId)(kHe),n=(0,Ew.useMemo)(()=>{let l=(0,rp.getBlockType)(t);if(l){if(!(0,rp.getBlockSupport)(l,"filter.duotone",!1))return null;let d=(0,rp.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(d){let f=Xi(l);return typeof d=="string"?$y(f,d):f}return Xi(l,"filter.duotone",{fallback:!0})}},[t]),i=o?.color?.duotone,s=`wp-duotone-${r}`,a=n&&i;return vHe({clientId:e,id:s,selector:n,attribute:i}),{className:a?s:""}}(0,U_e.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",yHe);var VM=c(A(),1),Tw=c(G(),1),W_e=c(oe(),1),Bw=c(Q(),1),Rw=c(F(),1);var $_e=c(Ni(),1);var DM=c(C(),1),_He={},xHe={};function wHe({blockName:e,setAttributes:t,style:o}){if(Do()!=="default")return null;let n=(0,Bw.getBlockType)(e);function i(a){let l=a?.css?.trim()?a.css:void 0;t({style:ye({...a,css:l})})}let s=(0,Rw.sprintf)((0,Rw.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value, e.g. color: red;."),n?.title);return(0,DM.jsx)(he,{group:"advanced",children:(0,DM.jsx)(DA,{value:o,onChange:i,inheritedValue:o,help:s})})}var CHe="custom-css-edit-warning";function EHe({clientId:e,name:t,setAttributes:o}){let{style:r,canEditCSS:n}=(0,Tw.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(w);return{style:s(e)?.style||xHe,canEditCSS:a().canEditCSS}},[e]);return n?(0,DM.jsx)(wHe,{blockName:t,setAttributes:o,style:r}):null}function THe({style:e}){let t=e?.css,o=typeof t=="string"&&t.trim().length>0&&CH(t),r=(0,Tw.useSelect)(u=>u(w).getSettings().canEditCSS,[]),{createWarningNotice:n}=(0,Tw.useDispatch)($_e.store),i=!!t?.trim();(0,VM.useEffect)(()=>{!r&&i&&n((0,Rw.__)("This post contains blocks with custom CSS. You do not have permission to edit CSS. If you save this post, the custom CSS will be removed."),{id:CHe,isDismissible:!0})},[r,i,n]);let s=(0,W_e.useInstanceId)(_He,"wp-custom-css"),a=`.${s}`,l=(0,VM.useMemo)(()=>{if(o)return KI(t,a)},[t,a,o]);return gi({css:l}),o?{className:`has-custom-css ${s}`}:{}}function BHe(e,t,o){if(!(0,Bw.hasBlockSupport)(t,"customCSS",!0)||!o?.style?.css?.trim())return e;let r=e.className?`${e.className} has-custom-css`:"has-custom-css";return{...e,className:r}}var FM={edit:EHe,useBlockProps:THe,addSaveProps:BHe,attributeKeys:["style"],hasSupport(e){return(0,Bw.hasBlockSupport)(e,"customCSS",!0)}};var jM=c(oe(),1),cU=c(Ft(),1),Y_e=c(A(),1),vl=c(Q(),1),HM=c(G(),1),kl=c(N(),1),Ag=c(F(),1);var Fr=c(C(),1),RHe="is-style-",zM="layout",PHe={mobile:"@media (width <= 480px)",tablet:"@media (480px < width <= 782px)"},aU=["selfStretch","flexSize","columnStart","columnSpan","rowStart","rowSpan"],{kebabCase:lU}=H(kl.privateApis);function IHe(e={},t){let o=e?.default;return t?.attributes?.layout??o}function K_e(e={},t){return ye({...IHe(e,t)})}function OHe(e={},t={},o={}){let r={},n=Object.fromEntries(aU.filter(i=>Object.hasOwn(o||{},i)).map(i=>[i,o[i]]));return Object.entries(e||{}).forEach(([i,s])=>{!aU.includes(i)&&s!==t?.[i]&&(r[i]=s)}),ye({...n,...r})}function AHe(e={}){return Object.fromEntries(Object.entries(e||{}).filter(([t])=>!aU.includes(t)))}function uU(e){return(0,vl.hasBlockSupport)(e,"layout")||(0,vl.hasBlockSupport)(e,"__experimentalLayout")}function UM(e={},t=""){let{layout:o}=e,{default:r}=(0,vl.getBlockSupport)(t,zM)||{},n=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||r||{},i=[];if(Di[n?.type||"default"]?.className){let a=Di[n?.type||"default"]?.className,l=t.split("/"),d=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${a}`;i.push(a,d)}return(0,HM.useSelect)(a=>!n?.inherit&&!n?.contentSize&&n?.type!=="constrained"?!1:a(w).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[n?.contentSize,n?.inherit,n?.type])&&i.push("has-global-padding"),n?.orientation&&i.push(`is-${lU(n.orientation)}`),n?.justifyContent&&i.push(`is-content-justification-${lU(n.justifyContent)}`),n?.flexWrap&&n.flexWrap==="nowrap"&&i.push("is-nowrap"),i}function dU(e={},t,o){let{layout:r={},style:n={}}=e,i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||{},s=Cs(i?.type||"default"),[a]=xe("spacing.blockGap"),l=a!==null;return s?.getLayoutStyle?.({blockName:t,selector:o,layout:r,style:n,hasBlockGapSupport:l})}function LHe({attributes:e={},blockName:t,selector:o,layout:r={},hasBlockGapSupport:n,globalBlockGapValue:i}){return Object.entries(PHe).map(([s,a])=>{let l=e?.style?.[s],u=AHe(l?.layout),d=Object.keys(u).length>0,f=l?.spacing&&Object.hasOwn(l.spacing,"blockGap"),m=l?.spacing&&Object.hasOwn(l.spacing,"padding");if(!d&&!f&&!m)return"";let p=Cs(r?.type||"default")?.getLayoutStyle?.({blockName:t,selector:o,layout:r,viewportOverrides:u,style:l,hasBlockGapSupport:n,globalBlockGapValue:i});return p?`${a}{${p}}`:""}).filter(Boolean).join("")}function MHe({layout:e,style:t,setAttributes:o,name:r,clientId:n}){let i=na(r),{layout:s}=i,{themeSupportsLayout:a,activeBlockVariation:l,selectedState:u}=(0,HM.useSelect)(Z=>{let q=Z(w),{getBlockAttributes:J,getSettings:re}=q,{getSelectedBlockStyleState:ie}=H(q);return{activeBlockVariation:Z(vl.store).getActiveBlockVariation(r,J(n)||{},"block"),themeSupportsLayout:re().supportsLayout,selectedState:ie?.(n)??$l}},[r,n]),d=Do(),f=gu(u)&&!bu(u),m=(0,Y_e.useCallback)((...Z)=>{let q=Z[0]||{},J=Z[1]||{};if(f){let ce=Jr(q.style??t,u)||{},_e=ye({...ce,layout:void 0});return{style:hi(q.style??t,u,_e)}}let re=J.name||r,ie=(0,vl.getBlockSupport)(re,zM,{});return{layout:K_e(ie,l)}},[r,l,f,u,t]);if(d!=="default")return null;let h=(0,vl.getBlockSupport)(r,zM,{}),p={...s,...h},{allowSwitching:g,allowEditing:b=!0,allowInheriting:v=!0,default:y}=p;if(!b)return null;let k=e||y||{},S=f?Jr(t,u):void 0,_=S?.layout,x=f?ye({...k,..._})||{}:k,E=f?k:K_e(h,l),T={...h,...x},{type:R,default:{type:B="default"}={}}=T,O=R||B,I=!!(v&&(!O||O==="default"||O==="constrained"||T.inherit)),{inherit:P=!1,contentSize:M=null}=x;if((O==="default"||O==="constrained")&&!a)return null;let L=Cs(O),j=Cs("constrained"),V=!x.type&&(M||P),D=!!P||!!M,z=Ir(u)&&!P&&g,W=Z=>{if(f){let q=ye({...S,layout:OHe(ye(Z),k,S?.layout)});o({style:hi(t,u,q)});return}o({layout:ye(Z)})},K=Z=>W({type:Z}),ne=()=>W(E),X=()=>W({type:"default"}),ee=()=>L?.name==="constrained"||D,Y=()=>f?(x?.type??"default")!==(E?.type??"default"):e?.type==="constrained",$=()=>(x?.type??"default")!==(E?.type??"default");return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsxs)(he,{group:"layout",resetAllFilter:m,children:[I&&(0,Fr.jsx)(kl.__experimentalToolsPanelItem,{label:(0,Ag.__)("Use content width"),hasValue:Y,onDeselect:X,isShownByDefault:!0,panelId:n,children:(0,Fr.jsx)(kl.ToggleControl,{label:(0,Ag.__)("Inner blocks use content width"),checked:ee(),onChange:()=>W({type:ee()?"default":"constrained"}),help:ee()?(0,Ag.__)("Nested blocks use content width with options for full and wide widths."):(0,Ag.__)("Nested blocks will fill the width of this container.")})}),z&&(0,Fr.jsx)(kl.__experimentalToolsPanelItem,{label:(0,Ag.__)("Layout type"),hasValue:$,onDeselect:ne,isShownByDefault:!0,panelId:n,children:(0,Fr.jsx)(NHe,{type:O,onChange:K})}),L&&L.name!=="default"&&(0,Fr.jsx)(L.inspectorControls,{layout:x,value:e,onChange:W,layoutBlockSupport:p,resetLayout:E,name:r,clientId:n}),j&&V&&(0,Fr.jsx)(j.inspectorControls,{layout:x,value:e,onChange:W,layoutBlockSupport:p,resetLayout:E,name:r,clientId:n})]}),!P&&L&&(0,Fr.jsx)(L.toolBarControls,{layout:x,onChange:W,layoutBlockSupport:h,name:r,clientId:n})]})}var q_e={shareWithChildBlocks:!0,edit:MHe,attributeKeys:["layout","style"],hasSupport(e){return uU(e)}};function NHe({type:e,onChange:t}){return(0,Fr.jsx)(kl.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,Ag.__)("Layout type"),hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:NW().map(({name:o,label:r})=>(0,Fr.jsx)(kl.__experimentalToggleGroupControlOption,{value:o,label:r},o))})}function DHe(e){return"type"in(e.attributes?.layout??{})||uU(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function VHe({block:e,props:t,blockGapSupport:o,globalBlockGapValue:r,layoutClasses:n}){let{name:i,attributes:s}=t,a=(0,jM.useInstanceId)(e),{layout:l}=s,{default:u}=(0,vl.getBlockSupport)(i,zM)||{},d=l?.inherit||l?.contentSize||l?.wideSize?{...l,type:"constrained"}:l||u||{},f=`wp-container-${lU(i)}-is-layout-`,m=`.${f}${a}`,h=o!==null,g=Cs(d?.type||"default")?.getLayoutStyle?.({blockName:i,selector:m,layout:d,style:s?.style,hasBlockGapSupport:h,globalBlockGapValue:r}),b=LHe({attributes:s,blockName:i,selector:m,layout:d,hasBlockGapSupport:h,globalBlockGapValue:r}),v=[g,b].filter(Boolean).join(""),y=U({[`${f}${a}`]:!!v},n);return gi({css:v}),(0,Fr.jsx)(e,{...t,__unstableLayoutClassNames:y})}var FHe=(0,jM.createHigherOrderComponent)(e=>function(o){let{clientId:r,name:n,attributes:i}=o,s=uU(n),a=UM(i,n),l=(0,HM.useSelect)(u=>{if(!s)return;let{getSettings:d,getBlockSettings:f}=H(u(w)),m=d(),{disableLayoutStyles:h}=m;if(h)return;let[p]=f(r,"spacing.blockGap"),g=m[ei],b,v=i?.className;if(v?.includes(RHe)){let{getBlockStyles:k}=u(vl.store),S=k(n),_=Sj(v,S);b=_?g?.blocks?.[n]?.variations?.[_]?.spacing?.blockGap:void 0}let y=b??g?.blocks?.[n]?.spacing?.blockGap??g?.spacing?.blockGap;return{blockGapSupport:p,globalBlockGapValue:y}},[s,r,i?.className,n]);return l?(0,Fr.jsx)(VHe,{block:e,props:o,layoutClasses:a,...l}):(0,Fr.jsx)(e,{...o,__unstableLayoutClassNames:s?a:void 0})},"withLayoutStyles");(0,cU.addFilter)("blocks.registerBlockType","core/layout/addAttribute",DHe);(0,cU.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",FHe);var rxe=c(oe(),1),gU=c(G(),1),nxe=c(A(),1);var da=c(A(),1),np=c(G(),1),X_e=c(oe(),1);function Iw(e,t){return Array.from({length:t},(o,r)=>e+r)}var Sl=class{constructor({columnStart:e,rowStart:t,columnEnd:o,rowEnd:r,columnSpan:n,rowSpan:i}={}){this.columnStart=e??1,this.rowStart=t??1,n!==void 0?this.columnEnd=this.columnStart+n-1:this.columnEnd=o??this.columnStart,i!==void 0?this.rowEnd=this.rowStart+i-1:this.rowEnd=r??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(e,t){return e>=this.columnStart&&e<=this.columnEnd&&t>=this.rowStart&&t<=this.rowEnd}containsRect(e){return this.contains(e.columnStart,e.rowStart)&&this.contains(e.columnEnd,e.rowEnd)}intersectsRect(e){return this.columnStart<=e.columnEnd&&this.columnEnd>=e.columnStart&&this.rowStart<=e.rowEnd&&this.rowEnd>=e.rowStart}};function nr(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function Pw(e,t){let o=[];for(let r of e.split(" ")){let n=o[o.length-1],i=n?n.end+t:0,s=i+parseFloat(r);o.push({start:i,end:s})}return o}function dd(e,t,o="start"){return e.reduce((r,n,i)=>Math.abs(n[o]-t)<Math.abs(e[r][o]-t)?i:r,0)}function zHe(e,t){let o=parseFloat(nr(e,"column-gap")),r=parseFloat(nr(e,"row-gap")),n=Pw(nr(e,"grid-template-columns"),o),i=Pw(nr(e,"grid-template-rows"),r),s=dd(n,t.left)+1,a=dd(i,t.top)+1,l=dd(n,t.right,"end")+1,u=dd(i,t.bottom,"end")+1;return new Sl({columnStart:s,columnEnd:l,rowStart:a,rowEnd:u})}function Z_e(e){return zHe(e.parentElement,new window.DOMRect(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight))}function fU(e){let t=nr(e,"grid-template-columns"),o=nr(e,"grid-template-rows"),r=nr(e,"border-top-width"),n=nr(e,"border-right-width"),i=nr(e,"border-bottom-width"),s=nr(e,"border-left-width"),a=nr(e,"padding-top"),l=nr(e,"padding-right"),u=nr(e,"padding-bottom"),d=nr(e,"padding-left"),f=t.split(" ").length,m=o.split(" ").length,h=f*m;return{numColumns:f,numRows:m,numItems:h,currentColor:nr(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:o,gap:nr(e,"gap"),inset:`
				calc(${a} + ${r})
				calc(${l} + ${n})
				calc(${u} + ${i})
				calc(${d} + ${s})
			`}}}var ds=c(C(),1);function Ow({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,np.useSelect)(a=>a(w).getSettings().isDistractionFree,[]),i=Rt(e);if(n||!i)return null;let s=o?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,ds.jsx)(jHe,{gridClientId:e,gridElement:i,isManualGrid:s,ref:t,childGridClientId:r})}var jHe=(0,da.forwardRef)(({gridClientId:e,gridElement:t,isManualGrid:o,childGridClientId:r},n)=>{let[i,s]=(0,da.useState)(()=>fU(t)),[a,l]=(0,da.useState)(!1),u=Rt(r),d=(0,da.useMemo)(()=>u?Z_e(u):null,[u]);return(0,da.useEffect)(()=>{let f=()=>s(fU(t)),m=new window.ResizeObserver(f);m.observe(t,{box:"border-box"});let h=new window.ResizeObserver(f);h.observe(t);for(let p of t.children)h.observe(p);return()=>{m.disconnect(),h.disconnect()}},[t]),(0,da.useEffect)(()=>{function f(){l(!0)}function m(){l(!1)}return document.addEventListener("drag",f),document.addEventListener("dragend",m),()=>{document.removeEventListener("drag",f),document.removeEventListener("dragend",m)}},[]),(0,ds.jsx)(zs,{className:U("block-editor-grid-visualizer",{"is-dropping-allowed":a}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,ds.jsx)("div",{ref:n,className:"block-editor-grid-visualizer__grid",style:i.style,children:o?(0,ds.jsx)(UHe,{gridClientId:e,gridInfo:i,childGridRect:d}):(0,ds.jsx)(HHe,{gridInfo:i,childGridRect:d})})})});function HHe({gridInfo:e,childGridRect:t}){return Iw(1,e.numRows).map(o=>Iw(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,ds.jsx)(Q_e,{color:n},`${o}-${r}`)}))}function UHe({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,da.useState)(null),i=(0,np.useSelect)(a=>{let{getBlockOrder:l,getBlockStyles:u}=H(a(w)),d=l(e);return u(d)},[e]),s=(0,da.useMemo)(()=>{let a=[];for(let l of Object.values(i)){let{columnStart:u,rowStart:d,columnSpan:f=1,rowSpan:m=1}=l?.layout??{};!u||!d||a.push(new Sl({columnStart:u,rowStart:d,columnSpan:f,rowSpan:m}))}return a},[i]);return Iw(1,t.numRows).map(a=>Iw(1,t.numColumns).map(l=>{let u=o?.contains(l,a),d=t.currentColor;u&&(d="transparent");let f=s.some(h=>h.contains(l,a)),m=r?.contains(l,a)??!1;return(0,ds.jsx)(Q_e,{color:d,className:m&&"is-highlighted",children:f&&!u?(0,ds.jsx)(GHe,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n}):(0,ds.jsx)(WHe,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n})},`${a}-${l}`)}))}function Q_e({color:e,children:t,className:o}){return(0,ds.jsx)("div",{className:U("block-editor-grid-visualizer__cell",o),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function J_e(e,t,o,r,n){let{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:a,getBlockName:l}=(0,np.useSelect)(w),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,np.useDispatch)(w),m=ug(o,r.numColumns);return $He({validateDrag(h){let p=l(h);if(!a(p,o))return!1;let g=i(h),b=new Sl({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan});return new Sl({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(h){let p=i(h);n(new Sl({columnStart:e,rowStart:t,columnSpan:p.style?.layout?.columnSpan,rowSpan:p.style?.layout?.rowSpan}))},onDragLeave(){n(h=>h?.columnStart===e&&h?.rowStart===t?null:h)},onDrop(h){n(null);let p=i(h);u(h,{style:{...p.style,layout:{...p.style?.layout,columnStart:e,rowStart:t}}}),f(),d([h],s(h),o,m(e,t))}})}function GHe({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){return(0,ds.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:J_e(e,t,o,r,n)})}function WHe({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){let{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,np.useDispatch)(w),l=ug(o,r.numColumns);return(0,ds.jsx)(Df,{rootClientId:o,className:"block-editor-grid-visualizer__appender",ref:J_e(e,t,o,r,n),style:{color:r.currentColor},onSelect:u=>{u&&(i(u.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),a(),s([u.clientId],o,o,l(e,t)))}})}function $He({validateDrag:e,onDragEnter:t,onDragLeave:o,onDrop:r}){let{getDraggedBlockClientIds:n}=(0,np.useSelect)(w);return(0,X_e.__experimentalUseDropZone)({onDragEnter(){let[i]=n();i&&e(i)&&t(i)},onDragLeave(){o()},onDrop(){let[i]=n();i&&e(i)&&r(i)}})}var exe=c(N(),1),Aw=c(A(),1);var GM=c(C(),1);function mU({clientId:e,bounds:t,onChange:o,parentLayout:r}){let n=Rt(e),i=n?.parentElement,{isManualPlacement:s}=r;return!n||!i?null:(0,GM.jsx)(KHe,{clientId:e,bounds:t,blockElement:n,rootBlockElement:i,onChange:o,isManualGrid:s&&window.__experimentalEnableGridInteractivity})}function KHe({clientId:e,bounds:t,blockElement:o,rootBlockElement:r,onChange:n,isManualGrid:i}){let[s,a]=(0,Aw.useState)(null),[l,u]=(0,Aw.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,Aw.useEffect)(()=>{let h=new window.ResizeObserver(()=>{let p=o.getBoundingClientRect(),g=r.getBoundingClientRect(),b=p.top>g.top,v=p.bottom<g.bottom,y=p.left>g.left,k=p.right<g.right;u({top:(i||!v)&&b,bottom:v,left:(i||!k)&&y,right:k})});return h.observe(o),()=>h.disconnect()},[o,r,i]);let d={right:"left",left:"right"},f={top:"flex-end",bottom:"flex-start"},m={display:"flex",justifyContent:"center",alignItems:"center",...d[s]&&{justifyContent:d[s]},...f[s]&&{alignItems:f[s]}};return(0,GM.jsx)(zs,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:m,children:(0,GM.jsx)(exe.ResizableBox,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:l.bottom,bottomLeft:!1,bottomRight:!1,left:l.left,right:l.right,top:l.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:h,pointerId:p})=>{h.setPointerCapture(p)},onResizeStart:(h,p)=>{a(p)},onResizeStop:(h,p,g)=>{let b=parseFloat(nr(r,"column-gap")),v=parseFloat(nr(r,"row-gap")),y=Pw(nr(r,"grid-template-columns"),b),k=Pw(nr(r,"grid-template-rows"),v),S=new window.DOMRect(o.offsetLeft+g.offsetLeft,o.offsetTop+g.offsetTop,g.offsetWidth,g.offsetHeight),_=dd(y,S.left)+1,x=dd(k,S.top)+1,E=dd(y,S.right,"end")+1,T=dd(k,S.bottom,"end")+1;n({columnSpan:E-_+1,rowSpan:T-x+1,columnStart:i?_:void 0,rowStart:i?x:void 0})}})})}var fa=c(F(),1),WM=c(N(),1);var txe=c(G(),1),oxe=c(oe(),1);var Sn=c(C(),1);function pU({layout:e,parentLayout:t,onChange:o,gridClientId:r,blockClientId:n}){let{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,txe.useDispatch)(w),a=e?.columnStart??1,l=e?.rowStart??1,u=e?.columnSpan??1,d=e?.rowSpan??1,f=a+u-1,m=l+d-1,h=t?.columnCount,p=t?.rowCount,g=ug(r,h);return(0,Sn.jsx)(mo,{group:"parent",children:(0,Sn.jsxs)(WM.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,Sn.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,Sn.jsx)(Lw,{icon:(0,fa.isRTL)()?pr:xn,label:(0,fa.__)("Move left"),description:(0,fa.__)("Move left"),isDisabled:a<=1,onClick:()=>{o({columnStart:a-1}),s(),i([n],r,r,g(a-1,l))}})}),(0,Sn.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,Sn.jsx)(Lw,{className:"is-up-button",icon:hp,label:(0,fa.__)("Move up"),description:(0,fa.__)("Move up"),isDisabled:l<=1,onClick:()=>{o({rowStart:l-1}),s(),i([n],r,r,g(a,l-1))}}),(0,Sn.jsx)(Lw,{className:"is-down-button",icon:Ur,label:(0,fa.__)("Move down"),description:(0,fa.__)("Move down"),isDisabled:p&&m>=p,onClick:()=>{o({rowStart:l+1}),s(),i([n],r,r,g(a,l+1))}})]}),(0,Sn.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,Sn.jsx)(Lw,{icon:(0,fa.isRTL)()?xn:pr,label:(0,fa.__)("Move right"),description:(0,fa.__)("Move right"),isDisabled:h&&f>=h,onClick:()=>{o({columnStart:a+1}),s(),i([n],r,r,g(a+1,l))}})})]})})}function Lw({className:e,icon:t,label:o,isDisabled:r,onClick:n,description:i}){let a=`block-editor-grid-item-mover-button__description-${(0,oxe.useInstanceId)(Lw)}`;return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(WM.ToolbarButton,{className:U("block-editor-grid-item-mover-button",e),icon:t,label:o,"aria-describedby":a,onClick:r?null:n,disabled:r,accessibleWhenDisabled:!0}),(0,Sn.jsx)(ct,{id:a,children:i})]})}var Mw=c(G(),1),KM=c(A(),1),$M=c(oe(),1);function hU({clientId:e}){let{gridLayout:t,blockOrder:o,selectedBlockLayout:r}=(0,Mw.useSelect)(m=>{let{getBlockAttributes:h,getBlockOrder:p}=m(w),g=m(w).getSelectedBlock();return{gridLayout:h(e).layout??{},blockOrder:p(e),selectedBlockLayout:g?.attributes.style?.layout}},[e]),{getBlockAttributes:n,getBlockRootClientId:i}=(0,Mw.useSelect)(w),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,Mw.useDispatch)(w),l=(0,KM.useMemo)(()=>r?new Sl(r):null,[r]),u=(0,$M.usePrevious)(l),d=(0,$M.usePrevious)(t.isManualPlacement),f=(0,$M.usePrevious)(o);(0,KM.useEffect)(()=>{let m={};if(t.isManualPlacement){let h=[];for(let g of o){let{columnStart:b,rowStart:v,columnSpan:y=1,rowSpan:k=1}=n(g).style?.layout??{};!b||!v||h.push(new Sl({columnStart:b,rowStart:v,columnSpan:y,rowSpan:k}))}for(let g of o){let b=n(g),{columnStart:v,rowStart:y,columnSpan:k=1,rowSpan:S=1}=b.style?.layout??{};if(v&&y)continue;let[_,x]=YHe(h,t.columnCount,k,S,u?.columnEnd,u?.rowEnd);h.push(new Sl({columnStart:_,rowStart:x,columnSpan:k,rowSpan:S})),m[g]={style:{...b.style,layout:{...b.style?.layout,columnStart:_,rowStart:x}}}}let p=Math.max(...h.map(g=>g.rowEnd));(!t.rowCount||t.rowCount<p)&&(m[e]={layout:{...t,rowCount:p}});for(let g of f??[])if(!o.includes(g)){let b=i(g);if(b===null||n(b)?.layout?.type==="grid")continue;let y=n(g),{columnStart:k,rowStart:S,columnSpan:_,rowSpan:x,...E}=y.style?.layout??{};if(k||S||_||x){let T=Object.keys(E).length===0;m[g]=ge(y,["style","layout"],T?void 0:E)}}}else{if(d===!0)for(let h of o){let p=n(h),{columnStart:g,rowStart:b,...v}=p.style?.layout??{};if(g||b){let y=Object.keys(v).length===0;m[h]=ge(p,["style","layout"],y?void 0:v)}}t.rowCount&&(m[e]={layout:{...t,rowCount:void 0}})}Object.keys(m).length&&(a(),s(Object.keys(m),m,!0))},[e,t,f,o,u,d,a,n,i,s])}function YHe(e,t,o,r,n=1,i=1){for(let s=i;;s++)for(let a=s===i?n:1;a<=t;a++){let l=new Sl({columnStart:a,rowStart:s,columnSpan:o,rowSpan:r});if(!e.some(u=>u.intersectsRect(l)))return[a,s]}}var fd=c(C(),1),qHe={},ZHe={mobile:"@media (width <= 480px)",tablet:"@media (480px < width <= 782px)"};function ixe({selector:e,declarations:t}){return`${e} {
		${Object.entries(t).map(([o,r])=>`${o}: ${r}`).join("; ")};
	}`}function sxe({selector:e,layout:t={},viewportOverrides:o,parentLayout:r={},includeContainerQuery:n=!0}){let i=o!==void 0,s=i?{...t,...o}:t,a=y=>Object.hasOwn(o||{},y),{selfStretch:l,flexSize:u,columnStart:d,rowStart:f,columnSpan:m,rowSpan:h}=s,{columnCount:p,minimumColumnWidth:g}=r,b=[],v={};if((!i||a("selfStretch")||a("flexSize"))&&(l==="fixed"&&u?(v["flex-basis"]=u,v["box-sizing"]="border-box"):l==="fill"&&(v["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(d&&m?v["grid-column"]=`${d} / span ${m}`:d?v["grid-column"]=`${d}`:m&&(v["grid-column"]=`span ${m}`)),(!i||a("rowStart")||a("rowSpan"))&&(f&&h?v["grid-row"]=`${f} / span ${h}`:f?v["grid-row"]=`${f}`:h&&(v["grid-row"]=`span ${h}`)),Object.keys(v).length&&b.push({selector:e,declarations:v}),n&&!i&&(m||d)&&(g||!p)){let y=parseFloat(g);isNaN(y)&&(y=12);let k=g?.replace(y,"");["px","rem","em"].includes(k)||(k="rem");let S=2;m&&d?S=m+d-1:m?S=m:S=d;let _=k==="px"?24:1.5,x=S*y+(S-1)*_,E=y*2+_-1,T=m&&m>1?"1/-1":"auto";b.push({rulesGroup:`@container (max-width: ${Math.max(x,E)}${k})`,selector:e,declarations:{"grid-column":T,"grid-row":"auto"}})}return b}function XHe({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return sxe({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=ixe(n);return n.rulesGroup?`${n.rulesGroup} {
				${i}
			}`:i}).join("")}function QHe({style:e={},selector:t,parentLayout:o={}}){let r=e?.layout??{};return Object.entries(ZHe).map(([n,i])=>{let s=e?.[n]?.layout;if(!s||!Object.keys(s).length)return"";let l=sxe({selector:t,layout:r,viewportOverrides:s,parentLayout:o,includeContainerQuery:!1}).map(ixe).join("");return l?`${i}{${l}}`:""}).filter(Boolean).join("")}function JHe({style:e}){let t=(0,gU.useSelect)(f=>!f(w).getSettings().disableLayoutStyles),o=e?.layout??{},{columnStart:r,rowStart:n,columnSpan:i,rowSpan:s}=o,a=Lp()||{},l=(0,rxe.useInstanceId)(qHe),u=`.wp-container-content-${l}`,d="";if(t&&(d=[XHe({selector:u,layout:o,parentLayout:a}),QHe({style:e,selector:u,parentLayout:a})].join("")),gi({css:d}),!!d)return{className:`wp-container-content-${l}`}}function e9e({clientId:e,style:t,setAttributes:o}){let r=Lp()||{},{type:n="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return n!=="grid"?null:(0,fd.jsx)(t9e,{clientId:e,style:t,setAttributes:o,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})}function t9e({clientId:e,style:t,setAttributes:o,allowSizingOnChildren:r,isManualPlacement:n,parentLayout:i}){let{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:u,deviceType:d,isChildBlockAGrid:f}=(0,gU.useSelect)(k=>{let{getBlockRootClientId:S,getBlockEditingMode:_,getTemplateLock:x,getBlockAttributes:E,getSettings:T}=k(w),R=S(e);if(x(R)||_(R)!=="default")return{rootClientId:R,isVisible:!1};let B=E(R),O=E(e),I=T();return{rootClientId:R,isVisible:!0,parentBlockVisibility:B?.metadata?.blockVisibility,blockBlockVisibility:O?.metadata?.blockVisibility,deviceType:I?.[bs]?.toLowerCase()||oo.desktop.key,isChildBlockAGrid:O?.layout?.type==="grid"}},[e]),{isBlockCurrentlyHidden:m}=Is({blockVisibility:l,deviceType:d}),{isBlockCurrentlyHidden:h}=Is({blockVisibility:u,deviceType:d}),[p,g]=(0,nxe.useState)(),b=f?e:void 0;if(!a||m)return null;let v=r&&!h;function y(k){o({style:{...t,layout:{...t?.layout,...k}}})}return(0,fd.jsxs)(fd.Fragment,{children:[(0,fd.jsx)(Ow,{clientId:s,contentRef:g,parentLayout:i,childGridClientId:b}),v&&(0,fd.jsx)(mU,{clientId:e,bounds:p,onChange:y,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,fd.jsx)(pU,{layout:t?.layout,parentLayout:i,onChange:y,gridClientId:s,blockClientId:e})]})}var bU={useBlockProps:JHe,edit:e9e,attributeKeys:["style"],hasSupport(){return!0}};var vU=c(Ft(),1),yU=c(Q(),1),axe="metadata";function o9e(e){return e?.attributes?.[axe]?.type||(e.attributes={...e.attributes,[axe]:{type:"object"}}),e}function r9e(e,t,o,r){if(r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length)return e;let n=t[o]?.attributes?.metadata;if(!n)return e;let i={};return n.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=n.noteId),n.name&&!e.attributes?.metadata?.name&&(0,yU.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,yU.hasBlockSupport)(e.name,"visibility",!0)&&(i.blockVisibility=n.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}(0,vU.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",o9e);(0,vU.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",r9e);var kU=c(F(),1),YM=c(A(),1),qM=c(N(),1),ZM=c(Q(),1),Wk=c(G(),1);var ip=c(C(),1),n9e={};function i9e({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,Wk.useSelect)(h=>h(ZM.store).getBlockTypes(),[]),n=(0,YM.useMemo)(()=>r?.filter(({name:h,blockHooks:p})=>p&&e in p||o.includes(h)),[r,e,o]),i=(0,Wk.useSelect)(h=>{let{getBlocks:p,getBlockRootClientId:g,getGlobalBlockCount:b}=h(w),v=g(t),y=n.reduce((k,S)=>{if(b(S.name)===0)return k;let _=S?.blockHooks?.[e],x;switch(_){case"before":case"after":x=p(v);break;case"first_child":case"last_child":x=p(t);break;case void 0:x=[...p(v),...p(t)];break}let E=x?.find(T=>T.name===S.name);return E?{...k,[S.name]:E.clientId}:k},{});return Object.values(y).length>0?y:n9e},[n,e,t]),{getBlockIndex:s,getBlockCount:a,getBlockRootClientId:l}=(0,Wk.useSelect)(w),{insertBlock:u,removeBlock:d}=(0,Wk.useDispatch)(w);if(!n.length)return null;let f=n.reduce((h,p)=>{let[g]=p.name.split("/");return h[g]||(h[g]=[]),h[g].push(p),h},{}),m=(h,p)=>{let g=s(t),b=a(t),v=l(t);switch(p){case"before":case"after":u(h,p==="after"?g+1:g,v,!1);break;case"first_child":case"last_child":u(h,p==="first_child"?0:b,t,!1);break;case void 0:u(h,g+1,v,!1);break}};return(0,ip.jsx)(he,{children:(0,ip.jsxs)(qM.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,kU.__)("Plugins"),initialOpen:!0,children:[(0,ip.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,kU.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(f).map(h=>(0,ip.jsxs)(YM.Fragment,{children:[(0,ip.jsx)("h3",{children:h}),f[h].map(p=>{let g=p.name in i;return(0,ip.jsx)(qM.ToggleControl,{checked:g,label:p.title,onChange:()=>{if(!g){let b=p.blockHooks[e];m((0,ZM.createBlock)(p.name),b);return}d(i[p.name],!1)}},p.title)})]},h))]})})}var lxe={edit:i9e,attributeKeys:["metadata"],hasSupport(){return!0}};var SU=c(F(),1),cxe=c(Q(),1),$k=c(N(),1),uxe=c(G(),1),dxe=c(A(),1),fxe=c(oe(),1);var sp=c(C(),1),s9e=()=>(0,fxe.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},a9e=({name:e,metadata:t})=>{let o=(0,dxe.useContext)(sn),{removeAllBlockBindings:r}=Hc(),n=s9e(),{bindableAttributes:i,hasCompatibleFields:s}=(0,uxe.useSelect)(l=>{let{__experimentalBlockBindingsSupportedAttributes:u}=l(w).getSettings(),{getAllBlockBindingsSources:d,getBlockBindingsSourceFieldsList:f}=H(l(cxe.store));return{bindableAttributes:u?.[e],hasCompatibleFields:Object.values(d()).some(m=>f(m,o)?.length>0)}},[e,o]);if(!i||i.length===0)return null;let{bindings:a}=t||{};return a===void 0&&!s?null:(0,sp.jsx)(he,{group:"bindings",children:(0,sp.jsxs)($k.__experimentalToolsPanel,{label:(0,SU.__)("Attributes"),resetAll:()=>{r()},dropdownMenuProps:n,className:"block-editor-bindings__panel",children:[(0,sp.jsx)($k.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:i.map(l=>(0,sp.jsx)(r_,{attribute:l,blockName:e,binding:a?.[l]},l))}),(0,sp.jsx)($k.__experimentalText,{as:"div",variant:"muted",children:(0,sp.jsx)("p",{children:(0,SU.__)("Attributes connected to custom fields or other dynamic data.")})})]})})},mxe={edit:a9e,attributeKeys:["metadata"],hasSupport(e){return!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)}};var pxe=c(F(),1),hxe=c(N(),1),JM=c(G(),1),Nw=c(Q(),1),gxe=c(A(),1);var XM=c(G(),1);function QM(e){let{isOpened:t,expandRevision:o}=(0,XM.useSelect)(i=>{let{isListViewPanelOpened:s,getListViewExpandRevision:a}=H(i(w));return{isOpened:s(e),expandRevision:a()}},[e]),{__unstableToggleListViewPanel:r}=(0,XM.useDispatch)(w);return{isOpened:t,expandRevision:o,handleToggle:i=>{r(e,i)}}}var Kk=c(C(),1),l9e="listView";function bxe(e){return(0,Nw.hasBlockSupport)(e,l9e)}function c9e({clientId:e,name:t}){let{isSelectionWithinCurrentSection:o}=(0,gxe.useContext)(Hr),{isOpened:r,expandRevision:n,handleToggle:i}=QM(e),{openListViewContentPanel:s}=H((0,JM.useDispatch)(w)),a=bxe(t),{hasChildren:l,isNestedListView:u}=(0,JM.useSelect)(h=>{let{getBlockCount:p,getBlockParents:g,getBlockName:b}=h(w),y=g(e,!1).find(k=>{let S=b(k);return S==="core/navigation"||(0,Nw.hasBlockSupport)(S,"listView")});return{hasChildren:!!p(e),isNestedListView:y}},[e]),f=(0,Nw.getBlockType)(t)?.title||t;return!a||u?null:(0,Kk.jsx)(Bh,{group:"list",children:(0,Kk.jsxs)(hxe.PanelBody,{title:o?f:void 0,opened:r,onToggle:i,children:[!l&&(0,Kk.jsx)("p",{className:"block-editor-block-inspector__no-blocks",children:(0,pxe.__)("No items yet.")}),(0,Kk.jsx)(g0,{rootClientId:e,isExpanded:!0,description:f,showAppender:!0,onSelect:s},`${e}-${n}`)]})})}var yxe={edit:c9e,hasSupport:bxe,attributeKeys:[],supportsPatternEditing:!0};var vxe=c(Ft(),1),kxe=c(Q(),1);function u9e(e){return e.__experimentalLabel||(0,kxe.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(o,{context:r})=>{let{metadata:n}=o;if((r==="list-view"||r==="breadcrumb")&&n?.name)return n.name}),e}(0,vxe.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",u9e);var Sxe=c(oe(),1),_xe=c(Ft(),1),xxe=c(G(),1);var ma=c(C(),1);function d9e(e){hU(e)}function f9e({clientId:e,layout:t}){let{isVisible:o,blockVisibility:r,deviceType:n,isAnyAncestorHidden:i}=(0,xxe.useSelect)(a=>{let{isBlockSelected:l,hasSelectedInnerBlock:u,isDraggingBlocks:d,getTemplateLock:f,getBlockEditingMode:m,getBlockAttributes:h,getSettings:p}=a(w);if(!d()&&!l(e)||f(e)||m(e)!=="default"||u(e))return{isVisible:!1};let{isBlockParentHiddenAtViewport:g}=H(a(w)),b=h(e),y=p()?.[bs]?.toLowerCase()||oo.desktop.key;return{isVisible:!0,blockVisibility:b?.metadata?.blockVisibility,deviceType:y,isAnyAncestorHidden:g(e,y)}},[e]),{isBlockCurrentlyHidden:s}=Is({blockVisibility:r,deviceType:n});return(0,ma.jsxs)(ma.Fragment,{children:[(0,ma.jsx)(d9e,{clientId:e}),o&&!s&&!i&&(0,ma.jsx)(Ow,{clientId:e,parentLayout:t})]})}var m9e=(0,Sxe.createHigherOrderComponent)(e=>function(o){return o.attributes.layout?.type!=="grid"?(0,ma.jsx)(e,{...o},"edit"):(0,ma.jsxs)(ma.Fragment,{children:[(0,ma.jsx)(f9e,{clientId:o.clientId,layout:o.attributes.layout}),(0,ma.jsx)(e,{...o},"edit")]})},"addGridVisualizerToBlockEdit");(0,_xe.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",m9e);var Dw=c(Q(),1),Cxe=c(N(),1),Exe=c(G(),1);var tN=c(A(),1),Txe=c(F(),1);function wxe(e){let t=[],o=[];return Object.entries(e).forEach(([r,n])=>{if(!n.autoGenerateControl)return;let i=p9e(r,n);i&&(t.push(i),o.push(r))}),{fields:t,form:{fields:o}}}function p9e(e,t){let o=t.type,r={id:e,label:t.label||e,type:o==="string"?"text":o};return t.enum&&Array.isArray(t.enum)&&(r.elements=t.enum.map(n=>({value:n,label:String(n)}))),r}var eN=c(C(),1);function h9e(e){return e?Object.values(e).some(t=>t?.autoGenerateControl):!1}function g9e({name:e,clientId:t,setAttributes:o}){let r=Do(),n=(0,tN.useContext)(sn),i=(0,Exe.useSelect)(u=>{let d=u(w).getBlockAttributes(t);if(!d?.metadata?.bindings)return d;let{getBlockBindingsSource:f}=H(u(Dw.store));return Object.entries(d.metadata.bindings).reduce((m,[h,p])=>{let g=f(p.source);if(!g)return m;let b=g.getValues({select:u,context:n,bindings:{[h]:p}});return{...m,...b}},d)},[n,t]),s=(0,Dw.getBlockType)(e),{fields:a,form:l}=(0,tN.useMemo)(()=>s?.attributes?wxe(s.attributes):{fields:[],form:{fields:[]}},[s?.attributes]);return r!=="default"||!a||a.length===0?null:(0,eN.jsx)(he,{children:(0,eN.jsx)(Cxe.PanelBody,{title:(0,Txe.__)("Settings"),children:(0,eN.jsx)(vw,{data:i,fields:a,form:l,onChange:o})})})}var Bxe={edit:g9e,attributeKeys:[],hasSupport(e){let t=(0,Dw.getBlockType)(e);return h9e(t?.attributes)}};function oN(e){let{style:t}=e,o=t?.dimensions||{},r=us({dimensions:o});return{className:o.aspectRatio?"has-aspect-ratio":void 0,style:r}}function rN(e){let t=e.style?.border||{};return{className:OH(e)||void 0,style:us({border:t})}}function _U(e){let{colors:t}=fm(),o=rN(e),{borderColor:r}=e;if(r){let n=hg({colors:t,namedColor:r});o.style.borderColor=n.color}return o}function xU(e){let t=e.style?.shadow||"";return{style:us({shadow:t})}}var wU=c(A(),1);function nN(e){let{backgroundColor:t,textColor:o,gradient:r,style:n}=e,i=gs("background-color",t),s=gs("color",o),a=cb(r),l=a||n?.color?.gradient,u=U(s,a,{[i]:!l&&!!i,"has-text-color":o||n?.color?.text,"has-background":t||n?.color?.background||r||n?.color?.gradient,"has-link-color":n?.elements?.link?.color}),d=n?.color||{},f=us({color:d});return{className:u||void 0,style:f}}function CU(e){let{backgroundColor:t,textColor:o,gradient:r}=e,[n,i,s,a,l,u]=xe("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=(0,wU.useMemo)(()=>[...n||[],...i||[],...s||[]],[n,i,s]),f=(0,wU.useMemo)(()=>[...a||[],...l||[],...u||[]],[a,l,u]),m=nN(e);if(t){let h=Cl(d,t);m.style.backgroundColor=h.color}if(r&&(m.style.background=EE(f,r)),o){let h=Cl(d,o);m.style.color=h.color}return m}function EU(e){let{style:t}=e,o=t?.spacing||{};return{style:us({spacing:o})}}var Rxe=c(N(),1);var{kebabCase:b9e}=H(Rxe.privateApis);function TU(e,t){let o=e?.style?.typography||{};o={...o,fontSize:wu({size:e?.style?.typography?.fontSize},t)};let r=us({typography:o}),n=e?.fontFamily?`has-${b9e(e.fontFamily)}-font-family`:"",i=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:U(n,i,zd(e?.fontSize)),style:r}}var iN=c(A(),1);function BU(e){let[t,o]=(0,iN.useState)(e);return(0,iN.useEffect)(()=>{e&&o(e)},[e]),t}kye([gL,TM,u9,U9,MM,FM,sU,RM,G6,q_e,lxe,mxe,bU,Hye,qSe,yxe,Bxe].filter(Boolean));Sye([gL,TM,wbe,MM,FH,T_e,sU,G9,$9,RM,AH,FM,G6,Kae,bU]);_ye([gL,TM,u9,$ye,U9,AH,FM,RM,FH,MM,G9,$9]);var Pxe={button:"wp-element-button",caption:"wp-element-caption"},y9e=e=>Pxe[e]?Pxe[e]:"";var Ixe=()=>"";var Yk=c(A(),1),Vw=c(Q(),1),PU=c(Wr(),1);var Oxe=c(C(),1);function IU(e,t,o){if(e==null||e===!1)return;if(Array.isArray(e))return RU(e,t,o);switch(typeof e){case"string":case"number":return}let{type:r,props:n}=e;switch(r){case Yk.StrictMode:case Yk.Fragment:return RU(n.children,t,o);case Yk.RawHTML:return;case Ax.Content:return Axe(t,o);case V0:t.push(n.value);return}switch(typeof r){case"string":return typeof n.children<"u"?RU(n.children,t,o):void 0;case"function":let i=r.prototype&&typeof r.prototype.render=="function"?new r(n).render():r(n);return IU(i,t,o)}}function RU(e,...t){e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++)IU(e[o],...t)}function Axe(e,t){for(let o=0;o<t.length;o++){let{name:r,attributes:n,innerBlocks:i}=t[o],s=(0,Vw.getSaveElement)(r,n,(0,Oxe.jsx)(Ax.Content,{}));IU(s,e,i)}}function Lxe(e=[]){Vw.__unstableGetBlockProps.skipFilters=!0;let t=[];return Axe(t,e),Vw.__unstableGetBlockProps.skipFilters=!1,t.map(o=>o instanceof PU.RichTextData?o:PU.RichTextData.fromHTMLString(o))}var Mxe=c(N(),1);var OU=c(C(),1);function Nxe({clientId:e,resizableBoxProps:t,...o}){return(0,OU.jsx)(zs,{clientId:e,__unstablePopoverSlot:"block-toolbar",...o,children:(0,OU.jsx)(Mxe.ResizableBox,{...t})})}var zw=c(A(),1),sN=c(G(),1),_l=c(N(),1),Fw=c(F(),1);var pa=c(C(),1);function Dxe({rules:e}){let[t,o]=(0,zw.useState)(!1),{clientIds:r,selectPrevious:n,message:i}=(0,sN.useSelect)(p=>H(p(w)).getRemovalPromptData()),{clearBlockRemovalPrompt:s,setBlockRemovalRules:a,privateRemoveBlocks:l}=H((0,sN.useDispatch)(w));if((0,zw.useEffect)(()=>(a(e),()=>{a()}),[e,a]),(0,zw.useEffect)(()=>{o(!1)},[r]),!i)return;let u=typeof i=="object"&&i!==null,d=u?i.description:i,f=u&&i.requireConfirmation,m=f&&!t,h=()=>{l(r,n,!0),s()};return(0,pa.jsx)(_l.Modal,{title:(0,Fw.__)("Confirm deletion"),onRequestClose:s,size:"medium",children:(0,pa.jsxs)(_l.__experimentalVStack,{spacing:4,children:[(0,pa.jsxs)("div",{children:[(0,pa.jsx)("p",{children:d}),u&&(i.warning||i.subtext)&&(0,pa.jsxs)("p",{children:[i.warning&&(0,pa.jsx)("strong",{children:i.warning}),i.warning&&i.subtext&&" ",i.subtext]})]}),f&&(0,pa.jsx)(_l.CheckboxControl,{label:(0,Fw.__)("I understand the consequences"),checked:t,onChange:o}),(0,pa.jsxs)(_l.__experimentalHStack,{justify:"right",children:[(0,pa.jsx)(_l.Button,{variant:"tertiary",onClick:s,__next40pxDefaultSize:!0,children:(0,Fw.__)("Cancel")}),(0,pa.jsx)(_l.Button,{variant:"primary",onClick:h,disabled:m,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,Fw.__)("Delete")})]})]})})}var AU=c(A(),1);var qk=c(N(),1),Fxe=c(A(),1),Ii=c(F(),1),aN=c(C(),1),Vxe=[{value:"fill",label:(0,Ii._x)("Fill","Scale option for dimensions control"),help:(0,Ii.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,Ii._x)("Contain","Scale option for dimensions control"),help:(0,Ii.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,Ii._x)("Cover","Scale option for dimensions control"),help:(0,Ii.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,Ii._x)("None","Scale option for dimensions control"),help:(0,Ii.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,Ii._x)("Scale down","Scale option for dimensions control"),help:(0,Ii.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function zxe({panelId:e,value:t,onChange:o,options:r=Vxe,defaultValue:n=Vxe[0].value,isShownByDefault:i=!0}){let s=t??"fill",a=(0,Fxe.useMemo)(()=>r.reduce((l,u)=>(l[u.value]=u.help,l),{}),[r]);return(0,aN.jsx)(qk.__experimentalToolsPanelItem,{label:(0,Ii._x)("Scale","Image scaling options"),isShownByDefault:i,hasValue:()=>s!==n,onDeselect:()=>o(n),panelId:e,children:(0,aN.jsx)(qk.__experimentalToggleGroupControl,{label:(0,Ii._x)("Scale","Image scaling options"),isBlock:!0,help:a[s],value:s,onChange:o,size:"__unstable-large",children:r.map(l=>(0,aN.jsx)(qk.__experimentalToggleGroupControlOption,{...l},l.value))})})}var Zk=c(N(),1),Lg=c(F(),1),md=c(C(),1);function jxe({panelId:e,value:t={},onChange:o=()=>{},units:r,isShownByDefault:n=!0}){let i=t.width==="auto"?"":t.width??"",s=t.height==="auto"?"":t.height??"",a=l=>u=>{let d={...t};u?d[l]=u:delete d[l],o(d)};return(0,md.jsxs)(md.Fragment,{children:[(0,md.jsx)(Zk.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Lg.__)("Width"),isShownByDefault:n,hasValue:()=>i!=="",onDeselect:a("width"),panelId:e,children:(0,md.jsx)(Zk.__experimentalUnitControl,{label:(0,Lg.__)("Width"),placeholder:(0,Lg.__)("Auto"),labelPosition:"top",units:r,min:0,value:i,onChange:a("width"),size:"__unstable-large"})}),(0,md.jsx)(Zk.__experimentalToolsPanelItem,{style:{gridColumn:"span 1"},label:(0,Lg.__)("Height"),isShownByDefault:n,hasValue:()=>s!=="",onDeselect:a("height"),panelId:e,children:(0,md.jsx)(Zk.__experimentalUnitControl,{label:(0,Lg.__)("Height"),placeholder:(0,Lg.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:a("height"),size:"__unstable-large"})})]})}var ap=c(C(),1);function v9e({panelId:e,value:t={},onChange:o=()=>{},aspectRatioOptions:r,defaultAspectRatio:n="auto",scaleOptions:i,defaultScale:s="fill",unitsOptions:a,tools:l=["aspectRatio","widthHeight","scale"]}){let u=t.width===void 0||t.width==="auto"?null:t.width,d=t.height===void 0||t.height==="auto"?null:t.height,f=t.aspectRatio===void 0||t.aspectRatio==="auto"?null:t.aspectRatio,m=t.scale===void 0||t.scale==="fill"?null:t.scale,[h,p]=(0,AU.useState)(m),[g,b]=(0,AU.useState)(f),v=u&&d?"custom":g,y=f||u&&d;return(0,ap.jsxs)(ap.Fragment,{children:[l.includes("aspectRatio")&&(0,ap.jsx)(_A,{panelId:e,options:r,defaultValue:n,value:v,onChange:k=>{let S={...t};k=k==="auto"?null:k,b(k),k?S.aspectRatio=k:delete S.aspectRatio,k?h?S.scale=h:(S.scale=s,p(s)):delete S.scale,k!=="custom"&&u&&d&&delete S.height,o(S)}}),l.includes("widthHeight")&&(0,ap.jsx)(jxe,{panelId:e,units:a,value:{width:u,height:d},onChange:({width:k,height:S})=>{let _={...t};k=k==="auto"?null:k,S=S==="auto"?null:S,k?_.width=k:delete _.width,S?_.height=S:delete _.height,k&&S?delete _.aspectRatio:g&&(_.aspectRatio=g),!g&&!!k!=!!S?delete _.scale:h?_.scale=h:(_.scale=s,p(s)),o(_)}}),l.includes("scale")&&y&&(0,ap.jsx)(zxe,{panelId:e,options:i,defaultValue:s,value:h,onChange:k=>{let S={...t};k=k==="fill"?null:k,p(k),k?S.scale=k:delete S.scale,o(S)}})]})}var Hxe=v9e;var lN=c(N(),1),pd=c(F(),1),LU=c(C(),1),Uxe=[{label:(0,pd._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,pd._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,pd._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,pd._x)("Full Size","Image size option for resolution control"),value:"full"}];function Gxe({panelId:e,value:t,onChange:o,options:r=Uxe,defaultValue:n=Uxe[0].value,isShownByDefault:i=!0,resetAllFilter:s}){let a=t??n;return(0,LU.jsx)(lN.__experimentalToolsPanelItem,{hasValue:()=>a!==n,label:(0,pd.__)("Resolution"),onDeselect:()=>o(n),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,LU.jsx)(lN.SelectControl,{label:(0,pd.__)("Resolution"),value:a,options:r,onChange:o,help:(0,pd.__)("Select the size of the source image."),size:"__unstable-large"})})}var Mg=c(F(),1),Xk=c(N(),1),$xe=c(G(),1);var xl=c(F(),1),Wxe={a:(0,xl.__)("The <a> element should be used for links that navigate to a different page or to a different section within the same page."),article:(0,xl.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,xl.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,xl.__)("The <button> element should be used for interactive controls that perform an action on the current page, such as opening a modal or toggling content visibility."),div:(0,xl.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,xl.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,xl.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,xl.__)("The <main> element should be used for the primary content of your document only."),nav:(0,xl.__)("The <nav> element should be used to identify groups of links that are intended to be used for website or page content navigation."),section:(0,xl.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};var jw=c(C(),1);function Kxe({tagName:e,onChange:t,clientId:o,options:r=[{label:(0,Mg.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]}){let n=!!o&&r.some(a=>a.value==="main"),i=(0,$xe.useSelect)(a=>{if(!n)return!1;let{getClientIdsWithDescendants:l,getBlockAttributes:u}=a(w);return l().some(d=>d===o?!1:u(d)?.tagName==="main")},[o,n]),s=r.map(a=>a.value==="main"&&i&&e!=="main"?{...a,disabled:!0,label:(0,Mg.sprintf)((0,Mg.__)("%s (Already in use)"),a.label)}:a);return(0,jw.jsxs)(Xk.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,jw.jsx)(Xk.SelectControl,{__next40pxDefaultSize:!0,label:(0,Mg.__)("HTML element"),options:s,value:e,onChange:t,help:Wxe[e]}),e==="main"&&i&&(0,jw.jsx)(Xk.Notice,{status:"warning",isDismissible:!1,children:(0,Mg.__)("Multiple <main> elements detected. The duplicate may be in your content or template. This is not valid HTML and may cause accessibility issues. Please change this HTML element.")})]})}var hd=c(N(),1);var Qk=c(A(),1),cN=c(F(),1);var Oi=c(N(),1);var Yxe=c(at(),1);var fs=c(C(),1),{Badge:k9e}=H(Oi.privateApis);function qxe({title:e,url:t,image:o,badges:r}){return(0,fs.jsxs)(Oi.__experimentalHStack,{justify:"space-between",alignment:"top",children:[(0,fs.jsx)(Oi.FlexItem,{className:"link-preview-button__content",children:(0,fs.jsxs)(Oi.__experimentalHStack,{alignment:"top",children:[o&&(0,fs.jsx)(Oi.FlexItem,{className:"link-preview-button__image-container",children:(0,fs.jsx)("img",{className:"link-preview-button__image",src:o,alt:""})}),(0,fs.jsxs)(Oi.__experimentalVStack,{className:"link-preview-button__details",alignment:"topLeft",children:[(0,fs.jsx)(Oi.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__title",children:(0,Yxe.__unstableStripHTML)(e)}),t&&(0,fs.jsx)(Oi.__experimentalTruncate,{numberOfLines:1,className:"link-preview-button__hint",children:t}),r&&r.length>0&&(0,fs.jsx)(Oi.__experimentalHStack,{className:"link-preview-button__badges",alignment:"left",children:r.map(n=>(0,fs.jsx)(k9e,{intent:n.intent,children:n.label},`${n.label}|${n.intent}`))})]})]})}),(0,fs.jsx)(We,{icon:Ur,className:"link-preview-button__icon"})]})}var ms=c(C(),1);function MU({preview:e,onSelect:t,suggestionsQuery:o,label:r,help:n}){let[i,s]=(0,Qk.useState)(!1),a=(0,Qk.useId)(),l=`link-picker-title-${a}`,u=`link-picker-description-${a}`,d=(0,Qk.useRef)(null),{baseControlProps:f,controlProps:m}=(0,hd.useBaseControlProps)({help:n}),h=p=>{if(s(!1),p){let g={url:p.url,kind:p.kind,type:p.type,id:p.id,title:p.title};t(g)}};return(0,ms.jsxs)(hd.BaseControl,{...f,children:[(0,ms.jsx)(hd.BaseControl.VisualLabel,{children:r}),(0,ms.jsxs)(hd.Button,{ref:d,onClick:()=>s(!i),"aria-haspopup":"dialog","aria-expanded":i,"aria-describedby":m["aria-describedby"],variant:"secondary",__next40pxDefaultSize:!0,className:"link-preview-button",children:[r&&(0,ms.jsxs)(ct,{children:[r,":"]}),(0,ms.jsx)(qxe,{title:e.title||(0,cN.__)("Add link"),url:e.url,image:e.image,badges:e.badges})]}),i&&(0,ms.jsx)(hd.Popover,{anchor:d.current,onClose:()=>s(!1),placement:"left-start",offset:36,shift:!0,children:(0,ms.jsxs)("div",{role:"dialog","aria-labelledby":l,"aria-describedby":u,children:[(0,ms.jsxs)(ct,{children:[(0,ms.jsx)("h2",{id:l,children:(0,cN.__)("Select a link")}),(0,ms.jsx)("p",{id:u,children:(0,cN.__)("Search for and add a link to the navigation item.")})]}),(0,ms.jsx)(ym,{value:null,onChange:h,suggestionsQuery:o,showInitialSuggestions:!0,forceIsEditingLink:!0,settings:[]})]})})]})}var NU={};r7(NU,{...RH,ExperimentalBlockCanvas:Nj,BlockCanvasCover:mO,ExperimentalBlockEditorProvider:iy,getDuotoneFilter:NM,getRichTextValues:Lxe,PrivateQuickInserter:pP,extractWords:PE,getNormalizedSearchTerms:ZS,normalizeString:qS,PrivateListView:g0,ResizableBoxPopover:Nxe,InspectorControlsLastItem:lL,useHasBlockToolbar:LI,cleanEmptyObject:ye,usePrivateStyleOverride:Cu,BlockQuickNavigation:iL,LayoutStyle:VW,BlockManager:yL,BlockRemovalWarningModal:Dxe,useLayoutClasses:UM,useLayoutStyles:dU,DimensionsTool:Hxe,ResolutionTool:Gxe,TabbedSidebar:cP,TextAlignmentControl:bA,usesContextKey:J8,useFlashEditableBlocks:FT,HTMLElementControl:Kxe,useZoomOut:xx,globalStylesDataKey:ei,globalStylesLinksDataKey:tC,selectBlockPatternsKey:kd,requiresWrapperOnCopy:vz,PrivateRichText:F0,PrivateInserterLibrary:$H,reusableBlocksSelectKey:oC,userPatternCategoriesSelectKey:Ac,PrivateBlockPopover:Sh,PrivatePublishDateTimePicker:e9,useSpacingSizes:eA,useBlockDisplayTitle:Kr,BlockStyleVariationOverridesWithConfig:_j,setBackgroundStyleDefaults:ZA,sectionRootClientIdKey:Sd,NoteIconSlotFill:uI,NoteIconToolbarSlotFill:TI,mediaEditKey:rC,getMediaSelectKey:nC,deviceTypeKey:bs,onViewportStateChangeKey:iC,isIsolatedEditorKey:_d,isNavigationOverlayContextKey:sC,isNavigationPostEditorKey:v7,mediaUploadOnSuccessKey:nS,openMediaEditorModalKey:k7,useBlockElement:Rt,useBlockElementRef:Vp,LinkPicker:MU,useRemoteUrlData:C2,PrivateBlockContext:Hr,useListViewPanelState:QM,isHashLink:lp,isRelativePath:cp});return r0e(S9e);})();
/*! Bundled license information:

autosize/dist/autosize.js:
  (*!
  	autosize 4.0.2
  	license: MIT
  	http://www.jacklmoore.com/autosize
  *)

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

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

normalize-wheel/src/isEventSupported.js:
  (**
   * Checks if an event is supported in the current execution environment.
   *
   * NOTE: This will not work correctly for non-generic events such as `change`,
   * `reset`, `load`, `error`, and `select`.
   *
   * Borrows from Modernizr.
   *
   * @param {string} eventNameSuffix Event name, e.g. "click".
   * @param {?boolean} capture Check if the capture phase is supported.
   * @return {boolean} True if the event is supported.
   * @internal
   * @license Modernizr 3.0.0pre (Custom Build) | MIT
   *)

is-plain-object/dist/is-plain-object.mjs:
  (*!
   * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
   *
   * Copyright (c) 2014-2017, Jon Schlinkert.
   * Released under the MIT License.
   *)
*/
//# sourceMappingURL=index.min.js.map